Prechádzať zdrojové kódy

CMS SDK Auto Released By wb-xzy262218,Version:1.20.4

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 rokov pred
rodič
commit
a4f123091c

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-06-22 Version: 1.20.4
+1, Add new API: DeleteGroupDynamicRule,ListGroupDynamicRule,ApplyTemplate,PutGroupDynamicRule.
+2, Add parameter(AlertIds) for CreateTask and ModifyTask.
+
 2018-06-21 Version: 1.20.3
 1, This is add InstanceList.
 

+ 113 - 0
services/cms/apply_template.go

@@ -0,0 +1,113 @@
+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"
+)
+
+// ApplyTemplate invokes the cms.ApplyTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/applytemplate.html
+func (client *Client) ApplyTemplate(request *ApplyTemplateRequest) (response *ApplyTemplateResponse, err error) {
+	response = CreateApplyTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ApplyTemplateWithChan invokes the cms.ApplyTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/applytemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ApplyTemplateWithChan(request *ApplyTemplateRequest) (<-chan *ApplyTemplateResponse, <-chan error) {
+	responseChan := make(chan *ApplyTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ApplyTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ApplyTemplateWithCallback invokes the cms.ApplyTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/applytemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ApplyTemplateWithCallback(request *ApplyTemplateRequest, callback func(response *ApplyTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ApplyTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.ApplyTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ApplyTemplateRequest is the request struct for api ApplyTemplate
+type ApplyTemplateRequest struct {
+	*requests.RpcRequest
+	EnableStartTime requests.Integer `position:"Query" name:"EnableStartTime"`
+	ApplyMode       string           `position:"Query" name:"ApplyMode"`
+	TemplateIds     string           `position:"Query" name:"TemplateIds"`
+	EnableEndTime   requests.Integer `position:"Query" name:"EnableEndTime"`
+	GroupId         requests.Integer `position:"Query" name:"GroupId"`
+	NotifyLevel     requests.Integer `position:"Query" name:"NotifyLevel"`
+	SilenceTime     requests.Integer `position:"Query" name:"SilenceTime"`
+}
+
+// ApplyTemplateResponse is the response struct for api ApplyTemplate
+type ApplyTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string   `json:"RequestId" xml:"RequestId"`
+	Success      bool     `json:"Success" xml:"Success"`
+	ErrorCode    int      `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resource     Resource `json:"Resource" xml:"Resource"`
+}
+
+// CreateApplyTemplateRequest creates a request to invoke ApplyTemplate API
+func CreateApplyTemplateRequest() (request *ApplyTemplateRequest) {
+	request = &ApplyTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ApplyTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateApplyTemplateResponse creates a response to parse from ApplyTemplate response
+func CreateApplyTemplateResponse() (response *ApplyTemplateResponse) {
+	response = &ApplyTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/create_my_groups.go

@@ -78,8 +78,8 @@ type CreateMyGroupsRequest struct {
 	*requests.RpcRequest
 	ContactGroups string           `position:"Query" name:"ContactGroups"`
 	Options       string           `position:"Query" name:"Options"`
-	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
 	Type          string           `position:"Query" name:"Type"`
+	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
 	GroupName     string           `position:"Query" name:"GroupName"`
 	BindUrl       string           `position:"Query" name:"BindUrl"`
 }

+ 2 - 1
services/cms/create_task.go

@@ -76,9 +76,10 @@ func (client *Client) CreateTaskWithCallback(request *CreateTaskRequest, callbac
 // CreateTaskRequest is the request struct for api CreateTask
 type CreateTaskRequest struct {
 	*requests.RpcRequest
-	TaskType  string `position:"Query" name:"TaskType"`
 	Address   string `position:"Query" name:"Address"`
+	TaskType  string `position:"Query" name:"TaskType"`
 	IspCity   string `position:"Query" name:"IspCity"`
+	AlertIds  string `position:"Query" name:"AlertIds"`
 	Options   string `position:"Query" name:"Options"`
 	TaskName  string `position:"Query" name:"TaskName"`
 	Interval  string `position:"Query" name:"Interval"`

+ 107 - 0
services/cms/delete_group_dynamic_rule.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"
+)
+
+// DeleteGroupDynamicRule invokes the cms.DeleteGroupDynamicRule API synchronously
+// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html
+func (client *Client) DeleteGroupDynamicRule(request *DeleteGroupDynamicRuleRequest) (response *DeleteGroupDynamicRuleResponse, err error) {
+	response = CreateDeleteGroupDynamicRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteGroupDynamicRuleWithChan invokes the cms.DeleteGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteGroupDynamicRuleWithChan(request *DeleteGroupDynamicRuleRequest) (<-chan *DeleteGroupDynamicRuleResponse, <-chan error) {
+	responseChan := make(chan *DeleteGroupDynamicRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteGroupDynamicRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteGroupDynamicRuleWithCallback invokes the cms.DeleteGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletegroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteGroupDynamicRuleWithCallback(request *DeleteGroupDynamicRuleRequest, callback func(response *DeleteGroupDynamicRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteGroupDynamicRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteGroupDynamicRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteGroupDynamicRuleRequest is the request struct for api DeleteGroupDynamicRule
+type DeleteGroupDynamicRuleRequest struct {
+	*requests.RpcRequest
+	GroupId  requests.Integer `position:"Query" name:"GroupId"`
+	Category string           `position:"Query" name:"Category"`
+}
+
+// DeleteGroupDynamicRuleResponse is the response struct for api DeleteGroupDynamicRule
+type DeleteGroupDynamicRuleResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+// CreateDeleteGroupDynamicRuleRequest creates a request to invoke DeleteGroupDynamicRule API
+func CreateDeleteGroupDynamicRuleRequest() (request *DeleteGroupDynamicRuleRequest) {
+	request = &DeleteGroupDynamicRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteGroupDynamicRule", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteGroupDynamicRuleResponse creates a response to parse from DeleteGroupDynamicRule response
+func CreateDeleteGroupDynamicRuleResponse() (response *DeleteGroupDynamicRuleResponse) {
+	response = &DeleteGroupDynamicRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 2
services/cms/delete_my_group_instances.go

@@ -76,8 +76,9 @@ func (client *Client) DeleteMyGroupInstancesWithCallback(request *DeleteMyGroupI
 // DeleteMyGroupInstancesRequest is the request struct for api DeleteMyGroupInstances
 type DeleteMyGroupInstancesRequest struct {
 	*requests.RpcRequest
-	InstanceIds string           `position:"Query" name:"InstanceIds"`
-	GroupId     requests.Integer `position:"Query" name:"GroupId"`
+	InstanceIds    string           `position:"Query" name:"InstanceIds"`
+	InstanceIdList string           `position:"Query" name:"InstanceIdList"`
+	GroupId        requests.Integer `position:"Query" name:"GroupId"`
 }
 
 // DeleteMyGroupInstancesResponse is the response struct for api DeleteMyGroupInstances

+ 110 - 0
services/cms/list_group_dynamic_rule.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// ListGroupDynamicRule invokes the cms.ListGroupDynamicRule API synchronously
+// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html
+func (client *Client) ListGroupDynamicRule(request *ListGroupDynamicRuleRequest) (response *ListGroupDynamicRuleResponse, err error) {
+	response = CreateListGroupDynamicRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListGroupDynamicRuleWithChan invokes the cms.ListGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListGroupDynamicRuleWithChan(request *ListGroupDynamicRuleRequest) (<-chan *ListGroupDynamicRuleResponse, <-chan error) {
+	responseChan := make(chan *ListGroupDynamicRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListGroupDynamicRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListGroupDynamicRuleWithCallback invokes the cms.ListGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/listgroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListGroupDynamicRuleWithCallback(request *ListGroupDynamicRuleRequest, callback func(response *ListGroupDynamicRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListGroupDynamicRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.ListGroupDynamicRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListGroupDynamicRuleRequest is the request struct for api ListGroupDynamicRule
+type ListGroupDynamicRuleRequest struct {
+	*requests.RpcRequest
+	GroupId requests.Integer `position:"Query" name:"GroupId"`
+}
+
+// ListGroupDynamicRuleResponse is the response struct for api ListGroupDynamicRule
+type ListGroupDynamicRuleResponse struct {
+	*responses.BaseResponse
+	RequestId    string                         `json:"RequestId" xml:"RequestId"`
+	Success      bool                           `json:"Success" xml:"Success"`
+	ErrorCode    int                            `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                         `json:"ErrorMessage" xml:"ErrorMessage"`
+	PageNumber   int                            `json:"PageNumber" xml:"PageNumber"`
+	PageSize     int                            `json:"PageSize" xml:"PageSize"`
+	Total        int                            `json:"Total" xml:"Total"`
+	Resource     ResourceInListGroupDynamicRule `json:"Resource" xml:"Resource"`
+}
+
+// CreateListGroupDynamicRuleRequest creates a request to invoke ListGroupDynamicRule API
+func CreateListGroupDynamicRuleRequest() (request *ListGroupDynamicRuleRequest) {
+	request = &ListGroupDynamicRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListGroupDynamicRule", "cms", "openAPI")
+	return
+}
+
+// CreateListGroupDynamicRuleResponse creates a response to parse from ListGroupDynamicRule response
+func CreateListGroupDynamicRuleResponse() (response *ListGroupDynamicRuleResponse) {
+	response = &ListGroupDynamicRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/cms/modify_task.go

@@ -78,6 +78,7 @@ type ModifyTaskRequest struct {
 	*requests.RpcRequest
 	Address   string `position:"Query" name:"Address"`
 	IspCity   string `position:"Query" name:"IspCity"`
+	AlertIds  string `position:"Query" name:"AlertIds"`
 	Options   string `position:"Query" name:"Options"`
 	TaskName  string `position:"Query" name:"TaskName"`
 	Interval  string `position:"Query" name:"Interval"`

+ 107 - 0
services/cms/put_group_dynamic_rule.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"
+)
+
+// PutGroupDynamicRule invokes the cms.PutGroupDynamicRule API synchronously
+// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html
+func (client *Client) PutGroupDynamicRule(request *PutGroupDynamicRuleRequest) (response *PutGroupDynamicRuleResponse, err error) {
+	response = CreatePutGroupDynamicRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutGroupDynamicRuleWithChan invokes the cms.PutGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutGroupDynamicRuleWithChan(request *PutGroupDynamicRuleRequest) (<-chan *PutGroupDynamicRuleResponse, <-chan error) {
+	responseChan := make(chan *PutGroupDynamicRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutGroupDynamicRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutGroupDynamicRuleWithCallback invokes the cms.PutGroupDynamicRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/putgroupdynamicrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutGroupDynamicRuleWithCallback(request *PutGroupDynamicRuleRequest, callback func(response *PutGroupDynamicRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutGroupDynamicRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.PutGroupDynamicRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutGroupDynamicRuleRequest is the request struct for api PutGroupDynamicRule
+type PutGroupDynamicRuleRequest struct {
+	*requests.RpcRequest
+	GroupId            requests.Integer `position:"Query" name:"GroupId"`
+	GroupRuleArrayJson string           `position:"Query" name:"GroupRuleArrayJson"`
+}
+
+// PutGroupDynamicRuleResponse is the response struct for api PutGroupDynamicRule
+type PutGroupDynamicRuleResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+// CreatePutGroupDynamicRuleRequest creates a request to invoke PutGroupDynamicRule API
+func CreatePutGroupDynamicRuleRequest() (request *PutGroupDynamicRuleRequest) {
+	request = &PutGroupDynamicRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutGroupDynamicRule", "cms", "openAPI")
+	return
+}
+
+// CreatePutGroupDynamicRuleResponse creates a response to parse from PutGroupDynamicRule response
+func CreatePutGroupDynamicRuleResponse() (response *PutGroupDynamicRuleResponse) {
+	response = &PutGroupDynamicRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 26 - 0
services/cms/struct_alert_result.go

@@ -0,0 +1,26 @@
+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.
+
+// AlertResult is a nested struct in cms response
+type AlertResult struct {
+	Name            string `json:"Name" xml:"Name"`
+	DisplayName     string `json:"DisplayName" xml:"DisplayName"`
+	MetricNamespace string `json:"MetricNamespace" xml:"MetricNamespace"`
+	MetricName      string `json:"MetricName" xml:"MetricName"`
+	Message         string `json:"Message" xml:"Message"`
+	Success         string `json:"Success" xml:"Success"`
+}

+ 21 - 0
services/cms/struct_create_alert_results.go

@@ -0,0 +1,21 @@
+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.
+
+// CreateAlertResults is a nested struct in cms response
+type CreateAlertResults struct {
+	AlertResult []AlertResult `json:"AlertResult" xml:"AlertResult"`
+}

+ 23 - 0
services/cms/struct_filter.go

@@ -0,0 +1,23 @@
+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.
+
+// Filter is a nested struct in cms response
+type Filter struct {
+	Function string `json:"Function" xml:"Function"`
+	Name     string `json:"Name" xml:"Name"`
+	Value    string `json:"Value" xml:"Value"`
+}

+ 21 - 0
services/cms/struct_filters.go

@@ -0,0 +1,21 @@
+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.
+
+// Filters is a nested struct in cms response
+type Filters struct {
+	Filter []Filter `json:"Filter" xml:"Filter"`
+}

+ 22 - 19
services/cms/struct_resource.go

@@ -17,23 +17,26 @@ package cms
 
 // Resource is a nested struct in cms response
 type Resource struct {
-	Category      string                      `json:"Category" xml:"Category"`
-	Desc          string                      `json:"Desc" xml:"Desc"`
-	InstanceName  string                      `json:"InstanceName" xml:"InstanceName"`
-	GroupName     string                      `json:"GroupName" xml:"GroupName"`
-	Id            int                         `json:"Id" xml:"Id"`
-	GmtCreate     int                         `json:"GmtCreate" xml:"GmtCreate"`
-	BindUrls      string                      `json:"BindUrls" xml:"BindUrls"`
-	ServiceId     string                      `json:"ServiceId" xml:"ServiceId"`
-	RegionId      string                      `json:"RegionId" xml:"RegionId"`
-	InstanceId    string                      `json:"InstanceId" xml:"InstanceId"`
-	GroupId       int                         `json:"GroupId" xml:"GroupId"`
-	GmtModified   int                         `json:"GmtModified" xml:"GmtModified"`
-	AliUid        int                         `json:"AliUid" xml:"AliUid"`
-	NetworkType   string                      `json:"NetworkType" xml:"NetworkType"`
-	Type          string                      `json:"Type" xml:"Type"`
-	Vpc           Vpc                         `json:"Vpc" xml:"Vpc"`
-	Region        Region                      `json:"Region" xml:"Region"`
-	Tags          Tags                        `json:"Tags" xml:"Tags"`
-	ContactGroups ContactGroupsInListMyGroups `json:"ContactGroups" xml:"ContactGroups"`
+	Category           string                      `json:"Category" xml:"Category"`
+	Desc               string                      `json:"Desc" xml:"Desc"`
+	BindUrl            string                      `json:"BindUrl" xml:"BindUrl"`
+	InstanceName       string                      `json:"InstanceName" xml:"InstanceName"`
+	Dimension          string                      `json:"Dimension" xml:"Dimension"`
+	GroupName          string                      `json:"GroupName" xml:"GroupName"`
+	Id                 int                         `json:"Id" xml:"Id"`
+	GmtCreate          int                         `json:"GmtCreate" xml:"GmtCreate"`
+	BindUrls           string                      `json:"BindUrls" xml:"BindUrls"`
+	ServiceId          string                      `json:"ServiceId" xml:"ServiceId"`
+	RegionId           string                      `json:"RegionId" xml:"RegionId"`
+	InstanceId         string                      `json:"InstanceId" xml:"InstanceId"`
+	GroupId            int                         `json:"GroupId" xml:"GroupId"`
+	GmtModified        int                         `json:"GmtModified" xml:"GmtModified"`
+	AliUid             int                         `json:"AliUid" xml:"AliUid"`
+	NetworkType        string                      `json:"NetworkType" xml:"NetworkType"`
+	Type               string                      `json:"Type" xml:"Type"`
+	Vpc                Vpc                         `json:"Vpc" xml:"Vpc"`
+	Region             Region                      `json:"Region" xml:"Region"`
+	CreateAlertResults CreateAlertResults          `json:"CreateAlertResults" xml:"CreateAlertResults"`
+	Tags               Tags                        `json:"Tags" xml:"Tags"`
+	ContactGroups      ContactGroupsInListMyGroups `json:"ContactGroups" xml:"ContactGroups"`
 }

+ 21 - 0
services/cms/struct_resource_in_list_group_dynamic_rule.go

@@ -0,0 +1,21 @@
+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.
+
+// ResourceInListGroupDynamicRule is a nested struct in cms response
+type ResourceInListGroupDynamicRule struct {
+	ResourceItem []ResourceItem `json:"ResourceItem" xml:"ResourceItem"`
+}

+ 24 - 0
services/cms/struct_resource_item.go

@@ -0,0 +1,24 @@
+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.
+
+// ResourceItem is a nested struct in cms response
+type ResourceItem struct {
+	GroupId        int     `json:"GroupId" xml:"GroupId"`
+	Category       string  `json:"Category" xml:"Category"`
+	FilterRelation string  `json:"FilterRelation" xml:"FilterRelation"`
+	Filters        Filters `json:"Filters" xml:"Filters"`
+}

+ 1 - 1
services/cms/task_config_create.go

@@ -93,7 +93,7 @@ type TaskConfigCreateResponse struct {
 	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
 	Success      bool   `json:"Success" xml:"Success"`
 	RequestId    string `json:"RequestId" xml:"RequestId"`
-	TaskId       int    `json:"taskId" xml:"taskId"`
+	TaskId       int    `json:"TaskId" xml:"TaskId"`
 }
 
 // CreateTaskConfigCreateRequest creates a request to invoke TaskConfigCreate API

+ 1 - 1
services/cms/task_config_unhealthy.go

@@ -86,7 +86,7 @@ type TaskConfigUnhealthyResponse struct {
 	ErrorMessage  string        `json:"ErrorMessage" xml:"ErrorMessage"`
 	Success       bool          `json:"Success" xml:"Success"`
 	RequestId     string        `json:"RequestId" xml:"RequestId"`
-	UnhealthyList UnhealthyList `json:"unhealthyList" xml:"unhealthyList"`
+	UnhealthyList UnhealthyList `json:"UnhealthyList" xml:"UnhealthyList"`
 }
 
 // CreateTaskConfigUnhealthyRequest creates a request to invoke TaskConfigUnhealthy API