浏览代码

Generated 2015-12-15 for CS.

sdk-team 5 年之前
父节点
当前提交
6d6c81b12f
共有 41 个文件被更改,包括 1279 次插入2110 次删除
  1. 4 0
      ChangeLog.txt
  2. 1 1
      services/cs/attach_instances.go
  3. 103 0
      services/cs/cancel_workflow.go
  4. 0 102
      services/cs/check_aliyun_cs_service_role.go
  5. 2 1
      services/cs/create_cluster.go
  6. 0 104
      services/cs/create_cluster_by_resources_group.go
  7. 26 26
      services/cs/create_service_mesh.go
  8. 1 1
      services/cs/delete_cluster.go
  9. 0 106
      services/cs/delete_cluster_node.go
  10. 1 1
      services/cs/delete_cluster_nodes.go
  11. 103 0
      services/cs/descirbe_workflow.go
  12. 0 102
      services/cs/describe_api_version.go
  13. 0 104
      services/cs/describe_cluster_addons_version.go
  14. 0 103
      services/cs/describe_cluster_certs.go
  15. 0 103
      services/cs/describe_cluster_detail.go
  16. 0 103
      services/cs/describe_cluster_endpoints.go
  17. 0 103
      services/cs/describe_cluster_logs.go
  18. 0 105
      services/cs/describe_cluster_nodes.go
  19. 1 1
      services/cs/describe_cluster_user_kubeconfig.go
  20. 105 0
      services/cs/describe_cluster_v2_user_kubeconfig.go
  21. 2 1
      services/cs/describe_clusters.go
  22. 0 105
      services/cs/describe_edge_cluster_attach_scripts.go
  23. 0 107
      services/cs/describe_kubernetes_version_metadata.go
  24. 102 0
      services/cs/describe_workflows.go
  25. 0 104
      services/cs/download_cluster_node_certs.go
  26. 0 103
      services/cs/get_cluster_cert_info.go
  27. 0 103
      services/cs/pre_check_for_create_cluster.go
  28. 103 0
      services/cs/remove_workflow.go
  29. 0 104
      services/cs/reset_cluster_node.go
  30. 0 103
      services/cs/revoke_cluster_token.go
  31. 1 1
      services/cs/scale_cluster.go
  32. 0 104
      services/cs/scale_out_cluster.go
  33. 104 0
      services/cs/service_mesh_add_cluster.go
  34. 103 0
      services/cs/service_mesh_api_server.go
  35. 104 0
      services/cs/service_mesh_remove_cluster.go
  36. 102 0
      services/cs/start_workflow.go
  37. 104 0
      services/cs/un_install_cluster_addons.go
  38. 103 0
      services/cs/update_k8s_cluster_user_config_expire.go
  39. 104 0
      services/cs/update_service_mesh.go
  40. 0 104
      services/cs/upgrade_cluster_addons.go
  41. 0 105
      services/cs/upgrade_cluster_components.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-01-15 Version: v1.60.335
+- Generated 2015-12-15 for `CS`.
+- Support A csk.
+
 2020-01-14 Version: v1.60.334
 - Generated 2019-09-16 for `alikafka`.
 - Support modity topic remark.

