Skip to content

Commit 62835ac

Browse files
committed
由向召元发起的CMS SDK自动发布, BUILD_ID=56, 版本号:5.0.3
发布日志: 1, 修改ListAlarmHistory接口返回的alarmHistoryList属性中获取contactGroups为空的bug。 2, 修改ListAlarm接口返回的alarmList属性中获取contactGroups为空的bug。
1 parent 8cb7530 commit 62835ac

34 files changed

Lines changed: 935 additions & 677 deletions

aliyun-java-sdk-cms/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-08-16 Version: 5.0.3
2+
1, 修改ListAlarmHistory接口返回的alarmHistoryList属性中获取contactGroups为空的bug。
3+
2, 修改ListAlarm接口返回的alarmList属性中获取contactGroups为空的bug。
4+
15
2017-08-07 Version: 5.0.2
26
1, 修改ListAlarmHistory接口的返回值的alarmHistoryList属性中获取不到dimension值的bug。
37

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>5.0.2</version>
6+
<version>5.0.3</version>
77
<name>aliyun-java-sdk-cms</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.cms.model.v20170301;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class AccessKeyGenerateRequest extends RpcAcsRequest<AccessKeyGenerateResponse> {
28+
29+
public AccessKeyGenerateRequest() {
30+
super("Cms", "2017-03-01", "AccessKeyGenerate", "cms");
31+
}
32+
33+
private Long userId;
34+
35+
public Long getUserId() {
36+
return this.userId;
37+
}
38+
39+
public void setUserId(Long userId) {
40+
this.userId = userId;
41+
if(userId != null){
42+
putQueryParameter("UserId", userId.toString());
43+
}
44+
}
45+
46+
@Override
47+
public Class<AccessKeyGenerateResponse> getResponseClass() {
48+
return AccessKeyGenerateResponse.class;
49+
}
50+
51+
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.cms.model.v20170301;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.cms.transform.v20170301.AccessKeyGenerateResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class AccessKeyGenerateResponse extends AcsResponse {
30+
31+
private Integer errorCode;
32+
33+
private String errorMessage;
34+
35+
private Boolean success;
36+
37+
private String requestId;
38+
39+
private Long userId;
40+
41+
private String accessKey;
42+
43+
private String secretKey;
44+
45+
public Integer getErrorCode() {
46+
return this.errorCode;
47+
}
48+
49+
public void setErrorCode(Integer errorCode) {
50+
this.errorCode = errorCode;
51+
}
52+
53+
public String getErrorMessage() {
54+
return this.errorMessage;
55+
}
56+
57+
public void setErrorMessage(String errorMessage) {
58+
this.errorMessage = errorMessage;
59+
}
60+
61+
public Boolean getSuccess() {
62+
return this.success;
63+
}
64+
65+
public void setSuccess(Boolean success) {
66+
this.success = success;
67+
}
68+
69+
public String getRequestId() {
70+
return this.requestId;
71+
}
72+
73+
public void setRequestId(String requestId) {
74+
this.requestId = requestId;
75+
}
76+
77+
public Long getUserId() {
78+
return this.userId;
79+
}
80+
81+
public void setUserId(Long userId) {
82+
this.userId = userId;
83+
}
84+
85+
public String getAccessKey() {
86+
return this.accessKey;
87+
}
88+
89+
public void setAccessKey(String accessKey) {
90+
this.accessKey = accessKey;
91+
}
92+
93+
public String getSecretKey() {
94+
return this.secretKey;
95+
}
96+
97+
public void setSecretKey(String secretKey) {
98+
this.secretKey = secretKey;
99+
}
100+
101+
@Override
102+
public AccessKeyGenerateResponse getInstance(UnmarshallerContext context) {
103+
return AccessKeyGenerateResponseUnmarshaller.unmarshall(this, context);
104+
}
105+
}

aliyun-java-sdk-cms/src/main/java/com/aliyuncs/cms/model/v20170301/AccessKeyGetRequest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public Long getUserId() {
3838

3939
public void setUserId(Long userId) {
4040
this.userId = userId;
41-
putQueryParameter("UserId", userId);
41+
if(userId != null){
42+
putQueryParameter("UserId", userId.toString());
43+
}
4244
}
4345

4446
@Override

0 commit comments

Comments
 (0)