Browse Source

CS SDK Auto Released By shenshi,Version:1.53.63

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
0ecf95d747
47 changed files with 230 additions and 3012 deletions
  1. 3 0
      ChangeLog.txt
  2. 0 102
      services/cs/add_agility_cluster.go
  3. 1 1
      services/cs/attach_instances.go
  4. 0 104
      services/cs/call_back_agility_cluster.go
  5. 0 104
      services/cs/callback_cluster_token.go
  6. 1 1
      services/cs/check_aliyun_cs_service_role.go
  7. 1 1
      services/cs/create_cluster.go
  8. 0 103
      services/cs/create_cluster_token.go
  9. 0 102
      services/cs/create_template.go
  10. 1 1
      services/cs/delete_cluster.go
  11. 3 3
      services/cs/delete_cluster_node.go
  12. 0 103
      services/cs/describe_agility_tunnel_agent_info.go
  13. 0 103
      services/cs/describe_agility_tunnel_certs.go
  14. 1 1
      services/cs/describe_api_version.go
  15. 1 1
      services/cs/describe_cluster_certs.go
  16. 1 1
      services/cs/describe_cluster_detail.go
  17. 103 0
      services/cs/describe_cluster_endpoints.go
  18. 0 103
      services/cs/describe_cluster_hosts.go
  19. 1 1
      services/cs/describe_cluster_logs.go
  20. 0 103
      services/cs/describe_cluster_node_info.go
  21. 0 104
      services/cs/describe_cluster_node_info_with_instance.go
  22. 2 2
      services/cs/describe_cluster_nodes.go
  23. 0 103
      services/cs/describe_cluster_scaled_node.go
  24. 0 103
      services/cs/describe_cluster_services.go
  25. 0 103
      services/cs/describe_cluster_tokens.go
  26. 103 0
      services/cs/describe_cluster_user_kubeconfig.go
  27. 2 2
      services/cs/describe_clusters.go
  28. 0 104
      services/cs/describe_images.go
  29. 0 103
      services/cs/describe_kubernetes_template.go
  30. 0 104
      services/cs/describe_kubernetes_templates.go
  31. 0 104
      services/cs/describe_service_containers.go
  32. 0 103
      services/cs/describe_task_info.go
  33. 0 103
      services/cs/describe_template_attribute.go
  34. 0 102
      services/cs/describe_templates.go
  35. 0 103
      services/cs/describe_user_containers.go
  36. 2 2
      services/cs/download_cluster_node_certs.go
  37. 0 103
      services/cs/gather_logs_token.go
  38. 0 103
      services/cs/get_cluster_projects.go
  39. 0 104
      services/cs/get_project_events.go
  40. 0 104
      services/cs/get_trigger_hook.go
  41. 0 102
      services/cs/modify_cluster_name.go
  42. 2 2
      services/cs/reset_cluster_node.go
  43. 1 1
      services/cs/revoke_cluster_token.go
  44. 1 1
      services/cs/scale_cluster.go
  45. 0 103
      services/cs/scale_in_cluster.go
  46. 0 102
      services/cs/update_sub_user_resouces.go
  47. 0 104
      services/cs/upgrade_cluster_components.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-19 Version: 1.53.63
+1, Update Dependency
+
 2019-03-19 Version: 1.53.62
 1, Update Dependency
 

+ 0 - 102
services/cs/add_agility_cluster.go

