Sfoglia il codice sorgente

ELASTICSEARCH SDK Auto Released By guangfan.qu,Version:1.48.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 anni fa
parent
commit
8a03aa234d
53 ha cambiato i file con 2835 aggiunte e 0 eliminazioni
  1. 3 0
      ChangeLog.txt
  2. 81 0
      services/elasticsearch/client.go
  3. 104 0
      services/elasticsearch/create_instance.go
  4. 104 0
      services/elasticsearch/delete_instance.go
  5. 105 0
      services/elasticsearch/describe_instance.go
  6. 104 0
      services/elasticsearch/get_region_configuration.go
  7. 110 0
      services/elasticsearch/list_instance.go
  8. 112 0
      services/elasticsearch/list_search_log.go
  9. 104 0
      services/elasticsearch/restart_instance.go
  10. 25 0
      services/elasticsearch/struct_dict_list.go
  11. 21 0
      services/elasticsearch/struct_dict_list_in_describe_instance.go
  12. 22 0
      services/elasticsearch/struct_disk.go
  13. 21 0
      services/elasticsearch/struct_es_config.go
  14. 21 0
      services/elasticsearch/struct_es_ip_blacklist_in_describe_instance.go
  15. 21 0
      services/elasticsearch/struct_es_ip_blacklist_in_update_black_ips.go
  16. 21 0
      services/elasticsearch/struct_es_ip_whitelist_in_describe_instance.go
  17. 21 0
      services/elasticsearch/struct_es_ip_whitelist_in_update_white_ips.go
  18. 21 0
      services/elasticsearch/struct_es_versions.go
  19. 21 0
      services/elasticsearch/struct_headers.go
  20. 32 0
      services/elasticsearch/struct_instance.go
  21. 24 0
      services/elasticsearch/struct_kibana_configuration.go
  22. 21 0
      services/elasticsearch/struct_kibana_ip_whitelist_in_describe_instance.go
  23. 21 0
      services/elasticsearch/struct_kibana_ip_whitelist_in_update_kibana_white_ips.go
  24. 24 0
      services/elasticsearch/struct_master_configuration.go
  25. 24 0
      services/elasticsearch/struct_network_config.go
  26. 22 0
      services/elasticsearch/struct_node.go
  27. 23 0
      services/elasticsearch/struct_node_spec.go
  28. 21 0
      services/elasticsearch/struct_node_spec_list.go
  29. 24 0
      services/elasticsearch/struct_node_spec_list_item.go
  30. 23 0
      services/elasticsearch/struct_oss_object.go
  31. 21 0
      services/elasticsearch/struct_public_ip_whitelist_in_describe_instance.go
  32. 21 0
      services/elasticsearch/struct_public_ip_whitelist_in_update_public_white_ips.go
  33. 59 0
      services/elasticsearch/struct_result.go
  34. 21 0
      services/elasticsearch/struct_result_in_list_instance.go
  35. 21 0
      services/elasticsearch/struct_result_in_list_search_log.go
  36. 21 0
      services/elasticsearch/struct_result_in_update_dict.go
  37. 21 0
      services/elasticsearch/struct_result_in_update_synonyms_dicts.go
  38. 25 0
      services/elasticsearch/struct_result_item.go
  39. 24 0
      services/elasticsearch/struct_synonyms_dicts.go
  40. 21 0
      services/elasticsearch/struct_synonyms_dicts_in_describe_instance.go
  41. 21 0
      services/elasticsearch/struct_zones.go
  42. 104 0
      services/elasticsearch/update_admin_password.go
  43. 105 0
      services/elasticsearch/update_black_ips.go
  44. 105 0
      services/elasticsearch/update_description.go
  45. 105 0
      services/elasticsearch/update_dict.go
  46. 105 0
      services/elasticsearch/update_instance.go
  47. 104 0
      services/elasticsearch/update_instance_settings.go
  48. 105 0
      services/elasticsearch/update_kibana_white_ips.go
  49. 105 0
      services/elasticsearch/update_public_network.go
  50. 105 0
      services/elasticsearch/update_public_white_ips.go
  51. 105 0
      services/elasticsearch/update_snapshot_setting.go
  52. 105 0
      services/elasticsearch/update_synonyms_dicts.go
  53. 105 0
      services/elasticsearch/update_white_ips.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-12-27 Version: 1.48.0
+1, Elasticsearch GO sdk release.
+
 2018-12-25 Version: 1.47.3
 1, Add interface of endpoint.
 2, Add interface of cluster parameter.

+ 81 - 0
services/elasticsearch/client.go

