Prechádzať zdrojové kódy

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

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

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-07-10 Version: 1.22.3
+1, Add new API: EnableEventRule,DisableEventRule,DeleteEventTargets,DeleteEventRule,ListEventRules.
+2, Modify the structured parameters for API: PutEventTargets,PutEventRule,DescribeEventRule.
+
 2018-07-09 Version: 1.22.2
 1, Add new API: DescribeEventRule,ListEventTargetsByRule,PutEventRule,PutEventTargets.
 2, Add return value(Id) for NodeProcessCreate.

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

+ 107 - 0
services/cms/delete_event_targets.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"
+)
+
+// DeleteEventTargets invokes the cms.DeleteEventTargets API synchronously
+// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html
+func (client *Client) DeleteEventTargets(request *DeleteEventTargetsRequest) (response *DeleteEventTargetsResponse, err error) {
+	response = CreateDeleteEventTargetsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteEventTargetsWithChan invokes the cms.DeleteEventTargets API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteEventTargetsWithChan(request *DeleteEventTargetsRequest) (<-chan *DeleteEventTargetsResponse, <-chan error) {
+	responseChan := make(chan *DeleteEventTargetsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteEventTargets(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteEventTargetsWithCallback invokes the cms.DeleteEventTargets API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteeventtargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteEventTargetsWithCallback(request *DeleteEventTargetsRequest, callback func(response *DeleteEventTargetsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteEventTargetsResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteEventTargets(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteEventTargetsRequest is the request struct for api DeleteEventTargets
+type DeleteEventTargetsRequest struct {
+	*requests.RpcRequest
+	Ids      *[]string `position:"Query" name:"Ids"  type:"Repeated"`
+	RuleName string    `position:"Query" name:"RuleName"`
+}
+
+// DeleteEventTargetsResponse is the response struct for api DeleteEventTargets
+type DeleteEventTargetsResponse struct {
+	*responses.BaseResponse
+	Success   bool   `json:"Success" xml:"Success"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteEventTargetsRequest creates a request to invoke DeleteEventTargets API
+func CreateDeleteEventTargetsRequest() (request *DeleteEventTargetsRequest) {
+	request = &DeleteEventTargetsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteEventTargets", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteEventTargetsResponse creates a response to parse from DeleteEventTargets response
+func CreateDeleteEventTargetsResponse() (response *DeleteEventTargetsResponse) {
+	response = &DeleteEventTargetsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

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

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

+ 112 - 0
services/cms/list_event_rules.go

@@ -0,0 +1,112 @@
+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"
+)
+
+// ListEventRules invokes the cms.ListEventRules API synchronously
+// api document: https://help.aliyun.com/api/cms/listeventrules.html
+func (client *Client) ListEventRules(request *ListEventRulesRequest) (response *ListEventRulesResponse, err error) {
+	response = CreateListEventRulesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListEventRulesWithChan invokes the cms.ListEventRules API asynchronously
+// api document: https://help.aliyun.com/api/cms/listeventrules.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListEventRulesWithChan(request *ListEventRulesRequest) (<-chan *ListEventRulesResponse, <-chan error) {
+	responseChan := make(chan *ListEventRulesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListEventRules(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListEventRulesWithCallback invokes the cms.ListEventRules API asynchronously
+// api document: https://help.aliyun.com/api/cms/listeventrules.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListEventRulesWithCallback(request *ListEventRulesRequest, callback func(response *ListEventRulesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListEventRulesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListEventRules(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListEventRulesRequest is the request struct for api ListEventRules
+type ListEventRulesRequest struct {
+	*requests.RpcRequest
+	PageSize   string `position:"Query" name:"PageSize"`
+	NamePrefix string `position:"Query" name:"NamePrefix"`
+	Page       string `position:"Query" name:"Page"`
+}
+
+// ListEventRulesResponse is the response struct for api ListEventRules
+type ListEventRulesResponse struct {
+	*responses.BaseResponse
+	Success     bool                       `json:"Success" xml:"Success"`
+	Code        string                     `json:"Code" xml:"Code"`
+	Message     string                     `json:"Message" xml:"Message"`
+	RequestId   string                     `json:"RequestId" xml:"RequestId"`
+	Total       int                        `json:"Total" xml:"Total"`
+	CurrentPage int                        `json:"CurrentPage" xml:"CurrentPage"`
+	NextToken   string                     `json:"NextToken" xml:"NextToken"`
+	Datapoints  DatapointsInListEventRules `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreateListEventRulesRequest creates a request to invoke ListEventRules API
+func CreateListEventRulesRequest() (request *ListEventRulesRequest) {
+	request = &ListEventRulesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListEventRules", "cms", "openAPI")
+	return
+}
+
+// CreateListEventRulesResponse creates a response to parse from ListEventRules response
+func CreateListEventRulesResponse() (response *ListEventRulesResponse) {
+	response = &ListEventRulesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 9 - 0
services/cms/put_event_targets.go

@@ -76,12 +76,21 @@ func (client *Client) PutEventTargetsWithCallback(request *PutEventTargetsReques
 // PutEventTargetsRequest is the request struct for api PutEventTargets
 type PutEventTargetsRequest struct {
 	*requests.RpcRequest
+	WebhookParameters *[]PutEventTargetsWebhookParameters `position:"Query" name:"WebhookParameters"  type:"Repeated"`
 	ContactParameters *[]PutEventTargetsContactParameters `position:"Query" name:"ContactParameters"  type:"Repeated"`
 	FcParameters      *[]PutEventTargetsFcParameters      `position:"Query" name:"FcParameters"  type:"Repeated"`
 	RuleName          string                              `position:"Query" name:"RuleName"`
 	MnsParameters     *[]PutEventTargetsMnsParameters     `position:"Query" name:"MnsParameters"  type:"Repeated"`
 }
 
+// PutEventTargetsWebhookParameters is a repeated param struct in PutEventTargetsRequest
+type PutEventTargetsWebhookParameters struct {
+	Id       string `name:"Id"`
+	Protocol string `name:"Protocol"`
+	Url      string `name:"Url"`
+	Method   string `name:"Method"`
+}
+
 // PutEventTargetsContactParameters is a repeated param struct in PutEventTargetsRequest
 type PutEventTargetsContactParameters struct {
 	Id               string `name:"Id"`

+ 21 - 0
services/cms/struct_datapoints_in_list_event_rules.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.
+
+// DatapointsInListEventRules is a nested struct in cms response
+type DatapointsInListEventRules struct {
+	EventRule []EventRule `json:"EventRule" xml:"EventRule"`
+}

+ 24 - 0
services/cms/struct_event_pattern.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.
+
+// EventPattern is a nested struct in cms response
+type EventPattern struct {
+	Product    string                        `json:"Product" xml:"Product"`
+	LevelList  LevelListInDescribeEventRule  `json:"LevelList" xml:"LevelList"`
+	StatusList StatusListInDescribeEventRule `json:"StatusList" xml:"StatusList"`
+	NameList   NameListInDescribeEventRule   `json:"NameList" xml:"NameList"`
+}

+ 21 - 0
services/cms/struct_event_pattern_in_list_event_rules.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.
+
+// EventPatternInListEventRules is a nested struct in cms response
+type EventPatternInListEventRules struct {
+	EventPatternItem []EventPatternItem `json:"EventPatternItem" xml:"EventPatternItem"`
+}

+ 24 - 0
services/cms/struct_event_pattern_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.
+
+// EventPatternItem is a nested struct in cms response
+type EventPatternItem struct {
+	Product    string                     `json:"Product" xml:"Product"`
+	NameList   NameListInListEventRules   `json:"NameList" xml:"NameList"`
+	StatusList StatusListInListEventRules `json:"StatusList" xml:"StatusList"`
+	LevelList  LevelListInListEventRules  `json:"LevelList" xml:"LevelList"`
+}

+ 26 - 0
services/cms/struct_event_rule.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.
+
+// EventRule is a nested struct in cms response
+type EventRule struct {
+	Name         string                       `json:"Name" xml:"Name"`
+	GroupId      string                       `json:"GroupId" xml:"GroupId"`
+	EventType    string                       `json:"EventType" xml:"EventType"`
+	State        string                       `json:"State" xml:"State"`
+	Description  string                       `json:"Description" xml:"Description"`
+	EventPattern EventPatternInListEventRules `json:"EventPattern" xml:"EventPattern"`
+}

+ 21 - 0
services/cms/struct_level_list_in_describe_event_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.
+
+// LevelListInDescribeEventRule is a nested struct in cms response
+type LevelListInDescribeEventRule struct {
+	LevelList []string `json:"LevelList" xml:"LevelList"`
+}

+ 21 - 0
services/cms/struct_level_list_in_list_event_rules.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.
+
+// LevelListInListEventRules is a nested struct in cms response
+type LevelListInListEventRules struct {
+	LevelList []string `json:"LevelList" xml:"LevelList"`
+}

+ 21 - 0
services/cms/struct_name_list_in_describe_event_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.
+
+// NameListInDescribeEventRule is a nested struct in cms response
+type NameListInDescribeEventRule struct {
+	NameList []string `json:"NameList" xml:"NameList"`
+}

+ 21 - 0
services/cms/struct_name_list_in_list_event_rules.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.
+
+// NameListInListEventRules is a nested struct in cms response
+type NameListInListEventRules struct {
+	NameList []string `json:"NameList" xml:"NameList"`
+}

+ 12 - 7
services/cms/struct_result.go

@@ -17,11 +17,16 @@ package cms
 
 // Result is a nested struct in cms response
 type Result struct {
-	StartTime    int    `json:"StartTime" xml:"StartTime"`
-	Dimensions   string `json:"Dimensions" xml:"Dimensions"`
-	EventPattern string `json:"EventPattern" xml:"EventPattern"`
-	Id           string `json:"Id" xml:"Id"`
-	EndTime      int    `json:"EndTime" xml:"EndTime"`
-	AlertName    string `json:"AlertName" xml:"AlertName"`
-	Type         string `json:"Type" xml:"Type"`
+	Name         string       `json:"Name" xml:"Name"`
+	StartTime    int          `json:"StartTime" xml:"StartTime"`
+	State        string       `json:"State" xml:"State"`
+	EventType    string       `json:"EventType" xml:"EventType"`
+	Dimensions   string       `json:"Dimensions" xml:"Dimensions"`
+	GroupId      string       `json:"GroupId" xml:"GroupId"`
+	Id           string       `json:"Id" xml:"Id"`
+	Description  string       `json:"Description" xml:"Description"`
+	EndTime      int          `json:"EndTime" xml:"EndTime"`
+	AlertName    string       `json:"AlertName" xml:"AlertName"`
+	Type         string       `json:"Type" xml:"Type"`
+	EventPattern EventPattern `json:"EventPattern" xml:"EventPattern"`
 }

+ 21 - 0
services/cms/struct_status_list_in_describe_event_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.
+
+// StatusListInDescribeEventRule is a nested struct in cms response
+type StatusListInDescribeEventRule struct {
+	StatusList []string `json:"StatusList" xml:"StatusList"`
+}

+ 21 - 0
services/cms/struct_status_list_in_list_event_rules.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.
+
+// StatusListInListEventRules is a nested struct in cms response
+type StatusListInListEventRules struct {
+	StatusList []string `json:"StatusList" xml:"StatusList"`
+}