Skip to content

Commit 228bf7f

Browse files
committed
由荣旸发起的TESLADAM SDK自动发布, BUILD_ID=310, 版本号:1.0.1
发布日志: 1, Add Action API.
1 parent d388a24 commit 228bf7f

File tree

5 files changed

+173
-1
lines changed

5 files changed

+173
-1
lines changed

aliyun-java-sdk-tesladam/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-02-27 Version: 1.0.1
2+
1, Add Action API.
3+
14
2018-01-23 Version: 1.0.0
25
1, Tesla Dam API release.
36
2, Add ActionDiskCheck, ActionDiskMask, ActionDiskRma, HostGets.

aliyun-java-sdk-tesladam/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-tesladam</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.0.0</version>
6+
<version>1.0.1</version>
77
<name>aliyun-java-sdk-tesladam</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.tesladam.model.v20180118;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class ActionRequest extends RpcAcsRequest<ActionResponse> {
28+
29+
public ActionRequest() {
30+
super("TeslaDam", "2018-01-18", "Action");
31+
}
32+
33+
private Integer orderId;
34+
35+
private String stepCode;
36+
37+
public Integer getOrderId() {
38+
return this.orderId;
39+
}
40+
41+
public void setOrderId(Integer orderId) {
42+
this.orderId = orderId;
43+
if(orderId != null){
44+
putQueryParameter("OrderId", orderId.toString());
45+
}
46+
}
47+
48+
public String getStepCode() {
49+
return this.stepCode;
50+
}
51+
52+
public void setStepCode(String stepCode) {
53+
this.stepCode = stepCode;
54+
if(stepCode != null){
55+
putQueryParameter("StepCode", stepCode);
56+
}
57+
}
58+
59+
@Override
60+
public Class<ActionResponse> getResponseClass() {
61+
return ActionResponse.class;
62+
}
63+
64+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.tesladam.model.v20180118;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.tesladam.transform.v20180118.ActionResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ActionResponse extends AcsResponse {
30+
31+
private Boolean status;
32+
33+
private String message;
34+
35+
private String result;
36+
37+
public Boolean getStatus() {
38+
return this.status;
39+
}
40+
41+
public void setStatus(Boolean status) {
42+
this.status = status;
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 getResult() {
54+
return this.result;
55+
}
56+
57+
public void setResult(String result) {
58+
this.result = result;
59+
}
60+
61+
@Override
62+
public ActionResponse getInstance(UnmarshallerContext context) {
63+
return ActionResponseUnmarshaller.unmarshall(this, context);
64+
}
65+
66+
@Override
67+
public boolean checkShowJsonItemName() {
68+
return false;
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.tesladam.transform.v20180118;
20+
21+
import com.aliyuncs.tesladam.model.v20180118.ActionResponse;
22+
import com.aliyuncs.transform.UnmarshallerContext;
23+
24+
25+
public class ActionResponseUnmarshaller {
26+
27+
public static ActionResponse unmarshall(ActionResponse actionResponse, UnmarshallerContext context) {
28+
29+
actionResponse.setStatus(context.booleanValue("ActionResponse.Status"));
30+
actionResponse.setMessage(context.stringValue("ActionResponse.Message"));
31+
actionResponse.setResult(context.stringValue("ActionResponse.Result"));
32+
33+
return actionResponse;
34+
}
35+
}

0 commit comments

Comments
 (0)