Skip to content

Commit e3baa76

Browse files
committed
CMS SDK Auto Released By wb-xzy262218,Version:6.0.12
发布日志: 1, Add parameter(DryRun) for CreateAlarm and UpdateAlarm.
1 parent db183fb commit e3baa76

File tree

7 files changed

+217
-14
lines changed

7 files changed

+217
-14
lines changed

aliyun-java-sdk-cms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-08-01 Version: 6.0.12
2+
1, Add parameter(DryRun) for CreateAlarm and UpdateAlarm.
3+
14
2018-07-26 Version: 6.0.11
25
1, Add new API: SendDryRunSystemEvent,PutMetricAlarm,DescribeAlarmsForDimensions,DescribeAlarms.
36

aliyun-java-sdk-cms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-cms</artifactId>
55
<packaging>jar</packaging>
6-
<version>6.0.11</version>
6+
<version>6.0.12</version>
77
<name>aliyun-java-sdk-cms</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-cms/src/main/java/com/aliyuncs/cms/model/v20180308/CreateAlarmRequest.java

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public CreateAlarmRequest() {
3030

3131
private String webhook;
3232

33+
private Boolean dryRun;
34+
3335
private String contactGroups;
3436

3537
private Integer endTime;
@@ -38,10 +40,10 @@ public CreateAlarmRequest() {
3840

3941
private Integer startTime;
4042

41-
private String namespace;
42-
4343
private String name;
4444

45+
private String namespace;
46+
4547
private Integer evaluationCount;
4648

4749
private Integer silenceTime;
@@ -78,6 +80,17 @@ public void setWebhook(String webhook) {
7880
}
7981
}
8082

83+
public Boolean getDryRun() {
84+
return this.dryRun;
85+
}
86+
87+
public void setDryRun(Boolean dryRun) {
88+
this.dryRun = dryRun;
89+
if(dryRun != null){
90+
putQueryParameter("DryRun", dryRun.toString());
91+
}
92+
}
93+
8194
public String getContactGroups() {
8295
return this.contactGroups;
8396
}
@@ -122,17 +135,6 @@ public void setStartTime(Integer startTime) {
122135
}
123136
}
124137

125-
public String getNamespace() {
126-
return this.namespace;
127-
}
128-
129-
public void setNamespace(String namespace) {
130-
this.namespace = namespace;
131-
if(namespace != null){
132-
putQueryParameter("Namespace", namespace);
133-
}
134-
}
135-
136138
public String getName() {
137139
return this.name;
138140
}
@@ -144,6 +146,17 @@ public void setName(String name) {
144146
}
145147
}
146148

149+
public String getNamespace() {
150+
return this.namespace;
151+
}
152+
153+
public void setNamespace(String namespace) {
154+
this.namespace = namespace;
155+
if(namespace != null){
156+
putQueryParameter("Namespace", namespace);
157+
}
158+
}
159+
147160
public Integer getEvaluationCount() {
148161
return this.evaluationCount;
149162
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.cms.model.v20180308;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
19+
/**
20+
* @author auto create
21+
* @version
22+
*/
23+
public class QuerySystemEventDemoRequest extends RpcAcsRequest<QuerySystemEventDemoResponse> {
24+
25+
public QuerySystemEventDemoRequest() {
26+
super("Cms", "2018-03-08", "QuerySystemEventDemo", "cms");
27+
}
28+
29+
private String product;
30+
31+
private String eventName;
32+
33+
public String getProduct() {
34+
return this.product;
35+
}
36+
37+
public void setProduct(String product) {
38+
this.product = product;
39+
if(product != null){
40+
putQueryParameter("Product", product);
41+
}
42+
}
43+
44+
public String getEventName() {
45+
return this.eventName;
46+
}
47+
48+
public void setEventName(String eventName) {
49+
this.eventName = eventName;
50+
if(eventName != null){
51+
putQueryParameter("EventName", eventName);
52+
}
53+
}
54+
55+
@Override
56+
public Class<QuerySystemEventDemoResponse> getResponseClass() {
57+
return QuerySystemEventDemoResponse.class;
58+
}
59+
60+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.cms.model.v20180308;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.cms.transform.v20180308.QuerySystemEventDemoResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class QuerySystemEventDemoResponse extends AcsResponse {
26+
27+
private String code;
28+
29+
private String message;
30+
31+
private String data;
32+
33+
private String requestId;
34+
35+
private String success;
36+
37+
public String getCode() {
38+
return this.code;
39+
}
40+
41+
public void setCode(String code) {
42+
this.code = code;
43+
}
44+
45+
public String getMessage() {
46+
return this.message;
47+
}
48+
49+
public void setMessage(String message) {
50+
this.message = message;
51+
}
52+
53+
public String getData() {
54+
return this.data;
55+
}
56+
57+
public void setData(String data) {
58+
this.data = data;
59+
}
60+
61+
public String getRequestId() {
62+
return this.requestId;
63+
}
64+
65+
public void setRequestId(String requestId) {
66+
this.requestId = requestId;
67+
}
68+
69+
public String getSuccess() {
70+
return this.success;
71+
}
72+
73+
public void setSuccess(String success) {
74+
this.success = success;
75+
}
76+
77+
@Override
78+
public QuerySystemEventDemoResponse getInstance(UnmarshallerContext context) {
79+
return QuerySystemEventDemoResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
}

aliyun-java-sdk-cms/src/main/java/com/aliyuncs/cms/model/v20180308/UpdateAlarmRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public UpdateAlarmRequest() {
3030

3131
private String webhook;
3232

33+
private Boolean dryRun;
34+
3335
private String contactGroups;
3436

3537
private Integer endTime;
@@ -74,6 +76,17 @@ public void setWebhook(String webhook) {
7476
}
7577
}
7678

79+
public Boolean getDryRun() {
80+
return this.dryRun;
81+
}
82+
83+
public void setDryRun(Boolean dryRun) {
84+
this.dryRun = dryRun;
85+
if(dryRun != null){
86+
putQueryParameter("DryRun", dryRun.toString());
87+
}
88+
}
89+
7790
public String getContactGroups() {
7891
return this.contactGroups;
7992
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.cms.transform.v20180308;
16+
17+
import com.aliyuncs.cms.model.v20180308.QuerySystemEventDemoResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class QuerySystemEventDemoResponseUnmarshaller {
22+
23+
public static QuerySystemEventDemoResponse unmarshall(QuerySystemEventDemoResponse querySystemEventDemoResponse, UnmarshallerContext context) {
24+
25+
querySystemEventDemoResponse.setRequestId(context.stringValue("QuerySystemEventDemoResponse.RequestId"));
26+
querySystemEventDemoResponse.setCode(context.stringValue("QuerySystemEventDemoResponse.Code"));
27+
querySystemEventDemoResponse.setMessage(context.stringValue("QuerySystemEventDemoResponse.Message"));
28+
querySystemEventDemoResponse.setData(context.stringValue("QuerySystemEventDemoResponse.Data"));
29+
querySystemEventDemoResponse.setSuccess(context.stringValue("QuerySystemEventDemoResponse.Success"));
30+
31+
return querySystemEventDemoResponse;
32+
}
33+
}

0 commit comments

Comments
 (0)