Procházet zdrojové kódy

Add ConvertPayType.

sdk-team před 6 roky
rodič
revize
b883db58e1
82 změnil soubory, kde provedl 3619 přidání a 125 odebrání
  1. 4 0
      ChangeLog.txt
  2. 106 0
      services/elasticsearch/add_connectable_cluster.go
  3. 107 0
      services/elasticsearch/add_snapshot_repo.go
  4. 0 2
      services/elasticsearch/cancel_task.go
  5. 106 0
      services/elasticsearch/convert_logstash_pay_type.go
  6. 106 0
      services/elasticsearch/convert_pay_type.go
  7. 105 0
      services/elasticsearch/create_logstash.go
  8. 107 0
      services/elasticsearch/delete_connected_cluster.go
  9. 105 0
      services/elasticsearch/delete_logstash.go
  10. 106 0
      services/elasticsearch/delete_snapshot_repo.go
  11. 106 0
      services/elasticsearch/describe_connectable_clusters.go
  12. 2 2
      services/elasticsearch/describe_instance.go
  13. 105 0
      services/elasticsearch/describe_logstash.go
  14. 106 0
      services/elasticsearch/describe_pipeline_management_config.go
  15. 104 0
      services/elasticsearch/describe_regions.go
  16. 0 2
      services/elasticsearch/get_suggest_shrinkable_nodes.go
  17. 0 2
      services/elasticsearch/get_transferable_nodes.go
  18. 106 0
      services/elasticsearch/install_logstash_system_plugin.go
  19. 108 0
      services/elasticsearch/interrupt_elasticsearch_task.go
  20. 108 0
      services/elasticsearch/interrupt_logstash_task.go
  21. 0 2
      services/elasticsearch/list_all_node.go
  22. 106 0
      services/elasticsearch/list_alternative_snapshot_repos.go
  23. 111 0
      services/elasticsearch/list_logstash.go
  24. 111 0
      services/elasticsearch/list_logstash_log.go
  25. 109 0
      services/elasticsearch/list_logstash_plugins.go
  26. 105 0
      services/elasticsearch/list_snapshot_repos_by_instance_id.go
  27. 2 2
      services/elasticsearch/move_resource_group.go
  28. 106 0
      services/elasticsearch/restart_logstash.go
  29. 108 0
      services/elasticsearch/resume_elasticsearch_task.go
  30. 108 0
      services/elasticsearch/resume_logstash_task.go
  31. 0 2
      services/elasticsearch/shrink_node.go
  32. 21 0
      services/elasticsearch/struct_advanced_setting.go
  33. 21 0
      services/elasticsearch/struct_aliws_dicts.go
  34. 22 0
      services/elasticsearch/struct_category_entity.go
  35. 22 0
      services/elasticsearch/struct_connectable_clusters_info.go
  36. 1 1
      services/elasticsearch/struct_data_disk_list.go
  37. 24 0
      services/elasticsearch/struct_dict.go
  38. 1 1
      services/elasticsearch/struct_dict_list_in_move_resource_group.go
  39. 1 1
      services/elasticsearch/struct_dict_list_in_update_instance.go
  40. 22 0
      services/elasticsearch/struct_endpoint.go
  41. 21 0
      services/elasticsearch/struct_endpoint_list.go
  42. 1 1
      services/elasticsearch/struct_es_versions_latest_list.go
  43. 8 7
      services/elasticsearch/struct_instance.go
  44. 4 3
      services/elasticsearch/struct_node_spec.go
  45. 1 1
      services/elasticsearch/struct_node_spec_list.go
  46. 21 0
      services/elasticsearch/struct_pipeline_ids.go
  47. 25 0
      services/elasticsearch/struct_region_info.go
  48. 24 0
      services/elasticsearch/struct_repo.go
  49. 41 17
      services/elasticsearch/struct_result.go
  50. 21 0
      services/elasticsearch/struct_result_in_describe_connectable_clusters.go
  51. 0 59
      services/elasticsearch/struct_result_in_describe_instance.go
  52. 21 0
      services/elasticsearch/struct_result_in_describe_regions.go
  53. 1 1
      services/elasticsearch/struct_result_in_get_suggest_shrinkable_nodes.go
  54. 1 1
      services/elasticsearch/struct_result_in_get_transferable_nodes.go
  55. 21 0
      services/elasticsearch/struct_result_in_install_logstash_system_plugin.go
  56. 1 1
      services/elasticsearch/struct_result_in_list_all_node.go
  57. 21 0
      services/elasticsearch/struct_result_in_list_alternative_snapshot_repos.go
  58. 21 0
      services/elasticsearch/struct_result_in_list_logstash.go
  59. 21 0
      services/elasticsearch/struct_result_in_list_logstash_log.go
  60. 21 0
      services/elasticsearch/struct_result_in_list_logstash_plugins.go
  61. 1 1
      services/elasticsearch/struct_result_in_list_plugins.go
  62. 1 1
      services/elasticsearch/struct_result_in_list_search_log.go
  63. 21 0
      services/elasticsearch/struct_result_in_list_snapshot_repos_by_instance_id.go
  64. 39 0
      services/elasticsearch/struct_result_in_move_resource_group.go
  65. 21 0
      services/elasticsearch/struct_result_in_uninstall_logstash_plugin.go
  66. 39 0
      services/elasticsearch/struct_result_in_update_instance.go
  67. 1 1
      services/elasticsearch/struct_result_item.go
  68. 21 0
      services/elasticsearch/struct_support_version_list.go
  69. 21 0
      services/elasticsearch/struct_support_versions.go
  70. 1 1
      services/elasticsearch/struct_synonyms_dicts_in_move_resource_group.go
  71. 1 1
      services/elasticsearch/struct_synonyms_dicts_in_update_instance.go
  72. 22 0
      services/elasticsearch/struct_version_entity.go
  73. 5 4
      services/elasticsearch/struct_warm_node_configuration.go
  74. 0 2
      services/elasticsearch/transfer_node.go
  75. 106 0
      services/elasticsearch/uninstall_logstash_plugin.go
  76. 2 2
      services/elasticsearch/update_instance.go
  77. 106 0
      services/elasticsearch/update_logstash.go
  78. 106 0
      services/elasticsearch/update_logstash_description.go
  79. 105 0
      services/elasticsearch/update_logstash_settings.go
  80. 106 0
      services/elasticsearch/update_pipeline_management_config.go
  81. 0 2
      services/elasticsearch/validate_shrink_nodes.go
  82. 0 2
      services/elasticsearch/validate_transferable_nodes.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2019-11-21 Version: 1.60.257
+- Add ConvertPayType.
+- Add ConvertLogstashPayType.
+
 2019-11-21 Version: 1.60.256
 - Update Nlp Automl SDK.
 

+ 106 - 0
services/elasticsearch/add_connectable_cluster.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AddConnectableCluster invokes the elasticsearch.AddConnectableCluster API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addconnectablecluster.html
+func (client *Client) AddConnectableCluster(request *AddConnectableClusterRequest) (response *AddConnectableClusterResponse, err error) {
+	response = CreateAddConnectableClusterResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddConnectableClusterWithChan invokes the elasticsearch.AddConnectableCluster API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addconnectablecluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddConnectableClusterWithChan(request *AddConnectableClusterRequest) (<-chan *AddConnectableClusterResponse, <-chan error) {
+	responseChan := make(chan *AddConnectableClusterResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddConnectableCluster(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddConnectableClusterWithCallback invokes the elasticsearch.AddConnectableCluster API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addconnectablecluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddConnectableClusterWithCallback(request *AddConnectableClusterRequest, callback func(response *AddConnectableClusterResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddConnectableClusterResponse
+		var err error
+		defer close(result)
+		response, err = client.AddConnectableCluster(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddConnectableClusterRequest is the request struct for api AddConnectableCluster
+type AddConnectableClusterRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// AddConnectableClusterResponse is the response struct for api AddConnectableCluster
+type AddConnectableClusterResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateAddConnectableClusterRequest creates a request to invoke AddConnectableCluster API
+func CreateAddConnectableClusterRequest() (request *AddConnectableClusterRequest) {
+	request = &AddConnectableClusterRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "AddConnectableCluster", "/openapi/instances/[InstanceId]/connected-clusters", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateAddConnectableClusterResponse creates a response to parse from AddConnectableCluster response
+func CreateAddConnectableClusterResponse() (response *AddConnectableClusterResponse) {
+	response = &AddConnectableClusterResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/elasticsearch/add_snapshot_repo.go

@@ -0,0 +1,107 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AddSnapshotRepo invokes the elasticsearch.AddSnapshotRepo API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addsnapshotrepo.html
+func (client *Client) AddSnapshotRepo(request *AddSnapshotRepoRequest) (response *AddSnapshotRepoResponse, err error) {
+	response = CreateAddSnapshotRepoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddSnapshotRepoWithChan invokes the elasticsearch.AddSnapshotRepo API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addsnapshotrepo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddSnapshotRepoWithChan(request *AddSnapshotRepoRequest) (<-chan *AddSnapshotRepoResponse, <-chan error) {
+	responseChan := make(chan *AddSnapshotRepoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddSnapshotRepo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddSnapshotRepoWithCallback invokes the elasticsearch.AddSnapshotRepo API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/addsnapshotrepo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddSnapshotRepoWithCallback(request *AddSnapshotRepoRequest, callback func(response *AddSnapshotRepoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddSnapshotRepoResponse
+		var err error
+		defer close(result)
+		response, err = client.AddSnapshotRepo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddSnapshotRepoRequest is the request struct for api AddSnapshotRepo
+type AddSnapshotRepoRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// AddSnapshotRepoResponse is the response struct for api AddSnapshotRepo
+type AddSnapshotRepoResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateAddSnapshotRepoRequest creates a request to invoke AddSnapshotRepo API
+func CreateAddSnapshotRepoRequest() (request *AddSnapshotRepoRequest) {
+	request = &AddSnapshotRepoRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "AddSnapshotRepo", "/openapi/instances/[InstanceId]/snapshot-repos", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateAddSnapshotRepoResponse creates a response to parse from AddSnapshotRepo response
+func CreateAddSnapshotRepoResponse() (response *AddSnapshotRepoResponse) {
+	response = &AddSnapshotRepoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 2
services/elasticsearch/cancel_task.go

@@ -85,8 +85,6 @@ type CancelTaskRequest struct {
 type CancelTaskResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
 	Result    bool   `json:"Result" xml:"Result"`
 }
 

+ 106 - 0
services/elasticsearch/convert_logstash_pay_type.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ConvertLogstashPayType invokes the elasticsearch.ConvertLogstashPayType API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertlogstashpaytype.html
+func (client *Client) ConvertLogstashPayType(request *ConvertLogstashPayTypeRequest) (response *ConvertLogstashPayTypeResponse, err error) {
+	response = CreateConvertLogstashPayTypeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ConvertLogstashPayTypeWithChan invokes the elasticsearch.ConvertLogstashPayType API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertlogstashpaytype.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConvertLogstashPayTypeWithChan(request *ConvertLogstashPayTypeRequest) (<-chan *ConvertLogstashPayTypeResponse, <-chan error) {
+	responseChan := make(chan *ConvertLogstashPayTypeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ConvertLogstashPayType(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ConvertLogstashPayTypeWithCallback invokes the elasticsearch.ConvertLogstashPayType API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertlogstashpaytype.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConvertLogstashPayTypeWithCallback(request *ConvertLogstashPayTypeRequest, callback func(response *ConvertLogstashPayTypeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ConvertLogstashPayTypeResponse
+		var err error
+		defer close(result)
+		response, err = client.ConvertLogstashPayType(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ConvertLogstashPayTypeRequest is the request struct for api ConvertLogstashPayType
+type ConvertLogstashPayTypeRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// ConvertLogstashPayTypeResponse is the response struct for api ConvertLogstashPayType
+type ConvertLogstashPayTypeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateConvertLogstashPayTypeRequest creates a request to invoke ConvertLogstashPayType API
+func CreateConvertLogstashPayTypeRequest() (request *ConvertLogstashPayTypeRequest) {
+	request = &ConvertLogstashPayTypeRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ConvertLogstashPayType", "/openapi/logstashes/[InstanceId]/convert-pay-type", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateConvertLogstashPayTypeResponse creates a response to parse from ConvertLogstashPayType response
+func CreateConvertLogstashPayTypeResponse() (response *ConvertLogstashPayTypeResponse) {
+	response = &ConvertLogstashPayTypeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/convert_pay_type.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ConvertPayType invokes the elasticsearch.ConvertPayType API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertpaytype.html
+func (client *Client) ConvertPayType(request *ConvertPayTypeRequest) (response *ConvertPayTypeResponse, err error) {
+	response = CreateConvertPayTypeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ConvertPayTypeWithChan invokes the elasticsearch.ConvertPayType API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertpaytype.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConvertPayTypeWithChan(request *ConvertPayTypeRequest) (<-chan *ConvertPayTypeResponse, <-chan error) {
+	responseChan := make(chan *ConvertPayTypeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ConvertPayType(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ConvertPayTypeWithCallback invokes the elasticsearch.ConvertPayType API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/convertpaytype.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConvertPayTypeWithCallback(request *ConvertPayTypeRequest, callback func(response *ConvertPayTypeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ConvertPayTypeResponse
+		var err error
+		defer close(result)
+		response, err = client.ConvertPayType(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ConvertPayTypeRequest is the request struct for api ConvertPayType
+type ConvertPayTypeRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// ConvertPayTypeResponse is the response struct for api ConvertPayType
+type ConvertPayTypeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateConvertPayTypeRequest creates a request to invoke ConvertPayType API
+func CreateConvertPayTypeRequest() (request *ConvertPayTypeRequest) {
+	request = &ConvertPayTypeRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ConvertPayType", "/openapi/instances/[InstanceId]/convert-pay-type", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateConvertPayTypeResponse creates a response to parse from ConvertPayType response
+func CreateConvertPayTypeResponse() (response *ConvertPayTypeResponse) {
+	response = &ConvertPayTypeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/create_logstash.go

@@ -0,0 +1,105 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateLogstash invokes the elasticsearch.CreateLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createlogstash.html
+func (client *Client) CreateLogstash(request *CreateLogstashRequest) (response *CreateLogstashResponse, err error) {
+	response = CreateCreateLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateLogstashWithChan invokes the elasticsearch.CreateLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateLogstashWithChan(request *CreateLogstashRequest) (<-chan *CreateLogstashResponse, <-chan error) {
+	responseChan := make(chan *CreateLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateLogstashWithCallback invokes the elasticsearch.CreateLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateLogstashWithCallback(request *CreateLogstashRequest, callback func(response *CreateLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateLogstashRequest is the request struct for api CreateLogstash
+type CreateLogstashRequest struct {
+	*requests.RoaRequest
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// CreateLogstashResponse is the response struct for api CreateLogstash
+type CreateLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateCreateLogstashRequest creates a request to invoke CreateLogstash API
+func CreateCreateLogstashRequest() (request *CreateLogstashRequest) {
+	request = &CreateLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "CreateLogstash", "/openapi/logstashes", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateCreateLogstashResponse creates a response to parse from CreateLogstash response
+func CreateCreateLogstashResponse() (response *CreateLogstashResponse) {
+	response = &CreateLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/elasticsearch/delete_connected_cluster.go

@@ -0,0 +1,107 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteConnectedCluster invokes the elasticsearch.DeleteConnectedCluster API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteconnectedcluster.html
+func (client *Client) DeleteConnectedCluster(request *DeleteConnectedClusterRequest) (response *DeleteConnectedClusterResponse, err error) {
+	response = CreateDeleteConnectedClusterResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteConnectedClusterWithChan invokes the elasticsearch.DeleteConnectedCluster API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteconnectedcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteConnectedClusterWithChan(request *DeleteConnectedClusterRequest) (<-chan *DeleteConnectedClusterResponse, <-chan error) {
+	responseChan := make(chan *DeleteConnectedClusterResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteConnectedCluster(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteConnectedClusterWithCallback invokes the elasticsearch.DeleteConnectedCluster API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteconnectedcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteConnectedClusterWithCallback(request *DeleteConnectedClusterRequest, callback func(response *DeleteConnectedClusterResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteConnectedClusterResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteConnectedCluster(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteConnectedClusterRequest is the request struct for api DeleteConnectedCluster
+type DeleteConnectedClusterRequest struct {
+	*requests.RoaRequest
+	InstanceId          string `position:"Path" name:"InstanceId"`
+	ClientToken         string `position:"Query" name:"clientToken"`
+	ConnectedInstanceId string `position:"Query" name:"connectedInstanceId"`
+}
+
+// DeleteConnectedClusterResponse is the response struct for api DeleteConnectedCluster
+type DeleteConnectedClusterResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateDeleteConnectedClusterRequest creates a request to invoke DeleteConnectedCluster API
+func CreateDeleteConnectedClusterRequest() (request *DeleteConnectedClusterRequest) {
+	request = &DeleteConnectedClusterRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DeleteConnectedCluster", "/openapi/instances/[InstanceId]/connected-clusters", "elasticsearch", "openAPI")
+	request.Method = requests.DELETE
+	return
+}
+
+// CreateDeleteConnectedClusterResponse creates a response to parse from DeleteConnectedCluster response
+func CreateDeleteConnectedClusterResponse() (response *DeleteConnectedClusterResponse) {
+	response = &DeleteConnectedClusterResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/delete_logstash.go

@@ -0,0 +1,105 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteLogstash invokes the elasticsearch.DeleteLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletelogstash.html
+func (client *Client) DeleteLogstash(request *DeleteLogstashRequest) (response *DeleteLogstashResponse, err error) {
+	response = CreateDeleteLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteLogstashWithChan invokes the elasticsearch.DeleteLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteLogstashWithChan(request *DeleteLogstashRequest) (<-chan *DeleteLogstashResponse, <-chan error) {
+	responseChan := make(chan *DeleteLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteLogstashWithCallback invokes the elasticsearch.DeleteLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteLogstashWithCallback(request *DeleteLogstashRequest, callback func(response *DeleteLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteLogstashRequest is the request struct for api DeleteLogstash
+type DeleteLogstashRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// DeleteLogstashResponse is the response struct for api DeleteLogstash
+type DeleteLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteLogstashRequest creates a request to invoke DeleteLogstash API
+func CreateDeleteLogstashRequest() (request *DeleteLogstashRequest) {
+	request = &DeleteLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DeleteLogstash", "/openapi/logstashes/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.DELETE
+	return
+}
+
+// CreateDeleteLogstashResponse creates a response to parse from DeleteLogstash response
+func CreateDeleteLogstashResponse() (response *DeleteLogstashResponse) {
+	response = &DeleteLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/delete_snapshot_repo.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteSnapshotRepo invokes the elasticsearch.DeleteSnapshotRepo API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletesnapshotrepo.html
+func (client *Client) DeleteSnapshotRepo(request *DeleteSnapshotRepoRequest) (response *DeleteSnapshotRepoResponse, err error) {
+	response = CreateDeleteSnapshotRepoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteSnapshotRepoWithChan invokes the elasticsearch.DeleteSnapshotRepo API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletesnapshotrepo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSnapshotRepoWithChan(request *DeleteSnapshotRepoRequest) (<-chan *DeleteSnapshotRepoResponse, <-chan error) {
+	responseChan := make(chan *DeleteSnapshotRepoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteSnapshotRepo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteSnapshotRepoWithCallback invokes the elasticsearch.DeleteSnapshotRepo API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deletesnapshotrepo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSnapshotRepoWithCallback(request *DeleteSnapshotRepoRequest, callback func(response *DeleteSnapshotRepoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteSnapshotRepoResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteSnapshotRepo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteSnapshotRepoRequest is the request struct for api DeleteSnapshotRepo
+type DeleteSnapshotRepoRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+	RepoPath   string `position:"Query" name:"repoPath"`
+}
+
+// DeleteSnapshotRepoResponse is the response struct for api DeleteSnapshotRepo
+type DeleteSnapshotRepoResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateDeleteSnapshotRepoRequest creates a request to invoke DeleteSnapshotRepo API
+func CreateDeleteSnapshotRepoRequest() (request *DeleteSnapshotRepoRequest) {
+	request = &DeleteSnapshotRepoRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DeleteSnapshotRepo", "/openapi/instances/[InstanceId]/snapshot-repos", "elasticsearch", "openAPI")
+	request.Method = requests.DELETE
+	return
+}
+
+// CreateDeleteSnapshotRepoResponse creates a response to parse from DeleteSnapshotRepo response
+func CreateDeleteSnapshotRepoResponse() (response *DeleteSnapshotRepoResponse) {
+	response = &DeleteSnapshotRepoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/describe_connectable_clusters.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeConnectableClusters invokes the elasticsearch.DescribeConnectableClusters API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeconnectableclusters.html
+func (client *Client) DescribeConnectableClusters(request *DescribeConnectableClustersRequest) (response *DescribeConnectableClustersResponse, err error) {
+	response = CreateDescribeConnectableClustersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeConnectableClustersWithChan invokes the elasticsearch.DescribeConnectableClusters API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeconnectableclusters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConnectableClustersWithChan(request *DescribeConnectableClustersRequest) (<-chan *DescribeConnectableClustersResponse, <-chan error) {
+	responseChan := make(chan *DescribeConnectableClustersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeConnectableClusters(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeConnectableClustersWithCallback invokes the elasticsearch.DescribeConnectableClusters API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeconnectableclusters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConnectableClustersWithCallback(request *DescribeConnectableClustersRequest, callback func(response *DescribeConnectableClustersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeConnectableClustersResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeConnectableClusters(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeConnectableClustersRequest is the request struct for api DescribeConnectableClusters
+type DescribeConnectableClustersRequest struct {
+	*requests.RoaRequest
+	InstanceId      string           `position:"Path" name:"InstanceId"`
+	AlreadySetItems requests.Boolean `position:"Query" name:"alreadySetItems"`
+}
+
+// DescribeConnectableClustersResponse is the response struct for api DescribeConnectableClusters
+type DescribeConnectableClustersResponse struct {
+	*responses.BaseResponse
+	RequestId string                              `json:"RequestId" xml:"RequestId"`
+	Result    ResultInDescribeConnectableClusters `json:"Result" xml:"Result"`
+}
+
+// CreateDescribeConnectableClustersRequest creates a request to invoke DescribeConnectableClusters API
+func CreateDescribeConnectableClustersRequest() (request *DescribeConnectableClustersRequest) {
+	request = &DescribeConnectableClustersRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DescribeConnectableClusters", "/openapi/instances/[InstanceId]/connectable-clusters", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeConnectableClustersResponse creates a response to parse from DescribeConnectableClusters response
+func CreateDescribeConnectableClustersResponse() (response *DescribeConnectableClustersResponse) {
+	response = &DescribeConnectableClustersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/elasticsearch/describe_instance.go

@@ -82,8 +82,8 @@ type DescribeInstanceRequest struct {
 // DescribeInstanceResponse is the response struct for api DescribeInstance
 type DescribeInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId string                   `json:"RequestId" xml:"RequestId"`
-	Result    ResultInDescribeInstance `json:"Result" xml:"Result"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
 }
 
 // CreateDescribeInstanceRequest creates a request to invoke DescribeInstance API

+ 105 - 0
services/elasticsearch/describe_logstash.go

@@ -0,0 +1,105 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeLogstash invokes the elasticsearch.DescribeLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describelogstash.html
+func (client *Client) DescribeLogstash(request *DescribeLogstashRequest) (response *DescribeLogstashResponse, err error) {
+	response = CreateDescribeLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeLogstashWithChan invokes the elasticsearch.DescribeLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLogstashWithChan(request *DescribeLogstashRequest) (<-chan *DescribeLogstashResponse, <-chan error) {
+	responseChan := make(chan *DescribeLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeLogstashWithCallback invokes the elasticsearch.DescribeLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLogstashWithCallback(request *DescribeLogstashRequest, callback func(response *DescribeLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeLogstashRequest is the request struct for api DescribeLogstash
+type DescribeLogstashRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// DescribeLogstashResponse is the response struct for api DescribeLogstash
+type DescribeLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateDescribeLogstashRequest creates a request to invoke DescribeLogstash API
+func CreateDescribeLogstashRequest() (request *DescribeLogstashRequest) {
+	request = &DescribeLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DescribeLogstash", "/openapi/logstashes/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeLogstashResponse creates a response to parse from DescribeLogstash response
+func CreateDescribeLogstashResponse() (response *DescribeLogstashResponse) {
+	response = &DescribeLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/describe_pipeline_management_config.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribePipelineManagementConfig invokes the elasticsearch.DescribePipelineManagementConfig API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describepipelinemanagementconfig.html
+func (client *Client) DescribePipelineManagementConfig(request *DescribePipelineManagementConfigRequest) (response *DescribePipelineManagementConfigResponse, err error) {
+	response = CreateDescribePipelineManagementConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePipelineManagementConfigWithChan invokes the elasticsearch.DescribePipelineManagementConfig API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describepipelinemanagementconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePipelineManagementConfigWithChan(request *DescribePipelineManagementConfigRequest) (<-chan *DescribePipelineManagementConfigResponse, <-chan error) {
+	responseChan := make(chan *DescribePipelineManagementConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePipelineManagementConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePipelineManagementConfigWithCallback invokes the elasticsearch.DescribePipelineManagementConfig API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describepipelinemanagementconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePipelineManagementConfigWithCallback(request *DescribePipelineManagementConfigRequest, callback func(response *DescribePipelineManagementConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePipelineManagementConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePipelineManagementConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePipelineManagementConfigRequest is the request struct for api DescribePipelineManagementConfig
+type DescribePipelineManagementConfigRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// DescribePipelineManagementConfigResponse is the response struct for api DescribePipelineManagementConfig
+type DescribePipelineManagementConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateDescribePipelineManagementConfigRequest creates a request to invoke DescribePipelineManagementConfig API
+func CreateDescribePipelineManagementConfigRequest() (request *DescribePipelineManagementConfigRequest) {
+	request = &DescribePipelineManagementConfigRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DescribePipelineManagementConfig", "/openapi/logstashes/[InstanceId]//pipeline-management-config", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribePipelineManagementConfigResponse creates a response to parse from DescribePipelineManagementConfig response
+func CreateDescribePipelineManagementConfigResponse() (response *DescribePipelineManagementConfigResponse) {
+	response = &DescribePipelineManagementConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/elasticsearch/describe_regions.go

@@ -0,0 +1,104 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRegions invokes the elasticsearch.DescribeRegions API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeregions.html
+func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) {
+	response = CreateDescribeRegionsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRegionsWithChan invokes the elasticsearch.DescribeRegions API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeregions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) {
+	responseChan := make(chan *DescribeRegionsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRegions(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRegionsWithCallback invokes the elasticsearch.DescribeRegions API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeregions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRegionsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRegions(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRegionsRequest is the request struct for api DescribeRegions
+type DescribeRegionsRequest struct {
+	*requests.RoaRequest
+}
+
+// DescribeRegionsResponse is the response struct for api DescribeRegions
+type DescribeRegionsResponse struct {
+	*responses.BaseResponse
+	RequestId string       `json:"RequestId" xml:"RequestId"`
+	Result    []RegionInfo `json:"Result" xml:"Result"`
+}
+
+// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API
+func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) {
+	request = &DescribeRegionsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DescribeRegions", "/openapi/regions", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response
+func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) {
+	response = &DescribeRegionsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 2
services/elasticsearch/get_suggest_shrinkable_nodes.go

@@ -85,8 +85,6 @@ type GetSuggestShrinkableNodesRequest struct {
 type GetSuggestShrinkableNodesResponse struct {
 	*responses.BaseResponse
 	RequestId string       `json:"RequestId" xml:"RequestId"`
-	Code      string       `json:"Code" xml:"Code"`
-	Message   string       `json:"Message" xml:"Message"`
 	Result    []ResultItem `json:"Result" xml:"Result"`
 }
 

+ 0 - 2
services/elasticsearch/get_transferable_nodes.go

@@ -85,8 +85,6 @@ type GetTransferableNodesRequest struct {
 type GetTransferableNodesResponse struct {
 	*responses.BaseResponse
 	RequestId string       `json:"RequestId" xml:"RequestId"`
-	Code      string       `json:"Code" xml:"Code"`
-	Message   string       `json:"Message" xml:"Message"`
 	Result    []ResultItem `json:"Result" xml:"Result"`
 }
 

+ 106 - 0
services/elasticsearch/install_logstash_system_plugin.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// InstallLogstashSystemPlugin invokes the elasticsearch.InstallLogstashSystemPlugin API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/installlogstashsystemplugin.html
+func (client *Client) InstallLogstashSystemPlugin(request *InstallLogstashSystemPluginRequest) (response *InstallLogstashSystemPluginResponse, err error) {
+	response = CreateInstallLogstashSystemPluginResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// InstallLogstashSystemPluginWithChan invokes the elasticsearch.InstallLogstashSystemPlugin API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/installlogstashsystemplugin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InstallLogstashSystemPluginWithChan(request *InstallLogstashSystemPluginRequest) (<-chan *InstallLogstashSystemPluginResponse, <-chan error) {
+	responseChan := make(chan *InstallLogstashSystemPluginResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.InstallLogstashSystemPlugin(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// InstallLogstashSystemPluginWithCallback invokes the elasticsearch.InstallLogstashSystemPlugin API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/installlogstashsystemplugin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InstallLogstashSystemPluginWithCallback(request *InstallLogstashSystemPluginRequest, callback func(response *InstallLogstashSystemPluginResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *InstallLogstashSystemPluginResponse
+		var err error
+		defer close(result)
+		response, err = client.InstallLogstashSystemPlugin(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// InstallLogstashSystemPluginRequest is the request struct for api InstallLogstashSystemPlugin
+type InstallLogstashSystemPluginRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// InstallLogstashSystemPluginResponse is the response struct for api InstallLogstashSystemPlugin
+type InstallLogstashSystemPluginResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Result    []string `json:"Result" xml:"Result"`
+}
+
+// CreateInstallLogstashSystemPluginRequest creates a request to invoke InstallLogstashSystemPlugin API
+func CreateInstallLogstashSystemPluginRequest() (request *InstallLogstashSystemPluginRequest) {
+	request = &InstallLogstashSystemPluginRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "InstallLogstashSystemPlugin", "/openapi/logstashes/[InstanceId]/plugins/system/actions/install", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateInstallLogstashSystemPluginResponse creates a response to parse from InstallLogstashSystemPlugin response
+func CreateInstallLogstashSystemPluginResponse() (response *InstallLogstashSystemPluginResponse) {
+	response = &InstallLogstashSystemPluginResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/elasticsearch/interrupt_elasticsearch_task.go

@@ -0,0 +1,108 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// InterruptElasticsearchTask invokes the elasticsearch.InterruptElasticsearchTask API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptelasticsearchtask.html
+func (client *Client) InterruptElasticsearchTask(request *InterruptElasticsearchTaskRequest) (response *InterruptElasticsearchTaskResponse, err error) {
+	response = CreateInterruptElasticsearchTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// InterruptElasticsearchTaskWithChan invokes the elasticsearch.InterruptElasticsearchTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptelasticsearchtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InterruptElasticsearchTaskWithChan(request *InterruptElasticsearchTaskRequest) (<-chan *InterruptElasticsearchTaskResponse, <-chan error) {
+	responseChan := make(chan *InterruptElasticsearchTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.InterruptElasticsearchTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// InterruptElasticsearchTaskWithCallback invokes the elasticsearch.InterruptElasticsearchTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptelasticsearchtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InterruptElasticsearchTaskWithCallback(request *InterruptElasticsearchTaskRequest, callback func(response *InterruptElasticsearchTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *InterruptElasticsearchTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.InterruptElasticsearchTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// InterruptElasticsearchTaskRequest is the request struct for api InterruptElasticsearchTask
+type InterruptElasticsearchTaskRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// InterruptElasticsearchTaskResponse is the response struct for api InterruptElasticsearchTask
+type InterruptElasticsearchTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateInterruptElasticsearchTaskRequest creates a request to invoke InterruptElasticsearchTask API
+func CreateInterruptElasticsearchTaskRequest() (request *InterruptElasticsearchTaskRequest) {
+	request = &InterruptElasticsearchTaskRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "InterruptElasticsearchTask", "/openapi/instances/[InstanceId]/actions/interrupt", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateInterruptElasticsearchTaskResponse creates a response to parse from InterruptElasticsearchTask response
+func CreateInterruptElasticsearchTaskResponse() (response *InterruptElasticsearchTaskResponse) {
+	response = &InterruptElasticsearchTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/elasticsearch/interrupt_logstash_task.go

@@ -0,0 +1,108 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// InterruptLogstashTask invokes the elasticsearch.InterruptLogstashTask API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptlogstashtask.html
+func (client *Client) InterruptLogstashTask(request *InterruptLogstashTaskRequest) (response *InterruptLogstashTaskResponse, err error) {
+	response = CreateInterruptLogstashTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// InterruptLogstashTaskWithChan invokes the elasticsearch.InterruptLogstashTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptlogstashtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InterruptLogstashTaskWithChan(request *InterruptLogstashTaskRequest) (<-chan *InterruptLogstashTaskResponse, <-chan error) {
+	responseChan := make(chan *InterruptLogstashTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.InterruptLogstashTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// InterruptLogstashTaskWithCallback invokes the elasticsearch.InterruptLogstashTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/interruptlogstashtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) InterruptLogstashTaskWithCallback(request *InterruptLogstashTaskRequest, callback func(response *InterruptLogstashTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *InterruptLogstashTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.InterruptLogstashTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// InterruptLogstashTaskRequest is the request struct for api InterruptLogstashTask
+type InterruptLogstashTaskRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// InterruptLogstashTaskResponse is the response struct for api InterruptLogstashTask
+type InterruptLogstashTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateInterruptLogstashTaskRequest creates a request to invoke InterruptLogstashTask API
+func CreateInterruptLogstashTaskRequest() (request *InterruptLogstashTaskRequest) {
+	request = &InterruptLogstashTaskRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "InterruptLogstashTask", "/openapi/logstashes/[InstanceId]/actions/interrupt", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateInterruptLogstashTaskResponse creates a response to parse from InterruptLogstashTask response
+func CreateInterruptLogstashTaskResponse() (response *InterruptLogstashTaskResponse) {
+	response = &InterruptLogstashTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 2
services/elasticsearch/list_all_node.go

@@ -83,8 +83,6 @@ type ListAllNodeRequest struct {
 type ListAllNodeResponse struct {
 	*responses.BaseResponse
 	RequestId string       `json:"RequestId" xml:"RequestId"`
-	Code      string       `json:"Code" xml:"Code"`
-	Message   string       `json:"Message" xml:"Message"`
 	Result    []ResultItem `json:"Result" xml:"Result"`
 }
 

+ 106 - 0
services/elasticsearch/list_alternative_snapshot_repos.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListAlternativeSnapshotRepos invokes the elasticsearch.ListAlternativeSnapshotRepos API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listalternativesnapshotrepos.html
+func (client *Client) ListAlternativeSnapshotRepos(request *ListAlternativeSnapshotReposRequest) (response *ListAlternativeSnapshotReposResponse, err error) {
+	response = CreateListAlternativeSnapshotReposResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListAlternativeSnapshotReposWithChan invokes the elasticsearch.ListAlternativeSnapshotRepos API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listalternativesnapshotrepos.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListAlternativeSnapshotReposWithChan(request *ListAlternativeSnapshotReposRequest) (<-chan *ListAlternativeSnapshotReposResponse, <-chan error) {
+	responseChan := make(chan *ListAlternativeSnapshotReposResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListAlternativeSnapshotRepos(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListAlternativeSnapshotReposWithCallback invokes the elasticsearch.ListAlternativeSnapshotRepos API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listalternativesnapshotrepos.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListAlternativeSnapshotReposWithCallback(request *ListAlternativeSnapshotReposRequest, callback func(response *ListAlternativeSnapshotReposResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListAlternativeSnapshotReposResponse
+		var err error
+		defer close(result)
+		response, err = client.ListAlternativeSnapshotRepos(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListAlternativeSnapshotReposRequest is the request struct for api ListAlternativeSnapshotRepos
+type ListAlternativeSnapshotReposRequest struct {
+	*requests.RoaRequest
+	InstanceId      string           `position:"Path" name:"InstanceId"`
+	AlreadySetItems requests.Boolean `position:"Query" name:"alreadySetItems"`
+}
+
+// ListAlternativeSnapshotReposResponse is the response struct for api ListAlternativeSnapshotRepos
+type ListAlternativeSnapshotReposResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    []Repo `json:"Result" xml:"Result"`
+}
+
+// CreateListAlternativeSnapshotReposRequest creates a request to invoke ListAlternativeSnapshotRepos API
+func CreateListAlternativeSnapshotReposRequest() (request *ListAlternativeSnapshotReposRequest) {
+	request = &ListAlternativeSnapshotReposRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListAlternativeSnapshotRepos", "/openapi/instances/[InstanceId]/alternative-snapshot-repos", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListAlternativeSnapshotReposResponse creates a response to parse from ListAlternativeSnapshotRepos response
+func CreateListAlternativeSnapshotReposResponse() (response *ListAlternativeSnapshotReposResponse) {
+	response = &ListAlternativeSnapshotReposResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/elasticsearch/list_logstash.go

@@ -0,0 +1,111 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListLogstash invokes the elasticsearch.ListLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstash.html
+func (client *Client) ListLogstash(request *ListLogstashRequest) (response *ListLogstashResponse, err error) {
+	response = CreateListLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListLogstashWithChan invokes the elasticsearch.ListLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashWithChan(request *ListLogstashRequest) (<-chan *ListLogstashResponse, <-chan error) {
+	responseChan := make(chan *ListLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListLogstashWithCallback invokes the elasticsearch.ListLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashWithCallback(request *ListLogstashRequest, callback func(response *ListLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.ListLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListLogstashRequest is the request struct for api ListLogstash
+type ListLogstashRequest struct {
+	*requests.RoaRequest
+	ResourceGroupId string           `position:"Query" name:"resourceGroupId"`
+	InstanceId      string           `position:"Query" name:"instanceId"`
+	Size            requests.Integer `position:"Query" name:"size"`
+	Description     string           `position:"Query" name:"description"`
+	Page            requests.Integer `position:"Query" name:"page"`
+	OwnerId         string           `position:"Query" name:"ownerId"`
+	Version         string           `position:"Query" name:"version"`
+}
+
+// ListLogstashResponse is the response struct for api ListLogstash
+type ListLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Result    []Instance `json:"Result" xml:"Result"`
+}
+
+// CreateListLogstashRequest creates a request to invoke ListLogstash API
+func CreateListLogstashRequest() (request *ListLogstashRequest) {
+	request = &ListLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListLogstash", "/openapi/logstashes", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListLogstashResponse creates a response to parse from ListLogstash response
+func CreateListLogstashResponse() (response *ListLogstashResponse) {
+	response = &ListLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/elasticsearch/list_logstash_log.go

@@ -0,0 +1,111 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListLogstashLog invokes the elasticsearch.ListLogstashLog API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashlog.html
+func (client *Client) ListLogstashLog(request *ListLogstashLogRequest) (response *ListLogstashLogResponse, err error) {
+	response = CreateListLogstashLogResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListLogstashLogWithChan invokes the elasticsearch.ListLogstashLog API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashlog.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashLogWithChan(request *ListLogstashLogRequest) (<-chan *ListLogstashLogResponse, <-chan error) {
+	responseChan := make(chan *ListLogstashLogResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListLogstashLog(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListLogstashLogWithCallback invokes the elasticsearch.ListLogstashLog API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashlog.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashLogWithCallback(request *ListLogstashLogRequest, callback func(response *ListLogstashLogResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListLogstashLogResponse
+		var err error
+		defer close(result)
+		response, err = client.ListLogstashLog(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListLogstashLogRequest is the request struct for api ListLogstashLog
+type ListLogstashLogRequest struct {
+	*requests.RoaRequest
+	InstanceId string           `position:"Path" name:"InstanceId"`
+	Size       requests.Integer `position:"Query" name:"size"`
+	Query      string           `position:"Query" name:"query"`
+	EndTime    requests.Integer `position:"Query" name:"endTime"`
+	BeginTime  requests.Integer `position:"Query" name:"beginTime"`
+	Page       requests.Integer `position:"Query" name:"page"`
+	Type       string           `position:"Query" name:"type"`
+}
+
+// ListLogstashLogResponse is the response struct for api ListLogstashLog
+type ListLogstashLogResponse struct {
+	*responses.BaseResponse
+	RequestId string       `json:"RequestId" xml:"RequestId"`
+	Result    []ResultItem `json:"Result" xml:"Result"`
+}
+
+// CreateListLogstashLogRequest creates a request to invoke ListLogstashLog API
+func CreateListLogstashLogRequest() (request *ListLogstashLogRequest) {
+	request = &ListLogstashLogRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListLogstashLog", "/openapi/logstashes/[InstanceId]/search-log", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListLogstashLogResponse creates a response to parse from ListLogstashLog response
+func CreateListLogstashLogResponse() (response *ListLogstashLogResponse) {
+	response = &ListLogstashLogResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/elasticsearch/list_logstash_plugins.go

@@ -0,0 +1,109 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListLogstashPlugins invokes the elasticsearch.ListLogstashPlugins API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashplugins.html
+func (client *Client) ListLogstashPlugins(request *ListLogstashPluginsRequest) (response *ListLogstashPluginsResponse, err error) {
+	response = CreateListLogstashPluginsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListLogstashPluginsWithChan invokes the elasticsearch.ListLogstashPlugins API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashplugins.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashPluginsWithChan(request *ListLogstashPluginsRequest) (<-chan *ListLogstashPluginsResponse, <-chan error) {
+	responseChan := make(chan *ListLogstashPluginsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListLogstashPlugins(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListLogstashPluginsWithCallback invokes the elasticsearch.ListLogstashPlugins API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listlogstashplugins.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListLogstashPluginsWithCallback(request *ListLogstashPluginsRequest, callback func(response *ListLogstashPluginsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListLogstashPluginsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListLogstashPlugins(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListLogstashPluginsRequest is the request struct for api ListLogstashPlugins
+type ListLogstashPluginsRequest struct {
+	*requests.RoaRequest
+	InstanceId string           `position:"Path" name:"InstanceId"`
+	Size       requests.Integer `position:"Query" name:"size"`
+	Name       string           `position:"Query" name:"name"`
+	Page       string           `position:"Query" name:"page"`
+	Source     string           `position:"Query" name:"source"`
+}
+
+// ListLogstashPluginsResponse is the response struct for api ListLogstashPlugins
+type ListLogstashPluginsResponse struct {
+	*responses.BaseResponse
+	RequestId string       `json:"RequestId" xml:"RequestId"`
+	Result    []ResultItem `json:"Result" xml:"Result"`
+}
+
+// CreateListLogstashPluginsRequest creates a request to invoke ListLogstashPlugins API
+func CreateListLogstashPluginsRequest() (request *ListLogstashPluginsRequest) {
+	request = &ListLogstashPluginsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListLogstashPlugins", "/openapi/logstashes/[InstanceId]/plugins", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListLogstashPluginsResponse creates a response to parse from ListLogstashPlugins response
+func CreateListLogstashPluginsResponse() (response *ListLogstashPluginsResponse) {
+	response = &ListLogstashPluginsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/list_snapshot_repos_by_instance_id.go

@@ -0,0 +1,105 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListSnapshotReposByInstanceId invokes the elasticsearch.ListSnapshotReposByInstanceId API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsnapshotreposbyinstanceid.html
+func (client *Client) ListSnapshotReposByInstanceId(request *ListSnapshotReposByInstanceIdRequest) (response *ListSnapshotReposByInstanceIdResponse, err error) {
+	response = CreateListSnapshotReposByInstanceIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListSnapshotReposByInstanceIdWithChan invokes the elasticsearch.ListSnapshotReposByInstanceId API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsnapshotreposbyinstanceid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListSnapshotReposByInstanceIdWithChan(request *ListSnapshotReposByInstanceIdRequest) (<-chan *ListSnapshotReposByInstanceIdResponse, <-chan error) {
+	responseChan := make(chan *ListSnapshotReposByInstanceIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListSnapshotReposByInstanceId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListSnapshotReposByInstanceIdWithCallback invokes the elasticsearch.ListSnapshotReposByInstanceId API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsnapshotreposbyinstanceid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListSnapshotReposByInstanceIdWithCallback(request *ListSnapshotReposByInstanceIdRequest, callback func(response *ListSnapshotReposByInstanceIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListSnapshotReposByInstanceIdResponse
+		var err error
+		defer close(result)
+		response, err = client.ListSnapshotReposByInstanceId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListSnapshotReposByInstanceIdRequest is the request struct for api ListSnapshotReposByInstanceId
+type ListSnapshotReposByInstanceIdRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// ListSnapshotReposByInstanceIdResponse is the response struct for api ListSnapshotReposByInstanceId
+type ListSnapshotReposByInstanceIdResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    []Repo `json:"Result" xml:"Result"`
+}
+
+// CreateListSnapshotReposByInstanceIdRequest creates a request to invoke ListSnapshotReposByInstanceId API
+func CreateListSnapshotReposByInstanceIdRequest() (request *ListSnapshotReposByInstanceIdRequest) {
+	request = &ListSnapshotReposByInstanceIdRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListSnapshotReposByInstanceId", "/openapi/instances/[InstanceId]/snapshot-repos", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListSnapshotReposByInstanceIdResponse creates a response to parse from ListSnapshotReposByInstanceId response
+func CreateListSnapshotReposByInstanceIdResponse() (response *ListSnapshotReposByInstanceIdResponse) {
+	response = &ListSnapshotReposByInstanceIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/elasticsearch/move_resource_group.go

@@ -83,8 +83,8 @@ type MoveResourceGroupRequest struct {
 // MoveResourceGroupResponse is the response struct for api MoveResourceGroup
 type MoveResourceGroupResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Result    Result `json:"Result" xml:"Result"`
+	RequestId string                    `json:"RequestId" xml:"RequestId"`
+	Result    ResultInMoveResourceGroup `json:"Result" xml:"Result"`
 }
 
 // CreateMoveResourceGroupRequest creates a request to invoke MoveResourceGroup API

+ 106 - 0
services/elasticsearch/restart_logstash.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// RestartLogstash invokes the elasticsearch.RestartLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartlogstash.html
+func (client *Client) RestartLogstash(request *RestartLogstashRequest) (response *RestartLogstashResponse, err error) {
+	response = CreateRestartLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RestartLogstashWithChan invokes the elasticsearch.RestartLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RestartLogstashWithChan(request *RestartLogstashRequest) (<-chan *RestartLogstashResponse, <-chan error) {
+	responseChan := make(chan *RestartLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RestartLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RestartLogstashWithCallback invokes the elasticsearch.RestartLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartlogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RestartLogstashWithCallback(request *RestartLogstashRequest, callback func(response *RestartLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RestartLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.RestartLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RestartLogstashRequest is the request struct for api RestartLogstash
+type RestartLogstashRequest struct {
+	*requests.RoaRequest
+	InstanceId  string           `position:"Path" name:"InstanceId"`
+	ClientToken string           `position:"Query" name:"clientToken"`
+	Force       requests.Boolean `position:"Query" name:"force"`
+}
+
+// RestartLogstashResponse is the response struct for api RestartLogstash
+type RestartLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRestartLogstashRequest creates a request to invoke RestartLogstash API
+func CreateRestartLogstashRequest() (request *RestartLogstashRequest) {
+	request = &RestartLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "RestartLogstash", "/openapi/logstashes/[InstanceId]/actions/restart", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateRestartLogstashResponse creates a response to parse from RestartLogstash response
+func CreateRestartLogstashResponse() (response *RestartLogstashResponse) {
+	response = &RestartLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/elasticsearch/resume_elasticsearch_task.go

@@ -0,0 +1,108 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ResumeElasticsearchTask invokes the elasticsearch.ResumeElasticsearchTask API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumeelasticsearchtask.html
+func (client *Client) ResumeElasticsearchTask(request *ResumeElasticsearchTaskRequest) (response *ResumeElasticsearchTaskResponse, err error) {
+	response = CreateResumeElasticsearchTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ResumeElasticsearchTaskWithChan invokes the elasticsearch.ResumeElasticsearchTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumeelasticsearchtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ResumeElasticsearchTaskWithChan(request *ResumeElasticsearchTaskRequest) (<-chan *ResumeElasticsearchTaskResponse, <-chan error) {
+	responseChan := make(chan *ResumeElasticsearchTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ResumeElasticsearchTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ResumeElasticsearchTaskWithCallback invokes the elasticsearch.ResumeElasticsearchTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumeelasticsearchtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ResumeElasticsearchTaskWithCallback(request *ResumeElasticsearchTaskRequest, callback func(response *ResumeElasticsearchTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ResumeElasticsearchTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.ResumeElasticsearchTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ResumeElasticsearchTaskRequest is the request struct for api ResumeElasticsearchTask
+type ResumeElasticsearchTaskRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// ResumeElasticsearchTaskResponse is the response struct for api ResumeElasticsearchTask
+type ResumeElasticsearchTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateResumeElasticsearchTaskRequest creates a request to invoke ResumeElasticsearchTask API
+func CreateResumeElasticsearchTaskRequest() (request *ResumeElasticsearchTaskRequest) {
+	request = &ResumeElasticsearchTaskRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ResumeElasticsearchTask", "/openapi/instances/[InstanceId]/actions/resume", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateResumeElasticsearchTaskResponse creates a response to parse from ResumeElasticsearchTask response
+func CreateResumeElasticsearchTaskResponse() (response *ResumeElasticsearchTaskResponse) {
+	response = &ResumeElasticsearchTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/elasticsearch/resume_logstash_task.go

@@ -0,0 +1,108 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ResumeLogstashTask invokes the elasticsearch.ResumeLogstashTask API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumelogstashtask.html
+func (client *Client) ResumeLogstashTask(request *ResumeLogstashTaskRequest) (response *ResumeLogstashTaskResponse, err error) {
+	response = CreateResumeLogstashTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ResumeLogstashTaskWithChan invokes the elasticsearch.ResumeLogstashTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumelogstashtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ResumeLogstashTaskWithChan(request *ResumeLogstashTaskRequest) (<-chan *ResumeLogstashTaskResponse, <-chan error) {
+	responseChan := make(chan *ResumeLogstashTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ResumeLogstashTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ResumeLogstashTaskWithCallback invokes the elasticsearch.ResumeLogstashTask API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/resumelogstashtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ResumeLogstashTaskWithCallback(request *ResumeLogstashTaskRequest, callback func(response *ResumeLogstashTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ResumeLogstashTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.ResumeLogstashTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ResumeLogstashTaskRequest is the request struct for api ResumeLogstashTask
+type ResumeLogstashTaskRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// ResumeLogstashTaskResponse is the response struct for api ResumeLogstashTask
+type ResumeLogstashTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateResumeLogstashTaskRequest creates a request to invoke ResumeLogstashTask API
+func CreateResumeLogstashTaskRequest() (request *ResumeLogstashTaskRequest) {
+	request = &ResumeLogstashTaskRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ResumeLogstashTask", "/openapi/logstashes/[InstanceId]/actions/resume", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateResumeLogstashTaskResponse creates a response to parse from ResumeLogstashTask response
+func CreateResumeLogstashTaskResponse() (response *ResumeLogstashTaskResponse) {
+	response = &ResumeLogstashTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 2
services/elasticsearch/shrink_node.go

@@ -85,8 +85,6 @@ type ShrinkNodeRequest struct {
 type ShrinkNodeResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
 	Result    bool   `json:"Result" xml:"Result"`
 }
 

+ 21 - 0
services/elasticsearch/struct_advanced_setting.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AdvancedSetting is a nested struct in elasticsearch response
+type AdvancedSetting struct {
+	GcName string `json:"gcName" xml:"gcName"`
+}

+ 21 - 0
services/elasticsearch/struct_aliws_dicts.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AliwsDicts is a nested struct in elasticsearch response
+type AliwsDicts struct {
+	Dict []Dict `json:"Dict" xml:"Dict"`
+}

+ 22 - 0
services/elasticsearch/struct_category_entity.go

@@ -0,0 +1,22 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// CategoryEntity is a nested struct in elasticsearch response
+type CategoryEntity struct {
+	InstanceCategory   string          `json:"instanceCategory" xml:"instanceCategory"`
+	SupportVersionList []VersionEntity `json:"supportVersionList" xml:"supportVersionList"`
+}

+ 22 - 0
services/elasticsearch/struct_connectable_clusters_info.go

@@ -0,0 +1,22 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ConnectableClustersInfo is a nested struct in elasticsearch response
+type ConnectableClustersInfo struct {
+	Instances   string `json:"instances" xml:"instances"`
+	NetworkType string `json:"networkType" xml:"networkType"`
+}

+ 1 - 1
services/elasticsearch/struct_data_disk_list.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // DataDiskList is a nested struct in elasticsearch response
 type DataDiskList struct {
-	DataDiskListItem []DataDiskListItem `json:"dataDiskListItem" xml:"dataDiskListItem"`
+	DataDiskListItem []DataDiskListItem `json:"dataDiskList" xml:"dataDiskList"`
 }

+ 24 - 0
services/elasticsearch/struct_dict.go

@@ -0,0 +1,24 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Dict is a nested struct in elasticsearch response
+type Dict struct {
+	Name       string `json:"name" xml:"name"`
+	FileSize   int64  `json:"fileSize" xml:"fileSize"`
+	Type       string `json:"type" xml:"type"`
+	SourceType string `json:"sourceType" xml:"sourceType"`
+}

+ 1 - 1
services/elasticsearch/struct_dict_list_in_move_resource_group.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // DictListInMoveResourceGroup is a nested struct in elasticsearch response
 type DictListInMoveResourceGroup struct {
-	DictListItem []DictListItem `json:"dictListItem" xml:"dictListItem"`
+	DictListItem []DictListItem `json:"dictList" xml:"dictList"`
 }

+ 1 - 1
services/elasticsearch/struct_dict_list_in_update_instance.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // DictListInUpdateInstance is a nested struct in elasticsearch response
 type DictListInUpdateInstance struct {
-	DictListItem []DictListItem `json:"dictListItem" xml:"dictListItem"`
+	DictListItem []DictListItem `json:"dictList" xml:"dictList"`
 }

+ 22 - 0
services/elasticsearch/struct_endpoint.go

@@ -0,0 +1,22 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Endpoint is a nested struct in elasticsearch response
+type Endpoint struct {
+	Host string `json:"host" xml:"host"`
+	Port string `json:"port" xml:"port"`
+}

+ 21 - 0
services/elasticsearch/struct_endpoint_list.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// EndpointList is a nested struct in elasticsearch response
+type EndpointList struct {
+	Endpoint []Endpoint `json:"endpoint" xml:"endpoint"`
+}

+ 1 - 1
services/elasticsearch/struct_es_versions_latest_list.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // EsVersionsLatestList is a nested struct in elasticsearch response
 type EsVersionsLatestList struct {
-	EsVersionsLatestListItem []EsVersionsLatestListItem `json:"esVersionsLatestListItem" xml:"esVersionsLatestListItem"`
+	EsVersionsLatestListItem []EsVersionsLatestListItem `json:"esVersionsLatestList" xml:"esVersionsLatestList"`
 }

+ 8 - 7
services/elasticsearch/struct_instance.go

@@ -17,18 +17,19 @@ package elasticsearch
 
 // Instance is a nested struct in elasticsearch response
 type Instance struct {
-	InstanceId             string              `json:"instanceId" xml:"instanceId"`
-	Description            string              `json:"description" xml:"description"`
+	DedicateMaster         bool                `json:"dedicateMaster" xml:"dedicateMaster"`
+	UpdatedAt              string              `json:"updatedAt" xml:"updatedAt"`
 	NodeAmount             int                 `json:"nodeAmount" xml:"nodeAmount"`
-	PaymentType            string              `json:"paymentType" xml:"paymentType"`
+	InstanceId             string              `json:"instanceId" xml:"instanceId"`
 	Status                 string              `json:"status" xml:"status"`
+	Description            string              `json:"description" xml:"description"`
+	AdvancedDedicateMaster bool                `json:"advancedDedicateMaster" xml:"advancedDedicateMaster"`
+	Version                string              `json:"version" xml:"version"`
 	EsVersion              string              `json:"esVersion" xml:"esVersion"`
+	PaymentType            string              `json:"paymentType" xml:"paymentType"`
 	CreatedAt              string              `json:"createdAt" xml:"createdAt"`
-	UpdatedAt              string              `json:"updatedAt" xml:"updatedAt"`
-	AdvancedDedicateMaster bool                `json:"advancedDedicateMaster" xml:"advancedDedicateMaster"`
-	DedicateMaster         bool                `json:"dedicateMaster" xml:"dedicateMaster"`
-	NodeSpec               NodeSpec            `json:"nodeSpec" xml:"nodeSpec"`
 	NetworkConfig          NetworkConfig       `json:"networkConfig" xml:"networkConfig"`
 	MasterConfiguration    MasterConfiguration `json:"masterConfiguration" xml:"masterConfiguration"`
+	NodeSpec               NodeSpec            `json:"nodeSpec" xml:"nodeSpec"`
 	KibanaConfiguration    KibanaConfiguration `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
 }

+ 4 - 3
services/elasticsearch/struct_node_spec.go

@@ -17,7 +17,8 @@ package elasticsearch
 
 // NodeSpec is a nested struct in elasticsearch response
 type NodeSpec struct {
-	Disk     int    `json:"disk" xml:"disk"`
-	Spec     string `json:"spec" xml:"spec"`
-	DiskType string `json:"diskType" xml:"diskType"`
+	Disk           int    `json:"disk" xml:"disk"`
+	DiskEncryption bool   `json:"diskEncryption" xml:"diskEncryption"`
+	Spec           string `json:"spec" xml:"spec"`
+	DiskType       string `json:"diskType" xml:"diskType"`
 }

+ 1 - 1
services/elasticsearch/struct_node_spec_list.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // NodeSpecList is a nested struct in elasticsearch response
 type NodeSpecList struct {
-	NodeSpecListItem []NodeSpecListItem `json:"nodeSpecListItem" xml:"nodeSpecListItem"`
+	NodeSpecListItem []NodeSpecListItem `json:"nodeSpecList" xml:"nodeSpecList"`
 }

+ 21 - 0
services/elasticsearch/struct_pipeline_ids.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// PipelineIds is a nested struct in elasticsearch response
+type PipelineIds struct {
+	Pipelineid []string `json:"pipelineid" xml:"pipelineid"`
+}

+ 25 - 0
services/elasticsearch/struct_region_info.go

@@ -0,0 +1,25 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// RegionInfo is a nested struct in elasticsearch response
+type RegionInfo struct {
+	RegionId        string `json:"regionId" xml:"regionId"`
+	RegionEndpoint  string `json:"regionEndpoint" xml:"regionEndpoint"`
+	LocalName       string `json:"localName" xml:"localName"`
+	ConsoleEndpoint string `json:"consoleEndpoint" xml:"consoleEndpoint"`
+	Status          string `json:"status" xml:"status"`
+}

+ 24 - 0
services/elasticsearch/struct_repo.go

@@ -0,0 +1,24 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Repo is a nested struct in elasticsearch response
+type Repo struct {
+	SnapWarehouse string `json:"snapWarehouse" xml:"snapWarehouse"`
+	RepoPath      string `json:"repoPath" xml:"repoPath"`
+	InstanceId    string `json:"instanceId" xml:"instanceId"`
+	Status        string `json:"status" xml:"status"`
+}

+ 41 - 17
services/elasticsearch/struct_result.go

@@ -17,49 +17,73 @@ package elasticsearch
 
 // Result is a nested struct in elasticsearch response
 type Result struct {
-	Enable                    bool                       `json:"enable" xml:"enable"`
+	Config                    map[string]interface{}     `json:"config" xml:"config"`
 	KibanaPort                int                        `json:"kibanaPort" xml:"kibanaPort"`
-	QuartzRegex               string                     `json:"quartzRegex" xml:"quartzRegex"`
-	CreateUrl                 string                     `json:"createUrl" xml:"createUrl"`
+	VpcInstanceId             string                     `json:"vpcInstanceId" xml:"vpcInstanceId"`
+	UserName                  string                     `json:"userName" xml:"userName"`
+	Endpoints                 string                     `json:"endpoints" xml:"endpoints"`
 	PublicDomain              string                     `json:"publicDomain" xml:"publicDomain"`
+	HaveKibana                bool                       `json:"haveKibana" xml:"haveKibana"`
 	KibanaDomain              string                     `json:"kibanaDomain" xml:"kibanaDomain"`
 	Domain                    string                     `json:"domain" xml:"domain"`
-	PaymentType               string                     `json:"paymentType" xml:"paymentType"`
 	RegionId                  string                     `json:"regionId" xml:"regionId"`
-	UpdatedAt                 string                     `json:"updatedAt" xml:"updatedAt"`
+	Port                      int                        `json:"port" xml:"port"`
 	Env                       string                     `json:"env" xml:"env"`
+	EnableKibanaPublicNetwork bool                       `json:"enableKibanaPublicNetwork" xml:"enableKibanaPublicNetwork"`
+	WarmNode                  bool                       `json:"warmNode" xml:"warmNode"`
+	AdvancedDedicateMaster    bool                       `json:"advancedDedicateMaster" xml:"advancedDedicateMaster"`
+	EnablePublic              bool                       `json:"enablePublic" xml:"enablePublic"`
+	EsVersion                 string                     `json:"esVersion" xml:"esVersion"`
+	Id                        string                     `json:"id" xml:"id"`
+	PublicPort                int                        `json:"publicPort" xml:"publicPort"`
+	DedicateMaster            bool                       `json:"dedicateMaster" xml:"dedicateMaster"`
+	Enable                    bool                       `json:"enable" xml:"enable"`
+	QuartzRegex               string                     `json:"quartzRegex" xml:"quartzRegex"`
+	CreateUrl                 string                     `json:"createUrl" xml:"createUrl"`
+	PipelineManagementType    string                     `json:"pipelineManagementType" xml:"pipelineManagementType"`
+	Protocol                  string                     `json:"protocol" xml:"protocol"`
+	PaymentType               string                     `json:"paymentType" xml:"paymentType"`
+	UpdatedAt                 string                     `json:"updatedAt" xml:"updatedAt"`
 	NodeAmount                int                        `json:"nodeAmount" xml:"nodeAmount"`
 	InstanceId                string                     `json:"instanceId" xml:"instanceId"`
 	Status                    string                     `json:"status" xml:"status"`
+	ZoneCount                 int                        `json:"zoneCount" xml:"zoneCount"`
 	Description               string                     `json:"description" xml:"description"`
-	EnablePublic              bool                       `json:"enablePublic" xml:"enablePublic"`
-	EsVersion                 string                     `json:"esVersion" xml:"esVersion"`
+	EsConfig                  map[string]interface{}     `json:"esConfig" xml:"esConfig"`
+	Version                   string                     `json:"version" xml:"version"`
+	HaveClientNode            bool                       `json:"haveClientNode" xml:"haveClientNode"`
 	CreatedAt                 string                     `json:"createdAt" xml:"createdAt"`
-	Id                        string                     `json:"id" xml:"id"`
-	PublicPort                int                        `json:"publicPort" xml:"publicPort"`
 	EsIPWhitelist             []string                   `json:"esIPWhitelist" xml:"esIPWhitelist"`
-	KibanaIPWhitelist         []string                   `json:"kibanaIPWhitelist" xml:"kibanaIPWhitelist"`
-	PublicIpWhitelist         []string                   `json:"publicIpWhitelist" xml:"publicIpWhitelist"`
 	EsIPBlacklist             []string                   `json:"esIPBlacklist" xml:"esIPBlacklist"`
-	MasterSpec                []string                   `json:"masterSpec" xml:"masterSpec"`
 	PrivateNetworkIpWhiteList []string                   `json:"privateNetworkIpWhiteList" xml:"privateNetworkIpWhiteList"`
+	MasterSpec                []string                   `json:"masterSpec" xml:"masterSpec"`
+	PublicIpWhitelist         []string                   `json:"publicIpWhitelist" xml:"publicIpWhitelist"`
 	ClientNodeSpec            []string                   `json:"clientNodeSpec" xml:"clientNodeSpec"`
 	EsVersions                []string                   `json:"esVersions" xml:"esVersions"`
+	KibanaIPWhitelist         []string                   `json:"kibanaIPWhitelist" xml:"kibanaIPWhitelist"`
+	PipelineIds               []string                   `json:"pipelineIds" xml:"pipelineIds"`
 	Zones                     []string                   `json:"zones" xml:"zones"`
-	NetworkConfig             NetworkConfig              `json:"networkConfig" xml:"networkConfig"`
 	Node                      Node                       `json:"node" xml:"node"`
 	NodeSpec                  NodeSpec                   `json:"nodeSpec" xml:"nodeSpec"`
-	MasterConfiguration       MasterConfiguration        `json:"masterConfiguration" xml:"masterConfiguration"`
+	AdvancedSetting           AdvancedSetting            `json:"advancedSetting" xml:"advancedSetting"`
 	JvmConfine                JvmConfine                 `json:"jvmConfine" xml:"jvmConfine"`
 	KibanaConfiguration       KibanaConfiguration        `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
-	KibanaNodeProperties      KibanaNodeProperties       `json:"kibanaNodeProperties" xml:"kibanaNodeProperties"`
+	WarmNodeConfiguration     WarmNodeConfiguration      `json:"warmNodeConfiguration" xml:"warmNodeConfiguration"`
+	ClientNodeConfiguration   ClientNodeConfiguration    `json:"clientNodeConfiguration" xml:"clientNodeConfiguration"`
 	WarmNodeProperties        WarmNodeProperties         `json:"warmNodeProperties" xml:"warmNodeProperties"`
+	NetworkConfig             NetworkConfig              `json:"networkConfig" xml:"networkConfig"`
+	MasterConfiguration       MasterConfiguration        `json:"masterConfiguration" xml:"masterConfiguration"`
+	KibanaNodeProperties      KibanaNodeProperties       `json:"kibanaNodeProperties" xml:"kibanaNodeProperties"`
 	ClientNodeAmountRange     ClientNodeAmountRange      `json:"clientNodeAmountRange" xml:"clientNodeAmountRange"`
+	SupportVersions           []CategoryEntity           `json:"supportVersions" xml:"supportVersions"`
+	ZoneInfos                 []ZoneInfo                 `json:"zoneInfos" xml:"zoneInfos"`
 	MasterDiskList            []Disk                     `json:"masterDiskList" xml:"masterDiskList"`
 	EsVersionsLatestList      []EsVersionsLatestListItem `json:"esVersionsLatestList" xml:"esVersionsLatestList"`
+	EndpointList              []Endpoint                 `json:"endpointList" xml:"endpointList"`
 	NodeSpecList              []NodeSpecListItem         `json:"nodeSpecList" xml:"nodeSpecList"`
 	ClientNodeDiskList        []Disk                     `json:"clientNodeDiskList" xml:"clientNodeDiskList"`
-	SynonymsDicts             []SynonymsDictsItem        `json:"synonymsDicts" xml:"synonymsDicts"`
 	DataDiskList              []DataDiskListItem         `json:"dataDiskList" xml:"dataDiskList"`
-	DictList                  []DictListItem             `json:"dictList" xml:"dictList"`
+	SynonymsDicts             []SynonymsDicts            `json:"synonymsDicts" xml:"synonymsDicts"`
+	AliwsDicts                []Dict                     `json:"aliwsDicts" xml:"aliwsDicts"`
+	DictList                  []DictList                 `json:"dictList" xml:"dictList"`
 }

+ 21 - 0
services/elasticsearch/struct_result_in_describe_connectable_clusters.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInDescribeConnectableClusters is a nested struct in elasticsearch response
+type ResultInDescribeConnectableClusters struct {
+	ConnectableClustersInfo []ConnectableClustersInfo `json:"ConnectableClustersInfo" xml:"ConnectableClustersInfo"`
+}

+ 0 - 59
services/elasticsearch/struct_result_in_describe_instance.go

@@ -1,59 +0,0 @@
-package elasticsearch
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-// ResultInDescribeInstance is a nested struct in elasticsearch response
-type ResultInDescribeInstance struct {
-	InstanceId                string                  `json:"instanceId" xml:"instanceId"`
-	Domain                    string                  `json:"domain" xml:"domain"`
-	Description               string                  `json:"description" xml:"description"`
-	NodeAmount                int                     `json:"nodeAmount" xml:"nodeAmount"`
-	PaymentType               string                  `json:"paymentType" xml:"paymentType"`
-	Status                    string                  `json:"status" xml:"status"`
-	EsVersion                 string                  `json:"esVersion" xml:"esVersion"`
-	CreatedAt                 string                  `json:"createdAt" xml:"createdAt"`
-	UpdatedAt                 string                  `json:"updatedAt" xml:"updatedAt"`
-	KibanaDomain              string                  `json:"kibanaDomain" xml:"kibanaDomain"`
-	EnablePublic              bool                    `json:"enablePublic" xml:"enablePublic"`
-	DedicateMaster            bool                    `json:"dedicateMaster" xml:"dedicateMaster"`
-	AdvancedDedicateMaster    bool                    `json:"advancedDedicateMaster" xml:"advancedDedicateMaster"`
-	PublicPort                int                     `json:"publicPort" xml:"publicPort"`
-	KibanaPort                int                     `json:"kibanaPort" xml:"kibanaPort"`
-	PublicDomain              string                  `json:"publicDomain" xml:"publicDomain"`
-	VpcInstanceId             string                  `json:"vpcInstanceId" xml:"vpcInstanceId"`
-	Port                      int                     `json:"port" xml:"port"`
-	EsConfig                  map[string]interface{}  `json:"esConfig" xml:"esConfig"`
-	ZoneCount                 int                     `json:"zoneCount" xml:"zoneCount"`
-	HaveClientNode            bool                    `json:"haveClientNode" xml:"haveClientNode"`
-	WarmNode                  bool                    `json:"warmNode" xml:"warmNode"`
-	Protocol                  string                  `json:"protocol" xml:"protocol"`
-	EnableKibanaPublicNetwork bool                    `json:"enableKibanaPublicNetwork" xml:"enableKibanaPublicNetwork"`
-	HaveKibana                bool                    `json:"haveKibana" xml:"haveKibana"`
-	EsIPWhitelist             []string                `json:"esIPWhitelist" xml:"esIPWhitelist"`
-	EsIPBlacklist             []string                `json:"esIPBlacklist" xml:"esIPBlacklist"`
-	KibanaIPWhitelist         []string                `json:"kibanaIPWhitelist" xml:"kibanaIPWhitelist"`
-	PublicIpWhitelist         []string                `json:"publicIpWhitelist" xml:"publicIpWhitelist"`
-	PrivateNetworkIpWhiteList []string                `json:"privateNetworkIpWhiteList" xml:"privateNetworkIpWhiteList"`
-	NodeSpec                  NodeSpec                `json:"nodeSpec" xml:"nodeSpec"`
-	NetworkConfig             NetworkConfig           `json:"networkConfig" xml:"networkConfig"`
-	KibanaConfiguration       KibanaConfiguration     `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
-	MasterConfiguration       MasterConfiguration     `json:"masterConfiguration" xml:"masterConfiguration"`
-	ClientNodeConfiguration   ClientNodeConfiguration `json:"clientNodeConfiguration" xml:"clientNodeConfiguration"`
-	WarmNodeConfiguration     WarmNodeConfiguration   `json:"warmNodeConfiguration" xml:"warmNodeConfiguration"`
-	DictList                  []DictList              `json:"dictList" xml:"dictList"`
-	SynonymsDicts             []SynonymsDicts         `json:"synonymsDicts" xml:"synonymsDicts"`
-	ZoneInfos                 []ZoneInfo              `json:"zoneInfos" xml:"zoneInfos"`
-}

+ 21 - 0
services/elasticsearch/struct_result_in_describe_regions.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInDescribeRegions is a nested struct in elasticsearch response
+type ResultInDescribeRegions struct {
+	RegionInfo []RegionInfo `json:"regionInfo" xml:"regionInfo"`
+}

+ 1 - 1
services/elasticsearch/struct_result_in_get_suggest_shrinkable_nodes.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // ResultInGetSuggestShrinkableNodes is a nested struct in elasticsearch response
 type ResultInGetSuggestShrinkableNodes struct {
-	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
 }

+ 1 - 1
services/elasticsearch/struct_result_in_get_transferable_nodes.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // ResultInGetTransferableNodes is a nested struct in elasticsearch response
 type ResultInGetTransferableNodes struct {
-	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
 }

+ 21 - 0
services/elasticsearch/struct_result_in_install_logstash_system_plugin.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInInstallLogstashSystemPlugin is a nested struct in elasticsearch response
+type ResultInInstallLogstashSystemPlugin struct {
+	Result []string `json:"Result" xml:"Result"`
+}

+ 1 - 1
services/elasticsearch/struct_result_in_list_all_node.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // ResultInListAllNode is a nested struct in elasticsearch response
 type ResultInListAllNode struct {
-	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
 }

+ 21 - 0
services/elasticsearch/struct_result_in_list_alternative_snapshot_repos.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInListAlternativeSnapshotRepos is a nested struct in elasticsearch response
+type ResultInListAlternativeSnapshotRepos struct {
+	Repo []Repo `json:"repo" xml:"repo"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_list_logstash.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInListLogstash is a nested struct in elasticsearch response
+type ResultInListLogstash struct {
+	Instance []Instance `json:"Instance" xml:"Instance"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_list_logstash_log.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInListLogstashLog is a nested struct in elasticsearch response
+type ResultInListLogstashLog struct {
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_list_logstash_plugins.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInListLogstashPlugins is a nested struct in elasticsearch response
+type ResultInListLogstashPlugins struct {
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
+}

+ 1 - 1
services/elasticsearch/struct_result_in_list_plugins.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // ResultInListPlugins is a nested struct in elasticsearch response
 type ResultInListPlugins struct {
-	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
 }

+ 1 - 1
services/elasticsearch/struct_result_in_list_search_log.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // ResultInListSearchLog is a nested struct in elasticsearch response
 type ResultInListSearchLog struct {
-	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+	ResultItem []ResultItem `json:"Result" xml:"Result"`
 }

+ 21 - 0
services/elasticsearch/struct_result_in_list_snapshot_repos_by_instance_id.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInListSnapshotReposByInstanceId is a nested struct in elasticsearch response
+type ResultInListSnapshotReposByInstanceId struct {
+	Repo []Repo `json:"repo" xml:"repo"`
+}

+ 39 - 0
services/elasticsearch/struct_result_in_move_resource_group.go

@@ -0,0 +1,39 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInMoveResourceGroup is a nested struct in elasticsearch response
+type ResultInMoveResourceGroup struct {
+	InstanceId          string              `json:"instanceId" xml:"instanceId"`
+	Domain              string              `json:"domain" xml:"domain"`
+	Description         string              `json:"description" xml:"description"`
+	NodeAmount          int                 `json:"nodeAmount" xml:"nodeAmount"`
+	PaymentType         string              `json:"paymentType" xml:"paymentType"`
+	Status              string              `json:"status" xml:"status"`
+	EsVersion           string              `json:"esVersion" xml:"esVersion"`
+	CreatedAt           string              `json:"createdAt" xml:"createdAt"`
+	UpdatedAt           string              `json:"updatedAt" xml:"updatedAt"`
+	KibanaDomain        string              `json:"kibanaDomain" xml:"kibanaDomain"`
+	KibanaPort          int                 `json:"kibanaPort" xml:"kibanaPort"`
+	PublicDomain        string              `json:"publicDomain" xml:"publicDomain"`
+	PublicPort          int                 `json:"publicPort" xml:"publicPort"`
+	NodeSpec            NodeSpec            `json:"nodeSpec" xml:"nodeSpec"`
+	NetworkConfig       NetworkConfig       `json:"networkConfig" xml:"networkConfig"`
+	KibanaConfiguration KibanaConfiguration `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
+	MasterConfiguration MasterConfiguration `json:"masterConfiguration" xml:"masterConfiguration"`
+	DictList            []DictListItem      `json:"dictList" xml:"dictList"`
+	SynonymsDicts       []SynonymsDictsItem `json:"synonymsDicts" xml:"synonymsDicts"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_uninstall_logstash_plugin.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInUninstallLogstashPlugin is a nested struct in elasticsearch response
+type ResultInUninstallLogstashPlugin struct {
+	Result []string `json:"Result" xml:"Result"`
+}

+ 39 - 0
services/elasticsearch/struct_result_in_update_instance.go

@@ -0,0 +1,39 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// ResultInUpdateInstance is a nested struct in elasticsearch response
+type ResultInUpdateInstance struct {
+	InstanceId          string                        `json:"instanceId" xml:"instanceId"`
+	Domain              string                        `json:"domain" xml:"domain"`
+	Description         string                        `json:"description" xml:"description"`
+	NodeAmount          int                           `json:"nodeAmount" xml:"nodeAmount"`
+	PaymentType         string                        `json:"paymentType" xml:"paymentType"`
+	Status              string                        `json:"status" xml:"status"`
+	EsVersion           string                        `json:"esVersion" xml:"esVersion"`
+	CreatedAt           string                        `json:"createdAt" xml:"createdAt"`
+	UpdatedAt           string                        `json:"updatedAt" xml:"updatedAt"`
+	KibanaDomain        string                        `json:"kibanaDomain" xml:"kibanaDomain"`
+	KibanaPort          int                           `json:"kibanaPort" xml:"kibanaPort"`
+	PublicDomain        string                        `json:"publicDomain" xml:"publicDomain"`
+	PublicPort          int                           `json:"publicPort" xml:"publicPort"`
+	NodeSpec            NodeSpec                      `json:"nodeSpec" xml:"nodeSpec"`
+	NetworkConfig       NetworkConfig                 `json:"networkConfig" xml:"networkConfig"`
+	KibanaConfiguration KibanaConfiguration           `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
+	MasterConfiguration MasterConfiguration           `json:"masterConfiguration" xml:"masterConfiguration"`
+	DictList            DictListInUpdateInstance      `json:"dictList" xml:"dictList"`
+	SynonymsDicts       SynonymsDictsInUpdateInstance `json:"synonymsDicts" xml:"synonymsDicts"`
+}

+ 1 - 1
services/elasticsearch/struct_result_item.go

@@ -30,7 +30,7 @@ type ResultItem struct {
 	Description string `json:"description" xml:"description"`
 	CpuPercent  string `json:"cpuPercent" xml:"cpuPercent"`
 	HeapPercent string `json:"heapPercent" xml:"heapPercent"`
-	Source      string `json:"source" xml:"source"`
 	Level       string `json:"level" xml:"level"`
+	Source      string `json:"source" xml:"source"`
 	Name        string `json:"name" xml:"name"`
 }

+ 21 - 0
services/elasticsearch/struct_support_version_list.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportVersionList is a nested struct in elasticsearch response
+type SupportVersionList struct {
+	VersionEntity []VersionEntity `json:"VersionEntity" xml:"VersionEntity"`
+}

+ 21 - 0
services/elasticsearch/struct_support_versions.go

@@ -0,0 +1,21 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportVersions is a nested struct in elasticsearch response
+type SupportVersions struct {
+	CategoryEntity []CategoryEntity `json:"CategoryEntity" xml:"CategoryEntity"`
+}

+ 1 - 1
services/elasticsearch/struct_synonyms_dicts_in_move_resource_group.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // SynonymsDictsInMoveResourceGroup is a nested struct in elasticsearch response
 type SynonymsDictsInMoveResourceGroup struct {
-	SynonymsDictsItem []SynonymsDictsItem `json:"synonymsDictsItem" xml:"synonymsDictsItem"`
+	SynonymsDictsItem []SynonymsDictsItem `json:"synonymsDicts" xml:"synonymsDicts"`
 }

+ 1 - 1
services/elasticsearch/struct_synonyms_dicts_in_update_instance.go

@@ -17,5 +17,5 @@ package elasticsearch
 
 // SynonymsDictsInUpdateInstance is a nested struct in elasticsearch response
 type SynonymsDictsInUpdateInstance struct {
-	SynonymsDictsItem []SynonymsDictsItem `json:"synonymsDictsItem" xml:"synonymsDictsItem"`
+	SynonymsDictsItem []SynonymsDictsItem `json:"synonymsDicts" xml:"synonymsDicts"`
 }

+ 22 - 0
services/elasticsearch/struct_version_entity.go

@@ -0,0 +1,22 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// VersionEntity is a nested struct in elasticsearch response
+type VersionEntity struct {
+	Key   string `json:"key" xml:"key"`
+	Value string `json:"value" xml:"value"`
+}

+ 5 - 4
services/elasticsearch/struct_warm_node_configuration.go

@@ -17,8 +17,9 @@ package elasticsearch
 
 // WarmNodeConfiguration is a nested struct in elasticsearch response
 type WarmNodeConfiguration struct {
-	Spec     string `json:"spec" xml:"spec"`
-	Amount   int    `json:"amount" xml:"amount"`
-	DiskType string `json:"diskType" xml:"diskType"`
-	Disk     int    `json:"disk" xml:"disk"`
+	Spec           string `json:"spec" xml:"spec"`
+	Amount         int    `json:"amount" xml:"amount"`
+	DiskType       string `json:"diskType" xml:"diskType"`
+	Disk           int    `json:"disk" xml:"disk"`
+	DiskEncryption bool   `json:"diskEncryption" xml:"diskEncryption"`
 }

+ 0 - 2
services/elasticsearch/transfer_node.go

@@ -85,8 +85,6 @@ type TransferNodeRequest struct {
 type TransferNodeResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
 	Result    bool   `json:"Result" xml:"Result"`
 }
 

+ 106 - 0
services/elasticsearch/uninstall_logstash_plugin.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UninstallLogstashPlugin invokes the elasticsearch.UninstallLogstashPlugin API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/uninstalllogstashplugin.html
+func (client *Client) UninstallLogstashPlugin(request *UninstallLogstashPluginRequest) (response *UninstallLogstashPluginResponse, err error) {
+	response = CreateUninstallLogstashPluginResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UninstallLogstashPluginWithChan invokes the elasticsearch.UninstallLogstashPlugin API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/uninstalllogstashplugin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UninstallLogstashPluginWithChan(request *UninstallLogstashPluginRequest) (<-chan *UninstallLogstashPluginResponse, <-chan error) {
+	responseChan := make(chan *UninstallLogstashPluginResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UninstallLogstashPlugin(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UninstallLogstashPluginWithCallback invokes the elasticsearch.UninstallLogstashPlugin API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/uninstalllogstashplugin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UninstallLogstashPluginWithCallback(request *UninstallLogstashPluginRequest, callback func(response *UninstallLogstashPluginResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UninstallLogstashPluginResponse
+		var err error
+		defer close(result)
+		response, err = client.UninstallLogstashPlugin(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UninstallLogstashPluginRequest is the request struct for api UninstallLogstashPlugin
+type UninstallLogstashPluginRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// UninstallLogstashPluginResponse is the response struct for api UninstallLogstashPlugin
+type UninstallLogstashPluginResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Result    []string `json:"Result" xml:"Result"`
+}
+
+// CreateUninstallLogstashPluginRequest creates a request to invoke UninstallLogstashPlugin API
+func CreateUninstallLogstashPluginRequest() (request *UninstallLogstashPluginRequest) {
+	request = &UninstallLogstashPluginRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UninstallLogstashPlugin", "/openapi/logstashes/[InstanceId]/plugins/actions/uninstall", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUninstallLogstashPluginResponse creates a response to parse from UninstallLogstashPlugin response
+func CreateUninstallLogstashPluginResponse() (response *UninstallLogstashPluginResponse) {
+	response = &UninstallLogstashPluginResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/elasticsearch/update_instance.go

@@ -83,8 +83,8 @@ type UpdateInstanceRequest struct {
 // UpdateInstanceResponse is the response struct for api UpdateInstance
 type UpdateInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Result    Result `json:"Result" xml:"Result"`
+	RequestId string                 `json:"RequestId" xml:"RequestId"`
+	Result    ResultInUpdateInstance `json:"Result" xml:"Result"`
 }
 
 // CreateUpdateInstanceRequest creates a request to invoke UpdateInstance API

+ 106 - 0
services/elasticsearch/update_logstash.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdateLogstash invokes the elasticsearch.UpdateLogstash API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstash.html
+func (client *Client) UpdateLogstash(request *UpdateLogstashRequest) (response *UpdateLogstashResponse, err error) {
+	response = CreateUpdateLogstashResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateLogstashWithChan invokes the elasticsearch.UpdateLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashWithChan(request *UpdateLogstashRequest) (<-chan *UpdateLogstashResponse, <-chan error) {
+	responseChan := make(chan *UpdateLogstashResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateLogstash(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateLogstashWithCallback invokes the elasticsearch.UpdateLogstash API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstash.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashWithCallback(request *UpdateLogstashRequest, callback func(response *UpdateLogstashResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateLogstashResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateLogstash(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateLogstashRequest is the request struct for api UpdateLogstash
+type UpdateLogstashRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// UpdateLogstashResponse is the response struct for api UpdateLogstash
+type UpdateLogstashResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateLogstashRequest creates a request to invoke UpdateLogstash API
+func CreateUpdateLogstashRequest() (request *UpdateLogstashRequest) {
+	request = &UpdateLogstashRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateLogstash", "/openapi/logstashes/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateUpdateLogstashResponse creates a response to parse from UpdateLogstash response
+func CreateUpdateLogstashResponse() (response *UpdateLogstashResponse) {
+	response = &UpdateLogstashResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/update_logstash_description.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdateLogstashDescription invokes the elasticsearch.UpdateLogstashDescription API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashdescription.html
+func (client *Client) UpdateLogstashDescription(request *UpdateLogstashDescriptionRequest) (response *UpdateLogstashDescriptionResponse, err error) {
+	response = CreateUpdateLogstashDescriptionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateLogstashDescriptionWithChan invokes the elasticsearch.UpdateLogstashDescription API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashdescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashDescriptionWithChan(request *UpdateLogstashDescriptionRequest) (<-chan *UpdateLogstashDescriptionResponse, <-chan error) {
+	responseChan := make(chan *UpdateLogstashDescriptionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateLogstashDescription(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateLogstashDescriptionWithCallback invokes the elasticsearch.UpdateLogstashDescription API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashdescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashDescriptionWithCallback(request *UpdateLogstashDescriptionRequest, callback func(response *UpdateLogstashDescriptionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateLogstashDescriptionResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateLogstashDescription(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateLogstashDescriptionRequest is the request struct for api UpdateLogstashDescription
+type UpdateLogstashDescriptionRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// UpdateLogstashDescriptionResponse is the response struct for api UpdateLogstashDescription
+type UpdateLogstashDescriptionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateLogstashDescriptionRequest creates a request to invoke UpdateLogstashDescription API
+func CreateUpdateLogstashDescriptionRequest() (request *UpdateLogstashDescriptionRequest) {
+	request = &UpdateLogstashDescriptionRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateLogstashDescription", "/openapi/logstashes/[InstanceId]/description", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateLogstashDescriptionResponse creates a response to parse from UpdateLogstashDescription response
+func CreateUpdateLogstashDescriptionResponse() (response *UpdateLogstashDescriptionResponse) {
+	response = &UpdateLogstashDescriptionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_logstash_settings.go

@@ -0,0 +1,105 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdateLogstashSettings invokes the elasticsearch.UpdateLogstashSettings API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashsettings.html
+func (client *Client) UpdateLogstashSettings(request *UpdateLogstashSettingsRequest) (response *UpdateLogstashSettingsResponse, err error) {
+	response = CreateUpdateLogstashSettingsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateLogstashSettingsWithChan invokes the elasticsearch.UpdateLogstashSettings API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashsettings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashSettingsWithChan(request *UpdateLogstashSettingsRequest) (<-chan *UpdateLogstashSettingsResponse, <-chan error) {
+	responseChan := make(chan *UpdateLogstashSettingsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateLogstashSettings(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateLogstashSettingsWithCallback invokes the elasticsearch.UpdateLogstashSettings API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatelogstashsettings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateLogstashSettingsWithCallback(request *UpdateLogstashSettingsRequest, callback func(response *UpdateLogstashSettingsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateLogstashSettingsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateLogstashSettings(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateLogstashSettingsRequest is the request struct for api UpdateLogstashSettings
+type UpdateLogstashSettingsRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// UpdateLogstashSettingsResponse is the response struct for api UpdateLogstashSettings
+type UpdateLogstashSettingsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateLogstashSettingsRequest creates a request to invoke UpdateLogstashSettings API
+func CreateUpdateLogstashSettingsRequest() (request *UpdateLogstashSettingsRequest) {
+	request = &UpdateLogstashSettingsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateLogstashSettings", "/openapi/logstashes/[InstanceId]/instance-settings", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateLogstashSettingsResponse creates a response to parse from UpdateLogstashSettings response
+func CreateUpdateLogstashSettingsResponse() (response *UpdateLogstashSettingsResponse) {
+	response = &UpdateLogstashSettingsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/elasticsearch/update_pipeline_management_config.go

@@ -0,0 +1,106 @@
+package elasticsearch
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdatePipelineManagementConfig invokes the elasticsearch.UpdatePipelineManagementConfig API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepipelinemanagementconfig.html
+func (client *Client) UpdatePipelineManagementConfig(request *UpdatePipelineManagementConfigRequest) (response *UpdatePipelineManagementConfigResponse, err error) {
+	response = CreateUpdatePipelineManagementConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdatePipelineManagementConfigWithChan invokes the elasticsearch.UpdatePipelineManagementConfig API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepipelinemanagementconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePipelineManagementConfigWithChan(request *UpdatePipelineManagementConfigRequest) (<-chan *UpdatePipelineManagementConfigResponse, <-chan error) {
+	responseChan := make(chan *UpdatePipelineManagementConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdatePipelineManagementConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdatePipelineManagementConfigWithCallback invokes the elasticsearch.UpdatePipelineManagementConfig API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepipelinemanagementconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePipelineManagementConfigWithCallback(request *UpdatePipelineManagementConfigRequest, callback func(response *UpdatePipelineManagementConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdatePipelineManagementConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdatePipelineManagementConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdatePipelineManagementConfigRequest is the request struct for api UpdatePipelineManagementConfig
+type UpdatePipelineManagementConfigRequest struct {
+	*requests.RoaRequest
+	InstanceId  string `position:"Path" name:"InstanceId"`
+	ClientToken string `position:"Query" name:"clientToken"`
+}
+
+// UpdatePipelineManagementConfigResponse is the response struct for api UpdatePipelineManagementConfig
+type UpdatePipelineManagementConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    bool   `json:"Result" xml:"Result"`
+}
+
+// CreateUpdatePipelineManagementConfigRequest creates a request to invoke UpdatePipelineManagementConfig API
+func CreateUpdatePipelineManagementConfigRequest() (request *UpdatePipelineManagementConfigRequest) {
+	request = &UpdatePipelineManagementConfigRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdatePipelineManagementConfig", "/openapi/logstashes/[InstanceId]/pipeline-management-config", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdatePipelineManagementConfigResponse creates a response to parse from UpdatePipelineManagementConfig response
+func CreateUpdatePipelineManagementConfigResponse() (response *UpdatePipelineManagementConfigResponse) {
+	response = &UpdatePipelineManagementConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 2
services/elasticsearch/validate_shrink_nodes.go

@@ -84,8 +84,6 @@ type ValidateShrinkNodesRequest struct {
 type ValidateShrinkNodesResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
 	Result    bool   `json:"Result" xml:"Result"`
 }
 

+ 0 - 2
services/elasticsearch/validate_transferable_nodes.go

@@ -84,8 +84,6 @@ type ValidateTransferableNodesRequest struct {
 type ValidateTransferableNodesResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
 	Result    bool   `json:"Result" xml:"Result"`
 }