@@ -0,0 +1,81 @@
+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"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 104 - 0
services/elasticsearch/create_instance.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"
+)
+
+// CreateInstance invokes the elasticsearch.CreateInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createinstance.html
+func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) {
+	response = CreateCreateInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateInstanceWithChan invokes the elasticsearch.CreateInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) {
+	responseChan := make(chan *CreateInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateInstanceWithCallback invokes the elasticsearch.CreateInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/createinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateInstanceRequest is the request struct for api CreateInstance
+type CreateInstanceRequest struct {
+	*requests.RoaRequest
+}
+
+// CreateInstanceResponse is the response struct for api CreateInstance
+type CreateInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateCreateInstanceRequest creates a request to invoke CreateInstance API
+func CreateCreateInstanceRequest() (request *CreateInstanceRequest) {
+	request = &CreateInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "CreateInstance", "/openapi/instances", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateCreateInstanceResponse creates a response to parse from CreateInstance response
+func CreateCreateInstanceResponse() (response *CreateInstanceResponse) {
+	response = &CreateInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/elasticsearch/delete_instance.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"
+)
+
+// DeleteInstance invokes the elasticsearch.DeleteInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteinstance.html
+func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) {
+	response = CreateDeleteInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteInstanceWithChan invokes the elasticsearch.DeleteInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) {
+	responseChan := make(chan *DeleteInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteInstanceWithCallback invokes the elasticsearch.DeleteInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/deleteinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteInstanceRequest is the request struct for api DeleteInstance
+type DeleteInstanceRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// DeleteInstanceResponse is the response struct for api DeleteInstance
+type DeleteInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API
+func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) {
+	request = &DeleteInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DeleteInstance", "/openapi/instances/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.DELETE
+	return
+}
+
+// CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response
+func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse) {
+	response = &DeleteInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/describe_instance.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"
+)
+
+// DescribeInstance invokes the elasticsearch.DescribeInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeinstance.html
+func (client *Client) DescribeInstance(request *DescribeInstanceRequest) (response *DescribeInstanceResponse, err error) {
+	response = CreateDescribeInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeInstanceWithChan invokes the elasticsearch.DescribeInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceWithChan(request *DescribeInstanceRequest) (<-chan *DescribeInstanceResponse, <-chan error) {
+	responseChan := make(chan *DescribeInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeInstanceWithCallback invokes the elasticsearch.DescribeInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/describeinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceWithCallback(request *DescribeInstanceRequest, callback func(response *DescribeInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstanceRequest is the request struct for api DescribeInstance
+type DescribeInstanceRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// DescribeInstanceResponse is the response struct for api DescribeInstance
+type DescribeInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateDescribeInstanceRequest creates a request to invoke DescribeInstance API
+func CreateDescribeInstanceRequest() (request *DescribeInstanceRequest) {
+	request = &DescribeInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "DescribeInstance", "/openapi/instances/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeInstanceResponse creates a response to parse from DescribeInstance response
+func CreateDescribeInstanceResponse() (response *DescribeInstanceResponse) {
+	response = &DescribeInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/elasticsearch/get_region_configuration.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"
+)
+
+// GetRegionConfiguration invokes the elasticsearch.GetRegionConfiguration API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/getregionconfiguration.html
+func (client *Client) GetRegionConfiguration(request *GetRegionConfigurationRequest) (response *GetRegionConfigurationResponse, err error) {
+	response = CreateGetRegionConfigurationResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetRegionConfigurationWithChan invokes the elasticsearch.GetRegionConfiguration API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/getregionconfiguration.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetRegionConfigurationWithChan(request *GetRegionConfigurationRequest) (<-chan *GetRegionConfigurationResponse, <-chan error) {
+	responseChan := make(chan *GetRegionConfigurationResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetRegionConfiguration(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetRegionConfigurationWithCallback invokes the elasticsearch.GetRegionConfiguration API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/getregionconfiguration.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetRegionConfigurationWithCallback(request *GetRegionConfigurationRequest, callback func(response *GetRegionConfigurationResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetRegionConfigurationResponse
+		var err error
+		defer close(result)
+		response, err = client.GetRegionConfiguration(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetRegionConfigurationRequest is the request struct for api GetRegionConfiguration
+type GetRegionConfigurationRequest struct {
+	*requests.RoaRequest
+}
+
+// GetRegionConfigurationResponse is the response struct for api GetRegionConfiguration
+type GetRegionConfigurationResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateGetRegionConfigurationRequest creates a request to invoke GetRegionConfiguration API
+func CreateGetRegionConfigurationRequest() (request *GetRegionConfigurationRequest) {
+	request = &GetRegionConfigurationRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "GetRegionConfiguration", "/openapi/region", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateGetRegionConfigurationResponse creates a response to parse from GetRegionConfiguration response
+func CreateGetRegionConfigurationResponse() (response *GetRegionConfigurationResponse) {
+	response = &GetRegionConfigurationResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/elasticsearch/list_instance.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// ListInstance invokes the elasticsearch.ListInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listinstance.html
+func (client *Client) ListInstance(request *ListInstanceRequest) (response *ListInstanceResponse, err error) {
+	response = CreateListInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListInstanceWithChan invokes the elasticsearch.ListInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListInstanceWithChan(request *ListInstanceRequest) (<-chan *ListInstanceResponse, <-chan error) {
+	responseChan := make(chan *ListInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListInstanceWithCallback invokes the elasticsearch.ListInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListInstanceWithCallback(request *ListInstanceRequest, callback func(response *ListInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.ListInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListInstanceRequest is the request struct for api ListInstance
+type ListInstanceRequest struct {
+	*requests.RoaRequest
+	InstanceId  string           `position:"Query" name:"instanceId"`
+	Size        requests.Integer `position:"Query" name:"size"`
+	EsVersion   string           `position:"Query" name:"esVersion"`
+	Description string           `position:"Query" name:"description"`
+	Page        requests.Integer `position:"Query" name:"page"`
+}
+
+// ListInstanceResponse is the response struct for api ListInstance
+type ListInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Headers   Headers    `json:"Headers" xml:"Headers"`
+	Result    []Instance `json:"Result" xml:"Result"`
+}
+
+// CreateListInstanceRequest creates a request to invoke ListInstance API
+func CreateListInstanceRequest() (request *ListInstanceRequest) {
+	request = &ListInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListInstance", "/openapi/instances", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListInstanceResponse creates a response to parse from ListInstance response
+func CreateListInstanceResponse() (response *ListInstanceResponse) {
+	response = &ListInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/elasticsearch/list_search_log.go

@@ -0,0 +1,112 @@
+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"
+)
+
+// ListSearchLog invokes the elasticsearch.ListSearchLog API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsearchlog.html
+func (client *Client) ListSearchLog(request *ListSearchLogRequest) (response *ListSearchLogResponse, err error) {
+	response = CreateListSearchLogResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListSearchLogWithChan invokes the elasticsearch.ListSearchLog API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsearchlog.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListSearchLogWithChan(request *ListSearchLogRequest) (<-chan *ListSearchLogResponse, <-chan error) {
+	responseChan := make(chan *ListSearchLogResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListSearchLog(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListSearchLogWithCallback invokes the elasticsearch.ListSearchLog API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listsearchlog.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListSearchLogWithCallback(request *ListSearchLogRequest, callback func(response *ListSearchLogResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListSearchLogResponse
+		var err error
+		defer close(result)
+		response, err = client.ListSearchLog(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListSearchLogRequest is the request struct for api ListSearchLog
+type ListSearchLogRequest 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"`
+}
+
+// ListSearchLogResponse is the response struct for api ListSearchLog
+type ListSearchLogResponse struct {
+	*responses.BaseResponse
+	RequestId string       `json:"RequestId" xml:"RequestId"`
+	Headers   Headers      `json:"Headers" xml:"Headers"`
+	Result    []ResultItem `json:"Result" xml:"Result"`
+}
+
+// CreateListSearchLogRequest creates a request to invoke ListSearchLog API
+func CreateListSearchLogRequest() (request *ListSearchLogRequest) {
+	request = &ListSearchLogRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListSearchLog", "/openapi/instances/[InstanceId]/search-log", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListSearchLogResponse creates a response to parse from ListSearchLog response
+func CreateListSearchLogResponse() (response *ListSearchLogResponse) {
+	response = &ListSearchLogResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/elasticsearch/restart_instance.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"
+)
+
+// RestartInstance invokes the elasticsearch.RestartInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartinstance.html
+func (client *Client) RestartInstance(request *RestartInstanceRequest) (response *RestartInstanceResponse, err error) {
+	response = CreateRestartInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RestartInstanceWithChan invokes the elasticsearch.RestartInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RestartInstanceWithChan(request *RestartInstanceRequest) (<-chan *RestartInstanceResponse, <-chan error) {
+	responseChan := make(chan *RestartInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RestartInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RestartInstanceWithCallback invokes the elasticsearch.RestartInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/restartinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RestartInstanceWithCallback(request *RestartInstanceRequest, callback func(response *RestartInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RestartInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.RestartInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RestartInstanceRequest is the request struct for api RestartInstance
+type RestartInstanceRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// RestartInstanceResponse is the response struct for api RestartInstance
+type RestartInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRestartInstanceRequest creates a request to invoke RestartInstance API
+func CreateRestartInstanceRequest() (request *RestartInstanceRequest) {
+	request = &RestartInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "RestartInstance", "/openapi/instances/[InstanceId]/actions/restart", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateRestartInstanceResponse creates a response to parse from RestartInstance response
+func CreateRestartInstanceResponse() (response *RestartInstanceResponse) {
+	response = &RestartInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 25 - 0
services/elasticsearch/struct_dict_list.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.
+
+// DictList is a nested struct in elasticsearch response
+type DictList struct {
+	Type       string    `json:"type" xml:"type"`
+	FileSize   int       `json:"fileSize" xml:"fileSize"`
+	SourceType string    `json:"sourceType" xml:"sourceType"`
+	Name       string    `json:"name" xml:"name"`
+	OssObject  OssObject `json:"ossObject" xml:"ossObject"`
+}

+ 21 - 0
services/elasticsearch/struct_dict_list_in_describe_instance.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.
+
+// DictListInDescribeInstance is a nested struct in elasticsearch response
+type DictListInDescribeInstance struct {
+	DictList []DictList `json:"DictList" xml:"DictList"`
+}

+ 22 - 0
services/elasticsearch/struct_disk.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.
+
+// Disk is a nested struct in elasticsearch response
+type Disk struct {
+	MinSize int `json:"minSize" xml:"minSize"`
+	MaxSize int `json:"maxSize" xml:"maxSize"`
+}

+ 21 - 0
services/elasticsearch/struct_es_config.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.
+
+// EsConfig is a nested struct in elasticsearch response
+type EsConfig struct {
+	EsConfig []string `json:"EsConfig" xml:"EsConfig"`
+}

+ 21 - 0
services/elasticsearch/struct_es_ip_blacklist_in_describe_instance.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.
+
+// EsIPBlacklistInDescribeInstance is a nested struct in elasticsearch response
+type EsIPBlacklistInDescribeInstance struct {
+	EsIPBlacklist []string `json:"EsIPBlacklist" xml:"EsIPBlacklist"`
+}

+ 21 - 0
services/elasticsearch/struct_es_ip_blacklist_in_update_black_ips.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.
+
+// EsIPBlacklistInUpdateBlackIps is a nested struct in elasticsearch response
+type EsIPBlacklistInUpdateBlackIps struct {
+	EsIPBlacklist []string `json:"esIPBlacklist" xml:"esIPBlacklist"`
+}

+ 21 - 0
services/elasticsearch/struct_es_ip_whitelist_in_describe_instance.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.
+
+// EsIPWhitelistInDescribeInstance is a nested struct in elasticsearch response
+type EsIPWhitelistInDescribeInstance struct {
+	EsIPWhitelist []string `json:"EsIPWhitelist" xml:"EsIPWhitelist"`
+}

+ 21 - 0
services/elasticsearch/struct_es_ip_whitelist_in_update_white_ips.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.
+
+// EsIPWhitelistInUpdateWhiteIps is a nested struct in elasticsearch response
+type EsIPWhitelistInUpdateWhiteIps struct {
+	EsIPWhitelist []string `json:"esIPWhitelist" xml:"esIPWhitelist"`
+}

+ 21 - 0
services/elasticsearch/struct_es_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.
+
+// EsVersions is a nested struct in elasticsearch response
+type EsVersions struct {
+	EsVersions []string `json:"esVersions" xml:"esVersions"`
+}

+ 21 - 0
services/elasticsearch/struct_headers.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.
+
+// Headers is a nested struct in elasticsearch response
+type Headers struct {
+	XTotalCount int `json:"X-Total-Count" xml:"X-Total-Count"`
+}

+ 32 - 0
services/elasticsearch/struct_instance.go

@@ -0,0 +1,32 @@
+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.
+
+// Instance is a nested struct in elasticsearch response
+type Instance 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"`
+	Port          int           `json:"port" xml:"port"`
+	EsVersion     string        `json:"esVersion" xml:"esVersion"`
+	CreatedAt     string        `json:"createdAt" xml:"createdAt"`
+	UpdatedAt     string        `json:"updatedAt" xml:"updatedAt"`
+	NodeSpec      NodeSpec      `json:"nodeSpec" xml:"nodeSpec"`
+	NetworkConfig NetworkConfig `json:"networkConfig" xml:"networkConfig"`
+}

+ 24 - 0
services/elasticsearch/struct_kibana_configuration.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.
+
+// KibanaConfiguration is a nested struct in elasticsearch response
+type KibanaConfiguration 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"`
+}

+ 21 - 0
services/elasticsearch/struct_kibana_ip_whitelist_in_describe_instance.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.
+
+// KibanaIPWhitelistInDescribeInstance is a nested struct in elasticsearch response
+type KibanaIPWhitelistInDescribeInstance struct {
+	KibanaIPWhitelist []string `json:"KibanaIPWhitelist" xml:"KibanaIPWhitelist"`
+}

+ 21 - 0
services/elasticsearch/struct_kibana_ip_whitelist_in_update_kibana_white_ips.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.
+
+// KibanaIPWhitelistInUpdateKibanaWhiteIps is a nested struct in elasticsearch response
+type KibanaIPWhitelistInUpdateKibanaWhiteIps struct {
+	KibanaIPWhitelist []string `json:"kibanaIPWhitelist" xml:"kibanaIPWhitelist"`
+}

+ 24 - 0
services/elasticsearch/struct_master_configuration.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.
+
+// MasterConfiguration is a nested struct in elasticsearch response
+type MasterConfiguration 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"`
+}

+ 24 - 0
services/elasticsearch/struct_network_config.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.
+
+// NetworkConfig is a nested struct in elasticsearch response
+type NetworkConfig struct {
+	Type      string `json:"type" xml:"type"`
+	VsArea    string `json:"vsArea" xml:"vsArea"`
+	VswitchId string `json:"vswitchId" xml:"vswitchId"`
+	VpcId     string `json:"vpcId" xml:"vpcId"`
+}

+ 22 - 0
services/elasticsearch/struct_node.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.
+
+// Node is a nested struct in elasticsearch response
+type Node struct {
+	MinAmount int `json:"minAmount" xml:"minAmount"`
+	MaxAmount int `json:"maxAmount" xml:"maxAmount"`
+}

+ 23 - 0
services/elasticsearch/struct_node_spec.go

@@ -0,0 +1,23 @@
+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.
+
+// 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"`
+}

+ 21 - 0
services/elasticsearch/struct_node_spec_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.
+
+// NodeSpecList is a nested struct in elasticsearch response
+type NodeSpecList struct {
+	NodeSpecListItem []NodeSpecListItem `json:"nodeSpecListItem" xml:"nodeSpecListItem"`
+}

+ 24 - 0
services/elasticsearch/struct_node_spec_list_item.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.
+
+// NodeSpecListItem is a nested struct in elasticsearch response
+type NodeSpecListItem struct {
+	CpuCount   int    `json:"cpuCount" xml:"cpuCount"`
+	MemorySize int    `json:"memorySize" xml:"memorySize"`
+	Enable     bool   `json:"enable" xml:"enable"`
+	Spec       string `json:"spec" xml:"spec"`
+}

+ 23 - 0
services/elasticsearch/struct_oss_object.go

@@ -0,0 +1,23 @@
+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.
+
+// OssObject is a nested struct in elasticsearch response
+type OssObject struct {
+	Key        string `json:"key" xml:"key"`
+	BucketName string `json:"bucketName" xml:"bucketName"`
+	Etag       string `json:"etag" xml:"etag"`
+}

+ 21 - 0
services/elasticsearch/struct_public_ip_whitelist_in_describe_instance.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.
+
+// PublicIpWhitelistInDescribeInstance is a nested struct in elasticsearch response
+type PublicIpWhitelistInDescribeInstance struct {
+	PublicIpWhitelist []string `json:"PublicIpWhitelist" xml:"PublicIpWhitelist"`
+}

+ 21 - 0
services/elasticsearch/struct_public_ip_whitelist_in_update_public_white_ips.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.
+
+// PublicIpWhitelistInUpdatePublicWhiteIps is a nested struct in elasticsearch response
+type PublicIpWhitelistInUpdatePublicWhiteIps struct {
+	PublicIpWhitelist []string `json:"publicIpWhitelist" xml:"publicIpWhitelist"`
+}

+ 59 - 0
services/elasticsearch/struct_result.go

@@ -0,0 +1,59 @@
+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.
+
+// Result is a nested struct in elasticsearch response
+type Result struct {
+	DedicateMaster         bool                `json:"dedicateMaster" xml:"dedicateMaster"`
+	Enable                 bool                `json:"enable" xml:"enable"`
+	KibanaPort             int                 `json:"kibanaPort" xml:"kibanaPort"`
+	VpcInstanceId          string              `json:"vpcInstanceId" xml:"vpcInstanceId"`
+	QuartzRegex            string              `json:"quartzRegex" xml:"quartzRegex"`
+	CreateUrl              string              `json:"createUrl" xml:"createUrl"`
+	PublicDomain           string              `json:"publicDomain" xml:"publicDomain"`
+	KibanaDomain           string              `json:"kibanaDomain" xml:"kibanaDomain"`
+	Domain                 string              `json:"domain" xml:"domain"`
+	PaymentType            string              `json:"paymentType" xml:"paymentType"`
+	RegionId               string              `json:"regionId" xml:"regionId"`
+	Port                   int                 `json:"port" xml:"port"`
+	UpdatedAt              string              `json:"updatedAt" xml:"updatedAt"`
+	Env                    string              `json:"env" xml:"env"`
+	NodeAmount             int                 `json:"nodeAmount" xml:"nodeAmount"`
+	InstanceId             string              `json:"instanceId" xml:"instanceId"`
+	Status                 string              `json:"status" xml:"status"`
+	Description            string              `json:"description" xml:"description"`
+	AdvancedDedicateMaster bool                `json:"advancedDedicateMaster" xml:"advancedDedicateMaster"`
+	EnablePublic           bool                `json:"enablePublic" xml:"enablePublic"`
+	EsVersion              string              `json:"esVersion" xml:"esVersion"`
+	CreatedAt              string              `json:"createdAt" xml:"createdAt"`
+	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"`
+	EsConfig               []string            `json:"esConfig" xml:"esConfig"`
+	EsVersions             []string            `json:"esVersions" xml:"esVersions"`
+	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"`
+	Disk                   Disk                `json:"disk" xml:"disk"`
+	KibanaConfiguration    KibanaConfiguration `json:"kibanaConfiguration" xml:"kibanaConfiguration"`
+	SynonymsDicts          []SynonymsDicts     `json:"synonymsDicts" xml:"synonymsDicts"`
+	NodeSpecList           []NodeSpecListItem  `json:"nodeSpecList" xml:"nodeSpecList"`
+	DictList               []DictList          `json:"dictList" xml:"dictList"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_list_instance.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.
+
+// ResultInListInstance is a nested struct in elasticsearch response
+type ResultInListInstance struct {
+	Instance []Instance `json:"Instance" xml:"Instance"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_list_search_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.
+
+// ResultInListSearchLog is a nested struct in elasticsearch response
+type ResultInListSearchLog struct {
+	ResultItem []ResultItem `json:"ResultItem" xml:"ResultItem"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_update_dict.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.
+
+// ResultInUpdateDict is a nested struct in elasticsearch response
+type ResultInUpdateDict struct {
+	DictList []DictList `json:"DictList" xml:"DictList"`
+}

+ 21 - 0
services/elasticsearch/struct_result_in_update_synonyms_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.
+
+// ResultInUpdateSynonymsDicts is a nested struct in elasticsearch response
+type ResultInUpdateSynonymsDicts struct {
+	DictList []DictList `json:"DictList" xml:"DictList"`
+}

+ 25 - 0
services/elasticsearch/struct_result_item.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.
+
+// ResultItem is a nested struct in elasticsearch response
+type ResultItem struct {
+	Timestamp  int    `json:"timestamp" xml:"timestamp"`
+	Host       string `json:"host" xml:"host"`
+	Level      string `json:"level" xml:"level"`
+	Content    string `json:"content" xml:"content"`
+	InstanceId string `json:"instanceId" xml:"instanceId"`
+}

+ 24 - 0
services/elasticsearch/struct_synonyms_dicts.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.
+
+// SynonymsDicts is a nested struct in elasticsearch response
+type SynonymsDicts struct {
+	Type       string `json:"type" xml:"type"`
+	FileSize   int    `json:"fileSize" xml:"fileSize"`
+	SourceType string `json:"sourceType" xml:"sourceType"`
+	Name       string `json:"name" xml:"name"`
+}

+ 21 - 0
services/elasticsearch/struct_synonyms_dicts_in_describe_instance.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.
+
+// SynonymsDictsInDescribeInstance is a nested struct in elasticsearch response
+type SynonymsDictsInDescribeInstance struct {
+	SynonymsDicts []SynonymsDicts `json:"SynonymsDicts" xml:"SynonymsDicts"`
+}

+ 21 - 0
services/elasticsearch/struct_zones.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.
+
+// Zones is a nested struct in elasticsearch response
+type Zones struct {
+	Zones []string `json:"zones" xml:"zones"`
+}

+ 104 - 0
services/elasticsearch/update_admin_password.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"
+)
+
+// UpdateAdminPassword invokes the elasticsearch.UpdateAdminPassword API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateadminpassword.html
+func (client *Client) UpdateAdminPassword(request *UpdateAdminPasswordRequest) (response *UpdateAdminPasswordResponse, err error) {
+	response = CreateUpdateAdminPasswordResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateAdminPasswordWithChan invokes the elasticsearch.UpdateAdminPassword API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateadminpassword.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateAdminPasswordWithChan(request *UpdateAdminPasswordRequest) (<-chan *UpdateAdminPasswordResponse, <-chan error) {
+	responseChan := make(chan *UpdateAdminPasswordResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateAdminPassword(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateAdminPasswordWithCallback invokes the elasticsearch.UpdateAdminPassword API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateadminpassword.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateAdminPasswordWithCallback(request *UpdateAdminPasswordRequest, callback func(response *UpdateAdminPasswordResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateAdminPasswordResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateAdminPassword(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateAdminPasswordRequest is the request struct for api UpdateAdminPassword
+type UpdateAdminPasswordRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateAdminPasswordResponse is the response struct for api UpdateAdminPassword
+type UpdateAdminPasswordResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateAdminPasswordRequest creates a request to invoke UpdateAdminPassword API
+func CreateUpdateAdminPasswordRequest() (request *UpdateAdminPasswordRequest) {
+	request = &UpdateAdminPasswordRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateAdminPassword", "/openapi/instances/[InstanceId]/admin-pwd", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateAdminPasswordResponse creates a response to parse from UpdateAdminPassword response
+func CreateUpdateAdminPasswordResponse() (response *UpdateAdminPasswordResponse) {
+	response = &UpdateAdminPasswordResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_black_ips.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"
+)
+
+// UpdateBlackIps invokes the elasticsearch.UpdateBlackIps API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateblackips.html
+func (client *Client) UpdateBlackIps(request *UpdateBlackIpsRequest) (response *UpdateBlackIpsResponse, err error) {
+	response = CreateUpdateBlackIpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateBlackIpsWithChan invokes the elasticsearch.UpdateBlackIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateblackips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateBlackIpsWithChan(request *UpdateBlackIpsRequest) (<-chan *UpdateBlackIpsResponse, <-chan error) {
+	responseChan := make(chan *UpdateBlackIpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateBlackIps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateBlackIpsWithCallback invokes the elasticsearch.UpdateBlackIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateblackips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateBlackIpsWithCallback(request *UpdateBlackIpsRequest, callback func(response *UpdateBlackIpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateBlackIpsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateBlackIps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateBlackIpsRequest is the request struct for api UpdateBlackIps
+type UpdateBlackIpsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateBlackIpsResponse is the response struct for api UpdateBlackIps
+type UpdateBlackIpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateBlackIpsRequest creates a request to invoke UpdateBlackIps API
+func CreateUpdateBlackIpsRequest() (request *UpdateBlackIpsRequest) {
+	request = &UpdateBlackIpsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateBlackIps", "/openapi/instances/[InstanceId]/black-ips", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateBlackIpsResponse creates a response to parse from UpdateBlackIps response
+func CreateUpdateBlackIpsResponse() (response *UpdateBlackIpsResponse) {
+	response = &UpdateBlackIpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_description.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"
+)
+
+// UpdateDescription invokes the elasticsearch.UpdateDescription API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedescription.html
+func (client *Client) UpdateDescription(request *UpdateDescriptionRequest) (response *UpdateDescriptionResponse, err error) {
+	response = CreateUpdateDescriptionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateDescriptionWithChan invokes the elasticsearch.UpdateDescription API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDescriptionWithChan(request *UpdateDescriptionRequest) (<-chan *UpdateDescriptionResponse, <-chan error) {
+	responseChan := make(chan *UpdateDescriptionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateDescription(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateDescriptionWithCallback invokes the elasticsearch.UpdateDescription API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDescriptionWithCallback(request *UpdateDescriptionRequest, callback func(response *UpdateDescriptionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateDescriptionResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateDescription(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateDescriptionRequest is the request struct for api UpdateDescription
+type UpdateDescriptionRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateDescriptionResponse is the response struct for api UpdateDescription
+type UpdateDescriptionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateDescriptionRequest creates a request to invoke UpdateDescription API
+func CreateUpdateDescriptionRequest() (request *UpdateDescriptionRequest) {
+	request = &UpdateDescriptionRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateDescription", "/openapi/instances/[InstanceId]/description", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateDescriptionResponse creates a response to parse from UpdateDescription response
+func CreateUpdateDescriptionResponse() (response *UpdateDescriptionResponse) {
+	response = &UpdateDescriptionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_dict.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"
+)
+
+// UpdateDict invokes the elasticsearch.UpdateDict API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedict.html
+func (client *Client) UpdateDict(request *UpdateDictRequest) (response *UpdateDictResponse, err error) {
+	response = CreateUpdateDictResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateDictWithChan invokes the elasticsearch.UpdateDict API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedict.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDictWithChan(request *UpdateDictRequest) (<-chan *UpdateDictResponse, <-chan error) {
+	responseChan := make(chan *UpdateDictResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateDict(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateDictWithCallback invokes the elasticsearch.UpdateDict API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatedict.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateDictWithCallback(request *UpdateDictRequest, callback func(response *UpdateDictResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateDictResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateDict(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateDictRequest is the request struct for api UpdateDict
+type UpdateDictRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateDictResponse is the response struct for api UpdateDict
+type UpdateDictResponse struct {
+	*responses.BaseResponse
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Result    []DictList `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateDictRequest creates a request to invoke UpdateDict API
+func CreateUpdateDictRequest() (request *UpdateDictRequest) {
+	request = &UpdateDictRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateDict", "/openapi/instances/[InstanceId]/dict", "elasticsearch", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateUpdateDictResponse creates a response to parse from UpdateDict response
+func CreateUpdateDictResponse() (response *UpdateDictResponse) {
+	response = &UpdateDictResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_instance.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"
+)
+
+// UpdateInstance invokes the elasticsearch.UpdateInstance API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstance.html
+func (client *Client) UpdateInstance(request *UpdateInstanceRequest) (response *UpdateInstanceResponse, err error) {
+	response = CreateUpdateInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateInstanceWithChan invokes the elasticsearch.UpdateInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateInstanceWithChan(request *UpdateInstanceRequest) (<-chan *UpdateInstanceResponse, <-chan error) {
+	responseChan := make(chan *UpdateInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateInstanceWithCallback invokes the elasticsearch.UpdateInstance API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateInstanceWithCallback(request *UpdateInstanceRequest, callback func(response *UpdateInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateInstanceRequest is the request struct for api UpdateInstance
+type UpdateInstanceRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// 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"`
+}
+
+// CreateUpdateInstanceRequest creates a request to invoke UpdateInstance API
+func CreateUpdateInstanceRequest() (request *UpdateInstanceRequest) {
+	request = &UpdateInstanceRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateInstance", "/openapi/instances/[InstanceId]", "elasticsearch", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateUpdateInstanceResponse creates a response to parse from UpdateInstance response
+func CreateUpdateInstanceResponse() (response *UpdateInstanceResponse) {
+	response = &UpdateInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/elasticsearch/update_instance_settings.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"
+)
+
+// UpdateInstanceSettings invokes the elasticsearch.UpdateInstanceSettings API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstancesettings.html
+func (client *Client) UpdateInstanceSettings(request *UpdateInstanceSettingsRequest) (response *UpdateInstanceSettingsResponse, err error) {
+	response = CreateUpdateInstanceSettingsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateInstanceSettingsWithChan invokes the elasticsearch.UpdateInstanceSettings API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstancesettings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateInstanceSettingsWithChan(request *UpdateInstanceSettingsRequest) (<-chan *UpdateInstanceSettingsResponse, <-chan error) {
+	responseChan := make(chan *UpdateInstanceSettingsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateInstanceSettings(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateInstanceSettingsWithCallback invokes the elasticsearch.UpdateInstanceSettings API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updateinstancesettings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateInstanceSettingsWithCallback(request *UpdateInstanceSettingsRequest, callback func(response *UpdateInstanceSettingsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateInstanceSettingsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateInstanceSettings(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateInstanceSettingsRequest is the request struct for api UpdateInstanceSettings
+type UpdateInstanceSettingsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateInstanceSettingsResponse is the response struct for api UpdateInstanceSettings
+type UpdateInstanceSettingsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateInstanceSettingsRequest creates a request to invoke UpdateInstanceSettings API
+func CreateUpdateInstanceSettingsRequest() (request *UpdateInstanceSettingsRequest) {
+	request = &UpdateInstanceSettingsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateInstanceSettings", "/openapi/instances/[InstanceId]/instance-settings", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateInstanceSettingsResponse creates a response to parse from UpdateInstanceSettings response
+func CreateUpdateInstanceSettingsResponse() (response *UpdateInstanceSettingsResponse) {
+	response = &UpdateInstanceSettingsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_kibana_white_ips.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"
+)
+
+// UpdateKibanaWhiteIps invokes the elasticsearch.UpdateKibanaWhiteIps API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatekibanawhiteips.html
+func (client *Client) UpdateKibanaWhiteIps(request *UpdateKibanaWhiteIpsRequest) (response *UpdateKibanaWhiteIpsResponse, err error) {
+	response = CreateUpdateKibanaWhiteIpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateKibanaWhiteIpsWithChan invokes the elasticsearch.UpdateKibanaWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatekibanawhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateKibanaWhiteIpsWithChan(request *UpdateKibanaWhiteIpsRequest) (<-chan *UpdateKibanaWhiteIpsResponse, <-chan error) {
+	responseChan := make(chan *UpdateKibanaWhiteIpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateKibanaWhiteIps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateKibanaWhiteIpsWithCallback invokes the elasticsearch.UpdateKibanaWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatekibanawhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateKibanaWhiteIpsWithCallback(request *UpdateKibanaWhiteIpsRequest, callback func(response *UpdateKibanaWhiteIpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateKibanaWhiteIpsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateKibanaWhiteIps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateKibanaWhiteIpsRequest is the request struct for api UpdateKibanaWhiteIps
+type UpdateKibanaWhiteIpsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateKibanaWhiteIpsResponse is the response struct for api UpdateKibanaWhiteIps
+type UpdateKibanaWhiteIpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateKibanaWhiteIpsRequest creates a request to invoke UpdateKibanaWhiteIps API
+func CreateUpdateKibanaWhiteIpsRequest() (request *UpdateKibanaWhiteIpsRequest) {
+	request = &UpdateKibanaWhiteIpsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateKibanaWhiteIps", "/openapi/instances/[InstanceId]/kibana-white-ips", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateKibanaWhiteIpsResponse creates a response to parse from UpdateKibanaWhiteIps response
+func CreateUpdateKibanaWhiteIpsResponse() (response *UpdateKibanaWhiteIpsResponse) {
+	response = &UpdateKibanaWhiteIpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_public_network.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"
+)
+
+// UpdatePublicNetwork invokes the elasticsearch.UpdatePublicNetwork API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicnetwork.html
+func (client *Client) UpdatePublicNetwork(request *UpdatePublicNetworkRequest) (response *UpdatePublicNetworkResponse, err error) {
+	response = CreateUpdatePublicNetworkResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdatePublicNetworkWithChan invokes the elasticsearch.UpdatePublicNetwork API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicnetwork.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePublicNetworkWithChan(request *UpdatePublicNetworkRequest) (<-chan *UpdatePublicNetworkResponse, <-chan error) {
+	responseChan := make(chan *UpdatePublicNetworkResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdatePublicNetwork(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdatePublicNetworkWithCallback invokes the elasticsearch.UpdatePublicNetwork API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicnetwork.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePublicNetworkWithCallback(request *UpdatePublicNetworkRequest, callback func(response *UpdatePublicNetworkResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdatePublicNetworkResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdatePublicNetwork(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdatePublicNetworkRequest is the request struct for api UpdatePublicNetwork
+type UpdatePublicNetworkRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdatePublicNetworkResponse is the response struct for api UpdatePublicNetwork
+type UpdatePublicNetworkResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdatePublicNetworkRequest creates a request to invoke UpdatePublicNetwork API
+func CreateUpdatePublicNetworkRequest() (request *UpdatePublicNetworkRequest) {
+	request = &UpdatePublicNetworkRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdatePublicNetwork", "/openapi/instances/[InstanceId]/public-network", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdatePublicNetworkResponse creates a response to parse from UpdatePublicNetwork response
+func CreateUpdatePublicNetworkResponse() (response *UpdatePublicNetworkResponse) {
+	response = &UpdatePublicNetworkResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_public_white_ips.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"
+)
+
+// UpdatePublicWhiteIps invokes the elasticsearch.UpdatePublicWhiteIps API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicwhiteips.html
+func (client *Client) UpdatePublicWhiteIps(request *UpdatePublicWhiteIpsRequest) (response *UpdatePublicWhiteIpsResponse, err error) {
+	response = CreateUpdatePublicWhiteIpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdatePublicWhiteIpsWithChan invokes the elasticsearch.UpdatePublicWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicwhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePublicWhiteIpsWithChan(request *UpdatePublicWhiteIpsRequest) (<-chan *UpdatePublicWhiteIpsResponse, <-chan error) {
+	responseChan := make(chan *UpdatePublicWhiteIpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdatePublicWhiteIps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdatePublicWhiteIpsWithCallback invokes the elasticsearch.UpdatePublicWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatepublicwhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdatePublicWhiteIpsWithCallback(request *UpdatePublicWhiteIpsRequest, callback func(response *UpdatePublicWhiteIpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdatePublicWhiteIpsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdatePublicWhiteIps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdatePublicWhiteIpsRequest is the request struct for api UpdatePublicWhiteIps
+type UpdatePublicWhiteIpsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdatePublicWhiteIpsResponse is the response struct for api UpdatePublicWhiteIps
+type UpdatePublicWhiteIpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdatePublicWhiteIpsRequest creates a request to invoke UpdatePublicWhiteIps API
+func CreateUpdatePublicWhiteIpsRequest() (request *UpdatePublicWhiteIpsRequest) {
+	request = &UpdatePublicWhiteIpsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdatePublicWhiteIps", "/openapi/instances/[InstanceId]/public-white-ips", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdatePublicWhiteIpsResponse creates a response to parse from UpdatePublicWhiteIps response
+func CreateUpdatePublicWhiteIpsResponse() (response *UpdatePublicWhiteIpsResponse) {
+	response = &UpdatePublicWhiteIpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_snapshot_setting.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"
+)
+
+// UpdateSnapshotSetting invokes the elasticsearch.UpdateSnapshotSetting API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesnapshotsetting.html
+func (client *Client) UpdateSnapshotSetting(request *UpdateSnapshotSettingRequest) (response *UpdateSnapshotSettingResponse, err error) {
+	response = CreateUpdateSnapshotSettingResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateSnapshotSettingWithChan invokes the elasticsearch.UpdateSnapshotSetting API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesnapshotsetting.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateSnapshotSettingWithChan(request *UpdateSnapshotSettingRequest) (<-chan *UpdateSnapshotSettingResponse, <-chan error) {
+	responseChan := make(chan *UpdateSnapshotSettingResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateSnapshotSetting(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateSnapshotSettingWithCallback invokes the elasticsearch.UpdateSnapshotSetting API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesnapshotsetting.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateSnapshotSettingWithCallback(request *UpdateSnapshotSettingRequest, callback func(response *UpdateSnapshotSettingResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateSnapshotSettingResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateSnapshotSetting(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateSnapshotSettingRequest is the request struct for api UpdateSnapshotSetting
+type UpdateSnapshotSettingRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateSnapshotSettingResponse is the response struct for api UpdateSnapshotSetting
+type UpdateSnapshotSettingResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateSnapshotSettingRequest creates a request to invoke UpdateSnapshotSetting API
+func CreateUpdateSnapshotSettingRequest() (request *UpdateSnapshotSettingRequest) {
+	request = &UpdateSnapshotSettingRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateSnapshotSetting", "/openapi/instances/[InstanceId]/snapshot-setting", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateSnapshotSettingResponse creates a response to parse from UpdateSnapshotSetting response
+func CreateUpdateSnapshotSettingResponse() (response *UpdateSnapshotSettingResponse) {
+	response = &UpdateSnapshotSettingResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_synonyms_dicts.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"
+)
+
+// UpdateSynonymsDicts invokes the elasticsearch.UpdateSynonymsDicts API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesynonymsdicts.html
+func (client *Client) UpdateSynonymsDicts(request *UpdateSynonymsDictsRequest) (response *UpdateSynonymsDictsResponse, err error) {
+	response = CreateUpdateSynonymsDictsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateSynonymsDictsWithChan invokes the elasticsearch.UpdateSynonymsDicts API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesynonymsdicts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateSynonymsDictsWithChan(request *UpdateSynonymsDictsRequest) (<-chan *UpdateSynonymsDictsResponse, <-chan error) {
+	responseChan := make(chan *UpdateSynonymsDictsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateSynonymsDicts(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateSynonymsDictsWithCallback invokes the elasticsearch.UpdateSynonymsDicts API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatesynonymsdicts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateSynonymsDictsWithCallback(request *UpdateSynonymsDictsRequest, callback func(response *UpdateSynonymsDictsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateSynonymsDictsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateSynonymsDicts(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateSynonymsDictsRequest is the request struct for api UpdateSynonymsDicts
+type UpdateSynonymsDictsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateSynonymsDictsResponse is the response struct for api UpdateSynonymsDicts
+type UpdateSynonymsDictsResponse struct {
+	*responses.BaseResponse
+	RequestId string     `json:"RequestId" xml:"RequestId"`
+	Result    []DictList `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateSynonymsDictsRequest creates a request to invoke UpdateSynonymsDicts API
+func CreateUpdateSynonymsDictsRequest() (request *UpdateSynonymsDictsRequest) {
+	request = &UpdateSynonymsDictsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateSynonymsDicts", "/openapi/instances/[InstanceId]/synonymsDict", "elasticsearch", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateUpdateSynonymsDictsResponse creates a response to parse from UpdateSynonymsDicts response
+func CreateUpdateSynonymsDictsResponse() (response *UpdateSynonymsDictsResponse) {
+	response = &UpdateSynonymsDictsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/elasticsearch/update_white_ips.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"
+)
+
+// UpdateWhiteIps invokes the elasticsearch.UpdateWhiteIps API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatewhiteips.html
+func (client *Client) UpdateWhiteIps(request *UpdateWhiteIpsRequest) (response *UpdateWhiteIpsResponse, err error) {
+	response = CreateUpdateWhiteIpsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateWhiteIpsWithChan invokes the elasticsearch.UpdateWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatewhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateWhiteIpsWithChan(request *UpdateWhiteIpsRequest) (<-chan *UpdateWhiteIpsResponse, <-chan error) {
+	responseChan := make(chan *UpdateWhiteIpsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateWhiteIps(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateWhiteIpsWithCallback invokes the elasticsearch.UpdateWhiteIps API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/updatewhiteips.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateWhiteIpsWithCallback(request *UpdateWhiteIpsRequest, callback func(response *UpdateWhiteIpsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateWhiteIpsResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateWhiteIps(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateWhiteIpsRequest is the request struct for api UpdateWhiteIps
+type UpdateWhiteIpsRequest struct {
+	*requests.RoaRequest
+	InstanceId string `position:"Path" name:"InstanceId"`
+}
+
+// UpdateWhiteIpsResponse is the response struct for api UpdateWhiteIps
+type UpdateWhiteIpsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateUpdateWhiteIpsRequest creates a request to invoke UpdateWhiteIps API
+func CreateUpdateWhiteIpsRequest() (request *UpdateWhiteIpsRequest) {
+	request = &UpdateWhiteIpsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "UpdateWhiteIps", "/openapi/instances/[InstanceId]/white-ips", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateWhiteIpsResponse creates a response to parse from UpdateWhiteIps response
+func CreateUpdateWhiteIpsResponse() (response *UpdateWhiteIpsResponse) {
+	response = &UpdateWhiteIpsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}