+ 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", "csk", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 103 - 0
services/cs/cancel_workflow.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"
+)
+
+// CancelWorkflow invokes the cs.CancelWorkflow API synchronously
+// api document: https://help.aliyun.com/api/cs/cancelworkflow.html
+func (client *Client) CancelWorkflow(request *CancelWorkflowRequest) (response *CancelWorkflowResponse, err error) {
+	response = CreateCancelWorkflowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CancelWorkflowWithChan invokes the cs.CancelWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/cancelworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelWorkflowWithChan(request *CancelWorkflowRequest) (<-chan *CancelWorkflowResponse, <-chan error) {
+	responseChan := make(chan *CancelWorkflowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CancelWorkflow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CancelWorkflowWithCallback invokes the cs.CancelWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/cancelworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelWorkflowWithCallback(request *CancelWorkflowRequest, callback func(response *CancelWorkflowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CancelWorkflowResponse
+		var err error
+		defer close(result)
+		response, err = client.CancelWorkflow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CancelWorkflowRequest is the request struct for api CancelWorkflow
+type CancelWorkflowRequest struct {
+	*requests.RoaRequest
+	WorkflowName string `position:"Path" name:"workflowName"`
+}
+
+// CancelWorkflowResponse is the response struct for api CancelWorkflow
+type CancelWorkflowResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateCancelWorkflowRequest creates a request to invoke CancelWorkflow API
+func CreateCancelWorkflowRequest() (request *CancelWorkflowRequest) {
+	request = &CancelWorkflowRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "CancelWorkflow", "/gs/workflow/[workflowName]", "csk", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateCancelWorkflowResponse creates a response to parse from CancelWorkflow response
+func CreateCancelWorkflowResponse() (response *CancelWorkflowResponse) {
+	response = &CancelWorkflowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 102
services/cs/check_aliyun_cs_service_role.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"
-)
-
-// CheckAliyunCSServiceRole invokes the cs.CheckAliyunCSServiceRole API synchronously
-// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html
-func (client *Client) CheckAliyunCSServiceRole(request *CheckAliyunCSServiceRoleRequest) (response *CheckAliyunCSServiceRoleResponse, err error) {
-	response = CreateCheckAliyunCSServiceRoleResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CheckAliyunCSServiceRoleWithChan invokes the cs.CheckAliyunCSServiceRole API asynchronously
-// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckAliyunCSServiceRoleWithChan(request *CheckAliyunCSServiceRoleRequest) (<-chan *CheckAliyunCSServiceRoleResponse, <-chan error) {
-	responseChan := make(chan *CheckAliyunCSServiceRoleResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CheckAliyunCSServiceRole(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CheckAliyunCSServiceRoleWithCallback invokes the cs.CheckAliyunCSServiceRole API asynchronously
-// api document: https://help.aliyun.com/api/cs/checkaliyuncsservicerole.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckAliyunCSServiceRoleWithCallback(request *CheckAliyunCSServiceRoleRequest, callback func(response *CheckAliyunCSServiceRoleResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CheckAliyunCSServiceRoleResponse
-		var err error
-		defer close(result)
-		response, err = client.CheckAliyunCSServiceRole(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CheckAliyunCSServiceRoleRequest is the request struct for api CheckAliyunCSServiceRole
-type CheckAliyunCSServiceRoleRequest struct {
-	*requests.RoaRequest
-}
-
-// CheckAliyunCSServiceRoleResponse is the response struct for api CheckAliyunCSServiceRole
-type CheckAliyunCSServiceRoleResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateCheckAliyunCSServiceRoleRequest creates a request to invoke CheckAliyunCSServiceRole API
-func CreateCheckAliyunCSServiceRoleRequest() (request *CheckAliyunCSServiceRoleRequest) {
-	request = &CheckAliyunCSServiceRoleRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CheckAliyunCSServiceRole", "/aliyuncsrole/status", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateCheckAliyunCSServiceRoleResponse creates a response to parse from CheckAliyunCSServiceRole response
-func CreateCheckAliyunCSServiceRoleResponse() (response *CheckAliyunCSServiceRoleResponse) {
-	response = &CheckAliyunCSServiceRoleResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 1
services/cs/create_cluster.go

@@ -81,6 +81,7 @@ type CreateClusterRequest struct {
 // CreateClusterResponse is the response struct for api CreateCluster
 type CreateClusterResponse struct {
 	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
 }
 
 // CreateCreateClusterRequest creates a request to invoke CreateCluster API
@@ -88,7 +89,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", "csk", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 0 - 104
services/cs/create_cluster_by_resources_group.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"
-)
-
-// CreateClusterByResourcesGroup invokes the cs.CreateClusterByResourcesGroup API synchronously
-// api document: https://help.aliyun.com/api/cs/createclusterbyresourcesgroup.html
-func (client *Client) CreateClusterByResourcesGroup(request *CreateClusterByResourcesGroupRequest) (response *CreateClusterByResourcesGroupResponse, err error) {
-	response = CreateCreateClusterByResourcesGroupResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateClusterByResourcesGroupWithChan invokes the cs.CreateClusterByResourcesGroup API asynchronously
-// api document: https://help.aliyun.com/api/cs/createclusterbyresourcesgroup.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateClusterByResourcesGroupWithChan(request *CreateClusterByResourcesGroupRequest) (<-chan *CreateClusterByResourcesGroupResponse, <-chan error) {
-	responseChan := make(chan *CreateClusterByResourcesGroupResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateClusterByResourcesGroup(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateClusterByResourcesGroupWithCallback invokes the cs.CreateClusterByResourcesGroup API asynchronously
-// api document: https://help.aliyun.com/api/cs/createclusterbyresourcesgroup.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateClusterByResourcesGroupWithCallback(request *CreateClusterByResourcesGroupRequest, callback func(response *CreateClusterByResourcesGroupResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateClusterByResourcesGroupResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateClusterByResourcesGroup(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateClusterByResourcesGroupRequest is the request struct for api CreateClusterByResourcesGroup
-type CreateClusterByResourcesGroupRequest struct {
-	*requests.RoaRequest
-	ResourceGroupId string `position:"Path" name:"ResourceGroupId"`
-}
-
-// CreateClusterByResourcesGroupResponse is the response struct for api CreateClusterByResourcesGroup
-type CreateClusterByResourcesGroupResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateCreateClusterByResourcesGroupRequest creates a request to invoke CreateClusterByResourcesGroup API
-func CreateCreateClusterByResourcesGroupRequest() (request *CreateClusterByResourcesGroupRequest) {
-	request = &CreateClusterByResourcesGroupRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CreateClusterByResourcesGroup", "/resource_groups/[ResourceGroupId]/clusters", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateCreateClusterByResourcesGroupResponse creates a response to parse from CreateClusterByResourcesGroup response
-func CreateCreateClusterByResourcesGroupResponse() (response *CreateClusterByResourcesGroupResponse) {
-	response = &CreateClusterByResourcesGroupResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 26 - 26
services/cs/create_trigger_hook.go → services/cs/create_service_mesh.go

@@ -20,24 +20,24 @@ import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 )
 
-// CreateTriggerHook invokes the cs.CreateTriggerHook API synchronously
-// api document: https://help.aliyun.com/api/cs/createtriggerhook.html
-func (client *Client) CreateTriggerHook(request *CreateTriggerHookRequest) (response *CreateTriggerHookResponse, err error) {
-	response = CreateCreateTriggerHookResponse()
+// CreateServiceMesh invokes the cs.CreateServiceMesh API synchronously
+// api document: https://help.aliyun.com/api/cs/createservicemesh.html
+func (client *Client) CreateServiceMesh(request *CreateServiceMeshRequest) (response *CreateServiceMeshResponse, err error) {
+	response = CreateCreateServiceMeshResponse()
 	err = client.DoAction(request, response)
 	return
 }
 
-// CreateTriggerHookWithChan invokes the cs.CreateTriggerHook API asynchronously
-// api document: https://help.aliyun.com/api/cs/createtriggerhook.html
+// CreateServiceMeshWithChan invokes the cs.CreateServiceMesh API asynchronously
+// api document: https://help.aliyun.com/api/cs/createservicemesh.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTriggerHookWithChan(request *CreateTriggerHookRequest) (<-chan *CreateTriggerHookResponse, <-chan error) {
-	responseChan := make(chan *CreateTriggerHookResponse, 1)
+func (client *Client) CreateServiceMeshWithChan(request *CreateServiceMeshRequest) (<-chan *CreateServiceMeshResponse, <-chan error) {
+	responseChan := make(chan *CreateServiceMeshResponse, 1)
 	errChan := make(chan error, 1)
 	err := client.AddAsyncTask(func() {
 		defer close(responseChan)
 		defer close(errChan)
-		response, err := client.CreateTriggerHook(request)
+		response, err := client.CreateServiceMesh(request)
 		if err != nil {
 			errChan <- err
 		} else {
@@ -52,16 +52,16 @@ func (client *Client) CreateTriggerHookWithChan(request *CreateTriggerHookReques
 	return responseChan, errChan
 }
 
-// CreateTriggerHookWithCallback invokes the cs.CreateTriggerHook API asynchronously
-// api document: https://help.aliyun.com/api/cs/createtriggerhook.html
+// CreateServiceMeshWithCallback invokes the cs.CreateServiceMesh API asynchronously
+// api document: https://help.aliyun.com/api/cs/createservicemesh.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateTriggerHookWithCallback(request *CreateTriggerHookRequest, callback func(response *CreateTriggerHookResponse, err error)) <-chan int {
+func (client *Client) CreateServiceMeshWithCallback(request *CreateServiceMeshRequest, callback func(response *CreateServiceMeshResponse, err error)) <-chan int {
 	result := make(chan int, 1)
 	err := client.AddAsyncTask(func() {
-		var response *CreateTriggerHookResponse
+		var response *CreateServiceMeshResponse
 		var err error
 		defer close(result)
-		response, err = client.CreateTriggerHook(request)
+		response, err = client.CreateServiceMesh(request)
 		callback(response, err)
 		result <- 1
 	})
@@ -73,30 +73,30 @@ func (client *Client) CreateTriggerHookWithCallback(request *CreateTriggerHookRe
 	return result
 }
 
-// CreateTriggerHookRequest is the request struct for api CreateTriggerHook
-type CreateTriggerHookRequest struct {
+// CreateServiceMeshRequest is the request struct for api CreateServiceMesh
+type CreateServiceMeshRequest struct {
 	*requests.RoaRequest
 }
 
-// CreateTriggerHookResponse is the response struct for api CreateTriggerHook
-type CreateTriggerHookResponse struct {
+// CreateServiceMeshResponse is the response struct for api CreateServiceMesh
+type CreateServiceMeshResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
 }
 
-// CreateCreateTriggerHookRequest creates a request to invoke CreateTriggerHook API
-func CreateCreateTriggerHookRequest() (request *CreateTriggerHookRequest) {
-	request = &CreateTriggerHookRequest{
+// CreateCreateServiceMeshRequest creates a request to invoke CreateServiceMesh API
+func CreateCreateServiceMeshRequest() (request *CreateServiceMeshRequest) {
+	request = &CreateServiceMeshRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "CreateTriggerHook", "/hook/trigger", "", "")
-	request.Method = requests.PUT
+	request.InitWithApiInfo("CS", "2015-12-15", "CreateServiceMesh", "/servicemesh", "csk", "openAPI")
+	request.Method = requests.POST
 	return
 }
 
-// CreateCreateTriggerHookResponse creates a response to parse from CreateTriggerHook response
-func CreateCreateTriggerHookResponse() (response *CreateTriggerHookResponse) {
-	response = &CreateTriggerHookResponse{
+// CreateCreateServiceMeshResponse creates a response to parse from CreateServiceMesh response
+func CreateCreateServiceMeshResponse() (response *CreateServiceMeshResponse) {
+	response = &CreateServiceMeshResponse{
 		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]", "csk", "openAPI")
 	request.Method = requests.DELETE
 	return
 }

+ 0 - 106
services/cs/delete_cluster_node.go

@@ -1,106 +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"
-)
-
-// DeleteClusterNode invokes the cs.DeleteClusterNode API synchronously
-// api document: https://help.aliyun.com/api/cs/deleteclusternode.html
-func (client *Client) DeleteClusterNode(request *DeleteClusterNodeRequest) (response *DeleteClusterNodeResponse, err error) {
-	response = CreateDeleteClusterNodeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeleteClusterNodeWithChan invokes the cs.DeleteClusterNode API asynchronously
-// api document: https://help.aliyun.com/api/cs/deleteclusternode.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteClusterNodeWithChan(request *DeleteClusterNodeRequest) (<-chan *DeleteClusterNodeResponse, <-chan error) {
-	responseChan := make(chan *DeleteClusterNodeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeleteClusterNode(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeleteClusterNodeWithCallback invokes the cs.DeleteClusterNode API asynchronously
-// api document: https://help.aliyun.com/api/cs/deleteclusternode.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteClusterNodeWithCallback(request *DeleteClusterNodeRequest, callback func(response *DeleteClusterNodeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeleteClusterNodeResponse
-		var err error
-		defer close(result)
-		response, err = client.DeleteClusterNode(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeleteClusterNodeRequest is the request struct for api DeleteClusterNode
-type DeleteClusterNodeRequest struct {
-	*requests.RoaRequest
-	ReleaseInstance string `position:"Query" name:"releaseInstance"`
-	Ip              string `position:"Path" name:"Ip"`
-	Force           string `position:"Query" name:"force"`
-	ClusterId       string `position:"Path" name:"ClusterId"`
-}
-
-// DeleteClusterNodeResponse is the response struct for api DeleteClusterNode
-type DeleteClusterNodeResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDeleteClusterNodeRequest creates a request to invoke DeleteClusterNode API
-func CreateDeleteClusterNodeRequest() (request *DeleteClusterNodeRequest) {
-	request = &DeleteClusterNodeRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNode", "/clusters/[ClusterId]/ip/[Ip]", "", "")
-	request.Method = requests.DELETE
-	return
-}
-
-// CreateDeleteClusterNodeResponse creates a response to parse from DeleteClusterNode response
-func CreateDeleteClusterNodeResponse() (response *DeleteClusterNodeResponse) {
-	response = &DeleteClusterNodeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/delete_cluster_nodes.go

@@ -90,7 +90,7 @@ func CreateDeleteClusterNodesRequest() (request *DeleteClusterNodesRequest) {
 	request = &DeleteClusterNodesRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNodes", "/clusters/[ClusterId]/nodes", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DeleteClusterNodes", "/clusters/[ClusterId]/nodes", "csk", "openAPI")
 	request.Method = requests.POST
 	return
 }

+ 103 - 0
services/cs/descirbe_workflow.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"
+)
+
+// DescirbeWorkflow invokes the cs.DescirbeWorkflow API synchronously
+// api document: https://help.aliyun.com/api/cs/descirbeworkflow.html
+func (client *Client) DescirbeWorkflow(request *DescirbeWorkflowRequest) (response *DescirbeWorkflowResponse, err error) {
+	response = CreateDescirbeWorkflowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescirbeWorkflowWithChan invokes the cs.DescirbeWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/descirbeworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescirbeWorkflowWithChan(request *DescirbeWorkflowRequest) (<-chan *DescirbeWorkflowResponse, <-chan error) {
+	responseChan := make(chan *DescirbeWorkflowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescirbeWorkflow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescirbeWorkflowWithCallback invokes the cs.DescirbeWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/descirbeworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescirbeWorkflowWithCallback(request *DescirbeWorkflowRequest, callback func(response *DescirbeWorkflowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescirbeWorkflowResponse
+		var err error
+		defer close(result)
+		response, err = client.DescirbeWorkflow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescirbeWorkflowRequest is the request struct for api DescirbeWorkflow
+type DescirbeWorkflowRequest struct {
+	*requests.RoaRequest
+	WorkflowName string `position:"Path" name:"workflowName"`
+}
+
+// DescirbeWorkflowResponse is the response struct for api DescirbeWorkflow
+type DescirbeWorkflowResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateDescirbeWorkflowRequest creates a request to invoke DescirbeWorkflow API
+func CreateDescirbeWorkflowRequest() (request *DescirbeWorkflowRequest) {
+	request = &DescirbeWorkflowRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "DescirbeWorkflow", "/gs/workflow/[workflowName]", "csk", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescirbeWorkflowResponse creates a response to parse from DescirbeWorkflow response
+func CreateDescirbeWorkflowResponse() (response *DescirbeWorkflowResponse) {
+	response = &DescirbeWorkflowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 102
services/cs/describe_api_version.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"
-)
-
-// DescribeApiVersion invokes the cs.DescribeApiVersion API synchronously
-// api document: https://help.aliyun.com/api/cs/describeapiversion.html
-func (client *Client) DescribeApiVersion(request *DescribeApiVersionRequest) (response *DescribeApiVersionResponse, err error) {
-	response = CreateDescribeApiVersionResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeApiVersionWithChan invokes the cs.DescribeApiVersion API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeapiversion.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeApiVersionWithChan(request *DescribeApiVersionRequest) (<-chan *DescribeApiVersionResponse, <-chan error) {
-	responseChan := make(chan *DescribeApiVersionResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeApiVersion(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeApiVersionWithCallback invokes the cs.DescribeApiVersion API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeapiversion.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeApiVersionWithCallback(request *DescribeApiVersionRequest, callback func(response *DescribeApiVersionResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeApiVersionResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeApiVersion(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeApiVersionRequest is the request struct for api DescribeApiVersion
-type DescribeApiVersionRequest struct {
-	*requests.RoaRequest
-}
-
-// DescribeApiVersionResponse is the response struct for api DescribeApiVersion
-type DescribeApiVersionResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeApiVersionRequest creates a request to invoke DescribeApiVersion API
-func CreateDescribeApiVersionRequest() (request *DescribeApiVersionRequest) {
-	request = &DescribeApiVersionRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeApiVersion", "/version", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeApiVersionResponse creates a response to parse from DescribeApiVersion response
-func CreateDescribeApiVersionResponse() (response *DescribeApiVersionResponse) {
-	response = &DescribeApiVersionResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/cs/describe_cluster_addons_version.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"
-)
-
-// DescribeClusterAddonsVersion invokes the cs.DescribeClusterAddonsVersion API synchronously
-// api document: https://help.aliyun.com/api/cs/describeclusteraddonsversion.html
-func (client *Client) DescribeClusterAddonsVersion(request *DescribeClusterAddonsVersionRequest) (response *DescribeClusterAddonsVersionResponse, err error) {
-	response = CreateDescribeClusterAddonsVersionResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeClusterAddonsVersionWithChan invokes the cs.DescribeClusterAddonsVersion API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusteraddonsversion.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterAddonsVersionWithChan(request *DescribeClusterAddonsVersionRequest) (<-chan *DescribeClusterAddonsVersionResponse, <-chan error) {
-	responseChan := make(chan *DescribeClusterAddonsVersionResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeClusterAddonsVersion(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeClusterAddonsVersionWithCallback invokes the cs.DescribeClusterAddonsVersion API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusteraddonsversion.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterAddonsVersionWithCallback(request *DescribeClusterAddonsVersionRequest, callback func(response *DescribeClusterAddonsVersionResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeClusterAddonsVersionResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeClusterAddonsVersion(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeClusterAddonsVersionRequest is the request struct for api DescribeClusterAddonsVersion
-type DescribeClusterAddonsVersionRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// DescribeClusterAddonsVersionResponse is the response struct for api DescribeClusterAddonsVersion
-type DescribeClusterAddonsVersionResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDescribeClusterAddonsVersionRequest creates a request to invoke DescribeClusterAddonsVersion API
-func CreateDescribeClusterAddonsVersionRequest() (request *DescribeClusterAddonsVersionRequest) {
-	request = &DescribeClusterAddonsVersionRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterAddonsVersion", "/clusters/[ClusterId]/components/version", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeClusterAddonsVersionResponse creates a response to parse from DescribeClusterAddonsVersion response
-func CreateDescribeClusterAddonsVersionResponse() (response *DescribeClusterAddonsVersionResponse) {
-	response = &DescribeClusterAddonsVersionResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/describe_cluster_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"
-)
-
-// DescribeClusterCerts invokes the cs.DescribeClusterCerts API synchronously
-// api document: https://help.aliyun.com/api/cs/describeclustercerts.html
-func (client *Client) DescribeClusterCerts(request *DescribeClusterCertsRequest) (response *DescribeClusterCertsResponse, err error) {
-	response = CreateDescribeClusterCertsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeClusterCertsWithChan invokes the cs.DescribeClusterCerts API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclustercerts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterCertsWithChan(request *DescribeClusterCertsRequest) (<-chan *DescribeClusterCertsResponse, <-chan error) {
-	responseChan := make(chan *DescribeClusterCertsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeClusterCerts(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeClusterCertsWithCallback invokes the cs.DescribeClusterCerts API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclustercerts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterCertsWithCallback(request *DescribeClusterCertsRequest, callback func(response *DescribeClusterCertsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeClusterCertsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeClusterCerts(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeClusterCertsRequest is the request struct for api DescribeClusterCerts
-type DescribeClusterCertsRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// DescribeClusterCertsResponse is the response struct for api DescribeClusterCerts
-type DescribeClusterCertsResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeClusterCertsRequest creates a request to invoke DescribeClusterCerts API
-func CreateDescribeClusterCertsRequest() (request *DescribeClusterCertsRequest) {
-	request = &DescribeClusterCertsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterCerts", "/clusters/[ClusterId]/certs", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeClusterCertsResponse creates a response to parse from DescribeClusterCerts response
-func CreateDescribeClusterCertsResponse() (response *DescribeClusterCertsResponse) {
-	response = &DescribeClusterCertsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/describe_cluster_detail.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"
-)
-
-// DescribeClusterDetail invokes the cs.DescribeClusterDetail API synchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html
-func (client *Client) DescribeClusterDetail(request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error) {
-	response = CreateDescribeClusterDetailResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeClusterDetailWithChan invokes the cs.DescribeClusterDetail API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterDetailWithChan(request *DescribeClusterDetailRequest) (<-chan *DescribeClusterDetailResponse, <-chan error) {
-	responseChan := make(chan *DescribeClusterDetailResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeClusterDetail(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeClusterDetailWithCallback invokes the cs.DescribeClusterDetail API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterdetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterDetailWithCallback(request *DescribeClusterDetailRequest, callback func(response *DescribeClusterDetailResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeClusterDetailResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeClusterDetail(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeClusterDetailRequest is the request struct for api DescribeClusterDetail
-type DescribeClusterDetailRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// DescribeClusterDetailResponse is the response struct for api DescribeClusterDetail
-type DescribeClusterDetailResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeClusterDetailRequest creates a request to invoke DescribeClusterDetail API
-func CreateDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest) {
-	request = &DescribeClusterDetailRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterDetail", "/clusters/[ClusterId]", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeClusterDetailResponse creates a response to parse from DescribeClusterDetail response
-func CreateDescribeClusterDetailResponse() (response *DescribeClusterDetailResponse) {
-	response = &DescribeClusterDetailResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/describe_cluster_endpoints.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"
-)
-
-// 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", "", "")
-	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_logs.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"
-)
-
-// DescribeClusterLogs invokes the cs.DescribeClusterLogs API synchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html
-func (client *Client) DescribeClusterLogs(request *DescribeClusterLogsRequest) (response *DescribeClusterLogsResponse, err error) {
-	response = CreateDescribeClusterLogsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeClusterLogsWithChan invokes the cs.DescribeClusterLogs API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterLogsWithChan(request *DescribeClusterLogsRequest) (<-chan *DescribeClusterLogsResponse, <-chan error) {
-	responseChan := make(chan *DescribeClusterLogsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeClusterLogs(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeClusterLogsWithCallback invokes the cs.DescribeClusterLogs API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusterlogs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterLogsWithCallback(request *DescribeClusterLogsRequest, callback func(response *DescribeClusterLogsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeClusterLogsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeClusterLogs(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeClusterLogsRequest is the request struct for api DescribeClusterLogs
-type DescribeClusterLogsRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// DescribeClusterLogsResponse is the response struct for api DescribeClusterLogs
-type DescribeClusterLogsResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeClusterLogsRequest creates a request to invoke DescribeClusterLogs API
-func CreateDescribeClusterLogsRequest() (request *DescribeClusterLogsRequest) {
-	request = &DescribeClusterLogsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterLogs", "/clusters/[ClusterId]/logs", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeClusterLogsResponse creates a response to parse from DescribeClusterLogs response
-func CreateDescribeClusterLogsResponse() (response *DescribeClusterLogsResponse) {
-	response = &DescribeClusterLogsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 105
services/cs/describe_cluster_nodes.go

@@ -1,105 +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"
-)
-
-// DescribeClusterNodes invokes the cs.DescribeClusterNodes API synchronously
-// api document: https://help.aliyun.com/api/cs/describeclusternodes.html
-func (client *Client) DescribeClusterNodes(request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error) {
-	response = CreateDescribeClusterNodesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeClusterNodesWithChan invokes the cs.DescribeClusterNodes API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusternodes.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterNodesWithChan(request *DescribeClusterNodesRequest) (<-chan *DescribeClusterNodesResponse, <-chan error) {
-	responseChan := make(chan *DescribeClusterNodesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeClusterNodes(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeClusterNodesWithCallback invokes the cs.DescribeClusterNodes API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeclusternodes.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeClusterNodesWithCallback(request *DescribeClusterNodesRequest, callback func(response *DescribeClusterNodesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeClusterNodesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeClusterNodes(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeClusterNodesRequest is the request struct for api DescribeClusterNodes
-type DescribeClusterNodesRequest struct {
-	*requests.RoaRequest
-	PageSize   string `position:"Query" name:"pageSize"`
-	ClusterId  string `position:"Path" name:"ClusterId"`
-	PageNumber string `position:"Query" name:"pageNumber"`
-}
-
-// DescribeClusterNodesResponse is the response struct for api DescribeClusterNodes
-type DescribeClusterNodesResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDescribeClusterNodesRequest creates a request to invoke DescribeClusterNodes API
-func CreateDescribeClusterNodesRequest() (request *DescribeClusterNodesRequest) {
-	request = &DescribeClusterNodesRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterNodes", "/clusters/[ClusterId]/nodes", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeClusterNodesResponse creates a response to parse from DescribeClusterNodes response
-func CreateDescribeClusterNodesResponse() (response *DescribeClusterNodesResponse) {
-	response = &DescribeClusterNodesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/describe_cluster_user_kubeconfig.go

@@ -91,7 +91,7 @@ func CreateDescribeClusterUserKubeconfigRequest() (request *DescribeClusterUserK
 	request = &DescribeClusterUserKubeconfigRequest{
 		RoaRequest: &requests.RoaRequest{},
 	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterUserKubeconfig", "/k8s/[ClusterId]/user_config", "", "")
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterUserKubeconfig", "/k8s/[ClusterId]/user_config", "csk", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 105 - 0
services/cs/describe_cluster_v2_user_kubeconfig.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// DescribeClusterV2UserKubeconfig invokes the cs.DescribeClusterV2UserKubeconfig API synchronously
+// api document: https://help.aliyun.com/api/cs/describeclusterv2userkubeconfig.html
+func (client *Client) DescribeClusterV2UserKubeconfig(request *DescribeClusterV2UserKubeconfigRequest) (response *DescribeClusterV2UserKubeconfigResponse, err error) {
+	response = CreateDescribeClusterV2UserKubeconfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeClusterV2UserKubeconfigWithChan invokes the cs.DescribeClusterV2UserKubeconfig API asynchronously
+// api document: https://help.aliyun.com/api/cs/describeclusterv2userkubeconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeClusterV2UserKubeconfigWithChan(request *DescribeClusterV2UserKubeconfigRequest) (<-chan *DescribeClusterV2UserKubeconfigResponse, <-chan error) {
+	responseChan := make(chan *DescribeClusterV2UserKubeconfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeClusterV2UserKubeconfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeClusterV2UserKubeconfigWithCallback invokes the cs.DescribeClusterV2UserKubeconfig API asynchronously
+// api document: https://help.aliyun.com/api/cs/describeclusterv2userkubeconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeClusterV2UserKubeconfigWithCallback(request *DescribeClusterV2UserKubeconfigRequest, callback func(response *DescribeClusterV2UserKubeconfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeClusterV2UserKubeconfigResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeClusterV2UserKubeconfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeClusterV2UserKubeconfigRequest is the request struct for api DescribeClusterV2UserKubeconfig
+type DescribeClusterV2UserKubeconfigRequest struct {
+	*requests.RoaRequest
+	PrivateIpAddress requests.Boolean `position:"Query" name:"PrivateIpAddress"`
+	ClusterId        string           `position:"Path" name:"ClusterId"`
+}
+
+// DescribeClusterV2UserKubeconfigResponse is the response struct for api DescribeClusterV2UserKubeconfig
+type DescribeClusterV2UserKubeconfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDescribeClusterV2UserKubeconfigRequest creates a request to invoke DescribeClusterV2UserKubeconfig API
+func CreateDescribeClusterV2UserKubeconfigRequest() (request *DescribeClusterV2UserKubeconfigRequest) {
+	request = &DescribeClusterV2UserKubeconfigRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeClusterV2UserKubeconfig", "/api/v2/k8s/[ClusterId]/user_config", "csk", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeClusterV2UserKubeconfigResponse creates a response to parse from DescribeClusterV2UserKubeconfig response
+func CreateDescribeClusterV2UserKubeconfigResponse() (response *DescribeClusterV2UserKubeconfigResponse) {
+	response = &DescribeClusterV2UserKubeconfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 1
services/cs/describe_clusters.go

@@ -83,6 +83,7 @@ type DescribeClustersRequest struct {
 // DescribeClustersResponse is the response struct for api DescribeClusters
 type DescribeClustersResponse struct {
 	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
 }
 
 // CreateDescribeClustersRequest creates a request to invoke DescribeClusters API
@@ -90,7 +91,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", "csk", "openAPI")
 	request.Method = requests.GET
 	return
 }

+ 0 - 105
services/cs/describe_edge_cluster_attach_scripts.go

@@ -1,105 +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"
-)
-
-// DescribeEdgeClusterAttachScripts invokes the cs.DescribeEdgeClusterAttachScripts API synchronously
-// api document: https://help.aliyun.com/api/cs/describeedgeclusterattachscripts.html
-func (client *Client) DescribeEdgeClusterAttachScripts(request *DescribeEdgeClusterAttachScriptsRequest) (response *DescribeEdgeClusterAttachScriptsResponse, err error) {
-	response = CreateDescribeEdgeClusterAttachScriptsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeEdgeClusterAttachScriptsWithChan invokes the cs.DescribeEdgeClusterAttachScripts API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeedgeclusterattachscripts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEdgeClusterAttachScriptsWithChan(request *DescribeEdgeClusterAttachScriptsRequest) (<-chan *DescribeEdgeClusterAttachScriptsResponse, <-chan error) {
-	responseChan := make(chan *DescribeEdgeClusterAttachScriptsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeEdgeClusterAttachScripts(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeEdgeClusterAttachScriptsWithCallback invokes the cs.DescribeEdgeClusterAttachScripts API asynchronously
-// api document: https://help.aliyun.com/api/cs/describeedgeclusterattachscripts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEdgeClusterAttachScriptsWithCallback(request *DescribeEdgeClusterAttachScriptsRequest, callback func(response *DescribeEdgeClusterAttachScriptsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeEdgeClusterAttachScriptsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeEdgeClusterAttachScripts(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeEdgeClusterAttachScriptsRequest is the request struct for api DescribeEdgeClusterAttachScripts
-type DescribeEdgeClusterAttachScriptsRequest struct {
-	*requests.RoaRequest
-	ClusterId  string `position:"Path" name:"ClusterId"`
-	NamePrefix string `position:"Query" name:"NamePrefix"`
-}
-
-// DescribeEdgeClusterAttachScriptsResponse is the response struct for api DescribeEdgeClusterAttachScripts
-type DescribeEdgeClusterAttachScriptsResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDescribeEdgeClusterAttachScriptsRequest creates a request to invoke DescribeEdgeClusterAttachScripts API
-func CreateDescribeEdgeClusterAttachScriptsRequest() (request *DescribeEdgeClusterAttachScriptsRequest) {
-	request = &DescribeEdgeClusterAttachScriptsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeEdgeClusterAttachScripts", "/clusters/[ClusterId]/attachscript", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeEdgeClusterAttachScriptsResponse creates a response to parse from DescribeEdgeClusterAttachScripts response
-func CreateDescribeEdgeClusterAttachScriptsResponse() (response *DescribeEdgeClusterAttachScriptsResponse) {
-	response = &DescribeEdgeClusterAttachScriptsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/cs/describe_kubernetes_version_metadata.go

@@ -1,107 +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"
-)
-
-// DescribeKubernetesVersionMetadata invokes the cs.DescribeKubernetesVersionMetadata API synchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetesversionmetadata.html
-func (client *Client) DescribeKubernetesVersionMetadata(request *DescribeKubernetesVersionMetadataRequest) (response *DescribeKubernetesVersionMetadataResponse, err error) {
-	response = CreateDescribeKubernetesVersionMetadataResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeKubernetesVersionMetadataWithChan invokes the cs.DescribeKubernetesVersionMetadata API asynchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetesversionmetadata.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeKubernetesVersionMetadataWithChan(request *DescribeKubernetesVersionMetadataRequest) (<-chan *DescribeKubernetesVersionMetadataResponse, <-chan error) {
-	responseChan := make(chan *DescribeKubernetesVersionMetadataResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeKubernetesVersionMetadata(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeKubernetesVersionMetadataWithCallback invokes the cs.DescribeKubernetesVersionMetadata API asynchronously
-// api document: https://help.aliyun.com/api/cs/describekubernetesversionmetadata.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeKubernetesVersionMetadataWithCallback(request *DescribeKubernetesVersionMetadataRequest, callback func(response *DescribeKubernetesVersionMetadataResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeKubernetesVersionMetadataResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeKubernetesVersionMetadata(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeKubernetesVersionMetadataRequest is the request struct for api DescribeKubernetesVersionMetadata
-type DescribeKubernetesVersionMetadataRequest struct {
-	*requests.RoaRequest
-	ClusterType       string           `position:"Query" name:"ClusterType"`
-	MultiAZ           requests.Boolean `position:"Query" name:"MultiAZ"`
-	KubernetesVersion string           `position:"Query" name:"KubernetesVersion"`
-	Region            string           `position:"Query" name:"Region"`
-}
-
-// DescribeKubernetesVersionMetadataResponse is the response struct for api DescribeKubernetesVersionMetadata
-type DescribeKubernetesVersionMetadataResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDescribeKubernetesVersionMetadataRequest creates a request to invoke DescribeKubernetesVersionMetadata API
-func CreateDescribeKubernetesVersionMetadataRequest() (request *DescribeKubernetesVersionMetadataRequest) {
-	request = &DescribeKubernetesVersionMetadataRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DescribeKubernetesVersionMetadata", "/api/v1/metadata/versions", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDescribeKubernetesVersionMetadataResponse creates a response to parse from DescribeKubernetesVersionMetadata response
-func CreateDescribeKubernetesVersionMetadataResponse() (response *DescribeKubernetesVersionMetadataResponse) {
-	response = &DescribeKubernetesVersionMetadataResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 102 - 0
services/cs/describe_workflows.go

@@ -0,0 +1,102 @@
+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"
+)
+
+// DescribeWorkflows invokes the cs.DescribeWorkflows API synchronously
+// api document: https://help.aliyun.com/api/cs/describeworkflows.html
+func (client *Client) DescribeWorkflows(request *DescribeWorkflowsRequest) (response *DescribeWorkflowsResponse, err error) {
+	response = CreateDescribeWorkflowsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeWorkflowsWithChan invokes the cs.DescribeWorkflows API asynchronously
+// api document: https://help.aliyun.com/api/cs/describeworkflows.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeWorkflowsWithChan(request *DescribeWorkflowsRequest) (<-chan *DescribeWorkflowsResponse, <-chan error) {
+	responseChan := make(chan *DescribeWorkflowsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeWorkflows(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeWorkflowsWithCallback invokes the cs.DescribeWorkflows API asynchronously
+// api document: https://help.aliyun.com/api/cs/describeworkflows.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeWorkflowsWithCallback(request *DescribeWorkflowsRequest, callback func(response *DescribeWorkflowsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeWorkflowsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeWorkflows(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeWorkflowsRequest is the request struct for api DescribeWorkflows
+type DescribeWorkflowsRequest struct {
+	*requests.RoaRequest
+}
+
+// DescribeWorkflowsResponse is the response struct for api DescribeWorkflows
+type DescribeWorkflowsResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateDescribeWorkflowsRequest creates a request to invoke DescribeWorkflows API
+func CreateDescribeWorkflowsRequest() (request *DescribeWorkflowsRequest) {
+	request = &DescribeWorkflowsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "DescribeWorkflows", "/gs/workflows", "csk", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateDescribeWorkflowsResponse creates a response to parse from DescribeWorkflows response
+func CreateDescribeWorkflowsResponse() (response *DescribeWorkflowsResponse) {
+	response = &DescribeWorkflowsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 104
services/cs/download_cluster_node_certs.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"
-)
-
-// DownloadClusterNodeCerts invokes the cs.DownloadClusterNodeCerts API synchronously
-// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html
-func (client *Client) DownloadClusterNodeCerts(request *DownloadClusterNodeCertsRequest) (response *DownloadClusterNodeCertsResponse, err error) {
-	response = CreateDownloadClusterNodeCertsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DownloadClusterNodeCertsWithChan invokes the cs.DownloadClusterNodeCerts API asynchronously
-// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DownloadClusterNodeCertsWithChan(request *DownloadClusterNodeCertsRequest) (<-chan *DownloadClusterNodeCertsResponse, <-chan error) {
-	responseChan := make(chan *DownloadClusterNodeCertsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DownloadClusterNodeCerts(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DownloadClusterNodeCertsWithCallback invokes the cs.DownloadClusterNodeCerts API asynchronously
-// api document: https://help.aliyun.com/api/cs/downloadclusternodecerts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DownloadClusterNodeCertsWithCallback(request *DownloadClusterNodeCertsRequest, callback func(response *DownloadClusterNodeCertsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DownloadClusterNodeCertsResponse
-		var err error
-		defer close(result)
-		response, err = client.DownloadClusterNodeCerts(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DownloadClusterNodeCertsRequest is the request struct for api DownloadClusterNodeCerts
-type DownloadClusterNodeCertsRequest struct {
-	*requests.RoaRequest
-	NodeId string `position:"Path" name:"NodeId"`
-	Token  string `position:"Path" name:"Token"`
-}
-
-// DownloadClusterNodeCertsResponse is the response struct for api DownloadClusterNodeCerts
-type DownloadClusterNodeCertsResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateDownloadClusterNodeCertsRequest creates a request to invoke DownloadClusterNodeCerts API
-func CreateDownloadClusterNodeCertsRequest() (request *DownloadClusterNodeCertsRequest) {
-	request = &DownloadClusterNodeCertsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "DownloadClusterNodeCerts", "/token/[Token]/nodes/[NodeId]/certs", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateDownloadClusterNodeCertsResponse creates a response to parse from DownloadClusterNodeCerts response
-func CreateDownloadClusterNodeCertsResponse() (response *DownloadClusterNodeCertsResponse) {
-	response = &DownloadClusterNodeCertsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/get_cluster_cert_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"
-)
-
-// GetClusterCertInfo invokes the cs.GetClusterCertInfo API synchronously
-// api document: https://help.aliyun.com/api/cs/getclustercertinfo.html
-func (client *Client) GetClusterCertInfo(request *GetClusterCertInfoRequest) (response *GetClusterCertInfoResponse, err error) {
-	response = CreateGetClusterCertInfoResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetClusterCertInfoWithChan invokes the cs.GetClusterCertInfo API asynchronously
-// api document: https://help.aliyun.com/api/cs/getclustercertinfo.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetClusterCertInfoWithChan(request *GetClusterCertInfoRequest) (<-chan *GetClusterCertInfoResponse, <-chan error) {
-	responseChan := make(chan *GetClusterCertInfoResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetClusterCertInfo(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetClusterCertInfoWithCallback invokes the cs.GetClusterCertInfo API asynchronously
-// api document: https://help.aliyun.com/api/cs/getclustercertinfo.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetClusterCertInfoWithCallback(request *GetClusterCertInfoRequest, callback func(response *GetClusterCertInfoResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetClusterCertInfoResponse
-		var err error
-		defer close(result)
-		response, err = client.GetClusterCertInfo(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetClusterCertInfoRequest is the request struct for api GetClusterCertInfo
-type GetClusterCertInfoRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// GetClusterCertInfoResponse is the response struct for api GetClusterCertInfo
-type GetClusterCertInfoResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateGetClusterCertInfoRequest creates a request to invoke GetClusterCertInfo API
-func CreateGetClusterCertInfoRequest() (request *GetClusterCertInfoRequest) {
-	request = &GetClusterCertInfoRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "GetClusterCertInfo", "/clusters/[ClusterId]/hosts/certs", "", "")
-	request.Method = requests.GET
-	return
-}
-
-// CreateGetClusterCertInfoResponse creates a response to parse from GetClusterCertInfo response
-func CreateGetClusterCertInfoResponse() (response *GetClusterCertInfoResponse) {
-	response = &GetClusterCertInfoResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/pre_check_for_create_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"
-)
-
-// PreCheckForCreateCluster invokes the cs.PreCheckForCreateCluster API synchronously
-// api document: https://help.aliyun.com/api/cs/precheckforcreatecluster.html
-func (client *Client) PreCheckForCreateCluster(request *PreCheckForCreateClusterRequest) (response *PreCheckForCreateClusterResponse, err error) {
-	response = CreatePreCheckForCreateClusterResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// PreCheckForCreateClusterWithChan invokes the cs.PreCheckForCreateCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/precheckforcreatecluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) PreCheckForCreateClusterWithChan(request *PreCheckForCreateClusterRequest) (<-chan *PreCheckForCreateClusterResponse, <-chan error) {
-	responseChan := make(chan *PreCheckForCreateClusterResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.PreCheckForCreateCluster(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// PreCheckForCreateClusterWithCallback invokes the cs.PreCheckForCreateCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/precheckforcreatecluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) PreCheckForCreateClusterWithCallback(request *PreCheckForCreateClusterRequest, callback func(response *PreCheckForCreateClusterResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *PreCheckForCreateClusterResponse
-		var err error
-		defer close(result)
-		response, err = client.PreCheckForCreateCluster(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// PreCheckForCreateClusterRequest is the request struct for api PreCheckForCreateCluster
-type PreCheckForCreateClusterRequest struct {
-	*requests.RoaRequest
-}
-
-// PreCheckForCreateClusterResponse is the response struct for api PreCheckForCreateCluster
-type PreCheckForCreateClusterResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreatePreCheckForCreateClusterRequest creates a request to invoke PreCheckForCreateCluster API
-func CreatePreCheckForCreateClusterRequest() (request *PreCheckForCreateClusterRequest) {
-	request = &PreCheckForCreateClusterRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "PreCheckForCreateCluster", "/api/v1/ess/precheck", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreatePreCheckForCreateClusterResponse creates a response to parse from PreCheckForCreateCluster response
-func CreatePreCheckForCreateClusterResponse() (response *PreCheckForCreateClusterResponse) {
-	response = &PreCheckForCreateClusterResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 103 - 0
services/cs/remove_workflow.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"
+)
+
+// RemoveWorkflow invokes the cs.RemoveWorkflow API synchronously
+// api document: https://help.aliyun.com/api/cs/removeworkflow.html
+func (client *Client) RemoveWorkflow(request *RemoveWorkflowRequest) (response *RemoveWorkflowResponse, err error) {
+	response = CreateRemoveWorkflowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RemoveWorkflowWithChan invokes the cs.RemoveWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/removeworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RemoveWorkflowWithChan(request *RemoveWorkflowRequest) (<-chan *RemoveWorkflowResponse, <-chan error) {
+	responseChan := make(chan *RemoveWorkflowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RemoveWorkflow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RemoveWorkflowWithCallback invokes the cs.RemoveWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/removeworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RemoveWorkflowWithCallback(request *RemoveWorkflowRequest, callback func(response *RemoveWorkflowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RemoveWorkflowResponse
+		var err error
+		defer close(result)
+		response, err = client.RemoveWorkflow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RemoveWorkflowRequest is the request struct for api RemoveWorkflow
+type RemoveWorkflowRequest struct {
+	*requests.RoaRequest
+	WorkflowName string `position:"Path" name:"workflowName"`
+}
+
+// RemoveWorkflowResponse is the response struct for api RemoveWorkflow
+type RemoveWorkflowResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateRemoveWorkflowRequest creates a request to invoke RemoveWorkflow API
+func CreateRemoveWorkflowRequest() (request *RemoveWorkflowRequest) {
+	request = &RemoveWorkflowRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "RemoveWorkflow", "/gs/workflow/[workflowName]", "csk", "openAPI")
+	request.Method = requests.DELETE
+	return
+}
+
+// CreateRemoveWorkflowResponse creates a response to parse from RemoveWorkflow response
+func CreateRemoveWorkflowResponse() (response *RemoveWorkflowResponse) {
+	response = &RemoveWorkflowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 104
services/cs/reset_cluster_node.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"
-)
-
-// ResetClusterNode invokes the cs.ResetClusterNode API synchronously
-// api document: https://help.aliyun.com/api/cs/resetclusternode.html
-func (client *Client) ResetClusterNode(request *ResetClusterNodeRequest) (response *ResetClusterNodeResponse, err error) {
-	response = CreateResetClusterNodeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ResetClusterNodeWithChan invokes the cs.ResetClusterNode API asynchronously
-// api document: https://help.aliyun.com/api/cs/resetclusternode.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResetClusterNodeWithChan(request *ResetClusterNodeRequest) (<-chan *ResetClusterNodeResponse, <-chan error) {
-	responseChan := make(chan *ResetClusterNodeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ResetClusterNode(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ResetClusterNodeWithCallback invokes the cs.ResetClusterNode API asynchronously
-// api document: https://help.aliyun.com/api/cs/resetclusternode.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResetClusterNodeWithCallback(request *ResetClusterNodeRequest, callback func(response *ResetClusterNodeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ResetClusterNodeResponse
-		var err error
-		defer close(result)
-		response, err = client.ResetClusterNode(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ResetClusterNodeRequest is the request struct for api ResetClusterNode
-type ResetClusterNodeRequest struct {
-	*requests.RoaRequest
-	InstanceId string `position:"Path" name:"InstanceId"`
-	ClusterId  string `position:"Path" name:"ClusterId"`
-}
-
-// ResetClusterNodeResponse is the response struct for api ResetClusterNode
-type ResetClusterNodeResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateResetClusterNodeRequest creates a request to invoke ResetClusterNode API
-func CreateResetClusterNodeRequest() (request *ResetClusterNodeRequest) {
-	request = &ResetClusterNodeRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "ResetClusterNode", "/clusters/[ClusterId]/instances/[InstanceId]/reset", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateResetClusterNodeResponse creates a response to parse from ResetClusterNode response
-func CreateResetClusterNodeResponse() (response *ResetClusterNodeResponse) {
-	response = &ResetClusterNodeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 103
services/cs/revoke_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"
-)
-
-// RevokeClusterToken invokes the cs.RevokeClusterToken API synchronously
-// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html
-func (client *Client) RevokeClusterToken(request *RevokeClusterTokenRequest) (response *RevokeClusterTokenResponse, err error) {
-	response = CreateRevokeClusterTokenResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// RevokeClusterTokenWithChan invokes the cs.RevokeClusterToken API asynchronously
-// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) RevokeClusterTokenWithChan(request *RevokeClusterTokenRequest) (<-chan *RevokeClusterTokenResponse, <-chan error) {
-	responseChan := make(chan *RevokeClusterTokenResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.RevokeClusterToken(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// RevokeClusterTokenWithCallback invokes the cs.RevokeClusterToken API asynchronously
-// api document: https://help.aliyun.com/api/cs/revokeclustertoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) RevokeClusterTokenWithCallback(request *RevokeClusterTokenRequest, callback func(response *RevokeClusterTokenResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *RevokeClusterTokenResponse
-		var err error
-		defer close(result)
-		response, err = client.RevokeClusterToken(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// RevokeClusterTokenRequest is the request struct for api RevokeClusterToken
-type RevokeClusterTokenRequest struct {
-	*requests.RoaRequest
-	Token string `position:"Path" name:"Token"`
-}
-
-// RevokeClusterTokenResponse is the response struct for api RevokeClusterToken
-type RevokeClusterTokenResponse struct {
-	*responses.BaseResponse
-}
-
-// CreateRevokeClusterTokenRequest creates a request to invoke RevokeClusterToken API
-func CreateRevokeClusterTokenRequest() (request *RevokeClusterTokenRequest) {
-	request = &RevokeClusterTokenRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "RevokeClusterToken", "/token/[Token]/revoke", "", "")
-	request.Method = requests.DELETE
-	return
-}
-
-// CreateRevokeClusterTokenResponse creates a response to parse from RevokeClusterToken response
-func CreateRevokeClusterTokenResponse() (response *RevokeClusterTokenResponse) {
-	response = &RevokeClusterTokenResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cs/scale_cluster.go

@@ -90,7 +90,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]", "csk", "openAPI")
 	request.Method = requests.PUT
 	return
 }

+ 0 - 104
services/cs/scale_out_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"
-)
-
-// ScaleOutCluster invokes the cs.ScaleOutCluster API synchronously
-// api document: https://help.aliyun.com/api/cs/scaleoutcluster.html
-func (client *Client) ScaleOutCluster(request *ScaleOutClusterRequest) (response *ScaleOutClusterResponse, err error) {
-	response = CreateScaleOutClusterResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ScaleOutClusterWithChan invokes the cs.ScaleOutCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/scaleoutcluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ScaleOutClusterWithChan(request *ScaleOutClusterRequest) (<-chan *ScaleOutClusterResponse, <-chan error) {
-	responseChan := make(chan *ScaleOutClusterResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ScaleOutCluster(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ScaleOutClusterWithCallback invokes the cs.ScaleOutCluster API asynchronously
-// api document: https://help.aliyun.com/api/cs/scaleoutcluster.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ScaleOutClusterWithCallback(request *ScaleOutClusterRequest, callback func(response *ScaleOutClusterResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ScaleOutClusterResponse
-		var err error
-		defer close(result)
-		response, err = client.ScaleOutCluster(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ScaleOutClusterRequest is the request struct for api ScaleOutCluster
-type ScaleOutClusterRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// ScaleOutClusterResponse is the response struct for api ScaleOutCluster
-type ScaleOutClusterResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateScaleOutClusterRequest creates a request to invoke ScaleOutCluster API
-func CreateScaleOutClusterRequest() (request *ScaleOutClusterRequest) {
-	request = &ScaleOutClusterRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "ScaleOutCluster", "/api/v2/clusters/[ClusterId]", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateScaleOutClusterResponse creates a response to parse from ScaleOutCluster response
-func CreateScaleOutClusterResponse() (response *ScaleOutClusterResponse) {
-	response = &ScaleOutClusterResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 104 - 0
services/cs/service_mesh_add_cluster.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// ServiceMeshAddCluster invokes the cs.ServiceMeshAddCluster API synchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshaddcluster.html
+func (client *Client) ServiceMeshAddCluster(request *ServiceMeshAddClusterRequest) (response *ServiceMeshAddClusterResponse, err error) {
+	response = CreateServiceMeshAddClusterResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ServiceMeshAddClusterWithChan invokes the cs.ServiceMeshAddCluster API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshaddcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshAddClusterWithChan(request *ServiceMeshAddClusterRequest) (<-chan *ServiceMeshAddClusterResponse, <-chan error) {
+	responseChan := make(chan *ServiceMeshAddClusterResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ServiceMeshAddCluster(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ServiceMeshAddClusterWithCallback invokes the cs.ServiceMeshAddCluster API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshaddcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshAddClusterWithCallback(request *ServiceMeshAddClusterRequest, callback func(response *ServiceMeshAddClusterResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ServiceMeshAddClusterResponse
+		var err error
+		defer close(result)
+		response, err = client.ServiceMeshAddCluster(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ServiceMeshAddClusterRequest is the request struct for api ServiceMeshAddCluster
+type ServiceMeshAddClusterRequest struct {
+	*requests.RoaRequest
+	ServiceMeshId string `position:"Path" name:"ServiceMeshId"`
+}
+
+// ServiceMeshAddClusterResponse is the response struct for api ServiceMeshAddCluster
+type ServiceMeshAddClusterResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateServiceMeshAddClusterRequest creates a request to invoke ServiceMeshAddCluster API
+func CreateServiceMeshAddClusterRequest() (request *ServiceMeshAddClusterRequest) {
+	request = &ServiceMeshAddClusterRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "ServiceMeshAddCluster", "/servicemesh/[ServiceMeshId]/add/clusters", "csk", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateServiceMeshAddClusterResponse creates a response to parse from ServiceMeshAddCluster response
+func CreateServiceMeshAddClusterResponse() (response *ServiceMeshAddClusterResponse) {
+	response = &ServiceMeshAddClusterResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/cs/service_mesh_api_server.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"
+)
+
+// ServiceMeshApiServer invokes the cs.ServiceMeshApiServer API synchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshapiserver.html
+func (client *Client) ServiceMeshApiServer(request *ServiceMeshApiServerRequest) (response *ServiceMeshApiServerResponse, err error) {
+	response = CreateServiceMeshApiServerResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ServiceMeshApiServerWithChan invokes the cs.ServiceMeshApiServer API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshapiserver.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshApiServerWithChan(request *ServiceMeshApiServerRequest) (<-chan *ServiceMeshApiServerResponse, <-chan error) {
+	responseChan := make(chan *ServiceMeshApiServerResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ServiceMeshApiServer(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ServiceMeshApiServerWithCallback invokes the cs.ServiceMeshApiServer API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshapiserver.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshApiServerWithCallback(request *ServiceMeshApiServerRequest, callback func(response *ServiceMeshApiServerResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ServiceMeshApiServerResponse
+		var err error
+		defer close(result)
+		response, err = client.ServiceMeshApiServer(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ServiceMeshApiServerRequest is the request struct for api ServiceMeshApiServer
+type ServiceMeshApiServerRequest struct {
+	*requests.RoaRequest
+	ServiceMeshId string `position:"Path" name:"ServiceMeshId"`
+}
+
+// ServiceMeshApiServerResponse is the response struct for api ServiceMeshApiServer
+type ServiceMeshApiServerResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateServiceMeshApiServerRequest creates a request to invoke ServiceMeshApiServer API
+func CreateServiceMeshApiServerRequest() (request *ServiceMeshApiServerRequest) {
+	request = &ServiceMeshApiServerRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "ServiceMeshApiServer", "/servicemesh/[ServiceMeshId]/api_proxy", "csk", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateServiceMeshApiServerResponse creates a response to parse from ServiceMeshApiServer response
+func CreateServiceMeshApiServerResponse() (response *ServiceMeshApiServerResponse) {
+	response = &ServiceMeshApiServerResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/cs/service_mesh_remove_cluster.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// ServiceMeshRemoveCluster invokes the cs.ServiceMeshRemoveCluster API synchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshremovecluster.html
+func (client *Client) ServiceMeshRemoveCluster(request *ServiceMeshRemoveClusterRequest) (response *ServiceMeshRemoveClusterResponse, err error) {
+	response = CreateServiceMeshRemoveClusterResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ServiceMeshRemoveClusterWithChan invokes the cs.ServiceMeshRemoveCluster API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshremovecluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshRemoveClusterWithChan(request *ServiceMeshRemoveClusterRequest) (<-chan *ServiceMeshRemoveClusterResponse, <-chan error) {
+	responseChan := make(chan *ServiceMeshRemoveClusterResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ServiceMeshRemoveCluster(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ServiceMeshRemoveClusterWithCallback invokes the cs.ServiceMeshRemoveCluster API asynchronously
+// api document: https://help.aliyun.com/api/cs/servicemeshremovecluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ServiceMeshRemoveClusterWithCallback(request *ServiceMeshRemoveClusterRequest, callback func(response *ServiceMeshRemoveClusterResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ServiceMeshRemoveClusterResponse
+		var err error
+		defer close(result)
+		response, err = client.ServiceMeshRemoveCluster(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ServiceMeshRemoveClusterRequest is the request struct for api ServiceMeshRemoveCluster
+type ServiceMeshRemoveClusterRequest struct {
+	*requests.RoaRequest
+	ServiceMeshId string `position:"Path" name:"ServiceMeshId"`
+}
+
+// ServiceMeshRemoveClusterResponse is the response struct for api ServiceMeshRemoveCluster
+type ServiceMeshRemoveClusterResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateServiceMeshRemoveClusterRequest creates a request to invoke ServiceMeshRemoveCluster API
+func CreateServiceMeshRemoveClusterRequest() (request *ServiceMeshRemoveClusterRequest) {
+	request = &ServiceMeshRemoveClusterRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "ServiceMeshRemoveCluster", "/servicemesh/[ServiceMeshId]/remove/clusters", "csk", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateServiceMeshRemoveClusterResponse creates a response to parse from ServiceMeshRemoveCluster response
+func CreateServiceMeshRemoveClusterResponse() (response *ServiceMeshRemoveClusterResponse) {
+	response = &ServiceMeshRemoveClusterResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 102 - 0
services/cs/start_workflow.go

@@ -0,0 +1,102 @@
+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"
+)
+
+// StartWorkflow invokes the cs.StartWorkflow API synchronously
+// api document: https://help.aliyun.com/api/cs/startworkflow.html
+func (client *Client) StartWorkflow(request *StartWorkflowRequest) (response *StartWorkflowResponse, err error) {
+	response = CreateStartWorkflowResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StartWorkflowWithChan invokes the cs.StartWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/startworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartWorkflowWithChan(request *StartWorkflowRequest) (<-chan *StartWorkflowResponse, <-chan error) {
+	responseChan := make(chan *StartWorkflowResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StartWorkflow(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StartWorkflowWithCallback invokes the cs.StartWorkflow API asynchronously
+// api document: https://help.aliyun.com/api/cs/startworkflow.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartWorkflowWithCallback(request *StartWorkflowRequest, callback func(response *StartWorkflowResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StartWorkflowResponse
+		var err error
+		defer close(result)
+		response, err = client.StartWorkflow(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StartWorkflowRequest is the request struct for api StartWorkflow
+type StartWorkflowRequest struct {
+	*requests.RoaRequest
+}
+
+// StartWorkflowResponse is the response struct for api StartWorkflow
+type StartWorkflowResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateStartWorkflowRequest creates a request to invoke StartWorkflow API
+func CreateStartWorkflowRequest() (request *StartWorkflowRequest) {
+	request = &StartWorkflowRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "StartWorkflow", "/gs/workflow", "csk", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateStartWorkflowResponse creates a response to parse from StartWorkflow response
+func CreateStartWorkflowResponse() (response *StartWorkflowResponse) {
+	response = &StartWorkflowResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/cs/un_install_cluster_addons.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// UnInstallClusterAddons invokes the cs.UnInstallClusterAddons API synchronously
+// api document: https://help.aliyun.com/api/cs/uninstallclusteraddons.html
+func (client *Client) UnInstallClusterAddons(request *UnInstallClusterAddonsRequest) (response *UnInstallClusterAddonsResponse, err error) {
+	response = CreateUnInstallClusterAddonsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UnInstallClusterAddonsWithChan invokes the cs.UnInstallClusterAddons API asynchronously
+// api document: https://help.aliyun.com/api/cs/uninstallclusteraddons.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UnInstallClusterAddonsWithChan(request *UnInstallClusterAddonsRequest) (<-chan *UnInstallClusterAddonsResponse, <-chan error) {
+	responseChan := make(chan *UnInstallClusterAddonsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UnInstallClusterAddons(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UnInstallClusterAddonsWithCallback invokes the cs.UnInstallClusterAddons API asynchronously
+// api document: https://help.aliyun.com/api/cs/uninstallclusteraddons.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UnInstallClusterAddonsWithCallback(request *UnInstallClusterAddonsRequest, callback func(response *UnInstallClusterAddonsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UnInstallClusterAddonsResponse
+		var err error
+		defer close(result)
+		response, err = client.UnInstallClusterAddons(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UnInstallClusterAddonsRequest is the request struct for api UnInstallClusterAddons
+type UnInstallClusterAddonsRequest struct {
+	*requests.RoaRequest
+	ClusterId string `position:"Path" name:"ClusterId"`
+}
+
+// UnInstallClusterAddonsResponse is the response struct for api UnInstallClusterAddons
+type UnInstallClusterAddonsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUnInstallClusterAddonsRequest creates a request to invoke UnInstallClusterAddons API
+func CreateUnInstallClusterAddonsRequest() (request *UnInstallClusterAddonsRequest) {
+	request = &UnInstallClusterAddonsRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "UnInstallClusterAddons", "/clusters/[ClusterId]/components/uninstall", "csk", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUnInstallClusterAddonsResponse creates a response to parse from UnInstallClusterAddons response
+func CreateUnInstallClusterAddonsResponse() (response *UnInstallClusterAddonsResponse) {
+	response = &UnInstallClusterAddonsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/cs/update_k8s_cluster_user_config_expire.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"
+)
+
+// UpdateK8sClusterUserConfigExpire invokes the cs.UpdateK8sClusterUserConfigExpire API synchronously
+// api document: https://help.aliyun.com/api/cs/updatek8sclusteruserconfigexpire.html
+func (client *Client) UpdateK8sClusterUserConfigExpire(request *UpdateK8sClusterUserConfigExpireRequest) (response *UpdateK8sClusterUserConfigExpireResponse, err error) {
+	response = CreateUpdateK8sClusterUserConfigExpireResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateK8sClusterUserConfigExpireWithChan invokes the cs.UpdateK8sClusterUserConfigExpire API asynchronously
+// api document: https://help.aliyun.com/api/cs/updatek8sclusteruserconfigexpire.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateK8sClusterUserConfigExpireWithChan(request *UpdateK8sClusterUserConfigExpireRequest) (<-chan *UpdateK8sClusterUserConfigExpireResponse, <-chan error) {
+	responseChan := make(chan *UpdateK8sClusterUserConfigExpireResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateK8sClusterUserConfigExpire(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateK8sClusterUserConfigExpireWithCallback invokes the cs.UpdateK8sClusterUserConfigExpire API asynchronously
+// api document: https://help.aliyun.com/api/cs/updatek8sclusteruserconfigexpire.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateK8sClusterUserConfigExpireWithCallback(request *UpdateK8sClusterUserConfigExpireRequest, callback func(response *UpdateK8sClusterUserConfigExpireResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateK8sClusterUserConfigExpireResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateK8sClusterUserConfigExpire(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateK8sClusterUserConfigExpireRequest is the request struct for api UpdateK8sClusterUserConfigExpire
+type UpdateK8sClusterUserConfigExpireRequest struct {
+	*requests.RoaRequest
+	ClusterId string `position:"Path" name:"ClusterId"`
+}
+
+// UpdateK8sClusterUserConfigExpireResponse is the response struct for api UpdateK8sClusterUserConfigExpire
+type UpdateK8sClusterUserConfigExpireResponse struct {
+	*responses.BaseResponse
+}
+
+// CreateUpdateK8sClusterUserConfigExpireRequest creates a request to invoke UpdateK8sClusterUserConfigExpire API
+func CreateUpdateK8sClusterUserConfigExpireRequest() (request *UpdateK8sClusterUserConfigExpireRequest) {
+	request = &UpdateK8sClusterUserConfigExpireRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "UpdateK8sClusterUserConfigExpire", "/k8s/[ClusterId]/user_config/expire", "csk", "openAPI")
+	request.Method = requests.POST
+	return
+}
+
+// CreateUpdateK8sClusterUserConfigExpireResponse creates a response to parse from UpdateK8sClusterUserConfigExpire response
+func CreateUpdateK8sClusterUserConfigExpireResponse() (response *UpdateK8sClusterUserConfigExpireResponse) {
+	response = &UpdateK8sClusterUserConfigExpireResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/cs/update_service_mesh.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// UpdateServiceMesh invokes the cs.UpdateServiceMesh API synchronously
+// api document: https://help.aliyun.com/api/cs/updateservicemesh.html
+func (client *Client) UpdateServiceMesh(request *UpdateServiceMeshRequest) (response *UpdateServiceMeshResponse, err error) {
+	response = CreateUpdateServiceMeshResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateServiceMeshWithChan invokes the cs.UpdateServiceMesh API asynchronously
+// api document: https://help.aliyun.com/api/cs/updateservicemesh.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateServiceMeshWithChan(request *UpdateServiceMeshRequest) (<-chan *UpdateServiceMeshResponse, <-chan error) {
+	responseChan := make(chan *UpdateServiceMeshResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateServiceMesh(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateServiceMeshWithCallback invokes the cs.UpdateServiceMesh API asynchronously
+// api document: https://help.aliyun.com/api/cs/updateservicemesh.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateServiceMeshWithCallback(request *UpdateServiceMeshRequest, callback func(response *UpdateServiceMeshResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateServiceMeshResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateServiceMesh(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateServiceMeshRequest is the request struct for api UpdateServiceMesh
+type UpdateServiceMeshRequest struct {
+	*requests.RoaRequest
+	ServiceMeshId string `position:"Path" name:"ServiceMeshId"`
+}
+
+// UpdateServiceMeshResponse is the response struct for api UpdateServiceMesh
+type UpdateServiceMeshResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateServiceMeshRequest creates a request to invoke UpdateServiceMesh API
+func CreateUpdateServiceMeshRequest() (request *UpdateServiceMeshRequest) {
+	request = &UpdateServiceMeshRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("CS", "2015-12-15", "UpdateServiceMesh", "/servicemesh/[ServiceMeshId]", "csk", "openAPI")
+	request.Method = requests.PUT
+	return
+}
+
+// CreateUpdateServiceMeshResponse creates a response to parse from UpdateServiceMesh response
+func CreateUpdateServiceMeshResponse() (response *UpdateServiceMeshResponse) {
+	response = &UpdateServiceMeshResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 104
services/cs/upgrade_cluster_addons.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"
-)
-
-// UpgradeClusterAddons invokes the cs.UpgradeClusterAddons API synchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclusteraddons.html
-func (client *Client) UpgradeClusterAddons(request *UpgradeClusterAddonsRequest) (response *UpgradeClusterAddonsResponse, err error) {
-	response = CreateUpgradeClusterAddonsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UpgradeClusterAddonsWithChan invokes the cs.UpgradeClusterAddons API asynchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclusteraddons.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpgradeClusterAddonsWithChan(request *UpgradeClusterAddonsRequest) (<-chan *UpgradeClusterAddonsResponse, <-chan error) {
-	responseChan := make(chan *UpgradeClusterAddonsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UpgradeClusterAddons(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UpgradeClusterAddonsWithCallback invokes the cs.UpgradeClusterAddons API asynchronously
-// api document: https://help.aliyun.com/api/cs/upgradeclusteraddons.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpgradeClusterAddonsWithCallback(request *UpgradeClusterAddonsRequest, callback func(response *UpgradeClusterAddonsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UpgradeClusterAddonsResponse
-		var err error
-		defer close(result)
-		response, err = client.UpgradeClusterAddons(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UpgradeClusterAddonsRequest is the request struct for api UpgradeClusterAddons
-type UpgradeClusterAddonsRequest struct {
-	*requests.RoaRequest
-	ClusterId string `position:"Path" name:"ClusterId"`
-}
-
-// UpgradeClusterAddonsResponse is the response struct for api UpgradeClusterAddons
-type UpgradeClusterAddonsResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateUpgradeClusterAddonsRequest creates a request to invoke UpgradeClusterAddons API
-func CreateUpgradeClusterAddonsRequest() (request *UpgradeClusterAddonsRequest) {
-	request = &UpgradeClusterAddonsRequest{
-		RoaRequest: &requests.RoaRequest{},
-	}
-	request.InitWithApiInfo("CS", "2015-12-15", "UpgradeClusterAddons", "/clusters/[ClusterId]/components/upgrade", "", "")
-	request.Method = requests.POST
-	return
-}
-
-// CreateUpgradeClusterAddonsResponse creates a response to parse from UpgradeClusterAddons response
-func CreateUpgradeClusterAddonsResponse() (response *UpgradeClusterAddonsResponse) {
-	response = &UpgradeClusterAddonsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 105
services/cs/upgrade_cluster_components.go

@@ -1,105 +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
-	ComponentId string `position:"Path" name:"ComponentId"`
-	ClusterId   string `position:"Path" name:"ClusterId"`
-}
-
-// UpgradeClusterComponentsResponse is the response struct for api UpgradeClusterComponents
-type UpgradeClusterComponentsResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// 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
-}