From 1b1507d7b0e3bd99bfb7360dca388e9827a79a78 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 1 Apr 2024 02:32:09 +0000 Subject: [PATCH] Generated 2013-02-21 for Slb. --- ChangeLog.txt | 4 + services/slb/add_access_control_list_entry.go | 106 ----------- services/slb/add_backend_servers.go | 2 +- services/slb/add_listener_white_list_item.go | 108 ----------- services/slb/add_tags.go | 105 ----------- .../slb/add_v_server_group_backend_servers.go | 108 ----------- services/slb/create_access_control_list.go | 115 ------------ services/slb/create_domain_extension.go | 119 ------------ services/slb/create_load_balancer.go | 60 ++----- .../slb/create_load_balancer_http_listener.go | 77 +++----- .../create_load_balancer_https_listener.go | 169 ------------------ .../slb/create_load_balancer_tcp_listener.go | 85 +++------ .../slb/create_load_balancer_udp_listener.go | 155 ---------------- .../slb/create_master_slave_server_group.go | 116 ------------ services/slb/create_rules.go | 109 ----------- services/slb/create_tls_cipher_policy.go | 107 ----------- services/slb/create_v_server_group.go | 116 ------------ services/slb/delete_access_control_list.go | 105 ----------- .../delete_access_logs_download_attribute.go | 106 ----------- services/slb/delete_ca_certificate.go | 104 ----------- services/slb/delete_domain_extension.go | 105 ----------- services/slb/delete_load_balancer.go | 3 +- services/slb/delete_load_balancer_listener.go | 3 +- .../slb/delete_master_slave_server_group.go | 105 ----------- services/slb/delete_rules.go | 105 ----------- services/slb/delete_server_certificate.go | 105 ----------- services/slb/delete_tls_cipher_policy.go | 104 ----------- services/slb/delete_v_server_group.go | 105 ----------- .../describe_access_control_list_attribute.go | 118 ------------ services/slb/describe_access_control_lists.go | 121 ------------- ...describe_access_logs_download_attribute.go | 113 ------------ services/slb/describe_available_resource.go | 106 ----------- ...e_rules.go => describe_backend_servers.go} | 49 +++-- services/slb/describe_ca_certificates.go | 113 ------------ .../describe_domain_extension_attribute.go | 112 ------------ services/slb/describe_domain_extensions.go | 108 ----------- services/slb/describe_health_status.go | 108 ----------- .../slb/describe_high_defination_monitor.go | 107 ----------- ...cribe_listener_access_control_attribute.go | 109 ----------- .../slb/describe_load_balancer_attribute.go | 84 +++------ ...e_load_balancer_http_listener_attribute.go | 76 +++----- ..._load_balancer_https_listener_attribute.go | 164 ----------------- .../slb/describe_load_balancer_listeners.go | 117 ------------ ...be_load_balancer_tcp_listener_attribute.go | 68 +++---- ...be_load_balancer_udp_listener_attribute.go | 150 ---------------- services/slb/describe_load_balancers.go | 60 +++---- ...ibe_master_slave_server_group_attribute.go | 112 ------------ .../describe_master_slave_server_groups.go | 114 ------------ services/slb/describe_regions.go | 3 +- services/slb/describe_rule_attribute.go | 128 ------------- services/slb/describe_server_certificates.go | 114 ------------ services/slb/describe_tags.go | 112 ------------ .../slb/describe_v_server_group_attribute.go | 112 ------------ services/slb/describe_v_server_groups.go | 115 ------------ services/slb/describe_zones.go | 105 ----------- .../slb/enable_high_defination_monitor.go | 107 ----------- services/slb/list_tag_resources.go | 115 ------------ services/slb/list_tls_cipher_policies.go | 112 ------------ .../slb/modify_high_defination_monitor.go | 105 ----------- ...dify_load_balancer_instance_charge_type.go | 107 ----------- .../slb/modify_load_balancer_instance_spec.go | 108 ----------- .../slb/modify_load_balancer_internet_spec.go | 110 ------------ services/slb/modify_load_balancer_pay_type.go | 110 ------------ .../modify_v_server_group_backend_servers.go | 109 ----------- services/slb/move_resource_group.go | 108 ----------- .../slb/remove_access_control_list_entry.go | 106 ----------- services/slb/remove_backend_servers.go | 2 +- .../slb/remove_listener_white_list_item.go | 108 ----------- services/slb/remove_tags.go | 105 ----------- .../remove_v_server_group_backend_servers.go | 108 ----------- .../slb/set_access_control_list_attribute.go | 107 ----------- .../slb/set_access_logs_download_attribute.go | 106 ----------- services/slb/set_backend_servers.go | 108 ----------- services/slb/set_ca_certificate_name.go | 105 ----------- .../slb/set_domain_extension_attribute.go | 115 ------------ .../slb/set_listener_access_control_status.go | 108 ----------- .../set_load_balancer_delete_protection.go | 106 ----------- ...t_load_balancer_http_listener_attribute.go | 63 ++----- ..._load_balancer_https_listener_attribute.go | 161 ----------------- .../slb/set_load_balancer_listener_status.go | 104 +++++++++++ ...t_load_balancer_modification_protection.go | 105 ----------- services/slb/set_load_balancer_name.go | 2 +- services/slb/set_load_balancer_status.go | 2 +- ...et_load_balancer_tcp_listener_attribute.go | 66 ++----- ...et_load_balancer_udp_listener_attribute.go | 149 --------------- services/slb/set_rule.go | 122 ------------- services/slb/set_server_certificate_name.go | 106 ----------- .../slb/set_tls_cipher_policy_attribute.go | 108 ----------- services/slb/set_v_server_group_attribute.go | 110 ------------ services/slb/start_load_balancer_listener.go | 107 ----------- services/slb/stop_load_balancer_listener.go | 107 ----------- services/slb/struct_acl.go | 27 --- services/slb/struct_acl_entry.go | 22 --- services/slb/struct_acl_entrys.go | 21 --- ...e_load_balancer_http_listener_attribute.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- ...ids_in_describe_load_balancer_listeners.go | 21 --- ...be_load_balancer_tcp_listener_attribute.go | 21 --- ...be_load_balancer_udp_listener_attribute.go | 21 --- services/slb/struct_acls.go | 21 --- services/slb/struct_associated_objects.go | 22 --- services/slb/struct_available_resource.go | 23 --- services/slb/struct_available_resources.go | 21 --- services/slb/struct_backend_server.go | 8 - ...r_in_add_v_server_group_backend_servers.go | 29 --- ...backend_server_in_create_v_server_group.go | 29 --- ...ver_in_describe_load_balancer_attribute.go | 8 +- ...er_in_describe_v_server_group_attribute.go | 30 ---- ...n_modify_v_server_group_backend_servers.go | 29 --- ...ackend_server_in_remove_backend_servers.go | 8 +- ...n_remove_v_server_group_backend_servers.go | 29 --- ..._server_in_set_v_server_group_attribute.go | 29 --- ...s_in_add_v_server_group_backend_servers.go | 21 --- ...ackend_servers_in_create_v_server_group.go | 21 --- ...nd_servers_in_describe_backend_servers.go} | 4 +- ...rs_in_describe_v_server_group_attribute.go | 21 --- ...n_modify_v_server_group_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 | 34 ---- services/slb/struct_ca_certificates.go | 21 --- services/slb/struct_certificate.go | 22 --- ..._in_describe_domain_extension_attribute.go | 21 --- ...tificates_in_describe_domain_extensions.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- services/slb/struct_ciphers.go | 21 --- services/slb/struct_domain_extension.go | 25 --- ...xtensions_in_describe_domain_extensions.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- services/slb/struct_http_listener_config.go | 48 ----- services/slb/struct_https_listener_config.go | 57 ------ services/slb/struct_ineffective_order_list.go | 21 --- services/slb/struct_labels.go | 21 --- services/slb/struct_listener.go | 24 +-- ...ner_in_describe_load_balancer_listeners.go | 40 ----- .../slb/struct_listener_port_and_protocol.go | 3 - services/slb/struct_listener_ports.go | 2 +- ...v_server_groups.go => struct_listeners.go} | 4 +- ...ers_in_describe_load_balancer_listeners.go | 21 --- ..._in_describe_master_slave_server_groups.go | 21 --- services/slb/struct_load_balancer.go | 49 ++--- .../slb/struct_logs_download_attribute.go | 26 --- .../slb/struct_logs_download_attributes.go | 21 --- .../slb/struct_master_slave_backend_server.go | 28 --- ...ers_in_create_master_slave_server_group.go | 21 --- ...ibe_master_slave_server_group_attribute.go | 21 --- .../slb/struct_master_slave_server_group.go | 26 --- .../slb/struct_master_slave_server_groups.go | 21 --- services/slb/struct_port_range.go | 22 --- ...ges_in_describe_load_balancer_listeners.go | 21 --- ...be_load_balancer_tcp_listener_attribute.go | 21 --- ...be_load_balancer_udp_listener_attribute.go | 21 --- services/slb/struct_region.go | 5 +- services/slb/struct_relate_listener.go | 23 --- services/slb/struct_relate_listeners.go | 21 --- services/slb/struct_related_listener.go | 24 --- services/slb/struct_related_listeners.go | 21 --- services/slb/struct_rule.go | 41 ----- services/slb/struct_rules_in_create_rules.go | 21 --- ...e_load_balancer_http_listener_attribute.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- .../slb/struct_rules_in_describe_rules.go | 21 --- ...truct_rules_in_describe_v_server_groups.go | 21 --- services/slb/struct_server_certificate.go | 41 ----- ..._in_describe_domain_extension_attribute.go | 21 --- ...tificates_in_describe_domain_extensions.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- ...ficates_in_describe_server_certificates.go | 21 --- services/slb/struct_slave_zone.go | 22 --- services/slb/struct_slave_zones.go | 21 --- ...e_names_in_describe_server_certificates.go | 21 --- ...tive_names_in_upload_server_certificate.go | 21 --- services/slb/struct_support_resource.go | 22 --- services/slb/struct_support_resources.go | 21 --- services/slb/struct_tag.go | 22 --- services/slb/struct_tag_resource.go | 24 --- services/slb/struct_tag_resources.go | 21 --- services/slb/struct_tag_set.go | 23 --- services/slb/struct_tag_sets.go | 21 --- ..._describe_access_control_list_attribute.go | 21 --- ...t_tags_in_describe_access_control_lists.go | 21 --- ...struct_tags_in_describe_ca_certificates.go | 21 --- ...ags_in_describe_load_balancer_attribute.go | 21 --- ...e_load_balancer_http_listener_attribute.go | 21 --- ..._load_balancer_https_listener_attribute.go | 21 --- ...ags_in_describe_load_balancer_listeners.go | 21 --- ...be_load_balancer_tcp_listener_attribute.go | 21 --- ...be_load_balancer_udp_listener_attribute.go | 21 --- .../struct_tags_in_describe_load_balancers.go | 21 --- ...ibe_master_slave_server_group_attribute.go | 21 --- ..._in_describe_master_slave_server_groups.go | 21 --- ...ct_tags_in_describe_server_certificates.go | 21 --- ...gs_in_describe_v_server_group_attribute.go | 21 --- ...struct_tags_in_describe_v_server_groups.go | 21 --- services/slb/struct_tcp_listener_config.go | 40 ----- services/slb/struct_tcps_listener_config.go | 39 ---- services/slb/struct_tls_cipher_policies.go | 21 --- services/slb/struct_tls_cipher_policy.go | 28 --- services/slb/struct_tls_versions.go | 21 --- services/slb/struct_udp_listener_config.go | 40 ----- services/slb/struct_v_server_group.go | 27 --- services/slb/struct_v_server_groups.go | 21 --- services/slb/struct_zone.go | 23 --- services/slb/struct_zones.go | 21 --- services/slb/tag_resources.go | 112 ------------ services/slb/untag_resources.go | 107 ----------- services/slb/upload_ca_certificate.go | 123 ------------- services/slb/upload_server_certificate.go | 134 -------------- 209 files changed, 366 insertions(+), 11706 deletions(-) delete mode 100644 services/slb/add_access_control_list_entry.go delete mode 100644 services/slb/add_listener_white_list_item.go delete mode 100644 services/slb/add_tags.go delete mode 100644 services/slb/add_v_server_group_backend_servers.go delete mode 100644 services/slb/create_access_control_list.go delete mode 100644 services/slb/create_domain_extension.go delete mode 100644 services/slb/create_load_balancer_https_listener.go delete mode 100644 services/slb/create_load_balancer_udp_listener.go delete mode 100644 services/slb/create_master_slave_server_group.go delete mode 100644 services/slb/create_rules.go delete mode 100644 services/slb/create_tls_cipher_policy.go delete mode 100644 services/slb/create_v_server_group.go delete mode 100644 services/slb/delete_access_control_list.go delete mode 100644 services/slb/delete_access_logs_download_attribute.go delete mode 100644 services/slb/delete_ca_certificate.go delete mode 100644 services/slb/delete_domain_extension.go delete mode 100644 services/slb/delete_master_slave_server_group.go delete mode 100644 services/slb/delete_rules.go delete mode 100644 services/slb/delete_server_certificate.go delete mode 100644 services/slb/delete_tls_cipher_policy.go delete mode 100644 services/slb/delete_v_server_group.go delete mode 100644 services/slb/describe_access_control_list_attribute.go delete mode 100644 services/slb/describe_access_control_lists.go delete mode 100644 services/slb/describe_access_logs_download_attribute.go delete mode 100644 services/slb/describe_available_resource.go rename services/slb/{describe_rules.go => describe_backend_servers.go} (53%) delete mode 100644 services/slb/describe_ca_certificates.go delete mode 100644 services/slb/describe_domain_extension_attribute.go delete mode 100644 services/slb/describe_domain_extensions.go delete mode 100644 services/slb/describe_health_status.go delete mode 100644 services/slb/describe_high_defination_monitor.go delete mode 100644 services/slb/describe_listener_access_control_attribute.go delete mode 100644 services/slb/describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/describe_load_balancer_listeners.go delete mode 100644 services/slb/describe_load_balancer_udp_listener_attribute.go delete mode 100644 services/slb/describe_master_slave_server_group_attribute.go delete mode 100644 services/slb/describe_master_slave_server_groups.go delete mode 100644 services/slb/describe_rule_attribute.go delete mode 100644 services/slb/describe_server_certificates.go delete mode 100644 services/slb/describe_tags.go delete mode 100644 services/slb/describe_v_server_group_attribute.go delete mode 100644 services/slb/describe_v_server_groups.go delete mode 100644 services/slb/describe_zones.go delete mode 100644 services/slb/enable_high_defination_monitor.go delete mode 100644 services/slb/list_tag_resources.go delete mode 100644 services/slb/list_tls_cipher_policies.go delete mode 100644 services/slb/modify_high_defination_monitor.go delete mode 100644 services/slb/modify_load_balancer_instance_charge_type.go delete mode 100644 services/slb/modify_load_balancer_instance_spec.go delete mode 100644 services/slb/modify_load_balancer_internet_spec.go delete mode 100644 services/slb/modify_load_balancer_pay_type.go delete mode 100644 services/slb/modify_v_server_group_backend_servers.go delete mode 100644 services/slb/move_resource_group.go delete mode 100644 services/slb/remove_access_control_list_entry.go delete mode 100644 services/slb/remove_listener_white_list_item.go delete mode 100644 services/slb/remove_tags.go delete mode 100644 services/slb/remove_v_server_group_backend_servers.go delete mode 100644 services/slb/set_access_control_list_attribute.go delete mode 100644 services/slb/set_access_logs_download_attribute.go delete mode 100644 services/slb/set_backend_servers.go delete mode 100644 services/slb/set_ca_certificate_name.go delete mode 100644 services/slb/set_domain_extension_attribute.go delete mode 100644 services/slb/set_listener_access_control_status.go delete mode 100644 services/slb/set_load_balancer_delete_protection.go delete mode 100644 services/slb/set_load_balancer_https_listener_attribute.go create mode 100644 services/slb/set_load_balancer_listener_status.go delete mode 100644 services/slb/set_load_balancer_modification_protection.go delete mode 100644 services/slb/set_load_balancer_udp_listener_attribute.go delete mode 100644 services/slb/set_rule.go delete mode 100644 services/slb/set_server_certificate_name.go delete mode 100644 services/slb/set_tls_cipher_policy_attribute.go delete mode 100644 services/slb/set_v_server_group_attribute.go delete mode 100644 services/slb/start_load_balancer_listener.go delete mode 100644 services/slb/stop_load_balancer_listener.go delete mode 100644 services/slb/struct_acl.go delete mode 100644 services/slb/struct_acl_entry.go delete mode 100644 services/slb/struct_acl_entrys.go delete mode 100644 services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go delete mode 100644 services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go delete mode 100644 services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go delete mode 100644 services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go delete mode 100644 services/slb/struct_acls.go delete mode 100644 services/slb/struct_associated_objects.go delete mode 100644 services/slb/struct_available_resource.go delete mode 100644 services/slb/struct_available_resources.go delete mode 100644 services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_server_in_create_v_server_group.go delete mode 100644 services/slb/struct_backend_server_in_describe_v_server_group_attribute.go delete mode 100644 services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_server_in_set_v_server_group_attribute.go delete mode 100644 services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_servers_in_create_v_server_group.go rename services/slb/{struct_backend_servers_in_describe_health_status.go => struct_backend_servers_in_describe_backend_servers.go} (85%) delete mode 100644 services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go delete mode 100644 services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go delete mode 100644 services/slb/struct_backend_servers_in_set_backend_servers.go delete mode 100644 services/slb/struct_backend_servers_in_set_v_server_group_attribute.go delete mode 100644 services/slb/struct_ca_certificate.go delete mode 100644 services/slb/struct_ca_certificates.go delete mode 100644 services/slb/struct_certificate.go delete mode 100644 services/slb/struct_certificates_in_describe_domain_extension_attribute.go delete mode 100644 services/slb/struct_certificates_in_describe_domain_extensions.go delete mode 100644 services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_ciphers.go delete mode 100644 services/slb/struct_domain_extension.go delete mode 100644 services/slb/struct_domain_extensions_in_describe_domain_extensions.go delete mode 100644 services/slb/struct_domain_extensions_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_http_listener_config.go delete mode 100644 services/slb/struct_https_listener_config.go delete mode 100644 services/slb/struct_ineffective_order_list.go delete mode 100644 services/slb/struct_labels.go delete mode 100644 services/slb/struct_listener_in_describe_load_balancer_listeners.go rename services/slb/{struct_listeners_in_describe_v_server_groups.go => struct_listeners.go} (86%) delete mode 100644 services/slb/struct_listeners_in_describe_load_balancer_listeners.go delete mode 100644 services/slb/struct_listeners_in_describe_master_slave_server_groups.go delete mode 100644 services/slb/struct_logs_download_attribute.go delete mode 100644 services/slb/struct_logs_download_attributes.go delete mode 100644 services/slb/struct_master_slave_backend_server.go delete mode 100644 services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go delete mode 100644 services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go delete mode 100644 services/slb/struct_master_slave_server_group.go delete mode 100644 services/slb/struct_master_slave_server_groups.go delete mode 100644 services/slb/struct_port_range.go delete mode 100644 services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go delete mode 100644 services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go delete mode 100644 services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go delete mode 100644 services/slb/struct_relate_listener.go delete mode 100644 services/slb/struct_relate_listeners.go delete mode 100644 services/slb/struct_related_listener.go delete mode 100644 services/slb/struct_related_listeners.go delete mode 100644 services/slb/struct_rule.go delete mode 100644 services/slb/struct_rules_in_create_rules.go delete mode 100644 services/slb/struct_rules_in_describe_load_balancer_http_listener_attribute.go delete mode 100644 services/slb/struct_rules_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_rules_in_describe_rules.go delete mode 100644 services/slb/struct_rules_in_describe_v_server_groups.go delete mode 100644 services/slb/struct_server_certificate.go delete mode 100644 services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go delete mode 100644 services/slb/struct_server_certificates_in_describe_domain_extensions.go delete mode 100644 services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_server_certificates_in_describe_server_certificates.go delete mode 100644 services/slb/struct_slave_zone.go delete mode 100644 services/slb/struct_slave_zones.go delete mode 100644 services/slb/struct_subject_alternative_names_in_describe_server_certificates.go delete mode 100644 services/slb/struct_subject_alternative_names_in_upload_server_certificate.go delete mode 100644 services/slb/struct_support_resource.go delete mode 100644 services/slb/struct_support_resources.go delete mode 100644 services/slb/struct_tag.go delete mode 100644 services/slb/struct_tag_resource.go delete mode 100644 services/slb/struct_tag_resources.go delete mode 100644 services/slb/struct_tag_set.go delete mode 100644 services/slb/struct_tag_sets.go delete mode 100644 services/slb/struct_tags_in_describe_access_control_list_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_access_control_lists.go delete mode 100644 services/slb/struct_tags_in_describe_ca_certificates.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_listeners.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_load_balancers.go delete mode 100644 services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_master_slave_server_groups.go delete mode 100644 services/slb/struct_tags_in_describe_server_certificates.go delete mode 100644 services/slb/struct_tags_in_describe_v_server_group_attribute.go delete mode 100644 services/slb/struct_tags_in_describe_v_server_groups.go delete mode 100644 services/slb/struct_tcp_listener_config.go delete mode 100644 services/slb/struct_tcps_listener_config.go delete mode 100644 services/slb/struct_tls_cipher_policies.go delete mode 100644 services/slb/struct_tls_cipher_policy.go delete mode 100644 services/slb/struct_tls_versions.go delete mode 100644 services/slb/struct_udp_listener_config.go delete mode 100644 services/slb/struct_v_server_group.go delete mode 100644 services/slb/struct_v_server_groups.go delete mode 100644 services/slb/struct_zone.go delete mode 100644 services/slb/struct_zones.go delete mode 100644 services/slb/tag_resources.go delete mode 100644 services/slb/untag_resources.go delete mode 100644 services/slb/upload_ca_certificate.go delete mode 100644 services/slb/upload_server_certificate.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 4afd93b8dd..1cd6e67acd 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-04-01 Version: v1.62.708 +- Generated 2013-02-21 for `Slb`. +undefined + 2024-03-29 Version: v1.62.707 - Generated 2021-05-20 for `idaas-doraemon`. - ListOrderConsumeStatisticRecords add applicationExternalId serviceCode. diff --git a/services/slb/add_access_control_list_entry.go b/services/slb/add_access_control_list_entry.go deleted file mode 100644 index 067d4777cf..0000000000 --- a/services/slb/add_access_control_list_entry.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// AddAccessControlListEntry invokes the slb.AddAccessControlListEntry API synchronously -func (client *Client) AddAccessControlListEntry(request *AddAccessControlListEntryRequest) (response *AddAccessControlListEntryResponse, err error) { - response = CreateAddAccessControlListEntryResponse() - err = client.DoAction(request, response) - return -} - -// AddAccessControlListEntryWithChan invokes the slb.AddAccessControlListEntry API asynchronously -func (client *Client) AddAccessControlListEntryWithChan(request *AddAccessControlListEntryRequest) (<-chan *AddAccessControlListEntryResponse, <-chan error) { - responseChan := make(chan *AddAccessControlListEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddAccessControlListEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddAccessControlListEntryWithCallback invokes the slb.AddAccessControlListEntry API asynchronously -func (client *Client) AddAccessControlListEntryWithCallback(request *AddAccessControlListEntryRequest, callback func(response *AddAccessControlListEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddAccessControlListEntryResponse - var err error - defer close(result) - response, err = client.AddAccessControlListEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddAccessControlListEntryRequest is the request struct for api AddAccessControlListEntry -type AddAccessControlListEntryRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclEntrys string `position:"Query" name:"AclEntrys"` - AclId string `position:"Query" name:"AclId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// AddAccessControlListEntryResponse is the response struct for api AddAccessControlListEntry -type AddAccessControlListEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAddAccessControlListEntryRequest creates a request to invoke AddAccessControlListEntry API -func CreateAddAccessControlListEntryRequest() (request *AddAccessControlListEntryRequest) { - request = &AddAccessControlListEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "AddAccessControlListEntry", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddAccessControlListEntryResponse creates a response to parse from AddAccessControlListEntry response -func CreateAddAccessControlListEntryResponse() (response *AddAccessControlListEntryResponse) { - response = &AddAccessControlListEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/add_backend_servers.go b/services/slb/add_backend_servers.go index 11546c2d4b..9ce06019df 100644 --- a/services/slb/add_backend_servers.go +++ b/services/slb/add_backend_servers.go @@ -94,7 +94,7 @@ func CreateAddBackendServersRequest() (request *AddBackendServersRequest) { request = &AddBackendServersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "AddBackendServers", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "AddBackendServers", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/add_listener_white_list_item.go b/services/slb/add_listener_white_list_item.go deleted file mode 100644 index e1517218aa..0000000000 --- a/services/slb/add_listener_white_list_item.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourceItems string `position:"Query" name:"SourceItems"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateAddListenerWhiteListItemResponse creates a response to parse from AddListenerWhiteListItem response -func CreateAddListenerWhiteListItemResponse() (response *AddListenerWhiteListItemResponse) { - response = &AddListenerWhiteListItemResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/add_tags.go b/services/slb/add_tags.go deleted file mode 100644 index 54ca44bc96..0000000000 --- a/services/slb/add_tags.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateAddTagsResponse creates a response to parse from AddTags response -func CreateAddTagsResponse() (response *AddTagsResponse) { - response = &AddTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/add_v_server_group_backend_servers.go b/services/slb/add_v_server_group_backend_servers.go deleted file mode 100644 index a5ab4a67e6..0000000000 --- a/services/slb/add_v_server_group_backend_servers.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// AddVServerGroupBackendServersResponse is the response struct for api AddVServerGroupBackendServers -type AddVServerGroupBackendServersResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateAddVServerGroupBackendServersResponse creates a response to parse from AddVServerGroupBackendServers response -func CreateAddVServerGroupBackendServersResponse() (response *AddVServerGroupBackendServersResponse) { - response = &AddVServerGroupBackendServersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_access_control_list.go b/services/slb/create_access_control_list.go deleted file mode 100644 index c30b4ee598..0000000000 --- a/services/slb/create_access_control_list.go +++ /dev/null @@ -1,115 +0,0 @@ -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" -) - -// CreateAccessControlList invokes the slb.CreateAccessControlList API synchronously -func (client *Client) CreateAccessControlList(request *CreateAccessControlListRequest) (response *CreateAccessControlListResponse, err error) { - response = CreateCreateAccessControlListResponse() - err = client.DoAction(request, response) - return -} - -// CreateAccessControlListWithChan invokes the slb.CreateAccessControlList API asynchronously -func (client *Client) CreateAccessControlListWithChan(request *CreateAccessControlListRequest) (<-chan *CreateAccessControlListResponse, <-chan error) { - responseChan := make(chan *CreateAccessControlListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateAccessControlList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateAccessControlListWithCallback invokes the slb.CreateAccessControlList API asynchronously -func (client *Client) CreateAccessControlListWithCallback(request *CreateAccessControlListRequest, callback func(response *CreateAccessControlListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateAccessControlListResponse - var err error - defer close(result) - response, err = client.CreateAccessControlList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateAccessControlListRequest is the request struct for api CreateAccessControlList -type CreateAccessControlListRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclName string `position:"Query" name:"AclName"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateAccessControlListTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// CreateAccessControlListTag is a repeated param struct in CreateAccessControlListRequest -type CreateAccessControlListTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateAccessControlListResponse is the response struct for api CreateAccessControlList -type CreateAccessControlListResponse struct { - *responses.BaseResponse - AclId string `json:"AclId" xml:"AclId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateAccessControlListRequest creates a request to invoke CreateAccessControlList API -func CreateCreateAccessControlListRequest() (request *CreateAccessControlListRequest) { - request = &CreateAccessControlListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateAccessControlList", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateAccessControlListResponse creates a response to parse from CreateAccessControlList response -func CreateCreateAccessControlListResponse() (response *CreateAccessControlListResponse) { - response = &CreateAccessControlListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_domain_extension.go b/services/slb/create_domain_extension.go deleted file mode 100644 index 33fd781da3..0000000000 --- a/services/slb/create_domain_extension.go +++ /dev/null @@ -1,119 +0,0 @@ -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" -) - -// CreateDomainExtension invokes the slb.CreateDomainExtension API synchronously -func (client *Client) CreateDomainExtension(request *CreateDomainExtensionRequest) (response *CreateDomainExtensionResponse, err error) { - response = CreateCreateDomainExtensionResponse() - err = client.DoAction(request, response) - return -} - -// CreateDomainExtensionWithChan invokes the slb.CreateDomainExtension API asynchronously -func (client *Client) CreateDomainExtensionWithChan(request *CreateDomainExtensionRequest) (<-chan *CreateDomainExtensionResponse, <-chan error) { - responseChan := make(chan *CreateDomainExtensionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDomainExtension(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDomainExtensionWithCallback invokes the slb.CreateDomainExtension API asynchronously -func (client *Client) CreateDomainExtensionWithCallback(request *CreateDomainExtensionRequest, callback func(response *CreateDomainExtensionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDomainExtensionResponse - var err error - defer close(result) - response, err = client.CreateDomainExtension(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDomainExtensionRequest is the request struct for api CreateDomainExtension -type CreateDomainExtensionRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate *[]CreateDomainExtensionServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - CertificateId *[]string `position:"Query" name:"CertificateId" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - Domain string `position:"Query" name:"Domain"` -} - -// CreateDomainExtensionServerCertificate is a repeated param struct in CreateDomainExtensionRequest -type CreateDomainExtensionServerCertificate struct { - BindingType string `name:"BindingType"` - CertificateId string `name:"CertificateId"` - StandardType string `name:"StandardType"` -} - -// CreateDomainExtensionResponse is the response struct for api CreateDomainExtension -type CreateDomainExtensionResponse struct { - *responses.BaseResponse - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - RequestId string `json:"RequestId" xml:"RequestId"` - DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` -} - -// CreateCreateDomainExtensionRequest creates a request to invoke CreateDomainExtension API -func CreateCreateDomainExtensionRequest() (request *CreateDomainExtensionRequest) { - request = &CreateDomainExtensionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateDomainExtension", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDomainExtensionResponse creates a response to parse from CreateDomainExtension response -func CreateCreateDomainExtensionResponse() (response *CreateDomainExtensionResponse) { - response = &CreateDomainExtensionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_load_balancer.go b/services/slb/create_load_balancer.go index dfbde34c3b..a3d5aca03d 100644 --- a/services/slb/create_load_balancer.go +++ b/services/slb/create_load_balancer.go @@ -71,62 +71,24 @@ func (client *Client) CreateLoadBalancerWithCallback(request *CreateLoadBalancer // CreateLoadBalancerRequest is the request struct for api CreateLoadBalancer type CreateLoadBalancerRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - MasterZoneId string `position:"Query" name:"MasterZoneId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LoadBalancerName string `position:"Query" name:"LoadBalancerName"` - SlaveZoneId string `position:"Query" name:"SlaveZoneId"` - Tag *[]CreateLoadBalancerTag `position:"Query" name:"Tag" type:"Repeated"` - LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - VSwitchId string `position:"Query" name:"VSwitchId"` - EnableVpcVipFlow string `position:"Query" name:"EnableVpcVipFlow"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - PricingCycle string `position:"Query" name:"PricingCycle"` - AccessKeyId string `position:"Query" name:"access_key_id"` - ModificationProtectionReason string `position:"Query" name:"ModificationProtectionReason"` - SupportPrivateLink requests.Boolean `position:"Query" name:"SupportPrivateLink"` - ClientToken string `position:"Query" name:"ClientToken"` - CloudType string `position:"Query" name:"CloudType"` - Duration requests.Integer `position:"Query" name:"Duration"` - AddressType string `position:"Query" name:"AddressType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DeleteProtection string `position:"Query" name:"DeleteProtection"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - Address string `position:"Query" name:"Address"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ModificationProtectionStatus string `position:"Query" name:"ModificationProtectionStatus"` - InstanceListenerType string `position:"Query" name:"InstanceListenerType"` - VpcId string `position:"Query" name:"VpcId"` - PayType string `position:"Query" name:"PayType"` - Ratio requests.Integer `position:"Query" name:"Ratio"` -} - -// CreateLoadBalancerTag is a repeated param struct in CreateLoadBalancerRequest -type CreateLoadBalancerTag struct { - Value string `name:"Value"` - Key string `name:"Key"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + LoadBalancerMode string `position:"Query" name:"LoadBalancerMode"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + Address string `position:"Query" name:"Address"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + IsPublicAddress string `position:"Query" name:"IsPublicAddress"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // CreateLoadBalancerResponse is the response struct for api CreateLoadBalancer type CreateLoadBalancerResponse struct { *responses.BaseResponse - VpcId string `json:"VpcId" xml:"VpcId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Address string `json:"Address" xml:"Address"` RequestId string `json:"RequestId" xml:"RequestId"` LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Address string `json:"Address" xml:"Address"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - OrderId int64 `json:"OrderId" xml:"OrderId"` } // CreateCreateLoadBalancerRequest creates a request to invoke CreateLoadBalancer API @@ -134,7 +96,7 @@ func CreateCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) { request = &CreateLoadBalancerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancer", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "CreateLoadBalancer", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/create_load_balancer_http_listener.go b/services/slb/create_load_balancer_http_listener.go index bc2f333c0b..c82b7f79c6 100644 --- a/services/slb/create_load_balancer_http_listener.go +++ b/services/slb/create_load_balancer_http_listener.go @@ -71,59 +71,28 @@ func (client *Client) CreateLoadBalancerHTTPListenerWithCallback(request *Create // CreateLoadBalancerHTTPListenerRequest is the request struct for api CreateLoadBalancerHTTPListener type CreateLoadBalancerHTTPListenerRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - ListenerForward string `position:"Query" name:"ListenerForward"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` - AclStatus string `position:"Query" name:"AclStatus"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - VpcIds string `position:"Query" name:"VpcIds"` - Tag *[]CreateLoadBalancerHTTPListenerTag `position:"Query" name:"Tag" type:"Repeated"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ForwardCode requests.Integer `position:"Query" name:"ForwardCode"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - HealthCheckHttpVersion string `position:"Query" name:"HealthCheckHttpVersion"` - AccessKeyId string `position:"Query" name:"access_key_id"` - XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - ForwardPort requests.Integer `position:"Query" name:"ForwardPort"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` -} - -// CreateLoadBalancerHTTPListenerTag is a repeated param struct in CreateLoadBalancerHTTPListenerRequest -type CreateLoadBalancerHTTPListenerTag struct { - Value string `name:"Value"` - Key string `name:"Key"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HostId string `position:"Query" name:"HostId"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + HealthCheck string `position:"Query" name:"HealthCheck"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Cookie string `position:"Query" name:"Cookie"` + StickySession string `position:"Query" name:"StickySession"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId string `position:"Query" name:"OwnerId"` + URI string `position:"Query" name:"URI"` + ListenerStatus string `position:"Query" name:"ListenerStatus"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + Domain string `position:"Query" name:"Domain"` + Interval requests.Integer `position:"Query" name:"Interval"` } // CreateLoadBalancerHTTPListenerResponse is the response struct for api CreateLoadBalancerHTTPListener @@ -137,7 +106,7 @@ func CreateCreateLoadBalancerHTTPListenerRequest() (request *CreateLoadBalancerH request = &CreateLoadBalancerHTTPListenerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerHTTPListener", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "CreateLoadBalancerHTTPListener", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/create_load_balancer_https_listener.go b/services/slb/create_load_balancer_https_listener.go deleted file mode 100644 index 24e88008ea..0000000000 --- a/services/slb/create_load_balancer_https_listener.go +++ /dev/null @@ -1,169 +0,0 @@ -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 -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 -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 -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 - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate *[]CreateLoadBalancerHTTPSListenerServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` - AclStatus string `position:"Query" name:"AclStatus"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - VpcIds string `position:"Query" name:"VpcIds"` - Tag *[]CreateLoadBalancerHTTPSListenerTag `position:"Query" name:"Tag" type:"Repeated"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - XForwardedForClientCertClientVerify string `position:"Query" name:"XForwardedFor_ClientCertClientVerify"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CACertificateId string `position:"Query" name:"CACertificateId"` - BackendProtocol string `position:"Query" name:"BackendProtocol"` - Tags string `position:"Query" name:"Tags"` - XForwardedForClientCertFingerprintAlias string `position:"Query" name:"XForwardedFor_ClientCertFingerprintAlias"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForClientCertClientVerifyAlias string `position:"Query" name:"XForwardedFor_ClientCertClientVerifyAlias"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - XForwardedForClientCertFingerprint string `position:"Query" name:"XForwardedFor_ClientCertFingerprint"` - HealthCheckHttpVersion string `position:"Query" name:"HealthCheckHttpVersion"` - AccessKeyId string `position:"Query" name:"access_key_id"` - XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - XForwardedForClientCertIssuerDNAlias string `position:"Query" name:"XForwardedFor_ClientCertIssuerDNAlias"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - EnableHttp2 string `position:"Query" name:"EnableHttp2"` - XForwardedForClientCertSubjectDN string `position:"Query" name:"XForwardedFor_ClientCertSubjectDN"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForClientCertSubjectDNAlias string `position:"Query" name:"XForwardedFor_ClientCertSubjectDNAlias"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - XForwardedForClientCertIssuerDN string `position:"Query" name:"XForwardedFor_ClientCertIssuerDN"` -} - -// CreateLoadBalancerHTTPSListenerServerCertificate is a repeated param struct in CreateLoadBalancerHTTPSListenerRequest -type CreateLoadBalancerHTTPSListenerServerCertificate struct { - BindingType string `name:"BindingType"` - CertificateId string `name:"CertificateId"` - StandardType string `name:"StandardType"` -} - -// CreateLoadBalancerHTTPSListenerTag is a repeated param struct in CreateLoadBalancerHTTPSListenerRequest -type CreateLoadBalancerHTTPSListenerTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateCreateLoadBalancerHTTPSListenerResponse creates a response to parse from CreateLoadBalancerHTTPSListener response -func CreateCreateLoadBalancerHTTPSListenerResponse() (response *CreateLoadBalancerHTTPSListenerResponse) { - response = &CreateLoadBalancerHTTPSListenerResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_load_balancer_tcp_listener.go b/services/slb/create_load_balancer_tcp_listener.go index ad7633647f..6204fa5228 100644 --- a/services/slb/create_load_balancer_tcp_listener.go +++ b/services/slb/create_load_balancer_tcp_listener.go @@ -71,62 +71,33 @@ func (client *Client) CreateLoadBalancerTCPListenerWithCallback(request *CreateL // CreateLoadBalancerTCPListenerRequest is the request struct for api CreateLoadBalancerTCPListener type CreateLoadBalancerTCPListenerRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - AclStatus string `position:"Query" name:"AclStatus"` - FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` - HealthCheckTcpFastCloseEnabled requests.Boolean `position:"Query" name:"HealthCheckTcpFastCloseEnabled"` - AclType string `position:"Query" name:"AclType"` - EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` - FailoverStrategy string `position:"Query" name:"FailoverStrategy"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - Tag *[]CreateLoadBalancerTCPListenerTag `position:"Query" name:"Tag" type:"Repeated"` - MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - PortRange *[]CreateLoadBalancerTCPListenerPortRange `position:"Query" name:"PortRange" type:"Repeated"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` - FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` - ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` - ConnectionDrain string `position:"Query" name:"ConnectionDrain"` - HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` -} - -// CreateLoadBalancerTCPListenerTag is a repeated param struct in CreateLoadBalancerTCPListenerRequest -type CreateLoadBalancerTCPListenerTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateLoadBalancerTCPListenerPortRange is a repeated param struct in CreateLoadBalancerTCPListenerRequest -type CreateLoadBalancerTCPListenerPortRange struct { - StartPort string `name:"StartPort"` - EndPort string `name:"EndPort"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + HealthCheck string `position:"Query" name:"HealthCheck"` + EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + ConnectTimeout requests.Integer `position:"Query" name:"ConnectTimeout"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + ConnectPort requests.Integer `position:"Query" name:"ConnectPort"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ListenerStatus string `position:"Query" name:"ListenerStatus"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + Interval requests.Integer `position:"Query" name:"Interval"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` } // CreateLoadBalancerTCPListenerResponse is the response struct for api CreateLoadBalancerTCPListener @@ -140,7 +111,7 @@ func CreateCreateLoadBalancerTCPListenerRequest() (request *CreateLoadBalancerTC request = &CreateLoadBalancerTCPListenerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerTCPListener", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "CreateLoadBalancerTCPListener", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/create_load_balancer_udp_listener.go b/services/slb/create_load_balancer_udp_listener.go deleted file mode 100644 index cd63f96333..0000000000 --- a/services/slb/create_load_balancer_udp_listener.go +++ /dev/null @@ -1,155 +0,0 @@ -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 -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 -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 -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 - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - AclStatus string `position:"Query" name:"AclStatus"` - FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` - AclType string `position:"Query" name:"AclType"` - FailoverStrategy string `position:"Query" name:"FailoverStrategy"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - Tag *[]CreateLoadBalancerUDPListenerTag `position:"Query" name:"Tag" type:"Repeated"` - MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - PortRange *[]CreateLoadBalancerUDPListenerPortRange `position:"Query" name:"PortRange" type:"Repeated"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckReq string `position:"Query" name:"healthCheckReq"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` - HealthCheckExp string `position:"Query" name:"healthCheckExp"` - FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` - ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` - ConnectionDrain string `position:"Query" name:"ConnectionDrain"` - HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` - QuicVersion string `position:"Query" name:"QuicVersion"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` -} - -// CreateLoadBalancerUDPListenerTag is a repeated param struct in CreateLoadBalancerUDPListenerRequest -type CreateLoadBalancerUDPListenerTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateLoadBalancerUDPListenerPortRange is a repeated param struct in CreateLoadBalancerUDPListenerRequest -type CreateLoadBalancerUDPListenerPortRange struct { - StartPort string `name:"StartPort"` - EndPort string `name:"EndPort"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateCreateLoadBalancerUDPListenerResponse creates a response to parse from CreateLoadBalancerUDPListener response -func CreateCreateLoadBalancerUDPListenerResponse() (response *CreateLoadBalancerUDPListenerResponse) { - response = &CreateLoadBalancerUDPListenerResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_master_slave_server_group.go b/services/slb/create_master_slave_server_group.go deleted file mode 100644 index 473bfa24b6..0000000000 --- a/services/slb/create_master_slave_server_group.go +++ /dev/null @@ -1,116 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` - Tag *[]CreateMasterSlaveServerGroupTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - MasterSlaveServerGroupName string `position:"Query" name:"MasterSlaveServerGroupName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// CreateMasterSlaveServerGroupTag is a repeated param struct in CreateMasterSlaveServerGroupRequest -type CreateMasterSlaveServerGroupTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateMasterSlaveServerGroupResponse is the response struct for api CreateMasterSlaveServerGroup -type CreateMasterSlaveServerGroupResponse struct { - *responses.BaseResponse - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateCreateMasterSlaveServerGroupResponse creates a response to parse from CreateMasterSlaveServerGroup response -func CreateCreateMasterSlaveServerGroupResponse() (response *CreateMasterSlaveServerGroupResponse) { - response = &CreateMasterSlaveServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_rules.go b/services/slb/create_rules.go deleted file mode 100644 index c29795af82..0000000000 --- a/services/slb/create_rules.go +++ /dev/null @@ -1,109 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RuleList string `position:"Query" name:"RuleList"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateCreateRulesResponse creates a response to parse from CreateRules response -func CreateCreateRulesResponse() (response *CreateRulesResponse) { - response = &CreateRulesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_tls_cipher_policy.go b/services/slb/create_tls_cipher_policy.go deleted file mode 100644 index a8f4d446ad..0000000000 --- a/services/slb/create_tls_cipher_policy.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// CreateTLSCipherPolicy invokes the slb.CreateTLSCipherPolicy API synchronously -func (client *Client) CreateTLSCipherPolicy(request *CreateTLSCipherPolicyRequest) (response *CreateTLSCipherPolicyResponse, err error) { - response = CreateCreateTLSCipherPolicyResponse() - err = client.DoAction(request, response) - return -} - -// CreateTLSCipherPolicyWithChan invokes the slb.CreateTLSCipherPolicy API asynchronously -func (client *Client) CreateTLSCipherPolicyWithChan(request *CreateTLSCipherPolicyRequest) (<-chan *CreateTLSCipherPolicyResponse, <-chan error) { - responseChan := make(chan *CreateTLSCipherPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateTLSCipherPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateTLSCipherPolicyWithCallback invokes the slb.CreateTLSCipherPolicy API asynchronously -func (client *Client) CreateTLSCipherPolicyWithCallback(request *CreateTLSCipherPolicyRequest, callback func(response *CreateTLSCipherPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateTLSCipherPolicyResponse - var err error - defer close(result) - response, err = client.CreateTLSCipherPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateTLSCipherPolicyRequest is the request struct for api CreateTLSCipherPolicy -type CreateTLSCipherPolicyRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ciphers *[]string `position:"Query" name:"Ciphers" type:"Repeated"` - TLSVersions *[]string `position:"Query" name:"TLSVersions" type:"Repeated"` - 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"` -} - -// CreateTLSCipherPolicyResponse is the response struct for api CreateTLSCipherPolicy -type CreateTLSCipherPolicyResponse struct { - *responses.BaseResponse - TLSCipherPolicyId string `json:"TLSCipherPolicyId" xml:"TLSCipherPolicyId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateTLSCipherPolicyRequest creates a request to invoke CreateTLSCipherPolicy API -func CreateCreateTLSCipherPolicyRequest() (request *CreateTLSCipherPolicyRequest) { - request = &CreateTLSCipherPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateTLSCipherPolicy", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateTLSCipherPolicyResponse creates a response to parse from CreateTLSCipherPolicy response -func CreateCreateTLSCipherPolicyResponse() (response *CreateTLSCipherPolicyResponse) { - response = &CreateTLSCipherPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/create_v_server_group.go b/services/slb/create_v_server_group.go deleted file mode 100644 index 2ece310bb2..0000000000 --- a/services/slb/create_v_server_group.go +++ /dev/null @@ -1,116 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - Tag *[]CreateVServerGroupTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - VServerGroupName string `position:"Query" name:"VServerGroupName"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// CreateVServerGroupTag is a repeated param struct in CreateVServerGroupRequest -type CreateVServerGroupTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateVServerGroupResponse is the response struct for api CreateVServerGroup -type CreateVServerGroupResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateCreateVServerGroupResponse creates a response to parse from CreateVServerGroup response -func CreateCreateVServerGroupResponse() (response *CreateVServerGroupResponse) { - response = &CreateVServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_access_control_list.go b/services/slb/delete_access_control_list.go deleted file mode 100644 index ac24309fca..0000000000 --- a/services/slb/delete_access_control_list.go +++ /dev/null @@ -1,105 +0,0 @@ -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" -) - -// DeleteAccessControlList invokes the slb.DeleteAccessControlList API synchronously -func (client *Client) DeleteAccessControlList(request *DeleteAccessControlListRequest) (response *DeleteAccessControlListResponse, err error) { - response = CreateDeleteAccessControlListResponse() - err = client.DoAction(request, response) - return -} - -// DeleteAccessControlListWithChan invokes the slb.DeleteAccessControlList API asynchronously -func (client *Client) DeleteAccessControlListWithChan(request *DeleteAccessControlListRequest) (<-chan *DeleteAccessControlListResponse, <-chan error) { - responseChan := make(chan *DeleteAccessControlListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteAccessControlList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteAccessControlListWithCallback invokes the slb.DeleteAccessControlList API asynchronously -func (client *Client) DeleteAccessControlListWithCallback(request *DeleteAccessControlListRequest, callback func(response *DeleteAccessControlListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteAccessControlListResponse - var err error - defer close(result) - response, err = client.DeleteAccessControlList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteAccessControlListRequest is the request struct for api DeleteAccessControlList -type DeleteAccessControlListRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclId string `position:"Query" name:"AclId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DeleteAccessControlListResponse is the response struct for api DeleteAccessControlList -type DeleteAccessControlListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteAccessControlListRequest creates a request to invoke DeleteAccessControlList API -func CreateDeleteAccessControlListRequest() (request *DeleteAccessControlListRequest) { - request = &DeleteAccessControlListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteAccessControlList", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteAccessControlListResponse creates a response to parse from DeleteAccessControlList response -func CreateDeleteAccessControlListResponse() (response *DeleteAccessControlListResponse) { - response = &DeleteAccessControlListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_access_logs_download_attribute.go b/services/slb/delete_access_logs_download_attribute.go deleted file mode 100644 index fdf5924c15..0000000000 --- a/services/slb/delete_access_logs_download_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// DeleteAccessLogsDownloadAttribute invokes the slb.DeleteAccessLogsDownloadAttribute API synchronously -func (client *Client) DeleteAccessLogsDownloadAttribute(request *DeleteAccessLogsDownloadAttributeRequest) (response *DeleteAccessLogsDownloadAttributeResponse, err error) { - response = CreateDeleteAccessLogsDownloadAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DeleteAccessLogsDownloadAttributeWithChan invokes the slb.DeleteAccessLogsDownloadAttribute API asynchronously -func (client *Client) DeleteAccessLogsDownloadAttributeWithChan(request *DeleteAccessLogsDownloadAttributeRequest) (<-chan *DeleteAccessLogsDownloadAttributeResponse, <-chan error) { - responseChan := make(chan *DeleteAccessLogsDownloadAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteAccessLogsDownloadAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteAccessLogsDownloadAttributeWithCallback invokes the slb.DeleteAccessLogsDownloadAttribute API asynchronously -func (client *Client) DeleteAccessLogsDownloadAttributeWithCallback(request *DeleteAccessLogsDownloadAttributeRequest, callback func(response *DeleteAccessLogsDownloadAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteAccessLogsDownloadAttributeResponse - var err error - defer close(result) - response, err = client.DeleteAccessLogsDownloadAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteAccessLogsDownloadAttributeRequest is the request struct for api DeleteAccessLogsDownloadAttribute -type DeleteAccessLogsDownloadAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LogsDownloadAttributes string `position:"Query" name:"LogsDownloadAttributes"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DeleteAccessLogsDownloadAttributeResponse is the response struct for api DeleteAccessLogsDownloadAttribute -type DeleteAccessLogsDownloadAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteAccessLogsDownloadAttributeRequest creates a request to invoke DeleteAccessLogsDownloadAttribute API -func CreateDeleteAccessLogsDownloadAttributeRequest() (request *DeleteAccessLogsDownloadAttributeRequest) { - request = &DeleteAccessLogsDownloadAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteAccessLogsDownloadAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteAccessLogsDownloadAttributeResponse creates a response to parse from DeleteAccessLogsDownloadAttribute response -func CreateDeleteAccessLogsDownloadAttributeResponse() (response *DeleteAccessLogsDownloadAttributeResponse) { - response = &DeleteAccessLogsDownloadAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_ca_certificate.go b/services/slb/delete_ca_certificate.go deleted file mode 100644 index 062688647e..0000000000 --- a/services/slb/delete_ca_certificate.go +++ /dev/null @@ -1,104 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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") - request.Method = requests.POST - return -} - -// CreateDeleteCACertificateResponse creates a response to parse from DeleteCACertificate response -func CreateDeleteCACertificateResponse() (response *DeleteCACertificateResponse) { - response = &DeleteCACertificateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_domain_extension.go b/services/slb/delete_domain_extension.go deleted file mode 100644 index 2b3e459cb0..0000000000 --- a/services/slb/delete_domain_extension.go +++ /dev/null @@ -1,105 +0,0 @@ -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" -) - -// DeleteDomainExtension invokes the slb.DeleteDomainExtension API synchronously -func (client *Client) DeleteDomainExtension(request *DeleteDomainExtensionRequest) (response *DeleteDomainExtensionResponse, err error) { - response = CreateDeleteDomainExtensionResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDomainExtensionWithChan invokes the slb.DeleteDomainExtension API asynchronously -func (client *Client) DeleteDomainExtensionWithChan(request *DeleteDomainExtensionRequest) (<-chan *DeleteDomainExtensionResponse, <-chan error) { - responseChan := make(chan *DeleteDomainExtensionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDomainExtension(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDomainExtensionWithCallback invokes the slb.DeleteDomainExtension API asynchronously -func (client *Client) DeleteDomainExtensionWithCallback(request *DeleteDomainExtensionRequest, callback func(response *DeleteDomainExtensionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDomainExtensionResponse - var err error - defer close(result) - response, err = client.DeleteDomainExtension(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDomainExtensionRequest is the request struct for api DeleteDomainExtension -type DeleteDomainExtensionRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DeleteDomainExtensionResponse is the response struct for api DeleteDomainExtension -type DeleteDomainExtensionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDomainExtensionRequest creates a request to invoke DeleteDomainExtension API -func CreateDeleteDomainExtensionRequest() (request *DeleteDomainExtensionRequest) { - request = &DeleteDomainExtensionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteDomainExtension", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDomainExtensionResponse creates a response to parse from DeleteDomainExtension response -func CreateDeleteDomainExtensionResponse() (response *DeleteDomainExtensionResponse) { - response = &DeleteDomainExtensionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_load_balancer.go b/services/slb/delete_load_balancer.go index 045a01b822..2100994b9e 100644 --- a/services/slb/delete_load_balancer.go +++ b/services/slb/delete_load_balancer.go @@ -73,7 +73,6 @@ type DeleteLoadBalancerRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - EnableEipReserve string `position:"Query" name:"EnableEipReserve"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -92,7 +91,7 @@ func CreateDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) { request = &DeleteLoadBalancerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancer", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DeleteLoadBalancer", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/delete_load_balancer_listener.go b/services/slb/delete_load_balancer_listener.go index 13e30bf1bd..70059a3049 100644 --- a/services/slb/delete_load_balancer_listener.go +++ b/services/slb/delete_load_balancer_listener.go @@ -77,7 +77,6 @@ type DeleteLoadBalancerListenerRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } @@ -93,7 +92,7 @@ func CreateDeleteLoadBalancerListenerRequest() (request *DeleteLoadBalancerListe request = &DeleteLoadBalancerListenerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancerListener", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DeleteLoadBalancerListener", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/delete_master_slave_server_group.go b/services/slb/delete_master_slave_server_group.go deleted file mode 100644 index bd27ff1b75..0000000000 --- a/services/slb/delete_master_slave_server_group.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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") - request.Method = requests.POST - return -} - -// CreateDeleteMasterSlaveServerGroupResponse creates a response to parse from DeleteMasterSlaveServerGroup response -func CreateDeleteMasterSlaveServerGroupResponse() (response *DeleteMasterSlaveServerGroupResponse) { - response = &DeleteMasterSlaveServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_rules.go b/services/slb/delete_rules.go deleted file mode 100644 index b086912c10..0000000000 --- a/services/slb/delete_rules.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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") - request.Method = requests.POST - return -} - -// CreateDeleteRulesResponse creates a response to parse from DeleteRules response -func CreateDeleteRulesResponse() (response *DeleteRulesResponse) { - response = &DeleteRulesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_server_certificate.go b/services/slb/delete_server_certificate.go deleted file mode 100644 index 51b78aca98..0000000000 --- a/services/slb/delete_server_certificate.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - 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") - request.Method = requests.POST - return -} - -// CreateDeleteServerCertificateResponse creates a response to parse from DeleteServerCertificate response -func CreateDeleteServerCertificateResponse() (response *DeleteServerCertificateResponse) { - response = &DeleteServerCertificateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_tls_cipher_policy.go b/services/slb/delete_tls_cipher_policy.go deleted file mode 100644 index 3fe3fa99cb..0000000000 --- a/services/slb/delete_tls_cipher_policy.go +++ /dev/null @@ -1,104 +0,0 @@ -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" -) - -// DeleteTLSCipherPolicy invokes the slb.DeleteTLSCipherPolicy API synchronously -func (client *Client) DeleteTLSCipherPolicy(request *DeleteTLSCipherPolicyRequest) (response *DeleteTLSCipherPolicyResponse, err error) { - response = CreateDeleteTLSCipherPolicyResponse() - err = client.DoAction(request, response) - return -} - -// DeleteTLSCipherPolicyWithChan invokes the slb.DeleteTLSCipherPolicy API asynchronously -func (client *Client) DeleteTLSCipherPolicyWithChan(request *DeleteTLSCipherPolicyRequest) (<-chan *DeleteTLSCipherPolicyResponse, <-chan error) { - responseChan := make(chan *DeleteTLSCipherPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteTLSCipherPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteTLSCipherPolicyWithCallback invokes the slb.DeleteTLSCipherPolicy API asynchronously -func (client *Client) DeleteTLSCipherPolicyWithCallback(request *DeleteTLSCipherPolicyRequest, callback func(response *DeleteTLSCipherPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteTLSCipherPolicyResponse - var err error - defer close(result) - response, err = client.DeleteTLSCipherPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteTLSCipherPolicyRequest is the request struct for api DeleteTLSCipherPolicy -type DeleteTLSCipherPolicyRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteTLSCipherPolicyResponse is the response struct for api DeleteTLSCipherPolicy -type DeleteTLSCipherPolicyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteTLSCipherPolicyRequest creates a request to invoke DeleteTLSCipherPolicy API -func CreateDeleteTLSCipherPolicyRequest() (request *DeleteTLSCipherPolicyRequest) { - request = &DeleteTLSCipherPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteTLSCipherPolicy", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteTLSCipherPolicyResponse creates a response to parse from DeleteTLSCipherPolicy response -func CreateDeleteTLSCipherPolicyResponse() (response *DeleteTLSCipherPolicyResponse) { - response = &DeleteTLSCipherPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/delete_v_server_group.go b/services/slb/delete_v_server_group.go deleted file mode 100644 index dd350a4a70..0000000000 --- a/services/slb/delete_v_server_group.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDeleteVServerGroupResponse creates a response to parse from DeleteVServerGroup response -func CreateDeleteVServerGroupResponse() (response *DeleteVServerGroupResponse) { - response = &DeleteVServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_access_control_list_attribute.go b/services/slb/describe_access_control_list_attribute.go deleted file mode 100644 index 7052b7a7dd..0000000000 --- a/services/slb/describe_access_control_list_attribute.go +++ /dev/null @@ -1,118 +0,0 @@ -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" -) - -// DescribeAccessControlListAttribute invokes the slb.DescribeAccessControlListAttribute API synchronously -func (client *Client) DescribeAccessControlListAttribute(request *DescribeAccessControlListAttributeRequest) (response *DescribeAccessControlListAttributeResponse, err error) { - response = CreateDescribeAccessControlListAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAccessControlListAttributeWithChan invokes the slb.DescribeAccessControlListAttribute API asynchronously -func (client *Client) DescribeAccessControlListAttributeWithChan(request *DescribeAccessControlListAttributeRequest) (<-chan *DescribeAccessControlListAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeAccessControlListAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAccessControlListAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAccessControlListAttributeWithCallback invokes the slb.DescribeAccessControlListAttribute API asynchronously -func (client *Client) DescribeAccessControlListAttributeWithCallback(request *DescribeAccessControlListAttributeRequest, callback func(response *DescribeAccessControlListAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAccessControlListAttributeResponse - var err error - defer close(result) - response, err = client.DescribeAccessControlListAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAccessControlListAttributeRequest is the request struct for api DescribeAccessControlListAttribute -type DescribeAccessControlListAttributeRequest 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"` - AclId string `position:"Query" name:"AclId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AclEntryComment string `position:"Query" name:"AclEntryComment"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - Page requests.Integer `position:"Query" name:"Page"` -} - -// DescribeAccessControlListAttributeResponse is the response struct for api DescribeAccessControlListAttribute -type DescribeAccessControlListAttributeResponse struct { - *responses.BaseResponse - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - AclId string `json:"AclId" xml:"AclId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - RequestId string `json:"RequestId" xml:"RequestId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - AclName string `json:"AclName" xml:"AclName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - TotalAclEntry int `json:"TotalAclEntry" xml:"TotalAclEntry"` - Tags TagsInDescribeAccessControlListAttribute `json:"Tags" xml:"Tags"` - AclEntrys AclEntrys `json:"AclEntrys" xml:"AclEntrys"` - RelatedListeners RelatedListeners `json:"RelatedListeners" xml:"RelatedListeners"` -} - -// CreateDescribeAccessControlListAttributeRequest creates a request to invoke DescribeAccessControlListAttribute API -func CreateDescribeAccessControlListAttributeRequest() (request *DescribeAccessControlListAttributeRequest) { - request = &DescribeAccessControlListAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessControlListAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAccessControlListAttributeResponse creates a response to parse from DescribeAccessControlListAttribute response -func CreateDescribeAccessControlListAttributeResponse() (response *DescribeAccessControlListAttributeResponse) { - response = &DescribeAccessControlListAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_access_control_lists.go b/services/slb/describe_access_control_lists.go deleted file mode 100644 index 1a2891372f..0000000000 --- a/services/slb/describe_access_control_lists.go +++ /dev/null @@ -1,121 +0,0 @@ -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" -) - -// DescribeAccessControlLists invokes the slb.DescribeAccessControlLists API synchronously -func (client *Client) DescribeAccessControlLists(request *DescribeAccessControlListsRequest) (response *DescribeAccessControlListsResponse, err error) { - response = CreateDescribeAccessControlListsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAccessControlListsWithChan invokes the slb.DescribeAccessControlLists API asynchronously -func (client *Client) DescribeAccessControlListsWithChan(request *DescribeAccessControlListsRequest) (<-chan *DescribeAccessControlListsResponse, <-chan error) { - responseChan := make(chan *DescribeAccessControlListsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAccessControlLists(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAccessControlListsWithCallback invokes the slb.DescribeAccessControlLists API asynchronously -func (client *Client) DescribeAccessControlListsWithCallback(request *DescribeAccessControlListsRequest, callback func(response *DescribeAccessControlListsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAccessControlListsResponse - var err error - defer close(result) - response, err = client.DescribeAccessControlLists(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAccessControlListsRequest is the request struct for api DescribeAccessControlLists -type DescribeAccessControlListsRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclName string `position:"Query" name:"AclName"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeAccessControlListsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeAccessControlListsTag is a repeated param struct in DescribeAccessControlListsRequest -type DescribeAccessControlListsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeAccessControlListsResponse is the response struct for api DescribeAccessControlLists -type DescribeAccessControlListsResponse struct { - *responses.BaseResponse - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Count int `json:"Count" xml:"Count"` - Acls Acls `json:"Acls" xml:"Acls"` -} - -// CreateDescribeAccessControlListsRequest creates a request to invoke DescribeAccessControlLists API -func CreateDescribeAccessControlListsRequest() (request *DescribeAccessControlListsRequest) { - request = &DescribeAccessControlListsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessControlLists", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAccessControlListsResponse creates a response to parse from DescribeAccessControlLists response -func CreateDescribeAccessControlListsResponse() (response *DescribeAccessControlListsResponse) { - response = &DescribeAccessControlListsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_access_logs_download_attribute.go b/services/slb/describe_access_logs_download_attribute.go deleted file mode 100644 index b0f8ab7ad2..0000000000 --- a/services/slb/describe_access_logs_download_attribute.go +++ /dev/null @@ -1,113 +0,0 @@ -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" -) - -// DescribeAccessLogsDownloadAttribute invokes the slb.DescribeAccessLogsDownloadAttribute API synchronously -func (client *Client) DescribeAccessLogsDownloadAttribute(request *DescribeAccessLogsDownloadAttributeRequest) (response *DescribeAccessLogsDownloadAttributeResponse, err error) { - response = CreateDescribeAccessLogsDownloadAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAccessLogsDownloadAttributeWithChan invokes the slb.DescribeAccessLogsDownloadAttribute API asynchronously -func (client *Client) DescribeAccessLogsDownloadAttributeWithChan(request *DescribeAccessLogsDownloadAttributeRequest) (<-chan *DescribeAccessLogsDownloadAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeAccessLogsDownloadAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAccessLogsDownloadAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAccessLogsDownloadAttributeWithCallback invokes the slb.DescribeAccessLogsDownloadAttribute API asynchronously -func (client *Client) DescribeAccessLogsDownloadAttributeWithCallback(request *DescribeAccessLogsDownloadAttributeRequest, callback func(response *DescribeAccessLogsDownloadAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAccessLogsDownloadAttributeResponse - var err error - defer close(result) - response, err = client.DescribeAccessLogsDownloadAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAccessLogsDownloadAttributeRequest is the request struct for api DescribeAccessLogsDownloadAttribute -type DescribeAccessLogsDownloadAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - LogType string `position:"Query" name:"LogType"` - 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"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeAccessLogsDownloadAttributeResponse is the response struct for api DescribeAccessLogsDownloadAttribute -type DescribeAccessLogsDownloadAttributeResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Count int `json:"Count" xml:"Count"` - LogsDownloadAttributes LogsDownloadAttributes `json:"LogsDownloadAttributes" xml:"LogsDownloadAttributes"` -} - -// CreateDescribeAccessLogsDownloadAttributeRequest creates a request to invoke DescribeAccessLogsDownloadAttribute API -func CreateDescribeAccessLogsDownloadAttributeRequest() (request *DescribeAccessLogsDownloadAttributeRequest) { - request = &DescribeAccessLogsDownloadAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessLogsDownloadAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAccessLogsDownloadAttributeResponse creates a response to parse from DescribeAccessLogsDownloadAttribute response -func CreateDescribeAccessLogsDownloadAttributeResponse() (response *DescribeAccessLogsDownloadAttributeResponse) { - response = &DescribeAccessLogsDownloadAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_available_resource.go b/services/slb/describe_available_resource.go deleted file mode 100644 index 52e20abcb8..0000000000 --- a/services/slb/describe_available_resource.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// DescribeAvailableResource invokes the slb.DescribeAvailableResource API synchronously -func (client *Client) DescribeAvailableResource(request *DescribeAvailableResourceRequest) (response *DescribeAvailableResourceResponse, err error) { - response = CreateDescribeAvailableResourceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAvailableResourceWithChan invokes the slb.DescribeAvailableResource API asynchronously -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 slb.DescribeAvailableResource API asynchronously -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - AddressType string `position:"Query" name:"AddressType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeAvailableResourceResponse is the response struct for api DescribeAvailableResource -type DescribeAvailableResourceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableResources AvailableResources `json:"AvailableResources" xml:"AvailableResources"` -} - -// CreateDescribeAvailableResourceRequest creates a request to invoke DescribeAvailableResource API -func CreateDescribeAvailableResourceRequest() (request *DescribeAvailableResourceRequest) { - request = &DescribeAvailableResourceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAvailableResource", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAvailableResourceResponse creates a response to parse from DescribeAvailableResource response -func CreateDescribeAvailableResourceResponse() (response *DescribeAvailableResourceResponse) { - response = &DescribeAvailableResourceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_rules.go b/services/slb/describe_backend_servers.go similarity index 53% rename from services/slb/describe_rules.go rename to services/slb/describe_backend_servers.go index 4e6cc0a807..077070effa 100644 --- a/services/slb/describe_rules.go +++ b/services/slb/describe_backend_servers.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// DescribeRules invokes the slb.DescribeRules API synchronously -func (client *Client) DescribeRules(request *DescribeRulesRequest) (response *DescribeRulesResponse, err error) { - response = CreateDescribeRulesResponse() +// DescribeBackendServers invokes the slb.DescribeBackendServers API synchronously +func (client *Client) DescribeBackendServers(request *DescribeBackendServersRequest) (response *DescribeBackendServersResponse, err error) { + response = CreateDescribeBackendServersResponse() err = client.DoAction(request, response) return } -// DescribeRulesWithChan invokes the slb.DescribeRules API asynchronously -func (client *Client) DescribeRulesWithChan(request *DescribeRulesRequest) (<-chan *DescribeRulesResponse, <-chan error) { - responseChan := make(chan *DescribeRulesResponse, 1) +// DescribeBackendServersWithChan invokes the slb.DescribeBackendServers API asynchronously +func (client *Client) DescribeBackendServersWithChan(request *DescribeBackendServersRequest) (<-chan *DescribeBackendServersResponse, <-chan error) { + responseChan := make(chan *DescribeBackendServersResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.DescribeRules(request) + response, err := client.DescribeBackendServers(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) DescribeRulesWithChan(request *DescribeRulesRequest) (<-ch return responseChan, errChan } -// DescribeRulesWithCallback invokes the slb.DescribeRules API asynchronously -func (client *Client) DescribeRulesWithCallback(request *DescribeRulesRequest, callback func(response *DescribeRulesResponse, err error)) <-chan int { +// DescribeBackendServersWithCallback invokes the slb.DescribeBackendServers API asynchronously +func (client *Client) DescribeBackendServersWithCallback(request *DescribeBackendServersRequest, callback func(response *DescribeBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *DescribeRulesResponse + var response *DescribeBackendServersResponse var err error defer close(result) - response, err = client.DescribeRules(request) + response, err = client.DescribeBackendServers(request) callback(response, err) result <- 1 }) @@ -68,8 +68,8 @@ func (client *Client) DescribeRulesWithCallback(request *DescribeRulesRequest, c return result } -// DescribeRulesRequest is the request struct for api DescribeRules -type DescribeRulesRequest struct { +// DescribeBackendServersRequest is the request struct for api DescribeBackendServers +type DescribeBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` @@ -77,31 +77,30 @@ type DescribeRulesRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } -// DescribeRulesResponse is the response struct for api DescribeRules -type DescribeRulesResponse struct { +// DescribeBackendServersResponse is the response struct for api DescribeBackendServers +type DescribeBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Rules RulesInDescribeRules `json:"Rules" xml:"Rules"` + RequestId string `json:"RequestId" xml:"RequestId"` + Listeners Listeners `json:"Listeners" xml:"Listeners"` } -// CreateDescribeRulesRequest creates a request to invoke DescribeRules API -func CreateDescribeRulesRequest() (request *DescribeRulesRequest) { - request = &DescribeRulesRequest{ +// CreateDescribeBackendServersRequest creates a request to invoke DescribeBackendServers API +func CreateDescribeBackendServersRequest() (request *DescribeBackendServersRequest) { + request = &DescribeBackendServersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRules", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeBackendServers", "slb", "openAPI") request.Method = requests.POST return } -// CreateDescribeRulesResponse creates a response to parse from DescribeRules response -func CreateDescribeRulesResponse() (response *DescribeRulesResponse) { - response = &DescribeRulesResponse{ +// CreateDescribeBackendServersResponse creates a response to parse from DescribeBackendServers response +func CreateDescribeBackendServersResponse() (response *DescribeBackendServersResponse) { + response = &DescribeBackendServersResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/slb/describe_ca_certificates.go b/services/slb/describe_ca_certificates.go deleted file mode 100644 index 61bcd55475..0000000000 --- a/services/slb/describe_ca_certificates.go +++ /dev/null @@ -1,113 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]DescribeCACertificatesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CACertificateId string `position:"Query" name:"CACertificateId"` -} - -// DescribeCACertificatesTag is a repeated param struct in DescribeCACertificatesRequest -type DescribeCACertificatesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeCACertificatesResponse creates a response to parse from DescribeCACertificates response -func CreateDescribeCACertificatesResponse() (response *DescribeCACertificatesResponse) { - response = &DescribeCACertificatesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_domain_extension_attribute.go b/services/slb/describe_domain_extension_attribute.go deleted file mode 100644 index 9439e6f81d..0000000000 --- a/services/slb/describe_domain_extension_attribute.go +++ /dev/null @@ -1,112 +0,0 @@ -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" -) - -// DescribeDomainExtensionAttribute invokes the slb.DescribeDomainExtensionAttribute API synchronously -func (client *Client) DescribeDomainExtensionAttribute(request *DescribeDomainExtensionAttributeRequest) (response *DescribeDomainExtensionAttributeResponse, err error) { - response = CreateDescribeDomainExtensionAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainExtensionAttributeWithChan invokes the slb.DescribeDomainExtensionAttribute API asynchronously -func (client *Client) DescribeDomainExtensionAttributeWithChan(request *DescribeDomainExtensionAttributeRequest) (<-chan *DescribeDomainExtensionAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeDomainExtensionAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainExtensionAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainExtensionAttributeWithCallback invokes the slb.DescribeDomainExtensionAttribute API asynchronously -func (client *Client) DescribeDomainExtensionAttributeWithCallback(request *DescribeDomainExtensionAttributeRequest, callback func(response *DescribeDomainExtensionAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainExtensionAttributeResponse - var err error - defer close(result) - response, err = client.DescribeDomainExtensionAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainExtensionAttributeRequest is the request struct for api DescribeDomainExtensionAttribute -type DescribeDomainExtensionAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeDomainExtensionAttributeResponse is the response struct for api DescribeDomainExtensionAttribute -type DescribeDomainExtensionAttributeResponse struct { - *responses.BaseResponse - Domain string `json:"Domain" xml:"Domain"` - RequestId string `json:"RequestId" xml:"RequestId"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` - Certificates CertificatesInDescribeDomainExtensionAttribute `json:"Certificates" xml:"Certificates"` - ServerCertificates ServerCertificatesInDescribeDomainExtensionAttribute `json:"ServerCertificates" xml:"ServerCertificates"` -} - -// CreateDescribeDomainExtensionAttributeRequest creates a request to invoke DescribeDomainExtensionAttribute API -func CreateDescribeDomainExtensionAttributeRequest() (request *DescribeDomainExtensionAttributeRequest) { - request = &DescribeDomainExtensionAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeDomainExtensionAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainExtensionAttributeResponse creates a response to parse from DescribeDomainExtensionAttribute response -func CreateDescribeDomainExtensionAttributeResponse() (response *DescribeDomainExtensionAttributeResponse) { - response = &DescribeDomainExtensionAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_domain_extensions.go b/services/slb/describe_domain_extensions.go deleted file mode 100644 index 27eaeacc50..0000000000 --- a/services/slb/describe_domain_extensions.go +++ /dev/null @@ -1,108 +0,0 @@ -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" -) - -// DescribeDomainExtensions invokes the slb.DescribeDomainExtensions API synchronously -func (client *Client) DescribeDomainExtensions(request *DescribeDomainExtensionsRequest) (response *DescribeDomainExtensionsResponse, err error) { - response = CreateDescribeDomainExtensionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainExtensionsWithChan invokes the slb.DescribeDomainExtensions API asynchronously -func (client *Client) DescribeDomainExtensionsWithChan(request *DescribeDomainExtensionsRequest) (<-chan *DescribeDomainExtensionsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainExtensionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainExtensions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainExtensionsWithCallback invokes the slb.DescribeDomainExtensions API asynchronously -func (client *Client) DescribeDomainExtensionsWithCallback(request *DescribeDomainExtensionsRequest, callback func(response *DescribeDomainExtensionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainExtensionsResponse - var err error - defer close(result) - response, err = client.DescribeDomainExtensions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainExtensionsRequest is the request struct for api DescribeDomainExtensions -type DescribeDomainExtensionsRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeDomainExtensionsResponse is the response struct for api DescribeDomainExtensions -type DescribeDomainExtensionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainExtensions DomainExtensionsInDescribeDomainExtensions `json:"DomainExtensions" xml:"DomainExtensions"` -} - -// CreateDescribeDomainExtensionsRequest creates a request to invoke DescribeDomainExtensions API -func CreateDescribeDomainExtensionsRequest() (request *DescribeDomainExtensionsRequest) { - request = &DescribeDomainExtensionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeDomainExtensions", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainExtensionsResponse creates a response to parse from DescribeDomainExtensions response -func CreateDescribeDomainExtensionsResponse() (response *DescribeDomainExtensionsResponse) { - response = &DescribeDomainExtensionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_health_status.go b/services/slb/describe_health_status.go deleted file mode 100644 index 6b87e6880c..0000000000 --- a/services/slb/describe_health_status.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeHealthStatusResponse creates a response to parse from DescribeHealthStatus response -func CreateDescribeHealthStatusResponse() (response *DescribeHealthStatusResponse) { - response = &DescribeHealthStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_high_defination_monitor.go b/services/slb/describe_high_defination_monitor.go deleted file mode 100644 index f79e9f3945..0000000000 --- a/services/slb/describe_high_defination_monitor.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// DescribeHighDefinationMonitor invokes the slb.DescribeHighDefinationMonitor API synchronously -func (client *Client) DescribeHighDefinationMonitor(request *DescribeHighDefinationMonitorRequest) (response *DescribeHighDefinationMonitorResponse, err error) { - response = CreateDescribeHighDefinationMonitorResponse() - err = client.DoAction(request, response) - return -} - -// DescribeHighDefinationMonitorWithChan invokes the slb.DescribeHighDefinationMonitor API asynchronously -func (client *Client) DescribeHighDefinationMonitorWithChan(request *DescribeHighDefinationMonitorRequest) (<-chan *DescribeHighDefinationMonitorResponse, <-chan error) { - responseChan := make(chan *DescribeHighDefinationMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeHighDefinationMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeHighDefinationMonitorWithCallback invokes the slb.DescribeHighDefinationMonitor API asynchronously -func (client *Client) DescribeHighDefinationMonitorWithCallback(request *DescribeHighDefinationMonitorRequest, callback func(response *DescribeHighDefinationMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeHighDefinationMonitorResponse - var err error - defer close(result) - response, err = client.DescribeHighDefinationMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeHighDefinationMonitorRequest is the request struct for api DescribeHighDefinationMonitor -type DescribeHighDefinationMonitorRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeHighDefinationMonitorResponse is the response struct for api DescribeHighDefinationMonitor -type DescribeHighDefinationMonitorResponse struct { - *responses.BaseResponse - LogProject string `json:"LogProject" xml:"LogProject"` - RequestId string `json:"RequestId" xml:"RequestId"` - LogStore string `json:"LogStore" xml:"LogStore"` - Success string `json:"Success" xml:"Success"` -} - -// CreateDescribeHighDefinationMonitorRequest creates a request to invoke DescribeHighDefinationMonitor API -func CreateDescribeHighDefinationMonitorRequest() (request *DescribeHighDefinationMonitorRequest) { - request = &DescribeHighDefinationMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeHighDefinationMonitor", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeHighDefinationMonitorResponse creates a response to parse from DescribeHighDefinationMonitor response -func CreateDescribeHighDefinationMonitorResponse() (response *DescribeHighDefinationMonitorResponse) { - response = &DescribeHighDefinationMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_listener_access_control_attribute.go b/services/slb/describe_listener_access_control_attribute.go deleted file mode 100644 index 91a2cd7ef3..0000000000 --- a/services/slb/describe_listener_access_control_attribute.go +++ /dev/null @@ -1,109 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeListenerAccessControlAttributeResponse is the response struct for api DescribeListenerAccessControlAttribute -type DescribeListenerAccessControlAttributeResponse struct { - *responses.BaseResponse - SourceItems string `json:"SourceItems" xml:"SourceItems"` - AccessControlStatus string `json:"AccessControlStatus" xml:"AccessControlStatus"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeListenerAccessControlAttributeResponse creates a response to parse from DescribeListenerAccessControlAttribute response -func CreateDescribeListenerAccessControlAttributeResponse() (response *DescribeListenerAccessControlAttributeResponse) { - response = &DescribeListenerAccessControlAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_load_balancer_attribute.go b/services/slb/describe_load_balancer_attribute.go index 696f5bc248..2dfe476ae8 100644 --- a/services/slb/describe_load_balancer_attribute.go +++ b/services/slb/describe_load_balancer_attribute.go @@ -73,7 +73,6 @@ type DescribeLoadBalancerAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - IncludeReservedData requests.Boolean `position:"Query" name:"IncludeReservedData"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -84,60 +83,33 @@ type DescribeLoadBalancerAttributeRequest struct { // DescribeLoadBalancerAttributeResponse is the response struct for api DescribeLoadBalancerAttribute type DescribeLoadBalancerAttributeResponse struct { *responses.BaseResponse - VpcId string `json:"VpcId" xml:"VpcId"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - ReservedInfoBandwidth string `json:"ReservedInfoBandwidth" xml:"ReservedInfoBandwidth"` - CloudInstanceId string `json:"CloudInstanceId" xml:"CloudInstanceId"` - HasReservedInfo string `json:"HasReservedInfo" xml:"HasReservedInfo"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - TunnelType string `json:"TunnelType" xml:"TunnelType"` - PayType string `json:"PayType" xml:"PayType"` - ReservedInfoOrderType string `json:"ReservedInfoOrderType" xml:"ReservedInfoOrderType"` - AddressType string `json:"AddressType" xml:"AddressType"` - SupportPrivateLink bool `json:"SupportPrivateLink" xml:"SupportPrivateLink"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - SpecBpsFlag bool `json:"SpecBpsFlag" xml:"SpecBpsFlag"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - RenewalCycUnit string `json:"RenewalCycUnit" xml:"RenewalCycUnit"` - RequestId string `json:"RequestId" xml:"RequestId"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` - Address string `json:"Address" xml:"Address"` - AssociatedCenStatus string `json:"AssociatedCenStatus" xml:"AssociatedCenStatus"` - SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` - CloudInstanceType string `json:"CloudInstanceType" xml:"CloudInstanceType"` - EndTimeStamp int64 `json:"EndTimeStamp" xml:"EndTimeStamp"` - ReservedInfoActiveTime string `json:"ReservedInfoActiveTime" xml:"ReservedInfoActiveTime"` - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` - ReservedInfoInternetChargeType string `json:"ReservedInfoInternetChargeType" xml:"ReservedInfoInternetChargeType"` - LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` - SpecType string `json:"SpecType" xml:"SpecType"` - CloudType string `json:"CloudType" xml:"CloudType"` - AutoReleaseTime int64 `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - ModificationProtectionReason string `json:"ModificationProtectionReason" xml:"ModificationProtectionReason"` - RegionId string `json:"RegionId" xml:"RegionId"` - ModificationProtectionStatus string `json:"ModificationProtectionStatus" xml:"ModificationProtectionStatus"` - EndTime string `json:"EndTime" xml:"EndTime"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - AssociatedCenId string `json:"AssociatedCenId" xml:"AssociatedCenId"` - DeleteProtection string `json:"DeleteProtection" xml:"DeleteProtection"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` - RenewalDuration int `json:"RenewalDuration" xml:"RenewalDuration"` - CloudInstanceUid int64 `json:"CloudInstanceUid" xml:"CloudInstanceUid"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - Labels Labels `json:"Labels" xml:"Labels"` - ListenerPorts ListenerPorts `json:"ListenerPorts" xml:"ListenerPorts"` - Tags TagsInDescribeLoadBalancerAttribute `json:"Tags" xml:"Tags"` - ListenerPortsAndProtocal ListenerPortsAndProtocal `json:"ListenerPortsAndProtocal" xml:"ListenerPortsAndProtocal"` - ListenerPortsAndProtocol ListenerPortsAndProtocol `json:"ListenerPortsAndProtocol" xml:"ListenerPortsAndProtocol"` - BackendServers BackendServersInDescribeLoadBalancerAttribute `json:"BackendServers" xml:"BackendServers"` + VpcId string `json:"VpcId" xml:"VpcId"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` + AutoReleaseTime int64 `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + IsPublicAddress string `json:"IsPublicAddress" xml:"IsPublicAddress"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + PayType string `json:"PayType" xml:"PayType"` + AddressType string `json:"AddressType" xml:"AddressType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + RegionId string `json:"RegionId" xml:"RegionId"` + EndTime string `json:"EndTime" xml:"EndTime"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + Address string `json:"Address" xml:"Address"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + EndTimeStamp int64 `json:"EndTimeStamp" xml:"EndTimeStamp"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` + 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 @@ -145,7 +117,7 @@ func CreateDescribeLoadBalancerAttributeRequest() (request *DescribeLoadBalancer request = &DescribeLoadBalancerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerAttribute", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeLoadBalancerAttribute", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/describe_load_balancer_http_listener_attribute.go b/services/slb/describe_load_balancer_http_listener_attribute.go index 36f8d578d9..70abbf858b 100644 --- a/services/slb/describe_load_balancer_http_listener_attribute.go +++ b/services/slb/describe_load_balancer_http_listener_attribute.go @@ -84,53 +84,33 @@ type DescribeLoadBalancerHTTPListenerAttributeRequest struct { // DescribeLoadBalancerHTTPListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPListenerAttribute type DescribeLoadBalancerHTTPListenerAttributeResponse struct { *responses.BaseResponse - AclType string `json:"AclType" xml:"AclType"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` - Status string `json:"Status" xml:"Status"` - XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` - Cookie string `json:"Cookie" xml:"Cookie"` - Gzip string `json:"Gzip" xml:"Gzip"` - ForwardCode int `json:"ForwardCode" xml:"ForwardCode"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - AclId string `json:"AclId" xml:"AclId"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - AclIds AclIdsInDescribeLoadBalancerHTTPListenerAttribute `json:"AclIds" xml:"AclIds"` - Rules RulesInDescribeLoadBalancerHTTPListenerAttribute `json:"Rules" xml:"Rules"` - Tags TagsInDescribeLoadBalancerHTTPListenerAttribute `json:"Tags" xml:"Tags"` + Status string `json:"Status" xml:"Status"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Cookie string `json:"Cookie" xml:"Cookie"` + Gzip string `json:"Gzip" xml:"Gzip"` + RequestId string `json:"RequestId" xml:"RequestId"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + URI string `json:"URI" xml:"URI"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + Domain string `json:"Domain" xml:"Domain"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + Interval int `json:"Interval" xml:"Interval"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` } // CreateDescribeLoadBalancerHTTPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerHTTPListenerAttribute API @@ -138,7 +118,7 @@ func CreateDescribeLoadBalancerHTTPListenerAttributeRequest() (request *Describe request = &DescribeLoadBalancerHTTPListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeLoadBalancerHTTPListenerAttribute", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/describe_load_balancer_https_listener_attribute.go b/services/slb/describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index 3cb219bf3a..0000000000 --- a/services/slb/describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,164 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeLoadBalancerHTTPSListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPSListenerAttribute -type DescribeLoadBalancerHTTPSListenerAttributeResponse struct { - *responses.BaseResponse - AclType string `json:"AclType" xml:"AclType"` - XForwardedForClientCertClientVerify string `json:"XForwardedFor_ClientCertClientVerify" xml:"XForwardedFor_ClientCertClientVerify"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - XForwardedForClientCertClientVerifyAlias string `json:"XForwardedFor_ClientCertClientVerifyAlias" xml:"XForwardedFor_ClientCertClientVerifyAlias"` - RequestId string `json:"RequestId" xml:"RequestId"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - BackendProtocol string `json:"BackendProtocol" xml:"BackendProtocol"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - XForwardedForClientCertFingerprintAlias string `json:"XForwardedFor_ClientCertFingerprintAlias" xml:"XForwardedFor_ClientCertFingerprintAlias"` - XForwardedForClientCertIssuerDNAlias string `json:"XForwardedFor_ClientCertIssuerDNAlias" xml:"XForwardedFor_ClientCertIssuerDNAlias"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - XForwardedForClientCertFingerprint string `json:"XForwardedFor_ClientCertFingerprint" xml:"XForwardedFor_ClientCertFingerprint"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` - Status string `json:"Status" xml:"Status"` - HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` - Cookie string `json:"Cookie" xml:"Cookie"` - Gzip string `json:"Gzip" xml:"Gzip"` - EnableHttp2 string `json:"EnableHttp2" xml:"EnableHttp2"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Description string `json:"Description" xml:"Description"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - XForwardedForClientCertSubjectDN string `json:"XForwardedFor_ClientCertSubjectDN" xml:"XForwardedFor_ClientCertSubjectDN"` - SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - XForwardedForClientCertSubjectDNAlias string `json:"XForwardedFor_ClientCertSubjectDNAlias" xml:"XForwardedFor_ClientCertSubjectDNAlias"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - AclId string `json:"AclId" xml:"AclId"` - XForwardedForClientCertIssuerDN string `json:"XForwardedFor_ClientCertIssuerDN" xml:"XForwardedFor_ClientCertIssuerDN"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - AclIds AclIdsInDescribeLoadBalancerHTTPSListenerAttribute `json:"AclIds" xml:"AclIds"` - Rules RulesInDescribeLoadBalancerHTTPSListenerAttribute `json:"Rules" xml:"Rules"` - DomainExtensions DomainExtensionsInDescribeLoadBalancerHTTPSListenerAttribute `json:"DomainExtensions" xml:"DomainExtensions"` - ServerCertificates ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute `json:"ServerCertificates" xml:"ServerCertificates"` - Tags TagsInDescribeLoadBalancerHTTPSListenerAttribute `json:"Tags" xml:"Tags"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeLoadBalancerHTTPSListenerAttributeResponse creates a response to parse from DescribeLoadBalancerHTTPSListenerAttribute response -func CreateDescribeLoadBalancerHTTPSListenerAttributeResponse() (response *DescribeLoadBalancerHTTPSListenerAttributeResponse) { - response = &DescribeLoadBalancerHTTPSListenerAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_load_balancer_listeners.go b/services/slb/describe_load_balancer_listeners.go deleted file mode 100644 index 2166d2ad0a..0000000000 --- a/services/slb/describe_load_balancer_listeners.go +++ /dev/null @@ -1,117 +0,0 @@ -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" -) - -// DescribeLoadBalancerListeners invokes the slb.DescribeLoadBalancerListeners API synchronously -func (client *Client) DescribeLoadBalancerListeners(request *DescribeLoadBalancerListenersRequest) (response *DescribeLoadBalancerListenersResponse, err error) { - response = CreateDescribeLoadBalancerListenersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLoadBalancerListenersWithChan invokes the slb.DescribeLoadBalancerListeners API asynchronously -func (client *Client) DescribeLoadBalancerListenersWithChan(request *DescribeLoadBalancerListenersRequest) (<-chan *DescribeLoadBalancerListenersResponse, <-chan error) { - responseChan := make(chan *DescribeLoadBalancerListenersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLoadBalancerListeners(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLoadBalancerListenersWithCallback invokes the slb.DescribeLoadBalancerListeners API asynchronously -func (client *Client) DescribeLoadBalancerListenersWithCallback(request *DescribeLoadBalancerListenersRequest, callback func(response *DescribeLoadBalancerListenersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLoadBalancerListenersResponse - var err error - defer close(result) - response, err = client.DescribeLoadBalancerListeners(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLoadBalancerListenersRequest is the request struct for api DescribeLoadBalancerListeners -type DescribeLoadBalancerListenersRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]DescribeLoadBalancerListenersTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - LoadBalancerId *[]string `position:"Query" name:"LoadBalancerId" type:"Repeated"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeLoadBalancerListenersTag is a repeated param struct in DescribeLoadBalancerListenersRequest -type DescribeLoadBalancerListenersTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeLoadBalancerListenersResponse is the response struct for api DescribeLoadBalancerListeners -type DescribeLoadBalancerListenersResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - Listeners []ListenerInDescribeLoadBalancerListeners `json:"Listeners" xml:"Listeners"` -} - -// CreateDescribeLoadBalancerListenersRequest creates a request to invoke DescribeLoadBalancerListeners API -func CreateDescribeLoadBalancerListenersRequest() (request *DescribeLoadBalancerListenersRequest) { - request = &DescribeLoadBalancerListenersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerListeners", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLoadBalancerListenersResponse creates a response to parse from DescribeLoadBalancerListeners response -func CreateDescribeLoadBalancerListenersResponse() (response *DescribeLoadBalancerListenersResponse) { - response = &DescribeLoadBalancerListenersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_load_balancer_tcp_listener_attribute.go b/services/slb/describe_load_balancer_tcp_listener_attribute.go index cf1932e54c..bafac78892 100644 --- a/services/slb/describe_load_balancer_tcp_listener_attribute.go +++ b/services/slb/describe_load_balancer_tcp_listener_attribute.go @@ -84,50 +84,28 @@ type DescribeLoadBalancerTCPListenerAttributeRequest struct { // DescribeLoadBalancerTCPListenerAttributeResponse is the response struct for api DescribeLoadBalancerTCPListenerAttribute type DescribeLoadBalancerTCPListenerAttributeResponse struct { *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Status string `json:"Status" xml:"Status"` - AclType string `json:"AclType" xml:"AclType"` - ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` - FailoverStrategy string `json:"FailoverStrategy" xml:"FailoverStrategy"` - WorkingServerGroupId string `json:"WorkingServerGroupId" xml:"WorkingServerGroupId"` - HealthCheckTcpFastCloseEnabled bool `json:"HealthCheckTcpFastCloseEnabled" xml:"HealthCheckTcpFastCloseEnabled"` - FullNatEnabled bool `json:"FullNatEnabled" xml:"FullNatEnabled"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - RequestId string `json:"RequestId" xml:"RequestId"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - Description string `json:"Description" xml:"Description"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - MasterServerGroupId string `json:"MasterServerGroupId" xml:"MasterServerGroupId"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` - SlaveServerGroupId string `json:"SlaveServerGroupId" xml:"SlaveServerGroupId"` - PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - FailoverThreshold int `json:"FailoverThreshold" xml:"FailoverThreshold"` - AclId string `json:"AclId" xml:"AclId"` - SynProxy string `json:"SynProxy" xml:"SynProxy"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - MasterSlaveModeEnabled bool `json:"MasterSlaveModeEnabled" xml:"MasterSlaveModeEnabled"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - AclIds AclIdsInDescribeLoadBalancerTCPListenerAttribute `json:"AclIds" xml:"AclIds"` - PortRanges PortRangesInDescribeLoadBalancerTCPListenerAttribute `json:"PortRanges" xml:"PortRanges"` - Tags TagsInDescribeLoadBalancerTCPListenerAttribute `json:"Tags" xml:"Tags"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + ConnectPort int `json:"ConnectPort" xml:"ConnectPort"` + Status string `json:"Status" xml:"Status"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + SynProxy string `json:"SynProxy" xml:"SynProxy"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + RequestId string `json:"RequestId" xml:"RequestId"` + Interval int `json:"Interval" xml:"Interval"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + ConnectTimeout int `json:"ConnectTimeout" xml:"ConnectTimeout"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` } // CreateDescribeLoadBalancerTCPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerTCPListenerAttribute API @@ -135,7 +113,7 @@ func CreateDescribeLoadBalancerTCPListenerAttributeRequest() (request *DescribeL request = &DescribeLoadBalancerTCPListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerTCPListenerAttribute", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeLoadBalancerTCPListenerAttribute", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/describe_load_balancer_udp_listener_attribute.go b/services/slb/describe_load_balancer_udp_listener_attribute.go deleted file mode 100644 index e5f5c087d1..0000000000 --- a/services/slb/describe_load_balancer_udp_listener_attribute.go +++ /dev/null @@ -1,150 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeLoadBalancerUDPListenerAttributeResponse is the response struct for api DescribeLoadBalancerUDPListenerAttribute -type DescribeLoadBalancerUDPListenerAttributeResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Status string `json:"Status" xml:"Status"` - AclType string `json:"AclType" xml:"AclType"` - ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` - FailoverStrategy string `json:"FailoverStrategy" xml:"FailoverStrategy"` - WorkingServerGroupId string `json:"WorkingServerGroupId" xml:"WorkingServerGroupId"` - HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` - FullNatEnabled bool `json:"FullNatEnabled" xml:"FullNatEnabled"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - QuicVersion string `json:"QuicVersion" xml:"QuicVersion"` - RequestId string `json:"RequestId" xml:"RequestId"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - Description string `json:"Description" xml:"Description"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - MasterServerGroupId string `json:"MasterServerGroupId" xml:"MasterServerGroupId"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` - SlaveServerGroupId string `json:"SlaveServerGroupId" xml:"SlaveServerGroupId"` - PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - FailoverThreshold int `json:"FailoverThreshold" xml:"FailoverThreshold"` - AclId string `json:"AclId" xml:"AclId"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - MasterSlaveModeEnabled bool `json:"MasterSlaveModeEnabled" xml:"MasterSlaveModeEnabled"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` - HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - AclIds AclIdsInDescribeLoadBalancerUDPListenerAttribute `json:"AclIds" xml:"AclIds"` - PortRanges PortRangesInDescribeLoadBalancerUDPListenerAttribute `json:"PortRanges" xml:"PortRanges"` - Tags TagsInDescribeLoadBalancerUDPListenerAttribute `json:"Tags" xml:"Tags"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeLoadBalancerUDPListenerAttributeResponse creates a response to parse from DescribeLoadBalancerUDPListenerAttribute response -func CreateDescribeLoadBalancerUDPListenerAttributeResponse() (response *DescribeLoadBalancerUDPListenerAttributeResponse) { - response = &DescribeLoadBalancerUDPListenerAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_load_balancers.go b/services/slb/describe_load_balancers.go index 55ea10c3d0..d7e44de6e6 100644 --- a/services/slb/describe_load_balancers.go +++ b/services/slb/describe_load_balancers.go @@ -71,42 +71,28 @@ func (client *Client) DescribeLoadBalancersWithCallback(request *DescribeLoadBal // DescribeLoadBalancersRequest is the request struct for api DescribeLoadBalancers type DescribeLoadBalancersRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NetworkType string `position:"Query" name:"NetworkType"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - MasterZoneId string `position:"Query" name:"MasterZoneId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LoadBalancerName string `position:"Query" name:"LoadBalancerName"` - SlaveZoneId string `position:"Query" name:"SlaveZoneId"` - Tag *[]DescribeLoadBalancersTag `position:"Query" name:"Tag" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerId string `position:"Query" name:"ServerId"` - Tags string `position:"Query" name:"Tags"` - ServerIntranetAddress string `position:"Query" name:"ServerIntranetAddress"` - VSwitchId string `position:"Query" name:"VSwitchId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - AccessKeyId string `position:"Query" name:"access_key_id"` - SupportPrivateLink requests.Boolean `position:"Query" name:"SupportPrivateLink"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - AddressType string `position:"Query" name:"AddressType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - Fuzzy string `position:"Query" name:"Fuzzy"` - BusinessStatus string `position:"Query" name:"BusinessStatus"` - Address string `position:"Query" name:"Address"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - FilterByTagOrName requests.Boolean `position:"Query" name:"FilterByTagOrName"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - LoadBalancerStatus string `position:"Query" name:"LoadBalancerStatus"` - VpcId string `position:"Query" name:"VpcId"` - PayType string `position:"Query" name:"PayType"` -} - -// DescribeLoadBalancersTag is a repeated param struct in DescribeLoadBalancersRequest -type DescribeLoadBalancersTag struct { - Value string `name:"Value"` - Key string `name:"Key"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NetworkType string `position:"Query" name:"NetworkType"` + MasterZoneId string `position:"Query" name:"MasterZoneId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + AddressType string `position:"Query" name:"AddressType"` + SlaveZoneId string `position:"Query" name:"SlaveZoneId"` + Address string `position:"Query" name:"Address"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ServerId string `position:"Query" name:"ServerId"` + Tags string `position:"Query" name:"Tags"` + ServerIntranetAddress string `position:"Query" name:"ServerIntranetAddress"` + VSwitchId string `position:"Query" name:"VSwitchId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + VpcId string `position:"Query" name:"VpcId"` + PayType string `position:"Query" name:"PayType"` } // DescribeLoadBalancersResponse is the response struct for api DescribeLoadBalancers @@ -124,7 +110,7 @@ func CreateDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest request = &DescribeLoadBalancersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancers", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeLoadBalancers", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/describe_master_slave_server_group_attribute.go b/services/slb/describe_master_slave_server_group_attribute.go deleted file mode 100644 index 854c07c670..0000000000 --- a/services/slb/describe_master_slave_server_group_attribute.go +++ /dev/null @@ -1,112 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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 - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - RequestId string `json:"RequestId" xml:"RequestId"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - Tags TagsInDescribeMasterSlaveServerGroupAttribute `json:"Tags" xml:"Tags"` - 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") - request.Method = requests.POST - return -} - -// CreateDescribeMasterSlaveServerGroupAttributeResponse creates a response to parse from DescribeMasterSlaveServerGroupAttribute response -func CreateDescribeMasterSlaveServerGroupAttributeResponse() (response *DescribeMasterSlaveServerGroupAttributeResponse) { - response = &DescribeMasterSlaveServerGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_master_slave_server_groups.go b/services/slb/describe_master_slave_server_groups.go deleted file mode 100644 index ce262cd24d..0000000000 --- a/services/slb/describe_master_slave_server_groups.go +++ /dev/null @@ -1,114 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` - Tag *[]DescribeMasterSlaveServerGroupsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeMasterSlaveServerGroupsTag is a repeated param struct in DescribeMasterSlaveServerGroupsRequest -type DescribeMasterSlaveServerGroupsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeMasterSlaveServerGroupsResponse creates a response to parse from DescribeMasterSlaveServerGroups response -func CreateDescribeMasterSlaveServerGroupsResponse() (response *DescribeMasterSlaveServerGroupsResponse) { - response = &DescribeMasterSlaveServerGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_regions.go b/services/slb/describe_regions.go index 85891dd27b..2c58e9eaa4 100644 --- a/services/slb/describe_regions.go +++ b/services/slb/describe_regions.go @@ -77,7 +77,6 @@ type DescribeRegionsRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // DescribeRegionsResponse is the response struct for api DescribeRegions @@ -92,7 +91,7 @@ func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { request = &DescribeRegionsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRegions", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "DescribeRegions", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/describe_rule_attribute.go b/services/slb/describe_rule_attribute.go deleted file mode 100644 index 06c1ca1a8e..0000000000 --- a/services/slb/describe_rule_attribute.go +++ /dev/null @@ -1,128 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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 - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Cookie string `json:"Cookie" xml:"Cookie"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - RuleId string `json:"RuleId" xml:"RuleId"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - RequestId string `json:"RequestId" xml:"RequestId"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - Domain string `json:"Domain" xml:"Domain"` - ListenerPort string `json:"ListenerPort" xml:"ListenerPort"` - Url string `json:"Url" xml:"Url"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - RuleName string `json:"RuleName" xml:"RuleName"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - ListenerSync string `json:"ListenerSync" xml:"ListenerSync"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeRuleAttributeResponse creates a response to parse from DescribeRuleAttribute response -func CreateDescribeRuleAttributeResponse() (response *DescribeRuleAttributeResponse) { - response = &DescribeRuleAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_server_certificates.go b/services/slb/describe_server_certificates.go deleted file mode 100644 index ac24abb442..0000000000 --- a/services/slb/describe_server_certificates.go +++ /dev/null @@ -1,114 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]DescribeServerCertificatesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeServerCertificatesTag is a repeated param struct in DescribeServerCertificatesRequest -type DescribeServerCertificatesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeServerCertificatesResponse is the response struct for api DescribeServerCertificates -type DescribeServerCertificatesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ServerCertificates ServerCertificatesInDescribeServerCertificates `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") - request.Method = requests.POST - return -} - -// CreateDescribeServerCertificatesResponse creates a response to parse from DescribeServerCertificates response -func CreateDescribeServerCertificatesResponse() (response *DescribeServerCertificatesResponse) { - response = &DescribeServerCertificatesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_tags.go b/services/slb/describe_tags.go deleted file mode 100644 index 5578bb21de..0000000000 --- a/services/slb/describe_tags.go +++ /dev/null @@ -1,112 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - 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"` - DistinctKey requests.Boolean `position:"Query" name:"DistinctKey"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeTagsResponse creates a response to parse from DescribeTags response -func CreateDescribeTagsResponse() (response *DescribeTagsResponse) { - response = &DescribeTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_v_server_group_attribute.go b/services/slb/describe_v_server_group_attribute.go deleted file mode 100644 index 5f5fbf6c33..0000000000 --- a/services/slb/describe_v_server_group_attribute.go +++ /dev/null @@ -1,112 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeVServerGroupAttributeResponse is the response struct for api DescribeVServerGroupAttribute -type DescribeVServerGroupAttributeResponse struct { - *responses.BaseResponse - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` - RequestId string `json:"RequestId" xml:"RequestId"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - BackendServers BackendServersInDescribeVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` - Tags TagsInDescribeVServerGroupAttribute `json:"Tags" xml:"Tags"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateDescribeVServerGroupAttributeResponse creates a response to parse from DescribeVServerGroupAttribute response -func CreateDescribeVServerGroupAttributeResponse() (response *DescribeVServerGroupAttributeResponse) { - response = &DescribeVServerGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_v_server_groups.go b/services/slb/describe_v_server_groups.go deleted file mode 100644 index 9fbaf3ab20..0000000000 --- a/services/slb/describe_v_server_groups.go +++ /dev/null @@ -1,115 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` - IncludeRule requests.Boolean `position:"Query" name:"IncludeRule"` - Tag *[]DescribeVServerGroupsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// DescribeVServerGroupsTag is a repeated param struct in DescribeVServerGroupsRequest -type DescribeVServerGroupsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeVServerGroupsResponse is the response struct for api DescribeVServerGroups -type DescribeVServerGroupsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VServerGroups VServerGroups `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") - request.Method = requests.POST - return -} - -// CreateDescribeVServerGroupsResponse creates a response to parse from DescribeVServerGroups response -func CreateDescribeVServerGroupsResponse() (response *DescribeVServerGroupsResponse) { - response = &DescribeVServerGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/describe_zones.go b/services/slb/describe_zones.go deleted file mode 100644 index 76065f827c..0000000000 --- a/services/slb/describe_zones.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - 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") - request.Method = requests.POST - return -} - -// CreateDescribeZonesResponse creates a response to parse from DescribeZones response -func CreateDescribeZonesResponse() (response *DescribeZonesResponse) { - response = &DescribeZonesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/enable_high_defination_monitor.go b/services/slb/enable_high_defination_monitor.go deleted file mode 100644 index e272f1f86f..0000000000 --- a/services/slb/enable_high_defination_monitor.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// EnableHighDefinationMonitor invokes the slb.EnableHighDefinationMonitor API synchronously -func (client *Client) EnableHighDefinationMonitor(request *EnableHighDefinationMonitorRequest) (response *EnableHighDefinationMonitorResponse, err error) { - response = CreateEnableHighDefinationMonitorResponse() - err = client.DoAction(request, response) - return -} - -// EnableHighDefinationMonitorWithChan invokes the slb.EnableHighDefinationMonitor API asynchronously -func (client *Client) EnableHighDefinationMonitorWithChan(request *EnableHighDefinationMonitorRequest) (<-chan *EnableHighDefinationMonitorResponse, <-chan error) { - responseChan := make(chan *EnableHighDefinationMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EnableHighDefinationMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EnableHighDefinationMonitorWithCallback invokes the slb.EnableHighDefinationMonitor API asynchronously -func (client *Client) EnableHighDefinationMonitorWithCallback(request *EnableHighDefinationMonitorRequest, callback func(response *EnableHighDefinationMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EnableHighDefinationMonitorResponse - var err error - defer close(result) - response, err = client.EnableHighDefinationMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EnableHighDefinationMonitorRequest is the request struct for api EnableHighDefinationMonitor -type EnableHighDefinationMonitorRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LogProject string `position:"Query" name:"LogProject"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LogStore string `position:"Query" name:"LogStore"` -} - -// EnableHighDefinationMonitorResponse is the response struct for api EnableHighDefinationMonitor -type EnableHighDefinationMonitorResponse struct { - *responses.BaseResponse - Success string `json:"Success" xml:"Success"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateEnableHighDefinationMonitorRequest creates a request to invoke EnableHighDefinationMonitor API -func CreateEnableHighDefinationMonitorRequest() (request *EnableHighDefinationMonitorRequest) { - request = &EnableHighDefinationMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "EnableHighDefinationMonitor", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateEnableHighDefinationMonitorResponse creates a response to parse from EnableHighDefinationMonitor response -func CreateEnableHighDefinationMonitorResponse() (response *EnableHighDefinationMonitorResponse) { - response = &EnableHighDefinationMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/list_tag_resources.go b/services/slb/list_tag_resources.go deleted file mode 100644 index 57a3db3b65..0000000000 --- a/services/slb/list_tag_resources.go +++ /dev/null @@ -1,115 +0,0 @@ -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" -) - -// ListTagResources invokes the slb.ListTagResources API synchronously -func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { - response = CreateListTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// ListTagResourcesWithChan invokes the slb.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { - responseChan := make(chan *ListTagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListTagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListTagResourcesWithCallback invokes the slb.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListTagResourcesResponse - var err error - defer close(result) - response, err = client.ListTagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListTagResourcesRequest is the request struct for api ListTagResources -type ListTagResourcesRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - 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"` -} - -// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest -type ListTagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// ListTagResourcesResponse is the response struct for api ListTagResources -type ListTagResourcesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TagResources TagResources `json:"TagResources" xml:"TagResources"` -} - -// CreateListTagResourcesRequest creates a request to invoke ListTagResources API -func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { - request = &ListTagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "ListTagResources", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateListTagResourcesResponse creates a response to parse from ListTagResources response -func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { - response = &ListTagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/list_tls_cipher_policies.go b/services/slb/list_tls_cipher_policies.go deleted file mode 100644 index e1686b8c78..0000000000 --- a/services/slb/list_tls_cipher_policies.go +++ /dev/null @@ -1,112 +0,0 @@ -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" -) - -// ListTLSCipherPolicies invokes the slb.ListTLSCipherPolicies API synchronously -func (client *Client) ListTLSCipherPolicies(request *ListTLSCipherPoliciesRequest) (response *ListTLSCipherPoliciesResponse, err error) { - response = CreateListTLSCipherPoliciesResponse() - err = client.DoAction(request, response) - return -} - -// ListTLSCipherPoliciesWithChan invokes the slb.ListTLSCipherPolicies API asynchronously -func (client *Client) ListTLSCipherPoliciesWithChan(request *ListTLSCipherPoliciesRequest) (<-chan *ListTLSCipherPoliciesResponse, <-chan error) { - responseChan := make(chan *ListTLSCipherPoliciesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListTLSCipherPolicies(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListTLSCipherPoliciesWithCallback invokes the slb.ListTLSCipherPolicies API asynchronously -func (client *Client) ListTLSCipherPoliciesWithCallback(request *ListTLSCipherPoliciesRequest, callback func(response *ListTLSCipherPoliciesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListTLSCipherPoliciesResponse - var err error - defer close(result) - response, err = client.ListTLSCipherPolicies(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListTLSCipherPoliciesRequest is the request struct for api ListTLSCipherPolicies -type ListTLSCipherPoliciesRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` - TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` - NextToken string `position:"Query" name:"NextToken"` - 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"` - MaxItems requests.Integer `position:"Query" name:"MaxItems"` -} - -// ListTLSCipherPoliciesResponse is the response struct for api ListTLSCipherPolicies -type ListTLSCipherPoliciesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` - TLSCipherPolicies []TLSCipherPolicy `json:"TLSCipherPolicies" xml:"TLSCipherPolicies"` -} - -// CreateListTLSCipherPoliciesRequest creates a request to invoke ListTLSCipherPolicies API -func CreateListTLSCipherPoliciesRequest() (request *ListTLSCipherPoliciesRequest) { - request = &ListTLSCipherPoliciesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "ListTLSCipherPolicies", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateListTLSCipherPoliciesResponse creates a response to parse from ListTLSCipherPolicies response -func CreateListTLSCipherPoliciesResponse() (response *ListTLSCipherPoliciesResponse) { - response = &ListTLSCipherPoliciesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_high_defination_monitor.go b/services/slb/modify_high_defination_monitor.go deleted file mode 100644 index 7841d756d1..0000000000 --- a/services/slb/modify_high_defination_monitor.go +++ /dev/null @@ -1,105 +0,0 @@ -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" -) - -// ModifyHighDefinationMonitor invokes the slb.ModifyHighDefinationMonitor API synchronously -func (client *Client) ModifyHighDefinationMonitor(request *ModifyHighDefinationMonitorRequest) (response *ModifyHighDefinationMonitorResponse, err error) { - response = CreateModifyHighDefinationMonitorResponse() - err = client.DoAction(request, response) - return -} - -// ModifyHighDefinationMonitorWithChan invokes the slb.ModifyHighDefinationMonitor API asynchronously -func (client *Client) ModifyHighDefinationMonitorWithChan(request *ModifyHighDefinationMonitorRequest) (<-chan *ModifyHighDefinationMonitorResponse, <-chan error) { - responseChan := make(chan *ModifyHighDefinationMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyHighDefinationMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyHighDefinationMonitorWithCallback invokes the slb.ModifyHighDefinationMonitor API asynchronously -func (client *Client) ModifyHighDefinationMonitorWithCallback(request *ModifyHighDefinationMonitorRequest, callback func(response *ModifyHighDefinationMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyHighDefinationMonitorResponse - var err error - defer close(result) - response, err = client.ModifyHighDefinationMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyHighDefinationMonitorRequest is the request struct for api ModifyHighDefinationMonitor -type ModifyHighDefinationMonitorRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LogProject string `position:"Query" name:"LogProject"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LogStore string `position:"Query" name:"LogStore"` -} - -// ModifyHighDefinationMonitorResponse is the response struct for api ModifyHighDefinationMonitor -type ModifyHighDefinationMonitorResponse struct { - *responses.BaseResponse - Success string `json:"Success" xml:"Success"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyHighDefinationMonitorRequest creates a request to invoke ModifyHighDefinationMonitor API -func CreateModifyHighDefinationMonitorRequest() (request *ModifyHighDefinationMonitorRequest) { - request = &ModifyHighDefinationMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "ModifyHighDefinationMonitor", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyHighDefinationMonitorResponse creates a response to parse from ModifyHighDefinationMonitor response -func CreateModifyHighDefinationMonitorResponse() (response *ModifyHighDefinationMonitorResponse) { - response = &ModifyHighDefinationMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_load_balancer_instance_charge_type.go b/services/slb/modify_load_balancer_instance_charge_type.go deleted file mode 100644 index ece4311a82..0000000000 --- a/services/slb/modify_load_balancer_instance_charge_type.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// ModifyLoadBalancerInstanceChargeType invokes the slb.ModifyLoadBalancerInstanceChargeType API synchronously -func (client *Client) ModifyLoadBalancerInstanceChargeType(request *ModifyLoadBalancerInstanceChargeTypeRequest) (response *ModifyLoadBalancerInstanceChargeTypeResponse, err error) { - response = CreateModifyLoadBalancerInstanceChargeTypeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyLoadBalancerInstanceChargeTypeWithChan invokes the slb.ModifyLoadBalancerInstanceChargeType API asynchronously -func (client *Client) ModifyLoadBalancerInstanceChargeTypeWithChan(request *ModifyLoadBalancerInstanceChargeTypeRequest) (<-chan *ModifyLoadBalancerInstanceChargeTypeResponse, <-chan error) { - responseChan := make(chan *ModifyLoadBalancerInstanceChargeTypeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyLoadBalancerInstanceChargeType(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyLoadBalancerInstanceChargeTypeWithCallback invokes the slb.ModifyLoadBalancerInstanceChargeType API asynchronously -func (client *Client) ModifyLoadBalancerInstanceChargeTypeWithCallback(request *ModifyLoadBalancerInstanceChargeTypeRequest, callback func(response *ModifyLoadBalancerInstanceChargeTypeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyLoadBalancerInstanceChargeTypeResponse - var err error - defer close(result) - response, err = client.ModifyLoadBalancerInstanceChargeType(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyLoadBalancerInstanceChargeTypeRequest is the request struct for api ModifyLoadBalancerInstanceChargeType -type ModifyLoadBalancerInstanceChargeTypeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` -} - -// ModifyLoadBalancerInstanceChargeTypeResponse is the response struct for api ModifyLoadBalancerInstanceChargeType -type ModifyLoadBalancerInstanceChargeTypeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyLoadBalancerInstanceChargeTypeRequest creates a request to invoke ModifyLoadBalancerInstanceChargeType API -func CreateModifyLoadBalancerInstanceChargeTypeRequest() (request *ModifyLoadBalancerInstanceChargeTypeRequest) { - request = &ModifyLoadBalancerInstanceChargeTypeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInstanceChargeType", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyLoadBalancerInstanceChargeTypeResponse creates a response to parse from ModifyLoadBalancerInstanceChargeType response -func CreateModifyLoadBalancerInstanceChargeTypeResponse() (response *ModifyLoadBalancerInstanceChargeTypeResponse) { - response = &ModifyLoadBalancerInstanceChargeTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_load_balancer_instance_spec.go b/services/slb/modify_load_balancer_instance_spec.go deleted file mode 100644 index 8b19a7db78..0000000000 --- a/services/slb/modify_load_balancer_instance_spec.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// ModifyLoadBalancerInstanceSpecResponse is the response struct for api ModifyLoadBalancerInstanceSpec -type ModifyLoadBalancerInstanceSpecResponse struct { - *responses.BaseResponse - OrderId int64 `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateModifyLoadBalancerInstanceSpecResponse creates a response to parse from ModifyLoadBalancerInstanceSpec response -func CreateModifyLoadBalancerInstanceSpecResponse() (response *ModifyLoadBalancerInstanceSpecResponse) { - response = &ModifyLoadBalancerInstanceSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_load_balancer_internet_spec.go b/services/slb/modify_load_balancer_internet_spec.go deleted file mode 100644 index f5caa6efac..0000000000 --- a/services/slb/modify_load_balancer_internet_spec.go +++ /dev/null @@ -1,110 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - Ratio requests.Integer `position:"Query" name:"Ratio"` -} - -// ModifyLoadBalancerInternetSpecResponse is the response struct for api ModifyLoadBalancerInternetSpec -type ModifyLoadBalancerInternetSpecResponse struct { - *responses.BaseResponse - OrderId int64 `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateModifyLoadBalancerInternetSpecResponse creates a response to parse from ModifyLoadBalancerInternetSpec response -func CreateModifyLoadBalancerInternetSpecResponse() (response *ModifyLoadBalancerInternetSpecResponse) { - response = &ModifyLoadBalancerInternetSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_load_balancer_pay_type.go b/services/slb/modify_load_balancer_pay_type.go deleted file mode 100644 index 81740a5f0f..0000000000 --- a/services/slb/modify_load_balancer_pay_type.go +++ /dev/null @@ -1,110 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Duration requests.Integer `position:"Query" name:"Duration"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - PayType string `position:"Query" name:"PayType"` - PricingCycle string `position:"Query" name:"PricingCycle"` -} - -// ModifyLoadBalancerPayTypeResponse is the response struct for api ModifyLoadBalancerPayType -type ModifyLoadBalancerPayTypeResponse struct { - *responses.BaseResponse - OrderId int64 `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateModifyLoadBalancerPayTypeResponse creates a response to parse from ModifyLoadBalancerPayType response -func CreateModifyLoadBalancerPayTypeResponse() (response *ModifyLoadBalancerPayTypeResponse) { - response = &ModifyLoadBalancerPayTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/modify_v_server_group_backend_servers.go b/services/slb/modify_v_server_group_backend_servers.go deleted file mode 100644 index e93e52c1f6..0000000000 --- a/services/slb/modify_v_server_group_backend_servers.go +++ /dev/null @@ -1,109 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - NewBackendServers string `position:"Query" name:"NewBackendServers"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - OldBackendServers string `position:"Query" name:"OldBackendServers"` -} - -// ModifyVServerGroupBackendServersResponse is the response struct for api ModifyVServerGroupBackendServers -type ModifyVServerGroupBackendServersResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateModifyVServerGroupBackendServersResponse creates a response to parse from ModifyVServerGroupBackendServers response -func CreateModifyVServerGroupBackendServersResponse() (response *ModifyVServerGroupBackendServersResponse) { - response = &ModifyVServerGroupBackendServersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/move_resource_group.go b/services/slb/move_resource_group.go deleted file mode 100644 index cf9bdf1af4..0000000000 --- a/services/slb/move_resource_group.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - 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"` - Tags string `position:"Query" name:"Tags"` - NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateMoveResourceGroupResponse creates a response to parse from MoveResourceGroup response -func CreateMoveResourceGroupResponse() (response *MoveResourceGroupResponse) { - response = &MoveResourceGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/remove_access_control_list_entry.go b/services/slb/remove_access_control_list_entry.go deleted file mode 100644 index 05f2cb8e86..0000000000 --- a/services/slb/remove_access_control_list_entry.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// RemoveAccessControlListEntry invokes the slb.RemoveAccessControlListEntry API synchronously -func (client *Client) RemoveAccessControlListEntry(request *RemoveAccessControlListEntryRequest) (response *RemoveAccessControlListEntryResponse, err error) { - response = CreateRemoveAccessControlListEntryResponse() - err = client.DoAction(request, response) - return -} - -// RemoveAccessControlListEntryWithChan invokes the slb.RemoveAccessControlListEntry API asynchronously -func (client *Client) RemoveAccessControlListEntryWithChan(request *RemoveAccessControlListEntryRequest) (<-chan *RemoveAccessControlListEntryResponse, <-chan error) { - responseChan := make(chan *RemoveAccessControlListEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RemoveAccessControlListEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RemoveAccessControlListEntryWithCallback invokes the slb.RemoveAccessControlListEntry API asynchronously -func (client *Client) RemoveAccessControlListEntryWithCallback(request *RemoveAccessControlListEntryRequest, callback func(response *RemoveAccessControlListEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RemoveAccessControlListEntryResponse - var err error - defer close(result) - response, err = client.RemoveAccessControlListEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RemoveAccessControlListEntryRequest is the request struct for api RemoveAccessControlListEntry -type RemoveAccessControlListEntryRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclEntrys string `position:"Query" name:"AclEntrys"` - AclId string `position:"Query" name:"AclId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// RemoveAccessControlListEntryResponse is the response struct for api RemoveAccessControlListEntry -type RemoveAccessControlListEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRemoveAccessControlListEntryRequest creates a request to invoke RemoveAccessControlListEntry API -func CreateRemoveAccessControlListEntryRequest() (request *RemoveAccessControlListEntryRequest) { - request = &RemoveAccessControlListEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "RemoveAccessControlListEntry", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateRemoveAccessControlListEntryResponse creates a response to parse from RemoveAccessControlListEntry response -func CreateRemoveAccessControlListEntryResponse() (response *RemoveAccessControlListEntryResponse) { - response = &RemoveAccessControlListEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/remove_backend_servers.go b/services/slb/remove_backend_servers.go index 51c0fb4695..2d57ded090 100644 --- a/services/slb/remove_backend_servers.go +++ b/services/slb/remove_backend_servers.go @@ -94,7 +94,7 @@ func CreateRemoveBackendServersRequest() (request *RemoveBackendServersRequest) request = &RemoveBackendServersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "RemoveBackendServers", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "RemoveBackendServers", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/remove_listener_white_list_item.go b/services/slb/remove_listener_white_list_item.go deleted file mode 100644 index 2d39ab108c..0000000000 --- a/services/slb/remove_listener_white_list_item.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourceItems string `position:"Query" name:"SourceItems"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateRemoveListenerWhiteListItemResponse creates a response to parse from RemoveListenerWhiteListItem response -func CreateRemoveListenerWhiteListItemResponse() (response *RemoveListenerWhiteListItemResponse) { - response = &RemoveListenerWhiteListItemResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/remove_tags.go b/services/slb/remove_tags.go deleted file mode 100644 index 007ab9e690..0000000000 --- a/services/slb/remove_tags.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateRemoveTagsResponse creates a response to parse from RemoveTags response -func CreateRemoveTagsResponse() (response *RemoveTagsResponse) { - response = &RemoveTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/remove_v_server_group_backend_servers.go b/services/slb/remove_v_server_group_backend_servers.go deleted file mode 100644 index 9fc5becf4a..0000000000 --- a/services/slb/remove_v_server_group_backend_servers.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// RemoveVServerGroupBackendServersResponse is the response struct for api RemoveVServerGroupBackendServers -type RemoveVServerGroupBackendServersResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateRemoveVServerGroupBackendServersResponse creates a response to parse from RemoveVServerGroupBackendServers response -func CreateRemoveVServerGroupBackendServersResponse() (response *RemoveVServerGroupBackendServersResponse) { - response = &RemoveVServerGroupBackendServersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_access_control_list_attribute.go b/services/slb/set_access_control_list_attribute.go deleted file mode 100644 index 64f9c92f7c..0000000000 --- a/services/slb/set_access_control_list_attribute.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// SetAccessControlListAttribute invokes the slb.SetAccessControlListAttribute API synchronously -func (client *Client) SetAccessControlListAttribute(request *SetAccessControlListAttributeRequest) (response *SetAccessControlListAttributeResponse, err error) { - response = CreateSetAccessControlListAttributeResponse() - err = client.DoAction(request, response) - return -} - -// SetAccessControlListAttributeWithChan invokes the slb.SetAccessControlListAttribute API asynchronously -func (client *Client) SetAccessControlListAttributeWithChan(request *SetAccessControlListAttributeRequest) (<-chan *SetAccessControlListAttributeResponse, <-chan error) { - responseChan := make(chan *SetAccessControlListAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetAccessControlListAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetAccessControlListAttributeWithCallback invokes the slb.SetAccessControlListAttribute API asynchronously -func (client *Client) SetAccessControlListAttributeWithCallback(request *SetAccessControlListAttributeRequest, callback func(response *SetAccessControlListAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetAccessControlListAttributeResponse - var err error - defer close(result) - response, err = client.SetAccessControlListAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetAccessControlListAttributeRequest is the request struct for api SetAccessControlListAttribute -type SetAccessControlListAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclName string `position:"Query" name:"AclName"` - AclId string `position:"Query" name:"AclId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// SetAccessControlListAttributeResponse is the response struct for api SetAccessControlListAttribute -type SetAccessControlListAttributeResponse struct { - *responses.BaseResponse - AclId string `json:"AclId" xml:"AclId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetAccessControlListAttributeRequest creates a request to invoke SetAccessControlListAttribute API -func CreateSetAccessControlListAttributeRequest() (request *SetAccessControlListAttributeRequest) { - request = &SetAccessControlListAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetAccessControlListAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetAccessControlListAttributeResponse creates a response to parse from SetAccessControlListAttribute response -func CreateSetAccessControlListAttributeResponse() (response *SetAccessControlListAttributeResponse) { - response = &SetAccessControlListAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_access_logs_download_attribute.go b/services/slb/set_access_logs_download_attribute.go deleted file mode 100644 index 56f87a582a..0000000000 --- a/services/slb/set_access_logs_download_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// SetAccessLogsDownloadAttribute invokes the slb.SetAccessLogsDownloadAttribute API synchronously -func (client *Client) SetAccessLogsDownloadAttribute(request *SetAccessLogsDownloadAttributeRequest) (response *SetAccessLogsDownloadAttributeResponse, err error) { - response = CreateSetAccessLogsDownloadAttributeResponse() - err = client.DoAction(request, response) - return -} - -// SetAccessLogsDownloadAttributeWithChan invokes the slb.SetAccessLogsDownloadAttribute API asynchronously -func (client *Client) SetAccessLogsDownloadAttributeWithChan(request *SetAccessLogsDownloadAttributeRequest) (<-chan *SetAccessLogsDownloadAttributeResponse, <-chan error) { - responseChan := make(chan *SetAccessLogsDownloadAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetAccessLogsDownloadAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetAccessLogsDownloadAttributeWithCallback invokes the slb.SetAccessLogsDownloadAttribute API asynchronously -func (client *Client) SetAccessLogsDownloadAttributeWithCallback(request *SetAccessLogsDownloadAttributeRequest, callback func(response *SetAccessLogsDownloadAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetAccessLogsDownloadAttributeResponse - var err error - defer close(result) - response, err = client.SetAccessLogsDownloadAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetAccessLogsDownloadAttributeRequest is the request struct for api SetAccessLogsDownloadAttribute -type SetAccessLogsDownloadAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LogsDownloadAttributes string `position:"Query" name:"LogsDownloadAttributes"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// SetAccessLogsDownloadAttributeResponse is the response struct for api SetAccessLogsDownloadAttribute -type SetAccessLogsDownloadAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetAccessLogsDownloadAttributeRequest creates a request to invoke SetAccessLogsDownloadAttribute API -func CreateSetAccessLogsDownloadAttributeRequest() (request *SetAccessLogsDownloadAttributeRequest) { - request = &SetAccessLogsDownloadAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetAccessLogsDownloadAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetAccessLogsDownloadAttributeResponse creates a response to parse from SetAccessLogsDownloadAttribute response -func CreateSetAccessLogsDownloadAttributeResponse() (response *SetAccessLogsDownloadAttributeResponse) { - response = &SetAccessLogsDownloadAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_backend_servers.go b/services/slb/set_backend_servers.go deleted file mode 100644 index 4ab2432a1a..0000000000 --- a/services/slb/set_backend_servers.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// SetBackendServersResponse is the response struct for api SetBackendServers -type SetBackendServersResponse struct { - *responses.BaseResponse - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateSetBackendServersResponse creates a response to parse from SetBackendServers response -func CreateSetBackendServersResponse() (response *SetBackendServersResponse) { - response = &SetBackendServersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_ca_certificate_name.go b/services/slb/set_ca_certificate_name.go deleted file mode 100644 index f3bf475019..0000000000 --- a/services/slb/set_ca_certificate_name.go +++ /dev/null @@ -1,105 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CACertificateName string `position:"Query" name:"CACertificateName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CACertificateId string `position:"Query" name:"CACertificateId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetCACertificateNameResponse creates a response to parse from SetCACertificateName response -func CreateSetCACertificateNameResponse() (response *SetCACertificateNameResponse) { - response = &SetCACertificateNameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_domain_extension_attribute.go b/services/slb/set_domain_extension_attribute.go deleted file mode 100644 index cd20806cab..0000000000 --- a/services/slb/set_domain_extension_attribute.go +++ /dev/null @@ -1,115 +0,0 @@ -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" -) - -// SetDomainExtensionAttribute invokes the slb.SetDomainExtensionAttribute API synchronously -func (client *Client) SetDomainExtensionAttribute(request *SetDomainExtensionAttributeRequest) (response *SetDomainExtensionAttributeResponse, err error) { - response = CreateSetDomainExtensionAttributeResponse() - err = client.DoAction(request, response) - return -} - -// SetDomainExtensionAttributeWithChan invokes the slb.SetDomainExtensionAttribute API asynchronously -func (client *Client) SetDomainExtensionAttributeWithChan(request *SetDomainExtensionAttributeRequest) (<-chan *SetDomainExtensionAttributeResponse, <-chan error) { - responseChan := make(chan *SetDomainExtensionAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDomainExtensionAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDomainExtensionAttributeWithCallback invokes the slb.SetDomainExtensionAttribute API asynchronously -func (client *Client) SetDomainExtensionAttributeWithCallback(request *SetDomainExtensionAttributeRequest, callback func(response *SetDomainExtensionAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDomainExtensionAttributeResponse - var err error - defer close(result) - response, err = client.SetDomainExtensionAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDomainExtensionAttributeRequest is the request struct for api SetDomainExtensionAttribute -type SetDomainExtensionAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate *[]SetDomainExtensionAttributeServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - CertificateId *[]string `position:"Query" name:"CertificateId" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` -} - -// SetDomainExtensionAttributeServerCertificate is a repeated param struct in SetDomainExtensionAttributeRequest -type SetDomainExtensionAttributeServerCertificate struct { - BindingType string `name:"BindingType"` - CertificateId string `name:"CertificateId"` - StandardType string `name:"StandardType"` -} - -// SetDomainExtensionAttributeResponse is the response struct for api SetDomainExtensionAttribute -type SetDomainExtensionAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetDomainExtensionAttributeRequest creates a request to invoke SetDomainExtensionAttribute API -func CreateSetDomainExtensionAttributeRequest() (request *SetDomainExtensionAttributeRequest) { - request = &SetDomainExtensionAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetDomainExtensionAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDomainExtensionAttributeResponse creates a response to parse from SetDomainExtensionAttribute response -func CreateSetDomainExtensionAttributeResponse() (response *SetDomainExtensionAttributeResponse) { - response = &SetDomainExtensionAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_listener_access_control_status.go b/services/slb/set_listener_access_control_status.go deleted file mode 100644 index ef13f8e83b..0000000000 --- a/services/slb/set_listener_access_control_status.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AccessControlStatus string `position:"Query" name:"AccessControlStatus"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetListenerAccessControlStatusResponse creates a response to parse from SetListenerAccessControlStatus response -func CreateSetListenerAccessControlStatusResponse() (response *SetListenerAccessControlStatusResponse) { - response = &SetListenerAccessControlStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_load_balancer_delete_protection.go b/services/slb/set_load_balancer_delete_protection.go deleted file mode 100644 index c46796576d..0000000000 --- a/services/slb/set_load_balancer_delete_protection.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// SetLoadBalancerDeleteProtection invokes the slb.SetLoadBalancerDeleteProtection API synchronously -func (client *Client) SetLoadBalancerDeleteProtection(request *SetLoadBalancerDeleteProtectionRequest) (response *SetLoadBalancerDeleteProtectionResponse, err error) { - response = CreateSetLoadBalancerDeleteProtectionResponse() - err = client.DoAction(request, response) - return -} - -// SetLoadBalancerDeleteProtectionWithChan invokes the slb.SetLoadBalancerDeleteProtection API asynchronously -func (client *Client) SetLoadBalancerDeleteProtectionWithChan(request *SetLoadBalancerDeleteProtectionRequest) (<-chan *SetLoadBalancerDeleteProtectionResponse, <-chan error) { - responseChan := make(chan *SetLoadBalancerDeleteProtectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetLoadBalancerDeleteProtection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetLoadBalancerDeleteProtectionWithCallback invokes the slb.SetLoadBalancerDeleteProtection API asynchronously -func (client *Client) SetLoadBalancerDeleteProtectionWithCallback(request *SetLoadBalancerDeleteProtectionRequest, callback func(response *SetLoadBalancerDeleteProtectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetLoadBalancerDeleteProtectionResponse - var err error - defer close(result) - response, err = client.SetLoadBalancerDeleteProtection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetLoadBalancerDeleteProtectionRequest is the request struct for api SetLoadBalancerDeleteProtection -type SetLoadBalancerDeleteProtectionRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DeleteProtection string `position:"Query" name:"DeleteProtection"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// SetLoadBalancerDeleteProtectionResponse is the response struct for api SetLoadBalancerDeleteProtection -type SetLoadBalancerDeleteProtectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetLoadBalancerDeleteProtectionRequest creates a request to invoke SetLoadBalancerDeleteProtection API -func CreateSetLoadBalancerDeleteProtectionRequest() (request *SetLoadBalancerDeleteProtectionRequest) { - request = &SetLoadBalancerDeleteProtectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerDeleteProtection", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetLoadBalancerDeleteProtectionResponse creates a response to parse from SetLoadBalancerDeleteProtection response -func CreateSetLoadBalancerDeleteProtectionResponse() (response *SetLoadBalancerDeleteProtectionResponse) { - response = &SetLoadBalancerDeleteProtectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_load_balancer_http_listener_attribute.go b/services/slb/set_load_balancer_http_listener_attribute.go index 50b2607963..e8083f3ca1 100644 --- a/services/slb/set_load_balancer_http_listener_attribute.go +++ b/services/slb/set_load_balancer_http_listener_attribute.go @@ -71,49 +71,24 @@ func (client *Client) SetLoadBalancerHTTPListenerAttributeWithCallback(request * // SetLoadBalancerHTTPListenerAttributeRequest is the request struct for api SetLoadBalancerHTTPListenerAttribute type SetLoadBalancerHTTPListenerAttributeRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` - AclStatus string `position:"Query" name:"AclStatus"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ForwardCode requests.Integer `position:"Query" name:"ForwardCode"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - AccessKeyId string `position:"Query" name:"access_key_id"` - XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HostId string `position:"Query" name:"HostId"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + HealthCheck string `position:"Query" name:"HealthCheck"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + Cookie string `position:"Query" name:"Cookie"` + StickySession string `position:"Query" name:"StickySession"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId string `position:"Query" name:"OwnerId"` + URI string `position:"Query" name:"URI"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Domain string `position:"Query" name:"Domain"` + Interval requests.Integer `position:"Query" name:"Interval"` } // SetLoadBalancerHTTPListenerAttributeResponse is the response struct for api SetLoadBalancerHTTPListenerAttribute @@ -127,7 +102,7 @@ func CreateSetLoadBalancerHTTPListenerAttributeRequest() (request *SetLoadBalanc request = &SetLoadBalancerHTTPListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "SetLoadBalancerHTTPListenerAttribute", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/set_load_balancer_https_listener_attribute.go b/services/slb/set_load_balancer_https_listener_attribute.go deleted file mode 100644 index 956f595c20..0000000000 --- a/services/slb/set_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,161 +0,0 @@ -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 -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 -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 -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 - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate *[]SetLoadBalancerHTTPSListenerAttributeServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` - AclStatus string `position:"Query" name:"AclStatus"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - XForwardedForClientCertClientVerify string `position:"Query" name:"XForwardedFor_ClientCertClientVerify"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CACertificateId string `position:"Query" name:"CACertificateId"` - BackendProtocol string `position:"Query" name:"BackendProtocol"` - Tags string `position:"Query" name:"Tags"` - XForwardedForClientCertFingerprintAlias string `position:"Query" name:"XForwardedFor_ClientCertFingerprintAlias"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForClientCertClientVerifyAlias string `position:"Query" name:"XForwardedFor_ClientCertClientVerifyAlias"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - XForwardedForClientCertFingerprint string `position:"Query" name:"XForwardedFor_ClientCertFingerprint"` - AccessKeyId string `position:"Query" name:"access_key_id"` - XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - XForwardedForClientCertIssuerDNAlias string `position:"Query" name:"XForwardedFor_ClientCertIssuerDNAlias"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - EnableHttp2 string `position:"Query" name:"EnableHttp2"` - XForwardedForClientCertSubjectDN string `position:"Query" name:"XForwardedFor_ClientCertSubjectDN"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForClientCertSubjectDNAlias string `position:"Query" name:"XForwardedFor_ClientCertSubjectDNAlias"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` - XForwardedForClientCertIssuerDN string `position:"Query" name:"XForwardedFor_ClientCertIssuerDN"` -} - -// SetLoadBalancerHTTPSListenerAttributeServerCertificate is a repeated param struct in SetLoadBalancerHTTPSListenerAttributeRequest -type SetLoadBalancerHTTPSListenerAttributeServerCertificate struct { - BindingType string `name:"BindingType"` - CertificateId string `name:"CertificateId"` - StandardType string `name:"StandardType"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetLoadBalancerHTTPSListenerAttributeResponse creates a response to parse from SetLoadBalancerHTTPSListenerAttribute response -func CreateSetLoadBalancerHTTPSListenerAttributeResponse() (response *SetLoadBalancerHTTPSListenerAttributeResponse) { - response = &SetLoadBalancerHTTPSListenerAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_load_balancer_listener_status.go b/services/slb/set_load_balancer_listener_status.go new file mode 100644 index 0000000000..7f5d9c8760 --- /dev/null +++ b/services/slb/set_load_balancer_listener_status.go @@ -0,0 +1,104 @@ +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" +) + +// SetLoadBalancerListenerStatus invokes the slb.SetLoadBalancerListenerStatus API synchronously +func (client *Client) SetLoadBalancerListenerStatus(request *SetLoadBalancerListenerStatusRequest) (response *SetLoadBalancerListenerStatusResponse, err error) { + response = CreateSetLoadBalancerListenerStatusResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerListenerStatusWithChan invokes the slb.SetLoadBalancerListenerStatus API asynchronously +func (client *Client) SetLoadBalancerListenerStatusWithChan(request *SetLoadBalancerListenerStatusRequest) (<-chan *SetLoadBalancerListenerStatusResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerListenerStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerListenerStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerListenerStatusWithCallback invokes the slb.SetLoadBalancerListenerStatus API asynchronously +func (client *Client) SetLoadBalancerListenerStatusWithCallback(request *SetLoadBalancerListenerStatusRequest, callback func(response *SetLoadBalancerListenerStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerListenerStatusResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerListenerStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerListenerStatusRequest is the request struct for api SetLoadBalancerListenerStatus +type SetLoadBalancerListenerStatusRequest struct { + *requests.RpcRequest + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + HostId string `position:"Query" name:"HostId"` + OwnerId string `position:"Query" name:"OwnerId"` + ListenerStatus string `position:"Query" name:"ListenerStatus"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// SetLoadBalancerListenerStatusResponse is the response struct for api SetLoadBalancerListenerStatus +type SetLoadBalancerListenerStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerListenerStatusRequest creates a request to invoke SetLoadBalancerListenerStatus API +func CreateSetLoadBalancerListenerStatusRequest() (request *SetLoadBalancerListenerStatusRequest) { + request = &SetLoadBalancerListenerStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2013-02-21", "SetLoadBalancerListenerStatus", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetLoadBalancerListenerStatusResponse creates a response to parse from SetLoadBalancerListenerStatus response +func CreateSetLoadBalancerListenerStatusResponse() (response *SetLoadBalancerListenerStatusResponse) { + response = &SetLoadBalancerListenerStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/slb/set_load_balancer_modification_protection.go b/services/slb/set_load_balancer_modification_protection.go deleted file mode 100644 index 98d2330631..0000000000 --- a/services/slb/set_load_balancer_modification_protection.go +++ /dev/null @@ -1,105 +0,0 @@ -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" -) - -// SetLoadBalancerModificationProtection invokes the slb.SetLoadBalancerModificationProtection API synchronously -func (client *Client) SetLoadBalancerModificationProtection(request *SetLoadBalancerModificationProtectionRequest) (response *SetLoadBalancerModificationProtectionResponse, err error) { - response = CreateSetLoadBalancerModificationProtectionResponse() - err = client.DoAction(request, response) - return -} - -// SetLoadBalancerModificationProtectionWithChan invokes the slb.SetLoadBalancerModificationProtection API asynchronously -func (client *Client) SetLoadBalancerModificationProtectionWithChan(request *SetLoadBalancerModificationProtectionRequest) (<-chan *SetLoadBalancerModificationProtectionResponse, <-chan error) { - responseChan := make(chan *SetLoadBalancerModificationProtectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetLoadBalancerModificationProtection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetLoadBalancerModificationProtectionWithCallback invokes the slb.SetLoadBalancerModificationProtection API asynchronously -func (client *Client) SetLoadBalancerModificationProtectionWithCallback(request *SetLoadBalancerModificationProtectionRequest, callback func(response *SetLoadBalancerModificationProtectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetLoadBalancerModificationProtectionResponse - var err error - defer close(result) - response, err = client.SetLoadBalancerModificationProtection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetLoadBalancerModificationProtectionRequest is the request struct for api SetLoadBalancerModificationProtection -type SetLoadBalancerModificationProtectionRequest struct { - *requests.RpcRequest - ModificationProtectionReason string `position:"Query" name:"ModificationProtectionReason"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ModificationProtectionStatus string `position:"Query" name:"ModificationProtectionStatus"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// SetLoadBalancerModificationProtectionResponse is the response struct for api SetLoadBalancerModificationProtection -type SetLoadBalancerModificationProtectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetLoadBalancerModificationProtectionRequest creates a request to invoke SetLoadBalancerModificationProtection API -func CreateSetLoadBalancerModificationProtectionRequest() (request *SetLoadBalancerModificationProtectionRequest) { - request = &SetLoadBalancerModificationProtectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerModificationProtection", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetLoadBalancerModificationProtectionResponse creates a response to parse from SetLoadBalancerModificationProtection response -func CreateSetLoadBalancerModificationProtectionResponse() (response *SetLoadBalancerModificationProtectionResponse) { - response = &SetLoadBalancerModificationProtectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_load_balancer_name.go b/services/slb/set_load_balancer_name.go index efdaa9ec22..d718d53023 100644 --- a/services/slb/set_load_balancer_name.go +++ b/services/slb/set_load_balancer_name.go @@ -92,7 +92,7 @@ func CreateSetLoadBalancerNameRequest() (request *SetLoadBalancerNameRequest) { request = &SetLoadBalancerNameRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerName", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "SetLoadBalancerName", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/set_load_balancer_status.go b/services/slb/set_load_balancer_status.go index b62971d1da..ee60d801e6 100644 --- a/services/slb/set_load_balancer_status.go +++ b/services/slb/set_load_balancer_status.go @@ -92,7 +92,7 @@ func CreateSetLoadBalancerStatusRequest() (request *SetLoadBalancerStatusRequest request = &SetLoadBalancerStatusRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerStatus", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "SetLoadBalancerStatus", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/set_load_balancer_tcp_listener_attribute.go b/services/slb/set_load_balancer_tcp_listener_attribute.go index 557411ec7b..0ef606d9bf 100644 --- a/services/slb/set_load_balancer_tcp_listener_attribute.go +++ b/services/slb/set_load_balancer_tcp_listener_attribute.go @@ -71,57 +71,19 @@ func (client *Client) SetLoadBalancerTCPListenerAttributeWithCallback(request *S // SetLoadBalancerTCPListenerAttributeRequest is the request struct for api SetLoadBalancerTCPListenerAttribute type SetLoadBalancerTCPListenerAttributeRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - AclStatus string `position:"Query" name:"AclStatus"` - FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` - HealthCheckTcpFastCloseEnabled requests.Boolean `position:"Query" name:"HealthCheckTcpFastCloseEnabled"` - AclType string `position:"Query" name:"AclType"` - MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` - EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` - FailoverStrategy string `position:"Query" name:"FailoverStrategy"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - PortRange *[]SetLoadBalancerTCPListenerAttributePortRange `position:"Query" name:"PortRange" type:"Repeated"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - SynProxy string `position:"Query" name:"SynProxy"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` - ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` - ConnectionDrain string `position:"Query" name:"ConnectionDrain"` - HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` -} - -// SetLoadBalancerTCPListenerAttributePortRange is a repeated param struct in SetLoadBalancerTCPListenerAttributeRequest -type SetLoadBalancerTCPListenerAttributePortRange struct { - StartPort string `name:"StartPort"` - EndPort string `name:"EndPort"` + HostId string `position:"Query" name:"HostId"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + HealthCheck string `position:"Query" name:"HealthCheck"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + ConnectTimeout requests.Integer `position:"Query" name:"ConnectTimeout"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + ConnectPort requests.Integer `position:"Query" name:"ConnectPort"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId string `position:"Query" name:"OwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Interval requests.Integer `position:"Query" name:"Interval"` } // SetLoadBalancerTCPListenerAttributeResponse is the response struct for api SetLoadBalancerTCPListenerAttribute @@ -135,7 +97,7 @@ func CreateSetLoadBalancerTCPListenerAttributeRequest() (request *SetLoadBalance request = &SetLoadBalancerTCPListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerTCPListenerAttribute", "slb", "openAPI") + request.InitWithApiInfo("Slb", "2013-02-21", "SetLoadBalancerTCPListenerAttribute", "slb", "openAPI") request.Method = requests.POST return } diff --git a/services/slb/set_load_balancer_udp_listener_attribute.go b/services/slb/set_load_balancer_udp_listener_attribute.go deleted file mode 100644 index 6b8abf5faf..0000000000 --- a/services/slb/set_load_balancer_udp_listener_attribute.go +++ /dev/null @@ -1,149 +0,0 @@ -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 -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 -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 -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 - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - AclStatus string `position:"Query" name:"AclStatus"` - FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` - AclType string `position:"Query" name:"AclType"` - MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` - FailoverStrategy string `position:"Query" name:"FailoverStrategy"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - PortRange *[]SetLoadBalancerUDPListenerAttributePortRange `position:"Query" name:"PortRange" type:"Repeated"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckReq string `position:"Query" name:"healthCheckReq"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - HealthCheckExp string `position:"Query" name:"healthCheckExp"` - FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` - ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` - ConnectionDrain string `position:"Query" name:"ConnectionDrain"` - HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` - QuicVersion string `position:"Query" name:"QuicVersion"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` -} - -// SetLoadBalancerUDPListenerAttributePortRange is a repeated param struct in SetLoadBalancerUDPListenerAttributeRequest -type SetLoadBalancerUDPListenerAttributePortRange struct { - StartPort string `name:"StartPort"` - EndPort string `name:"EndPort"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetLoadBalancerUDPListenerAttributeResponse creates a response to parse from SetLoadBalancerUDPListenerAttribute response -func CreateSetLoadBalancerUDPListenerAttributeResponse() (response *SetLoadBalancerUDPListenerAttributeResponse) { - response = &SetLoadBalancerUDPListenerAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_rule.go b/services/slb/set_rule.go deleted file mode 100644 index 7d40427ac4..0000000000 --- a/services/slb/set_rule.go +++ /dev/null @@ -1,122 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - RuleName string `position:"Query" name:"RuleName"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - Scheduler string `position:"Query" name:"Scheduler"` - HealthCheck string `position:"Query" name:"HealthCheck"` - ListenerSync string `position:"Query" name:"ListenerSync"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - Cookie string `position:"Query" name:"Cookie"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - StickySession string `position:"Query" name:"StickySession"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - RuleId string `position:"Query" name:"RuleId"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetRuleResponse creates a response to parse from SetRule response -func CreateSetRuleResponse() (response *SetRuleResponse) { - response = &SetRuleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_server_certificate_name.go b/services/slb/set_server_certificate_name.go deleted file mode 100644 index bba88476d6..0000000000 --- a/services/slb/set_server_certificate_name.go +++ /dev/null @@ -1,106 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - 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"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` - ServerCertificateName string `position:"Query" name:"ServerCertificateName"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateSetServerCertificateNameResponse creates a response to parse from SetServerCertificateName response -func CreateSetServerCertificateNameResponse() (response *SetServerCertificateNameResponse) { - response = &SetServerCertificateNameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_tls_cipher_policy_attribute.go b/services/slb/set_tls_cipher_policy_attribute.go deleted file mode 100644 index 2bfb95f7a7..0000000000 --- a/services/slb/set_tls_cipher_policy_attribute.go +++ /dev/null @@ -1,108 +0,0 @@ -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" -) - -// SetTLSCipherPolicyAttribute invokes the slb.SetTLSCipherPolicyAttribute API synchronously -func (client *Client) SetTLSCipherPolicyAttribute(request *SetTLSCipherPolicyAttributeRequest) (response *SetTLSCipherPolicyAttributeResponse, err error) { - response = CreateSetTLSCipherPolicyAttributeResponse() - err = client.DoAction(request, response) - return -} - -// SetTLSCipherPolicyAttributeWithChan invokes the slb.SetTLSCipherPolicyAttribute API asynchronously -func (client *Client) SetTLSCipherPolicyAttributeWithChan(request *SetTLSCipherPolicyAttributeRequest) (<-chan *SetTLSCipherPolicyAttributeResponse, <-chan error) { - responseChan := make(chan *SetTLSCipherPolicyAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetTLSCipherPolicyAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetTLSCipherPolicyAttributeWithCallback invokes the slb.SetTLSCipherPolicyAttribute API asynchronously -func (client *Client) SetTLSCipherPolicyAttributeWithCallback(request *SetTLSCipherPolicyAttributeRequest, callback func(response *SetTLSCipherPolicyAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetTLSCipherPolicyAttributeResponse - var err error - defer close(result) - response, err = client.SetTLSCipherPolicyAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetTLSCipherPolicyAttributeRequest is the request struct for api SetTLSCipherPolicyAttribute -type SetTLSCipherPolicyAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` - Ciphers *[]string `position:"Query" name:"Ciphers" type:"Repeated"` - TLSVersions *[]string `position:"Query" name:"TLSVersions" type:"Repeated"` - 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"` -} - -// SetTLSCipherPolicyAttributeResponse is the response struct for api SetTLSCipherPolicyAttribute -type SetTLSCipherPolicyAttributeResponse struct { - *responses.BaseResponse - TaskId string `json:"TaskId" xml:"TaskId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetTLSCipherPolicyAttributeRequest creates a request to invoke SetTLSCipherPolicyAttribute API -func CreateSetTLSCipherPolicyAttributeRequest() (request *SetTLSCipherPolicyAttributeRequest) { - request = &SetTLSCipherPolicyAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "SetTLSCipherPolicyAttribute", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetTLSCipherPolicyAttributeResponse creates a response to parse from SetTLSCipherPolicyAttribute response -func CreateSetTLSCipherPolicyAttributeResponse() (response *SetTLSCipherPolicyAttributeResponse) { - response = &SetTLSCipherPolicyAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/set_v_server_group_attribute.go b/services/slb/set_v_server_group_attribute.go deleted file mode 100644 index 315fbad92b..0000000000 --- a/services/slb/set_v_server_group_attribute.go +++ /dev/null @@ -1,110 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - VServerGroupName string `position:"Query" name:"VServerGroupName"` -} - -// SetVServerGroupAttributeResponse is the response struct for api SetVServerGroupAttribute -type SetVServerGroupAttributeResponse struct { - *responses.BaseResponse - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` - RequestId string `json:"RequestId" xml:"RequestId"` - 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") - request.Method = requests.POST - return -} - -// CreateSetVServerGroupAttributeResponse creates a response to parse from SetVServerGroupAttribute response -func CreateSetVServerGroupAttributeResponse() (response *SetVServerGroupAttributeResponse) { - response = &SetVServerGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/start_load_balancer_listener.go b/services/slb/start_load_balancer_listener.go deleted file mode 100644 index a7e9ea8cdd..0000000000 --- a/services/slb/start_load_balancer_listener.go +++ /dev/null @@ -1,107 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateStartLoadBalancerListenerResponse creates a response to parse from StartLoadBalancerListener response -func CreateStartLoadBalancerListenerResponse() (response *StartLoadBalancerListenerResponse) { - response = &StartLoadBalancerListenerResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/stop_load_balancer_listener.go b/services/slb/stop_load_balancer_listener.go deleted file mode 100644 index ad148f2bc9..0000000000 --- a/services/slb/stop_load_balancer_listener.go +++ /dev/null @@ -1,107 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ListenerProtocol string `position:"Query" name:"ListenerProtocol"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateStopLoadBalancerListenerResponse creates a response to parse from StopLoadBalancerListener response -func CreateStopLoadBalancerListenerResponse() (response *StopLoadBalancerListenerResponse) { - response = &StopLoadBalancerListenerResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/struct_acl.go b/services/slb/struct_acl.go deleted file mode 100644 index 9cf6d759e6..0000000000 --- a/services/slb/struct_acl.go +++ /dev/null @@ -1,27 +0,0 @@ -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. - -// Acl is a nested struct in slb response -type Acl struct { - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - AclId string `json:"AclId" xml:"AclId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - AclName string `json:"AclName" xml:"AclName"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - Tags TagsInDescribeAccessControlLists `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_acl_entry.go b/services/slb/struct_acl_entry.go deleted file mode 100644 index ad813746d8..0000000000 --- a/services/slb/struct_acl_entry.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// AclEntry is a nested struct in slb response -type AclEntry struct { - AclEntryComment string `json:"AclEntryComment" xml:"AclEntryComment"` - AclEntryIP string `json:"AclEntryIP" xml:"AclEntryIP"` -} diff --git a/services/slb/struct_acl_entrys.go b/services/slb/struct_acl_entrys.go deleted file mode 100644 index c47d2a016a..0000000000 --- a/services/slb/struct_acl_entrys.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclEntrys is a nested struct in slb response -type AclEntrys struct { - AclEntry []AclEntry `json:"AclEntry" xml:"AclEntry"` -} diff --git a/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go b/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go deleted file mode 100644 index 68c8dde8e9..0000000000 --- a/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclIdsInDescribeLoadBalancerHTTPListenerAttribute is a nested struct in slb response -type AclIdsInDescribeLoadBalancerHTTPListenerAttribute struct { - AclId []string `json:"AclId" xml:"AclId"` -} diff --git a/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index d7ead0dfdd..0000000000 --- a/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclIdsInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type AclIdsInDescribeLoadBalancerHTTPSListenerAttribute struct { - AclId []string `json:"AclId" xml:"AclId"` -} diff --git a/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go b/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go deleted file mode 100644 index a3bfa3e774..0000000000 --- a/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclIdsInDescribeLoadBalancerListeners is a nested struct in slb response -type AclIdsInDescribeLoadBalancerListeners struct { - AclId []string `json:"AclId" xml:"AclId"` -} diff --git a/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go b/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go deleted file mode 100644 index d669abdd35..0000000000 --- a/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclIdsInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response -type AclIdsInDescribeLoadBalancerTCPListenerAttribute struct { - AclId []string `json:"AclId" xml:"AclId"` -} diff --git a/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go b/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go deleted file mode 100644 index aa077f93e0..0000000000 --- a/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AclIdsInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response -type AclIdsInDescribeLoadBalancerUDPListenerAttribute struct { - AclId []string `json:"AclId" xml:"AclId"` -} diff --git a/services/slb/struct_acls.go b/services/slb/struct_acls.go deleted file mode 100644 index 99f6763a90..0000000000 --- a/services/slb/struct_acls.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// Acls is a nested struct in slb response -type Acls struct { - Acl []Acl `json:"Acl" xml:"Acl"` -} diff --git a/services/slb/struct_associated_objects.go b/services/slb/struct_associated_objects.go deleted file mode 100644 index 5ce53b17c8..0000000000 --- a/services/slb/struct_associated_objects.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// AssociatedObjects is a nested struct in slb response -type AssociatedObjects struct { - Listeners ListenersInDescribeMasterSlaveServerGroups `json:"Listeners" xml:"Listeners"` - Rules RulesInDescribeVServerGroups `json:"Rules" xml:"Rules"` -} diff --git a/services/slb/struct_available_resource.go b/services/slb/struct_available_resource.go deleted file mode 100644 index cb022af824..0000000000 --- a/services/slb/struct_available_resource.go +++ /dev/null @@ -1,23 +0,0 @@ -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. - -// AvailableResource is a nested struct in slb response -type AvailableResource struct { - SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` - SupportResources SupportResources `json:"SupportResources" xml:"SupportResources"` -} diff --git a/services/slb/struct_available_resources.go b/services/slb/struct_available_resources.go deleted file mode 100644 index 039fff990d..0000000000 --- a/services/slb/struct_available_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// AvailableResources is a nested struct in slb response -type AvailableResources struct { - AvailableResource []AvailableResource `json:"AvailableResource" xml:"AvailableResource"` -} diff --git a/services/slb/struct_backend_server.go b/services/slb/struct_backend_server.go index 7997caf883..d6e4c9f4ef 100644 --- a/services/slb/struct_backend_server.go +++ b/services/slb/struct_backend_server.go @@ -17,15 +17,7 @@ package slb // BackendServer is a nested struct in slb response type BackendServer struct { - Port int `json:"Port" xml:"Port"` - Protocol string `json:"Protocol" xml:"Protocol"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` ServerHealthStatus string `json:"ServerHealthStatus" xml:"ServerHealthStatus"` ServerId string `json:"ServerId" xml:"ServerId"` - VpcId string `json:"VpcId" xml:"VpcId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` Weight string `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - EniHost string `json:"EniHost" xml:"EniHost"` - Type string `json:"Type" xml:"Type"` } diff --git a/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go b/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go deleted file mode 100644 index 10375fdb55..0000000000 --- a/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go +++ /dev/null @@ -1,29 +0,0 @@ -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. - -// BackendServerInAddVServerGroupBackendServers is a nested struct in slb response -type BackendServerInAddVServerGroupBackendServers struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_server_in_create_v_server_group.go b/services/slb/struct_backend_server_in_create_v_server_group.go deleted file mode 100644 index 55a95c63a9..0000000000 --- a/services/slb/struct_backend_server_in_create_v_server_group.go +++ /dev/null @@ -1,29 +0,0 @@ -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. - -// BackendServerInCreateVServerGroup is a nested struct in slb response -type BackendServerInCreateVServerGroup struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go b/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go index a0deba7408..474c7f08d2 100644 --- a/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go +++ b/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go @@ -17,10 +17,6 @@ package slb // BackendServerInDescribeLoadBalancerAttribute is a nested struct in slb response type BackendServerInDescribeLoadBalancerAttribute struct { - Type string `json:"Type" xml:"Type"` - VpcId string `json:"VpcId" xml:"VpcId"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - ServerId string `json:"ServerId" xml:"ServerId"` + Weight int `json:"Weight" xml:"Weight"` + ServerId string `json:"ServerId" xml:"ServerId"` } diff --git a/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go b/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go deleted file mode 100644 index ffa69e5a91..0000000000 --- a/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go +++ /dev/null @@ -1,30 +0,0 @@ -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. - -// BackendServerInDescribeVServerGroupAttribute is a nested struct in slb response -type BackendServerInDescribeVServerGroupAttribute struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go b/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go deleted file mode 100644 index 355b851f53..0000000000 --- a/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go +++ /dev/null @@ -1,29 +0,0 @@ -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. - -// BackendServerInModifyVServerGroupBackendServers is a nested struct in slb response -type BackendServerInModifyVServerGroupBackendServers struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_server_in_remove_backend_servers.go b/services/slb/struct_backend_server_in_remove_backend_servers.go index 44006a2fbf..4bedff0c63 100644 --- a/services/slb/struct_backend_server_in_remove_backend_servers.go +++ b/services/slb/struct_backend_server_in_remove_backend_servers.go @@ -17,10 +17,6 @@ package slb // BackendServerInRemoveBackendServers is a nested struct in slb response type BackendServerInRemoveBackendServers struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - ServerId string `json:"ServerId" xml:"ServerId"` + Weight int `json:"Weight" xml:"Weight"` + ServerId string `json:"ServerId" xml:"ServerId"` } diff --git a/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go b/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go deleted file mode 100644 index a0fac44ed4..0000000000 --- a/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go +++ /dev/null @@ -1,29 +0,0 @@ -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. - -// BackendServerInRemoveVServerGroupBackendServers is a nested struct in slb response -type BackendServerInRemoveVServerGroupBackendServers struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_server_in_set_v_server_group_attribute.go b/services/slb/struct_backend_server_in_set_v_server_group_attribute.go deleted file mode 100644 index df259c50eb..0000000000 --- a/services/slb/struct_backend_server_in_set_v_server_group_attribute.go +++ /dev/null @@ -1,29 +0,0 @@ -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. - -// BackendServerInSetVServerGroupAttribute is a nested struct in slb response -type BackendServerInSetVServerGroupAttribute struct { - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - Port int `json:"Port" xml:"Port"` - VbrId string `json:"VbrId" xml:"VbrId"` - ServerId string `json:"ServerId" xml:"ServerId"` -} diff --git a/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go b/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go deleted file mode 100644 index 3ab076bb11..0000000000 --- a/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInAddVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_create_v_server_group.go b/services/slb/struct_backend_servers_in_create_v_server_group.go deleted file mode 100644 index 7886fd66c3..0000000000 --- a/services/slb/struct_backend_servers_in_create_v_server_group.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInCreateVServerGroup `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_describe_health_status.go b/services/slb/struct_backend_servers_in_describe_backend_servers.go similarity index 85% rename from services/slb/struct_backend_servers_in_describe_health_status.go rename to services/slb/struct_backend_servers_in_describe_backend_servers.go index 63f094f8c2..32263d5442 100644 --- a/services/slb/struct_backend_servers_in_describe_health_status.go +++ b/services/slb/struct_backend_servers_in_describe_backend_servers.go @@ -15,7 +15,7 @@ package slb // 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 { +// BackendServersInDescribeBackendServers is a nested struct in slb response +type BackendServersInDescribeBackendServers struct { BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` } diff --git a/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go b/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go deleted file mode 100644 index 4f7b58748b..0000000000 --- a/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInDescribeVServerGroupAttribute `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go b/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go deleted file mode 100644 index 223e96fd10..0000000000 --- a/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInModifyVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go b/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go deleted file mode 100644 index 0797e4c1d8..0000000000 --- a/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInRemoveVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_set_backend_servers.go b/services/slb/struct_backend_servers_in_set_backend_servers.go deleted file mode 100644 index 07055554f5..0000000000 --- a/services/slb/struct_backend_servers_in_set_backend_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServer `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go b/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go deleted file mode 100644 index c78bb27190..0000000000 --- a/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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 []BackendServerInSetVServerGroupAttribute `json:"BackendServer" xml:"BackendServer"` -} diff --git a/services/slb/struct_ca_certificate.go b/services/slb/struct_ca_certificate.go deleted file mode 100644 index a58ae454d9..0000000000 --- a/services/slb/struct_ca_certificate.go +++ /dev/null @@ -1,34 +0,0 @@ -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 { - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - StandardType string `json:"StandardType" xml:"StandardType"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - EncryptionKeyLength int `json:"EncryptionKeyLength" xml:"EncryptionKeyLength"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - RegionId string `json:"RegionId" xml:"RegionId"` - EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` - Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CommonName string `json:"CommonName" xml:"CommonName"` - CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` - Tags TagsInDescribeCACertificates `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_ca_certificates.go b/services/slb/struct_ca_certificates.go deleted file mode 100644 index 3ef188e6b6..0000000000 --- a/services/slb/struct_ca_certificates.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_certificate.go b/services/slb/struct_certificate.go deleted file mode 100644 index 0e62cb049b..0000000000 --- a/services/slb/struct_certificate.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// Certificate is a nested struct in slb response -type Certificate struct { - EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` - CertificateId string `json:"CertificateId" xml:"CertificateId"` -} diff --git a/services/slb/struct_certificates_in_describe_domain_extension_attribute.go b/services/slb/struct_certificates_in_describe_domain_extension_attribute.go deleted file mode 100644 index 9fbefde578..0000000000 --- a/services/slb/struct_certificates_in_describe_domain_extension_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// CertificatesInDescribeDomainExtensionAttribute is a nested struct in slb response -type CertificatesInDescribeDomainExtensionAttribute struct { - Certificate []Certificate `json:"Certificate" xml:"Certificate"` -} diff --git a/services/slb/struct_certificates_in_describe_domain_extensions.go b/services/slb/struct_certificates_in_describe_domain_extensions.go deleted file mode 100644 index 71ab016824..0000000000 --- a/services/slb/struct_certificates_in_describe_domain_extensions.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// CertificatesInDescribeDomainExtensions is a nested struct in slb response -type CertificatesInDescribeDomainExtensions struct { - Certificate []Certificate `json:"Certificate" xml:"Certificate"` -} diff --git a/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index 3348deda5a..0000000000 --- a/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// CertificatesInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type CertificatesInDescribeLoadBalancerHTTPSListenerAttribute struct { - Certificate []Certificate `json:"Certificate" xml:"Certificate"` -} diff --git a/services/slb/struct_ciphers.go b/services/slb/struct_ciphers.go deleted file mode 100644 index 5b961cc2bd..0000000000 --- a/services/slb/struct_ciphers.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// Ciphers is a nested struct in slb response -type Ciphers struct { - Cipher []string `json:"Cipher" xml:"Cipher"` -} diff --git a/services/slb/struct_domain_extension.go b/services/slb/struct_domain_extension.go deleted file mode 100644 index a30ecd6034..0000000000 --- a/services/slb/struct_domain_extension.go +++ /dev/null @@ -1,25 +0,0 @@ -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. - -// DomainExtension is a nested struct in slb response -type DomainExtension struct { - Domain string `json:"Domain" xml:"Domain"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` - Certificates CertificatesInDescribeDomainExtensions `json:"Certificates" xml:"Certificates"` - ServerCertificates ServerCertificatesInDescribeDomainExtensions `json:"ServerCertificates" xml:"ServerCertificates"` -} diff --git a/services/slb/struct_domain_extensions_in_describe_domain_extensions.go b/services/slb/struct_domain_extensions_in_describe_domain_extensions.go deleted file mode 100644 index b2069ebf3b..0000000000 --- a/services/slb/struct_domain_extensions_in_describe_domain_extensions.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// DomainExtensionsInDescribeDomainExtensions is a nested struct in slb response -type DomainExtensionsInDescribeDomainExtensions struct { - DomainExtension []DomainExtension `json:"DomainExtension" xml:"DomainExtension"` -} diff --git a/services/slb/struct_domain_extensions_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_domain_extensions_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index 5b64f1fde8..0000000000 --- a/services/slb/struct_domain_extensions_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// DomainExtensionsInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type DomainExtensionsInDescribeLoadBalancerHTTPSListenerAttribute struct { - DomainExtension []DomainExtension `json:"DomainExtension" xml:"DomainExtension"` -} diff --git a/services/slb/struct_http_listener_config.go b/services/slb/struct_http_listener_config.go deleted file mode 100644 index 021d2c1e0e..0000000000 --- a/services/slb/struct_http_listener_config.go +++ /dev/null @@ -1,48 +0,0 @@ -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. - -// HTTPListenerConfig is a nested struct in slb response -type HTTPListenerConfig struct { - HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` - XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` - Cookie string `json:"Cookie" xml:"Cookie"` - Gzip string `json:"Gzip" xml:"Gzip"` - ForwardCode int `json:"ForwardCode" xml:"ForwardCode"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` -} diff --git a/services/slb/struct_https_listener_config.go b/services/slb/struct_https_listener_config.go deleted file mode 100644 index 55ca6b587f..0000000000 --- a/services/slb/struct_https_listener_config.go +++ /dev/null @@ -1,57 +0,0 @@ -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. - -// HTTPSListenerConfig is a nested struct in slb response -type HTTPSListenerConfig struct { - XForwardedForClientCertClientVerify string `json:"XForwardedFor_ClientCertClientVerify" xml:"XForwardedFor_ClientCertClientVerify"` - HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` - XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` - Cookie string `json:"Cookie" xml:"Cookie"` - Gzip string `json:"Gzip" xml:"Gzip"` - EnableHttp2 string `json:"EnableHttp2" xml:"EnableHttp2"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - XForwardedForClientCertClientVerifyAlias string `json:"XForwardedFor_ClientCertClientVerifyAlias" xml:"XForwardedFor_ClientCertClientVerifyAlias"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - XForwardedForClientCertSubjectDN string `json:"XForwardedFor_ClientCertSubjectDN" xml:"XForwardedFor_ClientCertSubjectDN"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - XForwardedForClientCertFingerprintAlias string `json:"XForwardedFor_ClientCertFingerprintAlias" xml:"XForwardedFor_ClientCertFingerprintAlias"` - XForwardedForClientCertSubjectDNAlias string `json:"XForwardedFor_ClientCertSubjectDNAlias" xml:"XForwardedFor_ClientCertSubjectDNAlias"` - XForwardedForClientCertIssuerDNAlias string `json:"XForwardedFor_ClientCertIssuerDNAlias" xml:"XForwardedFor_ClientCertIssuerDNAlias"` - XForwardedForClientCertFingerprint string `json:"XForwardedFor_ClientCertFingerprint" xml:"XForwardedFor_ClientCertFingerprint"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - XForwardedForClientCertIssuerDN string `json:"XForwardedFor_ClientCertIssuerDN" xml:"XForwardedFor_ClientCertIssuerDN"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` -} diff --git a/services/slb/struct_ineffective_order_list.go b/services/slb/struct_ineffective_order_list.go deleted file mode 100644 index 13dcd7c56c..0000000000 --- a/services/slb/struct_ineffective_order_list.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// IneffectiveOrderList is a nested struct in slb response -type IneffectiveOrderList struct { - IneffectiveOrder []string `json:"IneffectiveOrder" xml:"IneffectiveOrder"` -} diff --git a/services/slb/struct_labels.go b/services/slb/struct_labels.go deleted file mode 100644 index 91ea271d67..0000000000 --- a/services/slb/struct_labels.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// Labels is a nested struct in slb response -type Labels struct { - Label []string `json:"Label" xml:"Label"` -} diff --git a/services/slb/struct_listener.go b/services/slb/struct_listener.go index c87969e851..3a1db66f20 100644 --- a/services/slb/struct_listener.go +++ b/services/slb/struct_listener.go @@ -17,26 +17,6 @@ package slb // Listener is a nested struct in slb response type Listener struct { - AclType string `json:"AclType" xml:"AclType"` - Port int `json:"Port" xml:"Port"` - Protocol string `json:"Protocol" xml:"Protocol"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - AclId string `json:"AclId" xml:"AclId"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Status string `json:"Status" xml:"Status"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - Description string `json:"Description" xml:"Description"` - AclIds AclIdsInDescribeLoadBalancerListeners `json:"AclIds" xml:"AclIds"` - HTTPListenerConfig HTTPListenerConfig `json:"HTTPListenerConfig" xml:"HTTPListenerConfig"` - TCPListenerConfig TCPListenerConfig `json:"TCPListenerConfig" xml:"TCPListenerConfig"` - HTTPSListenerConfig HTTPSListenerConfig `json:"HTTPSListenerConfig" xml:"HTTPSListenerConfig"` - TCPSListenerConfig TCPSListenerConfig `json:"TCPSListenerConfig" xml:"TCPSListenerConfig"` - UDPListenerConfig UDPListenerConfig `json:"UDPListenerConfig" xml:"UDPListenerConfig"` - Tags []Tag `json:"Tags" xml:"Tags"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + BackendServers BackendServersInDescribeBackendServers `json:"BackendServers" xml:"BackendServers"` } diff --git a/services/slb/struct_listener_in_describe_load_balancer_listeners.go b/services/slb/struct_listener_in_describe_load_balancer_listeners.go deleted file mode 100644 index 2d53668159..0000000000 --- a/services/slb/struct_listener_in_describe_load_balancer_listeners.go +++ /dev/null @@ -1,40 +0,0 @@ -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. - -// ListenerInDescribeLoadBalancerListeners is a nested struct in slb response -type ListenerInDescribeLoadBalancerListeners struct { - AclType string `json:"AclType" xml:"AclType"` - Status string `json:"Status" xml:"Status"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - AclId string `json:"AclId" xml:"AclId"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Description string `json:"Description" xml:"Description"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - AclIds []string `json:"AclIds" xml:"AclIds"` - HTTPListenerConfig HTTPListenerConfig `json:"HTTPListenerConfig" xml:"HTTPListenerConfig"` - HTTPSListenerConfig HTTPSListenerConfig `json:"HTTPSListenerConfig" xml:"HTTPSListenerConfig"` - TCPListenerConfig TCPListenerConfig `json:"TCPListenerConfig" xml:"TCPListenerConfig"` - TCPSListenerConfig TCPSListenerConfig `json:"TCPSListenerConfig" xml:"TCPSListenerConfig"` - UDPListenerConfig UDPListenerConfig `json:"UDPListenerConfig" xml:"UDPListenerConfig"` - Tags []Tag `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_listener_port_and_protocol.go b/services/slb/struct_listener_port_and_protocol.go index e6ffa17c51..24bff72c89 100644 --- a/services/slb/struct_listener_port_and_protocol.go +++ b/services/slb/struct_listener_port_and_protocol.go @@ -19,7 +19,4 @@ package slb type ListenerPortAndProtocol struct { ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` - ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` - Description string `json:"Description" xml:"Description"` - ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` } diff --git a/services/slb/struct_listener_ports.go b/services/slb/struct_listener_ports.go index f70c490026..17bbb927f7 100644 --- a/services/slb/struct_listener_ports.go +++ b/services/slb/struct_listener_ports.go @@ -17,5 +17,5 @@ package slb // ListenerPorts is a nested struct in slb response type ListenerPorts struct { - ListenerPort []int `json:"ListenerPort" xml:"ListenerPort"` + ListenerPort []string `json:"ListenerPort" xml:"ListenerPort"` } diff --git a/services/slb/struct_listeners_in_describe_v_server_groups.go b/services/slb/struct_listeners.go similarity index 86% rename from services/slb/struct_listeners_in_describe_v_server_groups.go rename to services/slb/struct_listeners.go index f1910b27d3..065efd5769 100644 --- a/services/slb/struct_listeners_in_describe_v_server_groups.go +++ b/services/slb/struct_listeners.go @@ -15,7 +15,7 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ListenersInDescribeVServerGroups is a nested struct in slb response -type ListenersInDescribeVServerGroups struct { +// Listeners is a nested struct in slb response +type Listeners struct { Listener []Listener `json:"Listener" xml:"Listener"` } diff --git a/services/slb/struct_listeners_in_describe_load_balancer_listeners.go b/services/slb/struct_listeners_in_describe_load_balancer_listeners.go deleted file mode 100644 index b76ed9260d..0000000000 --- a/services/slb/struct_listeners_in_describe_load_balancer_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ListenersInDescribeLoadBalancerListeners is a nested struct in slb response -type ListenersInDescribeLoadBalancerListeners struct { - Listener []ListenerInDescribeLoadBalancerListeners `json:"Listener" xml:"Listener"` -} diff --git a/services/slb/struct_listeners_in_describe_master_slave_server_groups.go b/services/slb/struct_listeners_in_describe_master_slave_server_groups.go deleted file mode 100644 index 4a1d5b1d2a..0000000000 --- a/services/slb/struct_listeners_in_describe_master_slave_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ListenersInDescribeMasterSlaveServerGroups is a nested struct in slb response -type ListenersInDescribeMasterSlaveServerGroups struct { - Listener []Listener `json:"Listener" xml:"Listener"` -} diff --git a/services/slb/struct_load_balancer.go b/services/slb/struct_load_balancer.go index 457cf77fbb..816fb2c05a 100644 --- a/services/slb/struct_load_balancer.go +++ b/services/slb/struct_load_balancer.go @@ -17,36 +17,21 @@ package slb // LoadBalancer is a nested struct in slb response type LoadBalancer struct { - VpcId string `json:"VpcId" xml:"VpcId"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - PayType string `json:"PayType" xml:"PayType"` - AddressType string `json:"AddressType" xml:"AddressType"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - SpecBpsFlag bool `json:"SpecBpsFlag" xml:"SpecBpsFlag"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Address string `json:"Address" xml:"Address"` - SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` - InternetChargeTypeAlias string `json:"InternetChargeTypeAlias" xml:"InternetChargeTypeAlias"` - LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` - SpecType string `json:"SpecType" xml:"SpecType"` - RegionId string `json:"RegionId" xml:"RegionId"` - ModificationProtectionReason string `json:"ModificationProtectionReason" xml:"ModificationProtectionReason"` - ModificationProtectionStatus string `json:"ModificationProtectionStatus" xml:"ModificationProtectionStatus"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - DeleteProtection string `json:"DeleteProtection" xml:"DeleteProtection"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - ServiceManagedReason string `json:"ServiceManagedReason" xml:"ServiceManagedReason"` - IneffectiveOrderList IneffectiveOrderList `json:"IneffectiveOrderList" xml:"IneffectiveOrderList"` - Tags TagsInDescribeLoadBalancers `json:"Tags" xml:"Tags"` + VpcId string `json:"VpcId" xml:"VpcId"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + PayType string `json:"PayType" xml:"PayType"` + AddressType string `json:"AddressType" xml:"AddressType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + RegionId string `json:"RegionId" xml:"RegionId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + Address string `json:"Address" xml:"Address"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` } diff --git a/services/slb/struct_logs_download_attribute.go b/services/slb/struct_logs_download_attribute.go deleted file mode 100644 index 9f282913a0..0000000000 --- a/services/slb/struct_logs_download_attribute.go +++ /dev/null @@ -1,26 +0,0 @@ -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. - -// LogsDownloadAttribute is a nested struct in slb response -type LogsDownloadAttribute struct { - LogProject string `json:"LogProject" xml:"LogProject"` - RoleArn string `json:"RoleArn" xml:"RoleArn"` - LogStore string `json:"LogStore" xml:"LogStore"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - Region string `json:"Region" xml:"Region"` - LogType string `json:"LogType" xml:"LogType"` -} diff --git a/services/slb/struct_logs_download_attributes.go b/services/slb/struct_logs_download_attributes.go deleted file mode 100644 index 7aec6210de..0000000000 --- a/services/slb/struct_logs_download_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// LogsDownloadAttributes is a nested struct in slb response -type LogsDownloadAttributes struct { - LogsDownloadAttribute []LogsDownloadAttribute `json:"LogsDownloadAttribute" xml:"LogsDownloadAttribute"` -} diff --git a/services/slb/struct_master_slave_backend_server.go b/services/slb/struct_master_slave_backend_server.go deleted file mode 100644 index 00ab780eee..0000000000 --- a/services/slb/struct_master_slave_backend_server.go +++ /dev/null @@ -1,28 +0,0 @@ -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"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - ServerId string `json:"ServerId" xml:"ServerId"` - VpcId string `json:"VpcId" xml:"VpcId"` - ServerType string `json:"ServerType" xml:"ServerType"` - Weight int `json:"Weight" xml:"Weight"` - Description string `json:"Description" xml:"Description"` - Type string `json:"Type" xml:"Type"` -} diff --git a/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go b/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go deleted file mode 100644 index 3437fb5e8c..0000000000 --- a/services/slb/struct_master_slave_backend_servers_in_create_master_slave_server_group.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go b/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go deleted file mode 100644 index 9d875308ef..0000000000 --- a/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_server_group_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_master_slave_server_group.go b/services/slb/struct_master_slave_server_group.go deleted file mode 100644 index b12bad00a7..0000000000 --- a/services/slb/struct_master_slave_server_group.go +++ /dev/null @@ -1,26 +0,0 @@ -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 { - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` - Tags TagsInDescribeMasterSlaveServerGroups `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_master_slave_server_groups.go b/services/slb/struct_master_slave_server_groups.go deleted file mode 100644 index 5a127bbf75..0000000000 --- a/services/slb/struct_master_slave_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_port_range.go b/services/slb/struct_port_range.go deleted file mode 100644 index 7d1380b04c..0000000000 --- a/services/slb/struct_port_range.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// PortRange is a nested struct in slb response -type PortRange struct { - EndPort int `json:"EndPort" xml:"EndPort"` - StartPort int `json:"StartPort" xml:"StartPort"` -} diff --git a/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go b/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go deleted file mode 100644 index 48501b523a..0000000000 --- a/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// PortRangesInDescribeLoadBalancerListeners is a nested struct in slb response -type PortRangesInDescribeLoadBalancerListeners struct { - PortRange []PortRange `json:"PortRange" xml:"PortRange"` -} diff --git a/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go b/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go deleted file mode 100644 index cc5dd990c1..0000000000 --- a/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// PortRangesInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response -type PortRangesInDescribeLoadBalancerTCPListenerAttribute struct { - PortRange []PortRange `json:"PortRange" xml:"PortRange"` -} diff --git a/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go b/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go deleted file mode 100644 index e08daf2ada..0000000000 --- a/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// PortRangesInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response -type PortRangesInDescribeLoadBalancerUDPListenerAttribute struct { - PortRange []PortRange `json:"PortRange" xml:"PortRange"` -} diff --git a/services/slb/struct_region.go b/services/slb/struct_region.go index 2b21036376..655c2a2429 100644 --- a/services/slb/struct_region.go +++ b/services/slb/struct_region.go @@ -17,7 +17,6 @@ package slb // Region is a nested struct in slb response type Region struct { - RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` - LocalName string `json:"LocalName" xml:"LocalName"` - RegionId string `json:"RegionId" xml:"RegionId"` + LocalName string `json:"LocalName" xml:"LocalName"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/slb/struct_relate_listener.go b/services/slb/struct_relate_listener.go deleted file mode 100644 index 84233f1f14..0000000000 --- a/services/slb/struct_relate_listener.go +++ /dev/null @@ -1,23 +0,0 @@ -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. - -// RelateListener is a nested struct in slb response -type RelateListener struct { - Port int `json:"Port" xml:"Port"` - Protocol string `json:"Protocol" xml:"Protocol"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` -} diff --git a/services/slb/struct_relate_listeners.go b/services/slb/struct_relate_listeners.go deleted file mode 100644 index 3de00f5854..0000000000 --- a/services/slb/struct_relate_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RelateListeners is a nested struct in slb response -type RelateListeners struct { - RelateListener []RelateListener `json:"RelateListener" xml:"RelateListener"` -} diff --git a/services/slb/struct_related_listener.go b/services/slb/struct_related_listener.go deleted file mode 100644 index bc8d709d36..0000000000 --- a/services/slb/struct_related_listener.go +++ /dev/null @@ -1,24 +0,0 @@ -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. - -// RelatedListener is a nested struct in slb response -type RelatedListener struct { - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - AclType string `json:"AclType" xml:"AclType"` - Protocol string `json:"Protocol" xml:"Protocol"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` -} diff --git a/services/slb/struct_related_listeners.go b/services/slb/struct_related_listeners.go deleted file mode 100644 index f665586e02..0000000000 --- a/services/slb/struct_related_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RelatedListeners is a nested struct in slb response -type RelatedListeners struct { - RelatedListener []RelatedListener `json:"RelatedListener" xml:"RelatedListener"` -} diff --git a/services/slb/struct_rule.go b/services/slb/struct_rule.go deleted file mode 100644 index 49b69f2b9d..0000000000 --- a/services/slb/struct_rule.go +++ /dev/null @@ -1,41 +0,0 @@ -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"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - RuleName string `json:"RuleName" xml:"RuleName"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - StickySession string `json:"StickySession" xml:"StickySession"` - ListenerSync string `json:"ListenerSync" xml:"ListenerSync"` - RuleId string `json:"RuleId" xml:"RuleId"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - Url string `json:"Url" xml:"Url"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - Cookie string `json:"Cookie" xml:"Cookie"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` -} diff --git a/services/slb/struct_rules_in_create_rules.go b/services/slb/struct_rules_in_create_rules.go deleted file mode 100644 index c33f1885a7..0000000000 --- a/services/slb/struct_rules_in_create_rules.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_rules_in_describe_load_balancer_http_listener_attribute.go b/services/slb/struct_rules_in_describe_load_balancer_http_listener_attribute.go deleted file mode 100644 index 514535a4f0..0000000000 --- a/services/slb/struct_rules_in_describe_load_balancer_http_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RulesInDescribeLoadBalancerHTTPListenerAttribute is a nested struct in slb response -type RulesInDescribeLoadBalancerHTTPListenerAttribute struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/services/slb/struct_rules_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_rules_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index 38f8cab6f7..0000000000 --- a/services/slb/struct_rules_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RulesInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type RulesInDescribeLoadBalancerHTTPSListenerAttribute struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/services/slb/struct_rules_in_describe_rules.go b/services/slb/struct_rules_in_describe_rules.go deleted file mode 100644 index 50c324b825..0000000000 --- a/services/slb/struct_rules_in_describe_rules.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_rules_in_describe_v_server_groups.go b/services/slb/struct_rules_in_describe_v_server_groups.go deleted file mode 100644 index 73bd524c94..0000000000 --- a/services/slb/struct_rules_in_describe_v_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RulesInDescribeVServerGroups is a nested struct in slb response -type RulesInDescribeVServerGroups struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/services/slb/struct_server_certificate.go b/services/slb/struct_server_certificate.go deleted file mode 100644 index df15d18c2e..0000000000 --- a/services/slb/struct_server_certificate.go +++ /dev/null @@ -1,41 +0,0 @@ -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 { - CommonName string `json:"CommonName" xml:"CommonName"` - EncryptionKeyLength int `json:"EncryptionKeyLength" xml:"EncryptionKeyLength"` - Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - BindingType string `json:"BindingType" xml:"BindingType"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - RegionId string `json:"RegionId" xml:"RegionId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` - CertificateId string `json:"CertificateId" xml:"CertificateId"` - ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` - StandardType string `json:"StandardType" xml:"StandardType"` - IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` - SubjectAlternativeNames SubjectAlternativeNamesInDescribeServerCertificates `json:"SubjectAlternativeNames" xml:"SubjectAlternativeNames"` - Tags TagsInDescribeServerCertificates `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go b/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go deleted file mode 100644 index 1e234ca366..0000000000 --- a/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ServerCertificatesInDescribeDomainExtensionAttribute is a nested struct in slb response -type ServerCertificatesInDescribeDomainExtensionAttribute struct { - ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` -} diff --git a/services/slb/struct_server_certificates_in_describe_domain_extensions.go b/services/slb/struct_server_certificates_in_describe_domain_extensions.go deleted file mode 100644 index 45cf75c64d..0000000000 --- a/services/slb/struct_server_certificates_in_describe_domain_extensions.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ServerCertificatesInDescribeDomainExtensions is a nested struct in slb response -type ServerCertificatesInDescribeDomainExtensions struct { - ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` -} diff --git a/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index fe5350b52b..0000000000 --- a/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute struct { - ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` -} diff --git a/services/slb/struct_server_certificates_in_describe_server_certificates.go b/services/slb/struct_server_certificates_in_describe_server_certificates.go deleted file mode 100644 index f40b6b09cd..0000000000 --- a/services/slb/struct_server_certificates_in_describe_server_certificates.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ServerCertificatesInDescribeServerCertificates is a nested struct in slb response -type ServerCertificatesInDescribeServerCertificates struct { - ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` -} diff --git a/services/slb/struct_slave_zone.go b/services/slb/struct_slave_zone.go deleted file mode 100644 index ef431161eb..0000000000 --- a/services/slb/struct_slave_zone.go +++ /dev/null @@ -1,22 +0,0 @@ -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/services/slb/struct_slave_zones.go b/services/slb/struct_slave_zones.go deleted file mode 100644 index badda39748..0000000000 --- a/services/slb/struct_slave_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_subject_alternative_names_in_describe_server_certificates.go b/services/slb/struct_subject_alternative_names_in_describe_server_certificates.go deleted file mode 100644 index 74a6691037..0000000000 --- a/services/slb/struct_subject_alternative_names_in_describe_server_certificates.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// SubjectAlternativeNamesInDescribeServerCertificates is a nested struct in slb response -type SubjectAlternativeNamesInDescribeServerCertificates struct { - SubjectAlternativeName []string `json:"SubjectAlternativeName" xml:"SubjectAlternativeName"` -} diff --git a/services/slb/struct_subject_alternative_names_in_upload_server_certificate.go b/services/slb/struct_subject_alternative_names_in_upload_server_certificate.go deleted file mode 100644 index f1014d5a89..0000000000 --- a/services/slb/struct_subject_alternative_names_in_upload_server_certificate.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// SubjectAlternativeNamesInUploadServerCertificate is a nested struct in slb response -type SubjectAlternativeNamesInUploadServerCertificate struct { - SubjectAlternativeName []string `json:"SubjectAlternativeName" xml:"SubjectAlternativeName"` -} diff --git a/services/slb/struct_support_resource.go b/services/slb/struct_support_resource.go deleted file mode 100644 index fb96bfee1d..0000000000 --- a/services/slb/struct_support_resource.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// SupportResource is a nested struct in slb response -type SupportResource struct { - AddressType string `json:"AddressType" xml:"AddressType"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` -} diff --git a/services/slb/struct_support_resources.go b/services/slb/struct_support_resources.go deleted file mode 100644 index 3329a850ec..0000000000 --- a/services/slb/struct_support_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// SupportResources is a nested struct in slb response -type SupportResources struct { - SupportResource []SupportResource `json:"SupportResource" xml:"SupportResource"` -} diff --git a/services/slb/struct_tag.go b/services/slb/struct_tag.go deleted file mode 100644 index d78de08bc9..0000000000 --- a/services/slb/struct_tag.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// Tag is a nested struct in slb response -type Tag struct { - TagValue string `json:"TagValue" xml:"TagValue"` - TagKey string `json:"TagKey" xml:"TagKey"` -} diff --git a/services/slb/struct_tag_resource.go b/services/slb/struct_tag_resource.go deleted file mode 100644 index de4f234f43..0000000000 --- a/services/slb/struct_tag_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -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. - -// TagResource is a nested struct in slb response -type TagResource struct { - TagValue string `json:"TagValue" xml:"TagValue"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - TagKey string `json:"TagKey" xml:"TagKey"` -} diff --git a/services/slb/struct_tag_resources.go b/services/slb/struct_tag_resources.go deleted file mode 100644 index 2817c72603..0000000000 --- a/services/slb/struct_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagResources is a nested struct in slb response -type TagResources struct { - TagResource []TagResource `json:"TagResource" xml:"TagResource"` -} diff --git a/services/slb/struct_tag_set.go b/services/slb/struct_tag_set.go deleted file mode 100644 index 43e1c7b6c0..0000000000 --- a/services/slb/struct_tag_set.go +++ /dev/null @@ -1,23 +0,0 @@ -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 { - TagValue string `json:"TagValue" xml:"TagValue"` - InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` - TagKey string `json:"TagKey" xml:"TagKey"` -} diff --git a/services/slb/struct_tag_sets.go b/services/slb/struct_tag_sets.go deleted file mode 100644 index d095ab2f44..0000000000 --- a/services/slb/struct_tag_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/struct_tags_in_describe_access_control_list_attribute.go b/services/slb/struct_tags_in_describe_access_control_list_attribute.go deleted file mode 100644 index 1d04d240de..0000000000 --- a/services/slb/struct_tags_in_describe_access_control_list_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeAccessControlListAttribute is a nested struct in slb response -type TagsInDescribeAccessControlListAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_access_control_lists.go b/services/slb/struct_tags_in_describe_access_control_lists.go deleted file mode 100644 index ea296f8859..0000000000 --- a/services/slb/struct_tags_in_describe_access_control_lists.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeAccessControlLists is a nested struct in slb response -type TagsInDescribeAccessControlLists struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_ca_certificates.go b/services/slb/struct_tags_in_describe_ca_certificates.go deleted file mode 100644 index 97573e404d..0000000000 --- a/services/slb/struct_tags_in_describe_ca_certificates.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeCACertificates is a nested struct in slb response -type TagsInDescribeCACertificates struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_attribute.go b/services/slb/struct_tags_in_describe_load_balancer_attribute.go deleted file mode 100644 index 1e6c71dfc4..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerAttribute is a nested struct in slb response -type TagsInDescribeLoadBalancerAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go b/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go deleted file mode 100644 index 98c299ce61..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerHTTPListenerAttribute is a nested struct in slb response -type TagsInDescribeLoadBalancerHTTPListenerAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go b/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go deleted file mode 100644 index a56dd53409..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response -type TagsInDescribeLoadBalancerHTTPSListenerAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_listeners.go b/services/slb/struct_tags_in_describe_load_balancer_listeners.go deleted file mode 100644 index d99bcb2f5c..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_listeners.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerListeners is a nested struct in slb response -type TagsInDescribeLoadBalancerListeners struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go b/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go deleted file mode 100644 index 2546091089..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response -type TagsInDescribeLoadBalancerTCPListenerAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go b/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go deleted file mode 100644 index 03e9215a19..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response -type TagsInDescribeLoadBalancerUDPListenerAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_load_balancers.go b/services/slb/struct_tags_in_describe_load_balancers.go deleted file mode 100644 index 2dbdab2e93..0000000000 --- a/services/slb/struct_tags_in_describe_load_balancers.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeLoadBalancers is a nested struct in slb response -type TagsInDescribeLoadBalancers struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go b/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go deleted file mode 100644 index d649b54301..0000000000 --- a/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeMasterSlaveServerGroupAttribute is a nested struct in slb response -type TagsInDescribeMasterSlaveServerGroupAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_master_slave_server_groups.go b/services/slb/struct_tags_in_describe_master_slave_server_groups.go deleted file mode 100644 index 2c47cc343b..0000000000 --- a/services/slb/struct_tags_in_describe_master_slave_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeMasterSlaveServerGroups is a nested struct in slb response -type TagsInDescribeMasterSlaveServerGroups struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_server_certificates.go b/services/slb/struct_tags_in_describe_server_certificates.go deleted file mode 100644 index 84fbc16511..0000000000 --- a/services/slb/struct_tags_in_describe_server_certificates.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeServerCertificates is a nested struct in slb response -type TagsInDescribeServerCertificates struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_v_server_group_attribute.go b/services/slb/struct_tags_in_describe_v_server_group_attribute.go deleted file mode 100644 index 3835ae8ab5..0000000000 --- a/services/slb/struct_tags_in_describe_v_server_group_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeVServerGroupAttribute is a nested struct in slb response -type TagsInDescribeVServerGroupAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tags_in_describe_v_server_groups.go b/services/slb/struct_tags_in_describe_v_server_groups.go deleted file mode 100644 index f1663b292b..0000000000 --- a/services/slb/struct_tags_in_describe_v_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TagsInDescribeVServerGroups is a nested struct in slb response -type TagsInDescribeVServerGroups struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/services/slb/struct_tcp_listener_config.go b/services/slb/struct_tcp_listener_config.go deleted file mode 100644 index 9d9cb32167..0000000000 --- a/services/slb/struct_tcp_listener_config.go +++ /dev/null @@ -1,40 +0,0 @@ -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. - -// TCPListenerConfig is a nested struct in slb response -type TCPListenerConfig struct { - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` - PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` - FullNatEnabled string `json:"FullNatEnabled" xml:"FullNatEnabled"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - ProxyProtocolV2Enabled string `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` - PortRanges []PortRange `json:"PortRanges" xml:"PortRanges"` -} diff --git a/services/slb/struct_tcps_listener_config.go b/services/slb/struct_tcps_listener_config.go deleted file mode 100644 index d9534aa426..0000000000 --- a/services/slb/struct_tcps_listener_config.go +++ /dev/null @@ -1,39 +0,0 @@ -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. - -// TCPSListenerConfig is a nested struct in slb response -type TCPSListenerConfig struct { - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - Cookie string `json:"Cookie" xml:"Cookie"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - StickySession string `json:"StickySession" xml:"StickySession"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` -} diff --git a/services/slb/struct_tls_cipher_policies.go b/services/slb/struct_tls_cipher_policies.go deleted file mode 100644 index 77e7ec9d4c..0000000000 --- a/services/slb/struct_tls_cipher_policies.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TLSCipherPolicies is a nested struct in slb response -type TLSCipherPolicies struct { - TLSCipherPolicy []TLSCipherPolicy `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` -} diff --git a/services/slb/struct_tls_cipher_policy.go b/services/slb/struct_tls_cipher_policy.go deleted file mode 100644 index 826bfe9aff..0000000000 --- a/services/slb/struct_tls_cipher_policy.go +++ /dev/null @@ -1,28 +0,0 @@ -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. - -// TLSCipherPolicy is a nested struct in slb response -type TLSCipherPolicy struct { - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - Status string `json:"Status" xml:"Status"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Name string `json:"Name" xml:"Name"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - TLSVersions []string `json:"TLSVersions" xml:"TLSVersions"` - Ciphers []string `json:"Ciphers" xml:"Ciphers"` - RelateListeners []RelateListener `json:"RelateListeners" xml:"RelateListeners"` -} diff --git a/services/slb/struct_tls_versions.go b/services/slb/struct_tls_versions.go deleted file mode 100644 index 117ce758ac..0000000000 --- a/services/slb/struct_tls_versions.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TLSVersions is a nested struct in slb response -type TLSVersions struct { - TLSVersion []string `json:"TLSVersion" xml:"TLSVersion"` -} diff --git a/services/slb/struct_udp_listener_config.go b/services/slb/struct_udp_listener_config.go deleted file mode 100644 index b7f8ffe3fa..0000000000 --- a/services/slb/struct_udp_listener_config.go +++ /dev/null @@ -1,40 +0,0 @@ -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. - -// UDPListenerConfig is a nested struct in slb response -type UDPListenerConfig struct { - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` - FullNatEnabled string `json:"FullNatEnabled" xml:"FullNatEnabled"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` - HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - ProxyProtocolV2Enabled string `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` - PortRanges []PortRange `json:"PortRanges" xml:"PortRanges"` -} diff --git a/services/slb/struct_v_server_group.go b/services/slb/struct_v_server_group.go deleted file mode 100644 index 105713a10f..0000000000 --- a/services/slb/struct_v_server_group.go +++ /dev/null @@ -1,27 +0,0 @@ -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"` - ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` - VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` - ServerCount int64 `json:"ServerCount" xml:"ServerCount"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` - Tags TagsInDescribeVServerGroups `json:"Tags" xml:"Tags"` -} diff --git a/services/slb/struct_v_server_groups.go b/services/slb/struct_v_server_groups.go deleted file mode 100644 index 79bd1ae47f..0000000000 --- a/services/slb/struct_v_server_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// VServerGroups is a nested struct in slb response -type VServerGroups struct { - VServerGroup []VServerGroup `json:"VServerGroup" xml:"VServerGroup"` -} diff --git a/services/slb/struct_zone.go b/services/slb/struct_zone.go deleted file mode 100644 index 3bb51f0789..0000000000 --- a/services/slb/struct_zone.go +++ /dev/null @@ -1,23 +0,0 @@ -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/services/slb/struct_zones.go b/services/slb/struct_zones.go deleted file mode 100644 index bd2d1efab3..0000000000 --- a/services/slb/struct_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -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/services/slb/tag_resources.go b/services/slb/tag_resources.go deleted file mode 100644 index a45a479ad6..0000000000 --- a/services/slb/tag_resources.go +++ /dev/null @@ -1,112 +0,0 @@ -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" -) - -// TagResources invokes the slb.TagResources API synchronously -func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { - response = CreateTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// TagResourcesWithChan invokes the slb.TagResources API asynchronously -func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { - responseChan := make(chan *TagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TagResourcesWithCallback invokes the slb.TagResources API asynchronously -func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TagResourcesResponse - var err error - defer close(result) - response, err = client.TagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TagResourcesRequest is the request struct for api TagResources -type TagResourcesRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - 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"` -} - -// TagResourcesTag is a repeated param struct in TagResourcesRequest -type TagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// TagResourcesResponse is the response struct for api TagResources -type TagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTagResourcesRequest creates a request to invoke TagResources API -func CreateTagResourcesRequest() (request *TagResourcesRequest) { - request = &TagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "TagResources", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateTagResourcesResponse creates a response to parse from TagResources response -func CreateTagResourcesResponse() (response *TagResourcesResponse) { - response = &TagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/untag_resources.go b/services/slb/untag_resources.go deleted file mode 100644 index 6f113ba740..0000000000 --- a/services/slb/untag_resources.go +++ /dev/null @@ -1,107 +0,0 @@ -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" -) - -// UntagResources invokes the slb.UntagResources API synchronously -func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { - response = CreateUntagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// UntagResourcesWithChan invokes the slb.UntagResources API asynchronously -func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { - responseChan := make(chan *UntagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UntagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UntagResourcesWithCallback invokes the slb.UntagResources API asynchronously -func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UntagResourcesResponse - var err error - defer close(result) - response, err = client.UntagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UntagResourcesRequest is the request struct for api UntagResources -type UntagResourcesRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - All requests.Boolean `position:"Query" name:"All"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - 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"` - TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` -} - -// UntagResourcesResponse is the response struct for api UntagResources -type UntagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUntagResourcesRequest creates a request to invoke UntagResources API -func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { - request = &UntagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "UntagResources", "slb", "openAPI") - request.Method = requests.POST - return -} - -// CreateUntagResourcesResponse creates a response to parse from UntagResources response -func CreateUntagResourcesResponse() (response *UntagResourcesResponse) { - response = &UntagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/upload_ca_certificate.go b/services/slb/upload_ca_certificate.go deleted file mode 100644 index e60e359a00..0000000000 --- a/services/slb/upload_ca_certificate.go +++ /dev/null @@ -1,123 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - CACertificateName string `position:"Query" name:"CACertificateName"` - Tag *[]UploadCACertificateTag `position:"Query" name:"Tag" type:"Repeated"` - CACertificate string `position:"Query" name:"CACertificate"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - StandardType string `position:"Query" name:"StandardType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// UploadCACertificateTag is a repeated param struct in UploadCACertificateRequest -type UploadCACertificateTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// UploadCACertificateResponse is the response struct for api UploadCACertificate -type UploadCACertificateResponse struct { - *responses.BaseResponse - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - RequestId string `json:"RequestId" xml:"RequestId"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CommonName string `json:"CommonName" xml:"CommonName"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateUploadCACertificateResponse creates a response to parse from UploadCACertificate response -func CreateUploadCACertificateResponse() (response *UploadCACertificateResponse) { - response = &UploadCACertificateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/slb/upload_server_certificate.go b/services/slb/upload_server_certificate.go deleted file mode 100644 index d0c282c4e6..0000000000 --- a/services/slb/upload_server_certificate.go +++ /dev/null @@ -1,134 +0,0 @@ -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 -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 -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 -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 - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate string `position:"Query" name:"ServerCertificate"` - AliCloudCertificateName string `position:"Query" name:"AliCloudCertificateName"` - AliCloudCertificateId string `position:"Query" name:"AliCloudCertificateId"` - PrivateKey string `position:"Query" name:"PrivateKey"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]UploadServerCertificateTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - StandardType string `position:"Query" name:"StandardType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - AliCloudCertificateRegionId string `position:"Query" name:"AliCloudCertificateRegionId"` - ServerCertificateName string `position:"Query" name:"ServerCertificateName"` -} - -// UploadServerCertificateTag is a repeated param struct in UploadServerCertificateRequest -type UploadServerCertificateTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// UploadServerCertificateResponse is the response struct for api UploadServerCertificate -type UploadServerCertificateResponse struct { - *responses.BaseResponse - AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - RegionId string `json:"RegionId" xml:"RegionId"` - RequestId string `json:"RequestId" xml:"RequestId"` - Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` - CommonName string `json:"CommonName" xml:"CommonName"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` - IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` - SubjectAlternativeNames SubjectAlternativeNamesInUploadServerCertificate `json:"SubjectAlternativeNames" xml:"SubjectAlternativeNames"` -} - -// 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") - request.Method = requests.POST - return -} - -// CreateUploadServerCertificateResponse creates a response to parse from UploadServerCertificate response -func CreateUploadServerCertificateResponse() (response *UploadServerCertificateResponse) { - response = &UploadServerCertificateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -}