Procházet zdrojové kódy

CMS SDK Auto Released By yixiong.jxy,Version:1.23.7

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy před 7 roky
rodič
revize
f89d40533a

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-08-02 Version: 1.23.7
+1, Add parameter(GroupId) for CreateNotifyPolicy,GetNotifyPolicy,DeleteNotifyPolicy,ListNotifyPolicy.
+
 2018-08-01 Version: 1.23.6
 1, Add parameter(DryRun) for CreateAlarm and UpdateAlarm.
 

+ 6 - 5
services/cms/create_notify_policy.go

@@ -78,6 +78,7 @@ type CreateNotifyPolicyRequest struct {
 	*requests.RpcRequest
 	PolicyType string           `position:"Query" name:"PolicyType"`
 	AlertName  string           `position:"Query" name:"AlertName"`
+	GroupId    string           `position:"Query" name:"GroupId"`
 	EndTime    requests.Integer `position:"Query" name:"EndTime"`
 	StartTime  requests.Integer `position:"Query" name:"StartTime"`
 	Dimensions string           `position:"Query" name:"Dimensions"`
@@ -86,11 +87,11 @@ type CreateNotifyPolicyRequest struct {
 // CreateNotifyPolicyResponse is the response struct for api CreateNotifyPolicy
 type CreateNotifyPolicyResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"code" xml:"code"`
-	Message string `json:"message" xml:"message"`
-	Success string `json:"success" xml:"success"`
-	TraceId string `json:"traceId" xml:"traceId"`
-	Result  int    `json:"result" xml:"result"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    int    `json:"Result" xml:"Result"`
 }
 
 // CreateCreateNotifyPolicyRequest creates a request to invoke CreateNotifyPolicy API

+ 6 - 5
services/cms/delete_notify_policy.go

@@ -78,6 +78,7 @@ type DeleteNotifyPolicyRequest struct {
 	*requests.RpcRequest
 	PolicyType string `position:"Query" name:"PolicyType"`
 	AlertName  string `position:"Query" name:"AlertName"`
+	GroupId    string `position:"Query" name:"GroupId"`
 	Id         string `position:"Query" name:"Id"`
 	Dimensions string `position:"Query" name:"Dimensions"`
 }
@@ -85,11 +86,11 @@ type DeleteNotifyPolicyRequest struct {
 // DeleteNotifyPolicyResponse is the response struct for api DeleteNotifyPolicy
 type DeleteNotifyPolicyResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"code" xml:"code"`
-	Message string `json:"message" xml:"message"`
-	Success string `json:"success" xml:"success"`
-	TraceId string `json:"traceId" xml:"traceId"`
-	Result  int    `json:"result" xml:"result"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    int    `json:"Result" xml:"Result"`
 }
 
 // CreateDeleteNotifyPolicyRequest creates a request to invoke DeleteNotifyPolicy API

+ 6 - 5
services/cms/get_notify_policy.go

@@ -78,6 +78,7 @@ type GetNotifyPolicyRequest struct {
 	*requests.RpcRequest
 	PolicyType string `position:"Query" name:"PolicyType"`
 	AlertName  string `position:"Query" name:"AlertName"`
+	GroupId    string `position:"Query" name:"GroupId"`
 	Id         string `position:"Query" name:"Id"`
 	Dimensions string `position:"Query" name:"Dimensions"`
 }
@@ -85,11 +86,11 @@ type GetNotifyPolicyRequest struct {
 // GetNotifyPolicyResponse is the response struct for api GetNotifyPolicy
 type GetNotifyPolicyResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"code" xml:"code"`
-	Message string `json:"message" xml:"message"`
-	Success string `json:"success" xml:"success"`
-	TraceId string `json:"traceId" xml:"traceId"`
-	Result  Result `json:"Result" xml:"Result"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Result    Result `json:"Result" xml:"Result"`
 }
 
 // CreateGetNotifyPolicyRequest creates a request to invoke GetNotifyPolicy API

+ 6 - 5
services/cms/list_notify_policy.go

@@ -78,6 +78,7 @@ type ListNotifyPolicyRequest struct {
 	*requests.RpcRequest
 	PolicyType string           `position:"Query" name:"PolicyType"`
 	AlertName  string           `position:"Query" name:"AlertName"`
+	GroupId    string           `position:"Query" name:"GroupId"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	Id         string           `position:"Query" name:"Id"`
 	Dimensions string           `position:"Query" name:"Dimensions"`
@@ -86,11 +87,11 @@ type ListNotifyPolicyRequest struct {
 // ListNotifyPolicyResponse is the response struct for api ListNotifyPolicy
 type ListNotifyPolicyResponse struct {
 	*responses.BaseResponse
-	Code             string           `json:"code" xml:"code"`
-	Message          string           `json:"message" xml:"message"`
-	Success          string           `json:"success" xml:"success"`
-	TraceId          string           `json:"traceId" xml:"traceId"`
-	Total            int              `json:"total" xml:"total"`
+	Code             string           `json:"Code" xml:"Code"`
+	Message          string           `json:"Message" xml:"Message"`
+	Success          string           `json:"Success" xml:"Success"`
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	Total            int              `json:"Total" xml:"Total"`
 	NotifyPolicyList NotifyPolicyList `json:"NotifyPolicyList" xml:"NotifyPolicyList"`
 }
 

+ 1 - 0
services/cms/struct_notify_policy.go

@@ -23,4 +23,5 @@ type NotifyPolicy struct {
 	Id         string `json:"Id" xml:"Id"`
 	StartTime  int    `json:"StartTime" xml:"StartTime"`
 	EndTime    int    `json:"EndTime" xml:"EndTime"`
+	GroupId    string `json:"GroupId" xml:"GroupId"`
 }