Procházet zdrojové kódy

Generated 2017-06-13 for elasticsearch.

sdk-team před 6 roky
rodič
revize
eb04dbe92d

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-01-07 Version: v1.60.319
+- Generated 2017-06-13 for `elasticsearch`.
+- Modify desribeInstance return dict item.
+
 2020-01-07 Version: v1.60.318
 - Generated 2014-08-15 for `Rds`.
 

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

+ 112 - 0
services/elasticsearch/list_tag_resources.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"
+)
+
+// ListTagResources invokes the elasticsearch.ListTagResources API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listtagresources.html
+func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) {
+	response = CreateListTagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagResourcesWithChan invokes the elasticsearch.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) {
+	responseChan := make(chan *ListTagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagResourcesWithCallback invokes the elasticsearch.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagResourcesRequest is the request struct for api ListTagResources
+type ListTagResourcesRequest struct {
+	*requests.RoaRequest
+	Size         requests.Integer `position:"Query" name:"Size"`
+	NextToken    string           `position:"Query" name:"NextToken"`
+	Page         requests.Integer `position:"Query" name:"Page"`
+	ResourceType string           `position:"Query" name:"ResourceType"`
+	ResourceIds  string           `position:"Query" name:"ResourceIds"`
+	Tags         string           `position:"Query" name:"Tags"`
+}
+
+// ListTagResourcesResponse is the response struct for api ListTagResources
+type ListTagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	PageSize     int          `json:"PageSize" xml:"PageSize"`
+	Headers      Headers      `json:"Headers" xml:"Headers"`
+	TagResources TagResources `json:"TagResources" xml:"TagResources"`
+}
+
+// CreateListTagResourcesRequest creates a request to invoke ListTagResources API
+func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) {
+	request = &ListTagResourcesRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "ListTagResources", "/openapi/tags", "elasticsearch", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateListTagResourcesResponse creates a response to parse from ListTagResources response
+func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) {
+	response = &ListTagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/elasticsearch/struct_dict_list_in_update_instance.go

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

+ 2 - 2
services/elasticsearch/struct_dict_list_item.go

@@ -17,8 +17,8 @@ package elasticsearch
 
 // DictListItem is a nested struct in elasticsearch response
 type DictListItem struct {
-	Type       string `json:"type" xml:"type"`
+	Name       string `json:"name" xml:"name"`
 	FileSize   int64  `json:"fileSize" xml:"fileSize"`
+	Type       string `json:"type" xml:"type"`
 	SourceType string `json:"sourceType" xml:"sourceType"`
-	Name       string `json:"name" xml:"name"`
 }

+ 21 - 0
services/elasticsearch/struct_result_in_list_connected_clusters.go

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

+ 0 - 39
services/elasticsearch/struct_result_in_update_instance.go

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

+ 1 - 1
services/elasticsearch/struct_synonyms_dicts_in_update_instance.go

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

+ 2 - 2
services/elasticsearch/struct_synonyms_dicts_item.go

@@ -17,8 +17,8 @@ package elasticsearch
 
 // SynonymsDictsItem is a nested struct in elasticsearch response
 type SynonymsDictsItem struct {
-	Type       string `json:"type" xml:"type"`
+	Name       string `json:"name" xml:"name"`
 	FileSize   int64  `json:"fileSize" xml:"fileSize"`
+	Type       string `json:"type" xml:"type"`
 	SourceType string `json:"sourceType" xml:"sourceType"`
-	Name       string `json:"name" xml:"name"`
 }

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

+ 24 - 0
services/elasticsearch/struct_tag_resource_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.
+
+// TagResourceItem is a nested struct in elasticsearch response
+type TagResourceItem struct {
+	ResourceId   string `json:"resourceId" xml:"resourceId"`
+	ResourceType string `json:"resourceType" xml:"resourceType"`
+	TagKey       string `json:"tagKey" xml:"tagKey"`
+	TagValue     string `json:"tagValue" xml:"tagValue"`
+}

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

+ 103 - 0
services/elasticsearch/tag_resources.go

@@ -0,0 +1,103 @@
+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"
+)
+
+// TagResources invokes the elasticsearch.TagResources API synchronously
+// api document: https://help.aliyun.com/api/elasticsearch/tagresources.html
+func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) {
+	response = CreateTagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TagResourcesWithChan invokes the elasticsearch.TagResources API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/tagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) {
+	responseChan := make(chan *TagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TagResourcesWithCallback invokes the elasticsearch.TagResources API asynchronously
+// api document: https://help.aliyun.com/api/elasticsearch/tagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.TagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TagResourcesRequest is the request struct for api TagResources
+type TagResourcesRequest struct {
+	*requests.RoaRequest
+}
+
+// TagResourcesResponse is the response struct for api TagResources
+type TagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateTagResourcesRequest creates a request to invoke TagResources API
+func CreateTagResourcesRequest() (request *TagResourcesRequest) {
+	request = &TagResourcesRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("elasticsearch", "2017-06-13", "TagResources", "/openapi/tags", "elasticsearch", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateTagResourcesResponse creates a response to parse from TagResources response
+func CreateTagResourcesResponse() (response *TagResourcesResponse) {
+	response = &TagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/elasticsearch/untag_resources.go

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

+ 2 - 2
services/elasticsearch/update_instance.go

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