@@ -1,102 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// AddAgilityCluster invokes the cs.AddAgilityCluster API synchronously
-// api document: https://help.aliyun.com/api/cs/addagilitycluster.html
-func (client *Client) AddAgilityCluster(request *AddAgilityClusterRequest) (response *AddAgilityClusterResponse, err error) {
-	response = CreateAddAgilityClusterResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// AddAgilityClusterWithChan invokes the cs.AddAgilityCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/addagilitycluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AddAgilityClusterWithChan(request *AddAgilityClusterRequest) (<-chan *AddAgilityClusterResponse, <-chan error) {
-	responseChan := make(chan *AddAgilityClusterResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.AddAgilityCluster(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// AddAgilityClusterWithCallback invokes the cs.AddAgilityCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/addagilitycluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AddAgilityClusterWithCallback(request *AddAgilityClusterRequest, callback func(response *AddAgilityClusterResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *AddAgilityClusterResponse
-		var err error
-		defer close(result)
-		response, err = client.AddAgilityCluster(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// AddAgilityClusterRequest is the request struct for api AddAgilityCluster
-type AddAgilityClusterRequest struct {
-	*requests.RoaRequest
-}
-
-// AddAgilityClusterResponse is the response struct for api AddAgilityCluster
-type AddAgilityClusterResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateAddAgilityClusterRequest creates a request to invoke AddAgilityCluster API
-func CreateAddAgilityClusterRequest() (request *AddAgilityClusterRequest) {
-	request = &AddAgilityClusterRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "AddAgilityCluster", "/add_agility_cluster", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateAddAgilityClusterResponse creates a response to parse from AddAgilityCluster response
-func CreateAddAgilityClusterResponse() (response *AddAgilityClusterResponse) {
-	response = &AddAgilityClusterResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/attach_instances.go

@@ -89,7 +89,7 @@ func CreateAttachInstancesRequest() (request *AttachInstancesRequest) {
 	request = &AttachInstancesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "AttachInstances", "/clusters/[ClusterId]/attach", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "AttachInstances", "/clusters/[ClusterId]/attach", "cs", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 0 - 104
services/cs/call_back_agility_cluster.go

@@ -1,104 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// CallBackAgilityCluster invokes the cs.CallBackAgilityCluster API synchronously
-// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html
-func (client *Client) CallBackAgilityCluster(request *CallBackAgilityClusterRequest) (response *CallBackAgilityClusterResponse, err error) {
-	response = CreateCallBackAgilityClusterResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CallBackAgilityClusterWithChan invokes the cs.CallBackAgilityCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CallBackAgilityClusterWithChan(request *CallBackAgilityClusterRequest) (<-chan *CallBackAgilityClusterResponse, <-chan error) {
-	responseChan := make(chan *CallBackAgilityClusterResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CallBackAgilityCluster(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CallBackAgilityClusterWithCallback invokes the cs.CallBackAgilityCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/callbackagilitycluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CallBackAgilityClusterWithCallback(request *CallBackAgilityClusterRequest, callback func(response *CallBackAgilityClusterResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CallBackAgilityClusterResponse
-		var err error
-		defer close(result)
-		response, err = client.CallBackAgilityCluster(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CallBackAgilityClusterRequest is the request struct for api CallBackAgilityCluster
-type CallBackAgilityClusterRequest struct {
-	*requests.RoaRequest
-	Token   string `position:"Path" name:"Token"`
-	ReqOnce string `position:"Path" name:"ReqOnce"`
-}
-
-// CallBackAgilityClusterResponse is the response struct for api CallBackAgilityCluster
-type CallBackAgilityClusterResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateCallBackAgilityClusterRequest creates a request to invoke CallBackAgilityCluster API
-func CreateCallBackAgilityClusterRequest() (request *CallBackAgilityClusterRequest) {
-	request = &CallBackAgilityClusterRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CallBackAgilityCluster", "/agility/token/[Token]/req_once/[ReqOnce]/callback", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateCallBackAgilityClusterResponse creates a response to parse from CallBackAgilityCluster response
-func CreateCallBackAgilityClusterResponse() (response *CallBackAgilityClusterResponse) {
-	response = &CallBackAgilityClusterResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/cs/callback_cluster_token.go

@@ -1,104 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// CallbackClusterToken invokes the cs.CallbackClusterToken API synchronously
-// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html
-func (client *Client) CallbackClusterToken(request *CallbackClusterTokenRequest) (response *CallbackClusterTokenResponse, err error) {
-	response = CreateCallbackClusterTokenResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CallbackClusterTokenWithChan invokes the cs.CallbackClusterToken API asynchronously
-// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CallbackClusterTokenWithChan(request *CallbackClusterTokenRequest) (<-chan *CallbackClusterTokenResponse, <-chan error) {
-	responseChan := make(chan *CallbackClusterTokenResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CallbackClusterToken(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CallbackClusterTokenWithCallback invokes the cs.CallbackClusterToken API asynchronously
-// api document: https://help.aliyun.com/api/cs/callbackclustertoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CallbackClusterTokenWithCallback(request *CallbackClusterTokenRequest, callback func(response *CallbackClusterTokenResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CallbackClusterTokenResponse
-		var err error
-		defer close(result)
-		response, err = client.CallbackClusterToken(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CallbackClusterTokenRequest is the request struct for api CallbackClusterToken
-type CallbackClusterTokenRequest struct {
-	*requests.RoaRequest
-	Token   string `position:"Path" name:"Token"`
-	ReqOnce string `position:"Path" name:"ReqOnce"`
-}
-
-// CallbackClusterTokenResponse is the response struct for api CallbackClusterToken
-type CallbackClusterTokenResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateCallbackClusterTokenRequest creates a request to invoke CallbackClusterToken API
-func CreateCallbackClusterTokenRequest() (request *CallbackClusterTokenRequest) {
-	request = &CallbackClusterTokenRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CallbackClusterToken", "/token/[Token]/req_once/[ReqOnce]/callback", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateCallbackClusterTokenResponse creates a response to parse from CallbackClusterToken response
-func CreateCallbackClusterTokenResponse() (response *CallbackClusterTokenResponse) {
-	response = &CallbackClusterTokenResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/check_aliyun_cs_service_role.go

@@ -88,7 +88,7 @@ func CreateCheckAliyunCSServiceRoleRequest() (request *CheckAliyunCSServiceRoleR
 	request = &CheckAliyunCSServiceRoleRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CheckAliyunCSServiceRole", "/aliyuncsrole/status", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "CheckAliyunCSServiceRole", "/aliyuncsrole/status", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 1 - 1
services/cs/create_cluster.go

@@ -88,7 +88,7 @@ func CreateCreateClusterRequest() (request *CreateClusterRequest) {
 	request = &CreateClusterRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CreateCluster", "/clusters", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "CreateCluster", "/clusters", "cs", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 0 - 103
services/cs/create_cluster_token.go

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

+ 0 - 102
services/cs/create_template.go

@@ -1,102 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// CreateTemplate invokes the cs.CreateTemplate API synchronously
-// api document: https://help.aliyun.com/api/cs/createtemplate.html
-func (client *Client) CreateTemplate(request *CreateTemplateRequest) (response *CreateTemplateResponse, err error) {
-	response = CreateCreateTemplateResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateTemplateWithChan invokes the cs.CreateTemplate API asynchronously
-// api document: https://help.aliyun.com/api/cs/createtemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTemplateWithChan(request *CreateTemplateRequest) (<-chan *CreateTemplateResponse, <-chan error) {
-	responseChan := make(chan *CreateTemplateResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateTemplate(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateTemplateWithCallback invokes the cs.CreateTemplate API asynchronously
-// api document: https://help.aliyun.com/api/cs/createtemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTemplateWithCallback(request *CreateTemplateRequest, callback func(response *CreateTemplateResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateTemplateResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateTemplate(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateTemplateRequest is the request struct for api CreateTemplate
-type CreateTemplateRequest struct {
-	*requests.RoaRequest
-}
-
-// CreateTemplateResponse is the response struct for api CreateTemplate
-type CreateTemplateResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateCreateTemplateRequest creates a request to invoke CreateTemplate API
-func CreateCreateTemplateRequest() (request *CreateTemplateRequest) {
-	request = &CreateTemplateRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CreateTemplate", "/templates", "", "")
-	request.Method = requests.PUT
-	return
-}
-
-// CreateCreateTemplateResponse creates a response to parse from CreateTemplate response
-func CreateCreateTemplateResponse() (response *CreateTemplateResponse) {
-	response = &CreateTemplateResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/delete_cluster.go

@@ -89,7 +89,7 @@ func CreateDeleteClusterRequest() (request *DeleteClusterRequest) {
 	request = &DeleteClusterRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DeleteCluster", "/clusters/[ClusterId]", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DeleteCluster", "/clusters/[ClusterId]", "cs", "openAPI")
 	request.Method = requests.DELETE
 	return
 }

+ 3 - 3
services/cs/delete_cluster_node.go

@@ -76,10 +76,10 @@ func (client *Client) DeleteClusterNodeWithCallback(request *DeleteClusterNodeRe
 // DeleteClusterNodeRequest is the request struct for api DeleteClusterNode
 type DeleteClusterNodeRequest struct {
 	*requests.RoaRequest
-	ClusterId       string `position:"Path" name:"ClusterId"`
+	ReleaseInstance string `position:"Query" name:"releaseInstance"`
 	Ip              string `position:"Path" name:"Ip"`
 	Force           string `position:"Query" name:"force"`
-	ReleaseInstance string `position:"Query" name:"releaseInstance"`
+	ClusterId       string `position:"Path" name:"ClusterId"`
 }
 
 // DeleteClusterNodeResponse is the response struct for api DeleteClusterNode
@@ -92,7 +92,7 @@ func CreateDeleteClusterNodeRequest() (request *DeleteClusterNodeRequest) {
 	request = &DeleteClusterNodeRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNode", "/clusters/[ClusterId]/ip/[Ip]", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNode", "/clusters/[ClusterId]/ip/[Ip]", "cs", "openAPI")
 	request.Method = requests.DELETE
 	return
 }

+ 0 - 103
services/cs/describe_agility_tunnel_agent_info.go

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

+ 0 - 103
services/cs/describe_agility_tunnel_certs.go

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

+ 1 - 1
services/cs/describe_api_version.go

@@ -88,7 +88,7 @@ func CreateDescribeApiVersionRequest() (request *DescribeApiVersionRequest) {
 	request = &DescribeApiVersionRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeApiVersion", "/version", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeApiVersion", "/version", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 1 - 1
services/cs/describe_cluster_certs.go

@@ -89,7 +89,7 @@ func CreateDescribeClusterCertsRequest() (request *DescribeClusterCertsRequest)
 	request = &DescribeClusterCertsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterCerts", "/clusters/[ClusterId]/certs", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterCerts", "/clusters/[ClusterId]/certs", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 1 - 1
services/cs/describe_cluster_detail.go

@@ -89,7 +89,7 @@ func CreateDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest
 	request = &DescribeClusterDetailRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterDetail", "/clusters/[ClusterId]", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterDetail", "/clusters/[ClusterId]", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 103 - 0
services/cs/describe_cluster_endpoints.go

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

+ 0 - 103
services/cs/describe_cluster_hosts.go

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

+ 1 - 1
services/cs/describe_cluster_logs.go

@@ -89,7 +89,7 @@ func CreateDescribeClusterLogsRequest() (request *DescribeClusterLogsRequest) {
 	request = &DescribeClusterLogsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterLogs", "/clusters/[ClusterId]/logs", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterLogs", "/clusters/[ClusterId]/logs", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 0 - 103
services/cs/describe_cluster_node_info.go

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

+ 0 - 104
services/cs/describe_cluster_node_info_with_instance.go

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

+ 2 - 2
services/cs/describe_cluster_nodes.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeClusterNodesWithCallback(request *DescribeClusterN
 // DescribeClusterNodesRequest is the request struct for api DescribeClusterNodes
 type DescribeClusterNodesRequest struct {
 	*requests.RoaRequest
-	ClusterId  string `position:"Path" name:"ClusterId"`
 	PageSize   string `position:"Query" name:"pageSize"`
+	ClusterId  string `position:"Path" name:"ClusterId"`
 	PageNumber string `position:"Query" name:"pageNumber"`
 }
 
@@ -91,7 +91,7 @@ func CreateDescribeClusterNodesRequest() (request *DescribeClusterNodesRequest)
 	request = &DescribeClusterNodesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodes", "/clusters/[ClusterId]/nodes", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodes", "/clusters/[ClusterId]/nodes", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 0 - 103
services/cs/describe_cluster_scaled_node.go

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

+ 0 - 103
services/cs/describe_cluster_services.go

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

+ 0 - 103
services/cs/describe_cluster_tokens.go

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

+ 103 - 0
services/cs/describe_cluster_user_kubeconfig.go

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

+ 2 - 2
services/cs/describe_clusters.go

@@ -76,8 +76,8 @@ func (client *Client) DescribeClustersWithCallback(request *DescribeClustersRequ
 // DescribeClustersRequest is the request struct for api DescribeClusters
 type DescribeClustersRequest struct {
 	*requests.RoaRequest
-	Name        string `position:"Query" name:"Name"`
 	ClusterType string `position:"Query" name:"clusterType"`
+	Name        string `position:"Query" name:"Name"`
 }
 
 // DescribeClustersResponse is the response struct for api DescribeClusters
@@ -90,7 +90,7 @@ func CreateDescribeClustersRequest() (request *DescribeClustersRequest) {
 	request = &DescribeClustersRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusters", "/clusters", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusters", "/clusters", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 0 - 104
services/cs/describe_images.go

@@ -1,104 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeImages invokes the cs.DescribeImages API synchronously
-// api document: https://help.aliyun.com/api/cs/describeimages.html
-func (client *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) {
-	response = CreateDescribeImagesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeImagesWithChan invokes the cs.DescribeImages API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeimages.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<-chan *DescribeImagesResponse, <-chan error) {
-	responseChan := make(chan *DescribeImagesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeImages(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeImagesWithCallback invokes the cs.DescribeImages API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeimages.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, callback func(response *DescribeImagesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeImagesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeImages(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeImagesRequest is the request struct for api DescribeImages
-type DescribeImagesRequest struct {
-	*requests.RoaRequest
-	DockerVersion string `position:"Query" name:"DockerVersion"`
-	ImageName     string `position:"Query" name:"ImageName"`
-}
-
-// DescribeImagesResponse is the response struct for api DescribeImages
-type DescribeImagesResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeImagesRequest creates a request to invoke DescribeImages API
-func CreateDescribeImagesRequest() (request *DescribeImagesRequest) {
-	request = &DescribeImagesRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeImages", "/images", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeImagesResponse creates a response to parse from DescribeImages response
-func CreateDescribeImagesResponse() (response *DescribeImagesResponse) {
-	response = &DescribeImagesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/describe_kubernetes_template.go

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

+ 0 - 104
services/cs/describe_kubernetes_templates.go

@@ -1,104 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeKubernetesTemplates invokes the cs.DescribeKubernetesTemplates API synchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html
-func (client *Client) DescribeKubernetesTemplates(request *DescribeKubernetesTemplatesRequest) (response *DescribeKubernetesTemplatesResponse, err error) {
-	response = CreateDescribeKubernetesTemplatesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeKubernetesTemplatesWithChan invokes the cs.DescribeKubernetesTemplates API asynchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeKubernetesTemplatesWithChan(request *DescribeKubernetesTemplatesRequest) (<-chan *DescribeKubernetesTemplatesResponse, <-chan error) {
-	responseChan := make(chan *DescribeKubernetesTemplatesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeKubernetesTemplates(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeKubernetesTemplatesWithCallback invokes the cs.DescribeKubernetesTemplates API asynchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetestemplates.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeKubernetesTemplatesWithCallback(request *DescribeKubernetesTemplatesRequest, callback func(response *DescribeKubernetesTemplatesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeKubernetesTemplatesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeKubernetesTemplates(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeKubernetesTemplatesRequest is the request struct for api DescribeKubernetesTemplates
-type DescribeKubernetesTemplatesRequest struct {
-	*requests.RoaRequest
-	KubernetesVersion string `position:"Query" name:"KubernetesVersion"`
-	Region            string `position:"Query" name:"Region"`
-}
-
-// DescribeKubernetesTemplatesResponse is the response struct for api DescribeKubernetesTemplates
-type DescribeKubernetesTemplatesResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeKubernetesTemplatesRequest creates a request to invoke DescribeKubernetesTemplates API
-func CreateDescribeKubernetesTemplatesRequest() (request *DescribeKubernetesTemplatesRequest) {
-	request = &DescribeKubernetesTemplatesRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeKubernetesTemplates", "/k8s/templates", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeKubernetesTemplatesResponse creates a response to parse from DescribeKubernetesTemplates response
-func CreateDescribeKubernetesTemplatesResponse() (response *DescribeKubernetesTemplatesResponse) {
-	response = &DescribeKubernetesTemplatesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/cs/describe_service_containers.go

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

+ 0 - 103
services/cs/describe_task_info.go

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

+ 0 - 103
services/cs/describe_template_attribute.go

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

+ 0 - 102
services/cs/describe_templates.go

@@ -1,102 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeTemplates invokes the cs.DescribeTemplates API synchronously
-// api document: https://help.aliyun.com/api/cs/describetemplates.html
-func (client *Client) DescribeTemplates(request *DescribeTemplatesRequest) (response *DescribeTemplatesResponse, err error) {
-	response = CreateDescribeTemplatesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeTemplatesWithChan invokes the cs.DescribeTemplates API asynchronously
-// api document: https://help.aliyun.com/api/cs/describetemplates.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTemplatesWithChan(request *DescribeTemplatesRequest) (<-chan *DescribeTemplatesResponse, <-chan error) {
-	responseChan := make(chan *DescribeTemplatesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeTemplates(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeTemplatesWithCallback invokes the cs.DescribeTemplates API asynchronously
-// api document: https://help.aliyun.com/api/cs/describetemplates.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTemplatesWithCallback(request *DescribeTemplatesRequest, callback func(response *DescribeTemplatesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeTemplatesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeTemplates(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeTemplatesRequest is the request struct for api DescribeTemplates
-type DescribeTemplatesRequest struct {
-	*requests.RoaRequest
-}
-
-// DescribeTemplatesResponse is the response struct for api DescribeTemplates
-type DescribeTemplatesResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeTemplatesRequest creates a request to invoke DescribeTemplates API
-func CreateDescribeTemplatesRequest() (request *DescribeTemplatesRequest) {
-	request = &DescribeTemplatesRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeTemplates", "/templates", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeTemplatesResponse creates a response to parse from DescribeTemplates response
-func CreateDescribeTemplatesResponse() (response *DescribeTemplatesResponse) {
-	response = &DescribeTemplatesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/describe_user_containers.go

@@ -1,103 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DescribeUserContainers invokes the cs.DescribeUserContainers API synchronously
-// api document: https://help.aliyun.com/api/cs/describeusercontainers.html
-func (client *Client) DescribeUserContainers(request *DescribeUserContainersRequest) (response *DescribeUserContainersResponse, err error) {
-	response = CreateDescribeUserContainersResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeUserContainersWithChan invokes the cs.DescribeUserContainers API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeusercontainers.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeUserContainersWithChan(request *DescribeUserContainersRequest) (<-chan *DescribeUserContainersResponse, <-chan error) {
-	responseChan := make(chan *DescribeUserContainersResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeUserContainers(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeUserContainersWithCallback invokes the cs.DescribeUserContainers API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeusercontainers.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeUserContainersWithCallback(request *DescribeUserContainersRequest, callback func(response *DescribeUserContainersResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeUserContainersResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeUserContainers(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeUserContainersRequest is the request struct for api DescribeUserContainers
-type DescribeUserContainersRequest struct {
-	*requests.RoaRequest
-	ServiceId string `position:"Query" name:"ServiceId"`
-}
-
-// DescribeUserContainersResponse is the response struct for api DescribeUserContainers
-type DescribeUserContainersResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeUserContainersRequest creates a request to invoke DescribeUserContainers API
-func CreateDescribeUserContainersRequest() (request *DescribeUserContainersRequest) {
-	request = &DescribeUserContainersRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeUserContainers", "/region/[RegionId]/containers", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeUserContainersResponse creates a response to parse from DescribeUserContainers response
-func CreateDescribeUserContainersResponse() (response *DescribeUserContainersResponse) {
-	response = &DescribeUserContainersResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 2
services/cs/download_cluster_node_certs.go

@@ -76,8 +76,8 @@ func (client *Client) DownloadClusterNodeCertsWithCallback(request *DownloadClus
 // DownloadClusterNodeCertsRequest is the request struct for api DownloadClusterNodeCerts
 type DownloadClusterNodeCertsRequest struct {
 	*requests.RoaRequest
-	Token  string `position:"Path" name:"Token"`
 	NodeId string `position:"Path" name:"NodeId"`
+	Token  string `position:"Path" name:"Token"`
 }
 
 // DownloadClusterNodeCertsResponse is the response struct for api DownloadClusterNodeCerts
@@ -90,7 +90,7 @@ func CreateDownloadClusterNodeCertsRequest() (request *DownloadClusterNodeCertsR
 	request = &DownloadClusterNodeCertsRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DownloadClusterNodeCerts", "/token/[Token]/nodes/[NodeId]/certs", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DownloadClusterNodeCerts", "/token/[Token]/nodes/[NodeId]/certs", "cs", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 0 - 103
services/cs/gather_logs_token.go

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

+ 0 - 103
services/cs/get_cluster_projects.go

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

+ 0 - 104
services/cs/get_project_events.go

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

+ 0 - 104
services/cs/get_trigger_hook.go

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

+ 0 - 102
services/cs/modify_cluster_name.go

@@ -1,102 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// ModifyClusterName invokes the cs.ModifyClusterName API synchronously
-// api document: https://help.aliyun.com/api/cs/modifyclustername.html
-func (client *Client) ModifyClusterName(request *ModifyClusterNameRequest) (response *ModifyClusterNameResponse, err error) {
-	response = CreateModifyClusterNameResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyClusterNameWithChan invokes the cs.ModifyClusterName API asynchronously
-// api document: https://help.aliyun.com/api/cs/modifyclustername.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyClusterNameWithChan(request *ModifyClusterNameRequest) (<-chan *ModifyClusterNameResponse, <-chan error) {
-	responseChan := make(chan *ModifyClusterNameResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyClusterName(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyClusterNameWithCallback invokes the cs.ModifyClusterName API asynchronously
-// api document: https://help.aliyun.com/api/cs/modifyclustername.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyClusterNameWithCallback(request *ModifyClusterNameRequest, callback func(response *ModifyClusterNameResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyClusterNameResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyClusterName(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyClusterNameRequest is the request struct for api ModifyClusterName
-type ModifyClusterNameRequest struct {
-	*requests.RoaRequest
-}
-
-// ModifyClusterNameResponse is the response struct for api ModifyClusterName
-type ModifyClusterNameResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateModifyClusterNameRequest creates a request to invoke ModifyClusterName API
-func CreateModifyClusterNameRequest() (request *ModifyClusterNameRequest) {
-	request = &ModifyClusterNameRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "ModifyClusterName", "/clusters/[ClusterId]/name/[ClusterName]", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateModifyClusterNameResponse creates a response to parse from ModifyClusterName response
-func CreateModifyClusterNameResponse() (response *ModifyClusterNameResponse) {
-	response = &ModifyClusterNameResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 2
services/cs/reset_cluster_node.go

@@ -76,8 +76,8 @@ func (client *Client) ResetClusterNodeWithCallback(request *ResetClusterNodeRequ
 // ResetClusterNodeRequest is the request struct for api ResetClusterNode
 type ResetClusterNodeRequest struct {
 	*requests.RoaRequest
-	ClusterId  string `position:"Path" name:"ClusterId"`
 	InstanceId string `position:"Path" name:"InstanceId"`
+	ClusterId  string `position:"Path" name:"ClusterId"`
 }
 
 // ResetClusterNodeResponse is the response struct for api ResetClusterNode
@@ -90,7 +90,7 @@ func CreateResetClusterNodeRequest() (request *ResetClusterNodeRequest) {
 	request = &ResetClusterNodeRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "ResetClusterNode", "/clusters/[ClusterId]/instances/[InstanceId]/reset", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "ResetClusterNode", "/clusters/[ClusterId]/instances/[InstanceId]/reset", "cs", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 1 - 1
services/cs/revoke_cluster_token.go

@@ -89,7 +89,7 @@ func CreateRevokeClusterTokenRequest() (request *RevokeClusterTokenRequest) {
 	request = &RevokeClusterTokenRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "RevokeClusterToken", "/token/[Token]/revoke", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "RevokeClusterToken", "/token/[Token]/revoke", "cs", "openAPI")
 	request.Method = requests.DELETE
 	return
 }

+ 1 - 1
services/cs/scale_cluster.go

@@ -89,7 +89,7 @@ func CreateScaleClusterRequest() (request *ScaleClusterRequest) {
 	request = &ScaleClusterRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "ScaleCluster", "/clusters/[ClusterId]", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "ScaleCluster", "/clusters/[ClusterId]", "cs", "openAPI")
 	request.Method = requests.PUT
 	return
 }

+ 0 - 103
services/cs/scale_in_cluster.go

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

+ 0 - 102
services/cs/update_sub_user_resouces.go

@@ -1,102 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// UpdateSubUserResouces invokes the cs.UpdateSubUserResouces API synchronously
-// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html
-func (client *Client) UpdateSubUserResouces(request *UpdateSubUserResoucesRequest) (response *UpdateSubUserResoucesResponse, err error) {
-	response = CreateUpdateSubUserResoucesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UpdateSubUserResoucesWithChan invokes the cs.UpdateSubUserResouces API asynchronously
-// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpdateSubUserResoucesWithChan(request *UpdateSubUserResoucesRequest) (<-chan *UpdateSubUserResoucesResponse, <-chan error) {
-	responseChan := make(chan *UpdateSubUserResoucesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UpdateSubUserResouces(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UpdateSubUserResoucesWithCallback invokes the cs.UpdateSubUserResouces API asynchronously
-// api document: https://help.aliyun.com/api/cs/updatesubuserresouces.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpdateSubUserResoucesWithCallback(request *UpdateSubUserResoucesRequest, callback func(response *UpdateSubUserResoucesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UpdateSubUserResoucesResponse
-		var err error
-		defer close(result)
-		response, err = client.UpdateSubUserResouces(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UpdateSubUserResoucesRequest is the request struct for api UpdateSubUserResouces
-type UpdateSubUserResoucesRequest struct {
-	*requests.RoaRequest
-}
-
-// UpdateSubUserResoucesResponse is the response struct for api UpdateSubUserResouces
-type UpdateSubUserResoucesResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateUpdateSubUserResoucesRequest creates a request to invoke UpdateSubUserResouces API
-func CreateUpdateSubUserResoucesRequest() (request *UpdateSubUserResoucesRequest) {
-	request = &UpdateSubUserResoucesRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "UpdateSubUserResouces", "/ram/resources", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateUpdateSubUserResoucesResponse creates a response to parse from UpdateSubUserResouces response
-func CreateUpdateSubUserResoucesResponse() (response *UpdateSubUserResoucesResponse) {
-	response = &UpdateSubUserResoucesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/cs/upgrade_cluster_components.go

@@ -1,104 +0,0 @@
-package cs
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// UpgradeClusterComponents invokes the cs.UpgradeClusterComponents API synchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html
-func (client *Client) UpgradeClusterComponents(request *UpgradeClusterComponentsRequest) (response *UpgradeClusterComponentsResponse, err error) {
-	response = CreateUpgradeClusterComponentsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UpgradeClusterComponentsWithChan invokes the cs.UpgradeClusterComponents API asynchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpgradeClusterComponentsWithChan(request *UpgradeClusterComponentsRequest) (<-chan *UpgradeClusterComponentsResponse, <-chan error) {
-	responseChan := make(chan *UpgradeClusterComponentsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UpgradeClusterComponents(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UpgradeClusterComponentsWithCallback invokes the cs.UpgradeClusterComponents API asynchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclustercomponents.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpgradeClusterComponentsWithCallback(request *UpgradeClusterComponentsRequest, callback func(response *UpgradeClusterComponentsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UpgradeClusterComponentsResponse
-		var err error
-		defer close(result)
-		response, err = client.UpgradeClusterComponents(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UpgradeClusterComponentsRequest is the request struct for api UpgradeClusterComponents
-type UpgradeClusterComponentsRequest struct {
-	*requests.RoaRequest
-	ClusterId   string `position:"Path" name:"ClusterId"`
-	ComponentId string `position:"Path" name:"ComponentId"`
-}
-
-// UpgradeClusterComponentsResponse is the response struct for api UpgradeClusterComponents
-type UpgradeClusterComponentsResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateUpgradeClusterComponentsRequest creates a request to invoke UpgradeClusterComponents API
-func CreateUpgradeClusterComponentsRequest() (request *UpgradeClusterComponentsRequest) {
-	request = &UpgradeClusterComponentsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "UpgradeClusterComponents", "/clusters/[ClusterId]/components/[ComponentId]/upgrade", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateUpgradeClusterComponentsResponse creates a response to parse from UpgradeClusterComponents response
-func CreateUpgradeClusterComponentsResponse() (response *UpgradeClusterComponentsResponse) {
-	response = &UpgradeClusterComponentsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}