Browse Source

由向召元发起的CMS SDK自动发布, 版本号:1.10.3

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
64d5d148fe

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-04-28 Version: 1.10.3
+1, Add api: DescribeTasks、StartTasks、StopTasks、DeleteTasks、ModifyTask、CreateTask、DescribeTaskDetail、DescribeISPAreaCity.
+
 2018-04-28 Version: 1.10.2
 1, Add dcdn domain interface,Support add、modify、delete、query dcdn domain.
 2, Add dcdn config interface,Support set、delete、query domain config.

+ 122 - 0
services/cms/create_task.go

@@ -0,0 +1,122 @@
+package cms
+
+//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"
+)
+
+// CreateTask invokes the cms.CreateTask API synchronously
+// api document: https://help.aliyun.com/api/cms/createtask.html
+func (client *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error) {
+	response = CreateCreateTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateTaskWithChan invokes the cms.CreateTask API asynchronously
+// api document: https://help.aliyun.com/api/cms/createtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateTaskWithChan(request *CreateTaskRequest) (<-chan *CreateTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateTaskWithCallback invokes the cms.CreateTask API asynchronously
+// api document: https://help.aliyun.com/api/cms/createtask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateTaskWithCallback(request *CreateTaskRequest, callback func(response *CreateTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateTaskRequest is the request struct for api CreateTask
+type CreateTaskRequest struct {
+	*requests.RpcRequest
+	AgentGroup    string `position:"Query" name:"AgentGroup"`
+	AlertName     string `position:"Query" name:"AlertName"`
+	TaskId        string `position:"Query" name:"TaskId"`
+	ClientIds     string `position:"Query" name:"ClientIds"`
+	TaskType      string `position:"Query" name:"TaskType"`
+	TaskName      string `position:"Query" name:"TaskName"`
+	TaskState     string `position:"Query" name:"TaskState"`
+	AgentType     string `position:"Query" name:"AgentType"`
+	ReportProject string `position:"Query" name:"ReportProject"`
+	Address       string `position:"Query" name:"Address"`
+	Interval      string `position:"Query" name:"Interval"`
+	EndTime       string `position:"Query" name:"EndTime"`
+	IspCity       string `position:"Query" name:"IspCity"`
+	Options       string `position:"Query" name:"Options"`
+	AlertInfo     string `position:"Query" name:"AlertInfo"`
+	AlertRule     string `position:"Query" name:"AlertRule"`
+	Ip            string `position:"Query" name:"Ip"`
+}
+
+// CreateTaskResponse is the response struct for api CreateTask
+type CreateTaskResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateCreateTaskRequest creates a request to invoke CreateTask API
+func CreateCreateTaskRequest() (request *CreateTaskRequest) {
+	request = &CreateTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateTask", "cms", "openAPI")
+	return
+}
+
+// CreateCreateTaskResponse creates a response to parse from CreateTask response
+func CreateCreateTaskResponse() (response *CreateTaskResponse) {
+	response = &CreateTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/delete_tasks.go

@@ -0,0 +1,106 @@
+package cms
+
+//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"
+)
+
+// DeleteTasks invokes the cms.DeleteTasks API synchronously
+// api document: https://help.aliyun.com/api/cms/deletetasks.html
+func (client *Client) DeleteTasks(request *DeleteTasksRequest) (response *DeleteTasksResponse, err error) {
+	response = CreateDeleteTasksResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteTasksWithChan invokes the cms.DeleteTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletetasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteTasksWithChan(request *DeleteTasksRequest) (<-chan *DeleteTasksResponse, <-chan error) {
+	responseChan := make(chan *DeleteTasksResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteTasks(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteTasksWithCallback invokes the cms.DeleteTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletetasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteTasksWithCallback(request *DeleteTasksRequest, callback func(response *DeleteTasksResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteTasksResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteTasks(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteTasksRequest is the request struct for api DeleteTasks
+type DeleteTasksRequest struct {
+	*requests.RpcRequest
+	TaskIds string `position:"Query" name:"TaskIds"`
+}
+
+// DeleteTasksResponse is the response struct for api DeleteTasks
+type DeleteTasksResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteTasksRequest creates a request to invoke DeleteTasks API
+func CreateDeleteTasksRequest() (request *DeleteTasksRequest) {
+	request = &DeleteTasksRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteTasks", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteTasksResponse creates a response to parse from DeleteTasks response
+func CreateDeleteTasksResponse() (response *DeleteTasksResponse) {
+	response = &DeleteTasksResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/describe_isp_area_city.go

@@ -0,0 +1,106 @@
+package cms
+
+//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"
+)
+
+// DescribeISPAreaCity invokes the cms.DescribeISPAreaCity API synchronously
+// api document: https://help.aliyun.com/api/cms/describeispareacity.html
+func (client *Client) DescribeISPAreaCity(request *DescribeISPAreaCityRequest) (response *DescribeISPAreaCityResponse, err error) {
+	response = CreateDescribeISPAreaCityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeISPAreaCityWithChan invokes the cms.DescribeISPAreaCity API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeispareacity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeISPAreaCityWithChan(request *DescribeISPAreaCityRequest) (<-chan *DescribeISPAreaCityResponse, <-chan error) {
+	responseChan := make(chan *DescribeISPAreaCityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeISPAreaCity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeISPAreaCityWithCallback invokes the cms.DescribeISPAreaCity API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeispareacity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeISPAreaCityWithCallback(request *DescribeISPAreaCityRequest, callback func(response *DescribeISPAreaCityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeISPAreaCityResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeISPAreaCity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeISPAreaCityRequest is the request struct for api DescribeISPAreaCity
+type DescribeISPAreaCityRequest struct {
+	*requests.RpcRequest
+}
+
+// DescribeISPAreaCityResponse is the response struct for api DescribeISPAreaCity
+type DescribeISPAreaCityResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeISPAreaCityRequest creates a request to invoke DescribeISPAreaCity API
+func CreateDescribeISPAreaCityRequest() (request *DescribeISPAreaCityRequest) {
+	request = &DescribeISPAreaCityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeISPAreaCity", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeISPAreaCityResponse creates a response to parse from DescribeISPAreaCity response
+func CreateDescribeISPAreaCityResponse() (response *DescribeISPAreaCityResponse) {
+	response = &DescribeISPAreaCityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/cms/describe_task_detail.go

@@ -0,0 +1,107 @@
+package cms
+
+//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"
+)
+
+// DescribeTaskDetail invokes the cms.DescribeTaskDetail API synchronously
+// api document: https://help.aliyun.com/api/cms/describetaskdetail.html
+func (client *Client) DescribeTaskDetail(request *DescribeTaskDetailRequest) (response *DescribeTaskDetailResponse, err error) {
+	response = CreateDescribeTaskDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeTaskDetailWithChan invokes the cms.DescribeTaskDetail API asynchronously
+// api document: https://help.aliyun.com/api/cms/describetaskdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeTaskDetailWithChan(request *DescribeTaskDetailRequest) (<-chan *DescribeTaskDetailResponse, <-chan error) {
+	responseChan := make(chan *DescribeTaskDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeTaskDetail(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeTaskDetailWithCallback invokes the cms.DescribeTaskDetail API asynchronously
+// api document: https://help.aliyun.com/api/cms/describetaskdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeTaskDetailWithCallback(request *DescribeTaskDetailRequest, callback func(response *DescribeTaskDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeTaskDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeTaskDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeTaskDetailRequest is the request struct for api DescribeTaskDetail
+type DescribeTaskDetailRequest struct {
+	*requests.RpcRequest
+	TaskId string `position:"Query" name:"TaskId"`
+}
+
+// DescribeTaskDetailResponse is the response struct for api DescribeTaskDetail
+type DescribeTaskDetailResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeTaskDetailRequest creates a request to invoke DescribeTaskDetail API
+func CreateDescribeTaskDetailRequest() (request *DescribeTaskDetailRequest) {
+	request = &DescribeTaskDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeTaskDetail", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeTaskDetailResponse creates a response to parse from DescribeTaskDetail response
+func CreateDescribeTaskDetailResponse() (response *DescribeTaskDetailResponse) {
+	response = &DescribeTaskDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/cms/describe_tasks.go

@@ -0,0 +1,114 @@
+package cms
+
+//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"
+)
+
+// DescribeTasks invokes the cms.DescribeTasks API synchronously
+// api document: https://help.aliyun.com/api/cms/describetasks.html
+func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) {
+	response = CreateDescribeTasksResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeTasksWithChan invokes the cms.DescribeTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/describetasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) {
+	responseChan := make(chan *DescribeTasksResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeTasks(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeTasksWithCallback invokes the cms.DescribeTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/describetasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeTasksResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeTasks(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeTasksRequest is the request struct for api DescribeTasks
+type DescribeTasksRequest struct {
+	*requests.RpcRequest
+	TaskId   string           `position:"Query" name:"TaskId"`
+	TaskType string           `position:"Query" name:"TaskType"`
+	Keyword  string           `position:"Query" name:"Keyword"`
+	Page     requests.Integer `position:"Query" name:"Page"`
+	PageSize requests.Integer `position:"Query" name:"PageSize"`
+}
+
+// DescribeTasksResponse is the response struct for api DescribeTasks
+type DescribeTasksResponse struct {
+	*responses.BaseResponse
+	Code       string `json:"Code" xml:"Code"`
+	Message    string `json:"Message" xml:"Message"`
+	Success    string `json:"Success" xml:"Success"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Data       string `json:"Data" xml:"Data"`
+	PageNumber int    `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int    `json:"PageSize" xml:"PageSize"`
+	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
+}
+
+// CreateDescribeTasksRequest creates a request to invoke DescribeTasks API
+func CreateDescribeTasksRequest() (request *DescribeTasksRequest) {
+	request = &DescribeTasksRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeTasks", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeTasksResponse creates a response to parse from DescribeTasks response
+func CreateDescribeTasksResponse() (response *DescribeTasksResponse) {
+	response = &DescribeTasksResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 122 - 0
services/cms/modify_task.go

@@ -0,0 +1,122 @@
+package cms
+
+//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"
+)
+
+// ModifyTask invokes the cms.ModifyTask API synchronously
+// api document: https://help.aliyun.com/api/cms/modifytask.html
+func (client *Client) ModifyTask(request *ModifyTaskRequest) (response *ModifyTaskResponse, err error) {
+	response = CreateModifyTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyTaskWithChan invokes the cms.ModifyTask API asynchronously
+// api document: https://help.aliyun.com/api/cms/modifytask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyTaskWithChan(request *ModifyTaskRequest) (<-chan *ModifyTaskResponse, <-chan error) {
+	responseChan := make(chan *ModifyTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyTaskWithCallback invokes the cms.ModifyTask API asynchronously
+// api document: https://help.aliyun.com/api/cms/modifytask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyTaskWithCallback(request *ModifyTaskRequest, callback func(response *ModifyTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyTaskRequest is the request struct for api ModifyTask
+type ModifyTaskRequest struct {
+	*requests.RpcRequest
+	AgentGroup    string `position:"Query" name:"AgentGroup"`
+	AlertName     string `position:"Query" name:"AlertName"`
+	TaskId        string `position:"Query" name:"TaskId"`
+	ClientIds     string `position:"Query" name:"ClientIds"`
+	TaskType      string `position:"Query" name:"TaskType"`
+	TaskName      string `position:"Query" name:"TaskName"`
+	TaskState     string `position:"Query" name:"TaskState"`
+	AgentType     string `position:"Query" name:"AgentType"`
+	ReportProject string `position:"Query" name:"ReportProject"`
+	Address       string `position:"Query" name:"Address"`
+	Interval      string `position:"Query" name:"Interval"`
+	EndTime       string `position:"Query" name:"EndTime"`
+	IspCity       string `position:"Query" name:"IspCity"`
+	Options       string `position:"Query" name:"Options"`
+	AlertInfo     string `position:"Query" name:"AlertInfo"`
+	AlertRule     string `position:"Query" name:"AlertRule"`
+	Ip            string `position:"Query" name:"Ip"`
+}
+
+// ModifyTaskResponse is the response struct for api ModifyTask
+type ModifyTaskResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyTaskRequest creates a request to invoke ModifyTask API
+func CreateModifyTaskRequest() (request *ModifyTaskRequest) {
+	request = &ModifyTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ModifyTask", "cms", "openAPI")
+	return
+}
+
+// CreateModifyTaskResponse creates a response to parse from ModifyTask response
+func CreateModifyTaskResponse() (response *ModifyTaskResponse) {
+	response = &ModifyTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 9 - 8
services/cms/node_list.go

@@ -76,14 +76,15 @@ func (client *Client) NodeListWithCallback(request *NodeListRequest, callback fu
 // NodeListRequest is the request struct for api NodeList
 type NodeListRequest struct {
 	*requests.RpcRequest
-	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
-	KeyWord       string           `position:"Query" name:"KeyWord"`
-	UserId        requests.Integer `position:"Query" name:"UserId"`
-	HostName      string           `position:"Query" name:"HostName"`
-	InstanceIds   string           `position:"Query" name:"InstanceIds"`
-	SerialNumbers string           `position:"Query" name:"SerialNumbers"`
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
-	Status        string           `position:"Query" name:"Status"`
+	PageNumber       requests.Integer `position:"Query" name:"PageNumber"`
+	UserId           requests.Integer `position:"Query" name:"UserId"`
+	HostName         string           `position:"Query" name:"HostName"`
+	InstanceIds      string           `position:"Query" name:"InstanceIds"`
+	SerialNumbers    string           `position:"Query" name:"SerialNumbers"`
+	KeyWord          string           `position:"Query" name:"KeyWord"`
+	PageSize         requests.Integer `position:"Query" name:"PageSize"`
+	Status           string           `position:"Query" name:"Status"`
+	InstanceRegionId string           `position:"Query" name:"InstanceRegionId"`
 }
 
 // NodeListResponse is the response struct for api NodeList

+ 106 - 0
services/cms/start_tasks.go

@@ -0,0 +1,106 @@
+package cms
+
+//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"
+)
+
+// StartTasks invokes the cms.StartTasks API synchronously
+// api document: https://help.aliyun.com/api/cms/starttasks.html
+func (client *Client) StartTasks(request *StartTasksRequest) (response *StartTasksResponse, err error) {
+	response = CreateStartTasksResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StartTasksWithChan invokes the cms.StartTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/starttasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartTasksWithChan(request *StartTasksRequest) (<-chan *StartTasksResponse, <-chan error) {
+	responseChan := make(chan *StartTasksResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StartTasks(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StartTasksWithCallback invokes the cms.StartTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/starttasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartTasksWithCallback(request *StartTasksRequest, callback func(response *StartTasksResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StartTasksResponse
+		var err error
+		defer close(result)
+		response, err = client.StartTasks(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StartTasksRequest is the request struct for api StartTasks
+type StartTasksRequest struct {
+	*requests.RpcRequest
+	TaskIds string `position:"Query" name:"TaskIds"`
+}
+
+// StartTasksResponse is the response struct for api StartTasks
+type StartTasksResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateStartTasksRequest creates a request to invoke StartTasks API
+func CreateStartTasksRequest() (request *StartTasksRequest) {
+	request = &StartTasksRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "StartTasks", "cms", "openAPI")
+	return
+}
+
+// CreateStartTasksResponse creates a response to parse from StartTasks response
+func CreateStartTasksResponse() (response *StartTasksResponse) {
+	response = &StartTasksResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/stop_tasks.go

@@ -0,0 +1,106 @@
+package cms
+
+//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"
+)
+
+// StopTasks invokes the cms.StopTasks API synchronously
+// api document: https://help.aliyun.com/api/cms/stoptasks.html
+func (client *Client) StopTasks(request *StopTasksRequest) (response *StopTasksResponse, err error) {
+	response = CreateStopTasksResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StopTasksWithChan invokes the cms.StopTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/stoptasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopTasksWithChan(request *StopTasksRequest) (<-chan *StopTasksResponse, <-chan error) {
+	responseChan := make(chan *StopTasksResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StopTasks(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StopTasksWithCallback invokes the cms.StopTasks API asynchronously
+// api document: https://help.aliyun.com/api/cms/stoptasks.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopTasksWithCallback(request *StopTasksRequest, callback func(response *StopTasksResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StopTasksResponse
+		var err error
+		defer close(result)
+		response, err = client.StopTasks(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StopTasksRequest is the request struct for api StopTasks
+type StopTasksRequest struct {
+	*requests.RpcRequest
+	TaskIds string `position:"Query" name:"TaskIds"`
+}
+
+// StopTasksResponse is the response struct for api StopTasks
+type StopTasksResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateStopTasksRequest creates a request to invoke StopTasks API
+func CreateStopTasksRequest() (request *StopTasksRequest) {
+	request = &StopTasksRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "StopTasks", "cms", "openAPI")
+	return
+}
+
+// CreateStopTasksResponse creates a response to parse from StopTasks response
+func CreateStopTasksResponse() (response *StopTasksResponse) {
+	response = &StopTasksResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}