Explorar el Código

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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao hace 7 años
padre
commit
2c32ac7a99

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-07-09 Version: 1.22.2
+1, Add new API: DescribeEventRule,ListEventTargetsByRule,PutEventRule,PutEventTargets.
+2, Add return value(Id) for NodeProcessCreate.
+
 2018-07-05 Version: 1.22.1
 1, new function, attach/detach load balancer of scalingGroup
 

+ 107 - 0
services/cms/describe_event_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"
+)
+
+// DescribeEventRule invokes the cms.DescribeEventRule API synchronously
+// api document: https://help.aliyun.com/api/cms/describeeventrule.html
+func (client *Client) DescribeEventRule(request *DescribeEventRuleRequest) (response *DescribeEventRuleResponse, err error) {
+	response = CreateDescribeEventRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeEventRuleWithChan invokes the cms.DescribeEventRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeeventrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEventRuleWithChan(request *DescribeEventRuleRequest) (<-chan *DescribeEventRuleResponse, <-chan error) {
+	responseChan := make(chan *DescribeEventRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeEventRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeEventRuleWithCallback invokes the cms.DescribeEventRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeeventrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEventRuleWithCallback(request *DescribeEventRuleRequest, callback func(response *DescribeEventRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeEventRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeEventRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeEventRuleRequest is the request struct for api DescribeEventRule
+type DescribeEventRuleRequest struct {
+	*requests.RpcRequest
+	RuleName string `position:"Query" name:"RuleName"`
+}
+
+// DescribeEventRuleResponse is the response struct for api DescribeEventRule
+type DescribeEventRuleResponse 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"`
+	Result    Result `json:"Result" xml:"Result"`
+}
+
+// CreateDescribeEventRuleRequest creates a request to invoke DescribeEventRule API
+func CreateDescribeEventRuleRequest() (request *DescribeEventRuleRequest) {
+	request = &DescribeEventRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeEventRule", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeEventRuleResponse creates a response to parse from DescribeEventRule response
+func CreateDescribeEventRuleResponse() (response *DescribeEventRuleResponse) {
+	response = &DescribeEventRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/cms/list_event_targets_by_rule.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// ListEventTargetsByRule invokes the cms.ListEventTargetsByRule API synchronously
+// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html
+func (client *Client) ListEventTargetsByRule(request *ListEventTargetsByRuleRequest) (response *ListEventTargetsByRuleResponse, err error) {
+	response = CreateListEventTargetsByRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListEventTargetsByRuleWithChan invokes the cms.ListEventTargetsByRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListEventTargetsByRuleWithChan(request *ListEventTargetsByRuleRequest) (<-chan *ListEventTargetsByRuleResponse, <-chan error) {
+	responseChan := make(chan *ListEventTargetsByRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListEventTargetsByRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListEventTargetsByRuleWithCallback invokes the cms.ListEventTargetsByRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/listeventtargetsbyrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListEventTargetsByRuleWithCallback(request *ListEventTargetsByRuleRequest, callback func(response *ListEventTargetsByRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListEventTargetsByRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.ListEventTargetsByRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListEventTargetsByRuleRequest is the request struct for api ListEventTargetsByRule
+type ListEventTargetsByRuleRequest struct {
+	*requests.RpcRequest
+	RuleName string `position:"Query" name:"RuleName"`
+}
+
+// ListEventTargetsByRuleResponse is the response struct for api ListEventTargetsByRule
+type ListEventTargetsByRuleResponse struct {
+	*responses.BaseResponse
+	Code              string                                    `json:"Code" xml:"Code"`
+	Message           string                                    `json:"Message" xml:"Message"`
+	RequestId         string                                    `json:"RequestId" xml:"RequestId"`
+	ParameterCount    int                                       `json:"ParameterCount" xml:"ParameterCount"`
+	ContactParameters ContactParametersInListEventTargetsByRule `json:"ContactParameters" xml:"ContactParameters"`
+	FcParameters      FcParametersInListEventTargetsByRule      `json:"FcParameters" xml:"FcParameters"`
+	MnsParameters     MnsParametersInListEventTargetsByRule     `json:"MnsParameters" xml:"MnsParameters"`
+}
+
+// CreateListEventTargetsByRuleRequest creates a request to invoke ListEventTargetsByRule API
+func CreateListEventTargetsByRuleRequest() (request *ListEventTargetsByRuleRequest) {
+	request = &ListEventTargetsByRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListEventTargetsByRule", "cms", "openAPI")
+	return
+}
+
+// CreateListEventTargetsByRuleResponse creates a response to parse from ListEventTargetsByRule response
+func CreateListEventTargetsByRuleResponse() (response *ListEventTargetsByRuleResponse) {
+	response = &ListEventTargetsByRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/cms/node_process_create.go

@@ -90,6 +90,7 @@ type NodeProcessCreateResponse struct {
 	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
 	Success      bool   `json:"Success" xml:"Success"`
 	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Id           int    `json:"Id" xml:"Id"`
 }
 
 // CreateNodeProcessCreateRequest creates a request to invoke NodeProcessCreate API

+ 120 - 0
services/cms/put_event_rule.go

@@ -0,0 +1,120 @@
+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"
+)
+
+// PutEventRule invokes the cms.PutEventRule API synchronously
+// api document: https://help.aliyun.com/api/cms/puteventrule.html
+func (client *Client) PutEventRule(request *PutEventRuleRequest) (response *PutEventRuleResponse, err error) {
+	response = CreatePutEventRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutEventRuleWithChan invokes the cms.PutEventRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/puteventrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutEventRuleWithChan(request *PutEventRuleRequest) (<-chan *PutEventRuleResponse, <-chan error) {
+	responseChan := make(chan *PutEventRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutEventRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutEventRuleWithCallback invokes the cms.PutEventRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/puteventrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutEventRuleWithCallback(request *PutEventRuleRequest, callback func(response *PutEventRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutEventRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.PutEventRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutEventRuleRequest is the request struct for api PutEventRule
+type PutEventRuleRequest struct {
+	*requests.RpcRequest
+	EventPattern *[]PutEventRuleEventPattern `position:"Query" name:"EventPattern"  type:"Repeated"`
+	GroupId      string                      `position:"Query" name:"GroupId"`
+	Name         string                      `position:"Query" name:"Name"`
+	Description  string                      `position:"Query" name:"Description"`
+	EventType    string                      `position:"Query" name:"EventType"`
+	State        string                      `position:"Query" name:"State"`
+}
+
+// PutEventRuleEventPattern is a repeated param struct in PutEventRuleRequest
+type PutEventRuleEventPattern struct {
+	Product    string    `name:"Product"`
+	NameList   *[]string `name:"NameList" type:"Repeated"`
+	StatusList *[]string `name:"StatusList" type:"Repeated"`
+	LevelList  *[]string `name:"LevelList" type:"Repeated"`
+}
+
+// PutEventRuleResponse is the response struct for api PutEventRule
+type PutEventRuleResponse 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"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreatePutEventRuleRequest creates a request to invoke PutEventRule API
+func CreatePutEventRuleRequest() (request *PutEventRuleRequest) {
+	request = &PutEventRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutEventRule", "cms", "openAPI")
+	return
+}
+
+// CreatePutEventRuleResponse creates a response to parse from PutEventRule response
+func CreatePutEventRuleResponse() (response *PutEventRuleResponse) {
+	response = &PutEventRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 139 - 0
services/cms/put_event_targets.go

@@ -0,0 +1,139 @@
+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"
+)
+
+// PutEventTargets invokes the cms.PutEventTargets API synchronously
+// api document: https://help.aliyun.com/api/cms/puteventtargets.html
+func (client *Client) PutEventTargets(request *PutEventTargetsRequest) (response *PutEventTargetsResponse, err error) {
+	response = CreatePutEventTargetsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutEventTargetsWithChan invokes the cms.PutEventTargets API asynchronously
+// api document: https://help.aliyun.com/api/cms/puteventtargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutEventTargetsWithChan(request *PutEventTargetsRequest) (<-chan *PutEventTargetsResponse, <-chan error) {
+	responseChan := make(chan *PutEventTargetsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutEventTargets(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutEventTargetsWithCallback invokes the cms.PutEventTargets API asynchronously
+// api document: https://help.aliyun.com/api/cms/puteventtargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutEventTargetsWithCallback(request *PutEventTargetsRequest, callback func(response *PutEventTargetsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutEventTargetsResponse
+		var err error
+		defer close(result)
+		response, err = client.PutEventTargets(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutEventTargetsRequest is the request struct for api PutEventTargets
+type PutEventTargetsRequest struct {
+	*requests.RpcRequest
+	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"`
+}
+
+// PutEventTargetsContactParameters is a repeated param struct in PutEventTargetsRequest
+type PutEventTargetsContactParameters struct {
+	Id               string `name:"Id"`
+	ContactGroupName string `name:"ContactGroupName"`
+	Level            string `name:"Level"`
+}
+
+// PutEventTargetsFcParameters is a repeated param struct in PutEventTargetsRequest
+type PutEventTargetsFcParameters struct {
+	Id           string `name:"Id"`
+	Region       string `name:"Region"`
+	ServiceName  string `name:"ServiceName"`
+	FunctionName string `name:"FunctionName"`
+}
+
+// PutEventTargetsMnsParameters is a repeated param struct in PutEventTargetsRequest
+type PutEventTargetsMnsParameters struct {
+	Id     string `name:"Id"`
+	Region string `name:"Region"`
+	Queue  string `name:"Queue"`
+}
+
+// PutEventTargetsResponse is the response struct for api PutEventTargets
+type PutEventTargetsResponse 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"`
+	ParameterCount          string                             `json:"ParameterCount" xml:"ParameterCount"`
+	FailedParameterCount    string                             `json:"FailedParameterCount" xml:"FailedParameterCount"`
+	ContactParameters       ContactParametersInPutEventTargets `json:"ContactParameters" xml:"ContactParameters"`
+	MnsParameters           MnsParametersInPutEventTargets     `json:"MnsParameters" xml:"MnsParameters"`
+	FcParameters            FcParametersInPutEventTargets      `json:"FcParameters" xml:"FcParameters"`
+	FailedContactParameters FailedContactParameters            `json:"FailedContactParameters" xml:"FailedContactParameters"`
+	FailedMnsParameters     FailedMnsParameters                `json:"FailedMnsParameters" xml:"FailedMnsParameters"`
+	FailedFcParameters      FailedFcParameters                 `json:"FailedFcParameters" xml:"FailedFcParameters"`
+}
+
+// CreatePutEventTargetsRequest creates a request to invoke PutEventTargets API
+func CreatePutEventTargetsRequest() (request *PutEventTargetsRequest) {
+	request = &PutEventTargetsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutEventTargets", "cms", "openAPI")
+	return
+}
+
+// CreatePutEventTargetsResponse creates a response to parse from PutEventTargets response
+func CreatePutEventTargetsResponse() (response *PutEventTargetsResponse) {
+	response = &PutEventTargetsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/cms/struct_contact_parameter.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.
+
+// ContactParameter is a nested struct in cms response
+type ContactParameter struct {
+	Level            string `json:"Level" xml:"Level"`
+	Id               string `json:"Id" xml:"Id"`
+	ContactGroupName string `json:"ContactGroupName" xml:"ContactGroupName"`
+}

+ 23 - 0
services/cms/struct_contact_parameter_in_put_event_targets.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.
+
+// ContactParameterInPutEventTargets is a nested struct in cms response
+type ContactParameterInPutEventTargets struct {
+	Id               int    `json:"Id" xml:"Id"`
+	ContactGroupName string `json:"ContactGroupName" xml:"ContactGroupName"`
+	Level            string `json:"Level" xml:"Level"`
+}

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

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

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

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

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

+ 24 - 0
services/cms/struct_fc_parameter.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.
+
+// FCParameter is a nested struct in cms response
+type FCParameter struct {
+	Region       string `json:"Region" xml:"Region"`
+	Id           string `json:"Id" xml:"Id"`
+	ServiceName  string `json:"ServiceName" xml:"ServiceName"`
+	FunctionName string `json:"FunctionName" xml:"FunctionName"`
+}

+ 24 - 0
services/cms/struct_fc_parameter_in_put_event_targets.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.
+
+// FcParameterInPutEventTargets is a nested struct in cms response
+type FcParameterInPutEventTargets struct {
+	Id           int    `json:"Id" xml:"Id"`
+	Region       string `json:"Region" xml:"Region"`
+	ServiceName  string `json:"ServiceName" xml:"ServiceName"`
+	FunctionName string `json:"FunctionName" xml:"FunctionName"`
+}

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

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

+ 23 - 0
services/cms/struct_mns_parameter.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.
+
+// MnsParameter is a nested struct in cms response
+type MnsParameter struct {
+	Region string `json:"Region" xml:"Region"`
+	Queue  string `json:"Queue" xml:"Queue"`
+	Id     string `json:"Id" xml:"Id"`
+}

+ 23 - 0
services/cms/struct_mns_parameter_in_put_event_targets.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.
+
+// MnsParameterInPutEventTargets is a nested struct in cms response
+type MnsParameterInPutEventTargets struct {
+	Id     int    `json:"Id" xml:"Id"`
+	Region string `json:"Region" xml:"Region"`
+	Queue  string `json:"Queue" xml:"Queue"`
+}

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

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

+ 14 - 13
services/cms/struct_node.go

@@ -17,17 +17,18 @@ package cms
 
 // Node is a nested struct in cms response
 type Node struct {
-	InstanceId       string `json:"InstanceId" xml:"InstanceId"`
-	SerialNumber     string `json:"SerialNumber" xml:"SerialNumber"`
-	HostName         string `json:"HostName" xml:"HostName"`
-	AliUid           int    `json:"AliUid" xml:"AliUid"`
-	OperatingSystem  string `json:"OperatingSystem" xml:"OperatingSystem"`
-	IpGroup          string `json:"IpGroup" xml:"IpGroup"`
-	Region           string `json:"Region" xml:"Region"`
-	TianjimonVersion string `json:"TianjimonVersion" xml:"TianjimonVersion"`
-	EipAddress       string `json:"EipAddress" xml:"EipAddress"`
-	EipId            string `json:"EipId" xml:"EipId"`
-	AliyunHost       bool   `json:"AliyunHost" xml:"AliyunHost"`
-	NatIp            string `json:"NatIp" xml:"NatIp"`
-	NetworkType      string `json:"NetworkType" xml:"NetworkType"`
+	InstanceId         string `json:"InstanceId" xml:"InstanceId"`
+	SerialNumber       string `json:"SerialNumber" xml:"SerialNumber"`
+	HostName           string `json:"HostName" xml:"HostName"`
+	AliUid             int    `json:"AliUid" xml:"AliUid"`
+	OperatingSystem    string `json:"OperatingSystem" xml:"OperatingSystem"`
+	IpGroup            string `json:"IpGroup" xml:"IpGroup"`
+	Region             string `json:"Region" xml:"Region"`
+	TianjimonVersion   string `json:"TianjimonVersion" xml:"TianjimonVersion"`
+	EipAddress         string `json:"EipAddress" xml:"EipAddress"`
+	EipId              string `json:"EipId" xml:"EipId"`
+	AliyunHost         bool   `json:"AliyunHost" xml:"AliyunHost"`
+	NatIp              string `json:"NatIp" xml:"NatIp"`
+	NetworkType        string `json:"NetworkType" xml:"NetworkType"`
+	InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
 }

+ 7 - 6
services/cms/struct_result.go

@@ -17,10 +17,11 @@ package cms
 
 // Result is a nested struct in cms response
 type Result struct {
-	AlertName  string `json:"AlertName" xml:"AlertName"`
-	Dimensions string `json:"Dimensions" xml:"Dimensions"`
-	Type       string `json:"Type" xml:"Type"`
-	Id         string `json:"Id" xml:"Id"`
-	StartTime  int    `json:"StartTime" xml:"StartTime"`
-	EndTime    int    `json:"EndTime" xml:"EndTime"`
+	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"`
 }