Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6d9b14

Browse files
committed
INDUSTRY-BRAIN SDK Auto Released By siyu.yusi,Version:1.3.7
发布日志: 1, Industry brain 1.3.7 release 2, Add async API functionality 3, 1.3.7
1 parent 54f4674 commit a6d9b14

14 files changed

+340
-33
lines changed

aliyun-java-sdk-industry-brain/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019-02-25 Version: 1.3.7
2+
1, Industry brain 1.3.7 release
3+
2, Add async API functionality
4+
3, 1.3.7
5+
16
2019-02-20 Version: 1.0.0
27
1, Add code and message to inovkeService API
38
2, User could check code and message to get more specific information

aliyun-java-sdk-industry-brain/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-industry-brain</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.0.0</version>
6+
<version>1.3.7</version>
77
<name>aliyun-java-sdk-industry-brain</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.industry_brain.model.v20180712;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class AsyncResponsePostRequest extends RpcAcsRequest<AsyncResponsePostResponse> {
25+
26+
public AsyncResponsePostRequest() {
27+
super("industry-brain", "2018-07-12", "AsyncResponsePost");
28+
setMethod(MethodType.POST);
29+
}
30+
31+
private String data;
32+
33+
private Float progress;
34+
35+
private String message;
36+
37+
private String taskId;
38+
39+
private String status;
40+
41+
public String getData() {
42+
return this.data;
43+
}
44+
45+
public void setData(String data) {
46+
this.data = data;
47+
if(data != null){
48+
putQueryParameter("Data", data);
49+
}
50+
}
51+
52+
public Float getProgress() {
53+
return this.progress;
54+
}
55+
56+
public void setProgress(Float progress) {
57+
this.progress = progress;
58+
if(progress != null){
59+
putQueryParameter("Progress", progress.toString());
60+
}
61+
}
62+
63+
public String getMessage() {
64+
return this.message;
65+
}
66+
67+
public void setMessage(String message) {
68+
this.message = message;
69+
if(message != null){
70+
putQueryParameter("Message", message);
71+
}
72+
}
73+
74+
public String getTaskId() {
75+
return this.taskId;
76+
}
77+
78+
public void setTaskId(String taskId) {
79+
this.taskId = taskId;
80+
if(taskId != null){
81+
putQueryParameter("TaskId", taskId);
82+
}
83+
}
84+
85+
public String getStatus() {
86+
return this.status;
87+
}
88+
89+
public void setStatus(String status) {
90+
this.status = status;
91+
if(status != null){
92+
putQueryParameter("Status", status);
93+
}
94+
}
95+
96+
@Override
97+
public Class<AsyncResponsePostResponse> getResponseClass() {
98+
return AsyncResponsePostResponse.class;
99+
}
100+
101+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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.industry_brain.model.v20180712;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.industry_brain.transform.v20180712.AsyncResponsePostResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AsyncResponsePostResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String data;
30+
31+
private String status;
32+
33+
private String code;
34+
35+
private String message;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public String getData() {
46+
return this.data;
47+
}
48+
49+
public void setData(String data) {
50+
this.data = data;
51+
}
52+
53+
public String getStatus() {
54+
return this.status;
55+
}
56+
57+
public void setStatus(String status) {
58+
this.status = status;
59+
}
60+
61+
public String getCode() {
62+
return this.code;
63+
}
64+
65+
public void setCode(String code) {
66+
this.code = code;
67+
}
68+
69+
public String getMessage() {
70+
return this.message;
71+
}
72+
73+
public void setMessage(String message) {
74+
this.message = message;
75+
}
76+
77+
@Override
78+
public AsyncResponsePostResponse getInstance(UnmarshallerContext context) {
79+
return AsyncResponsePostResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
82+
@Override
83+
public boolean checkShowJsonItemName() {
84+
return false;
85+
}
86+
}

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/GetAsyncServiceResultRequest.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
package com.aliyuncs.industry_brain.model.v20180712;
1616

17-
import com.aliyuncs.RpcAcsRequest;
18-
import com.aliyuncs.http.ProtocolType;
19-
import com.aliyuncs.http.MethodType;
17+
import com.aliyuncs.RpcAcsRequest;
2018

2119
/**
2220
* @author auto create
@@ -25,21 +23,19 @@
2523
public class GetAsyncServiceResultRequest extends RpcAcsRequest<GetAsyncServiceResultResponse> {
2624

2725
public GetAsyncServiceResultRequest() {
28-
super("industry-brain", "2018-07-12", "GetAsyncServiceResult");
29-
setProtocol(ProtocolType.HTTPS);
30-
setMethod(MethodType.POST);
26+
super("industry-brain", "2018-07-12", "GetAsyncServiceResult");
3127
}
3228

33-
private String serviceId;
29+
private String taskId;
3430

35-
public String getServiceId() {
36-
return this.serviceId;
31+
public String getTaskId() {
32+
return this.taskId;
3733
}
3834

39-
public void setServiceId(String serviceId) {
40-
this.serviceId = serviceId;
41-
if(serviceId != null){
42-
putQueryParameter("ServiceId", serviceId);
35+
public void setTaskId(String taskId) {
36+
this.taskId = taskId;
37+
if(taskId != null){
38+
putQueryParameter("TaskId", taskId);
4339
}
4440
}
4541

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/GetAsyncServiceResultResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class GetAsyncServiceResultResponse extends AcsResponse {
2828

2929
private String data;
3030

31+
private String code;
32+
33+
private String message;
34+
3135
public String getRequestId() {
3236
return this.requestId;
3337
}
@@ -44,6 +48,22 @@ public void setData(String data) {
4448
this.data = data;
4549
}
4650

51+
public String getCode() {
52+
return this.code;
53+
}
54+
55+
public void setCode(String code) {
56+
this.code = code;
57+
}
58+
59+
public String getMessage() {
60+
return this.message;
61+
}
62+
63+
public void setMessage(String message) {
64+
this.message = message;
65+
}
66+
4767
@Override
4868
public GetAsyncServiceResultResponse getInstance(UnmarshallerContext context) {
4969
return GetAsyncServiceResultResponseUnmarshaller.unmarshall(this, context);

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/GetServiceResultAsyncRequest.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
package com.aliyuncs.industry_brain.model.v20180712;
1616

17-
import com.aliyuncs.RpcAcsRequest;
18-
import com.aliyuncs.http.ProtocolType;
19-
import com.aliyuncs.http.MethodType;
17+
import com.aliyuncs.RpcAcsRequest;
2018

2119
/**
2220
* @author auto create
@@ -25,21 +23,19 @@
2523
public class GetServiceResultAsyncRequest extends RpcAcsRequest<GetServiceResultAsyncResponse> {
2624

2725
public GetServiceResultAsyncRequest() {
28-
super("industry-brain", "2018-07-12", "GetServiceResultAsync");
29-
setProtocol(ProtocolType.HTTPS);
30-
setMethod(MethodType.POST);
26+
super("industry-brain", "2018-07-12", "GetServiceResultAsync");
3127
}
3228

33-
private String serviceId;
29+
private String taskId;
3430

35-
public String getServiceId() {
36-
return this.serviceId;
31+
public String getTaskId() {
32+
return this.taskId;
3733
}
3834

39-
public void setServiceId(String serviceId) {
40-
this.serviceId = serviceId;
41-
if(serviceId != null){
42-
putQueryParameter("ServiceId", serviceId);
35+
public void setTaskId(String taskId) {
36+
this.taskId = taskId;
37+
if(taskId != null){
38+
putQueryParameter("TaskId", taskId);
4339
}
4440
}
4541

aliyun-java-sdk-industry-brain/src/main/java/com/aliyuncs/industry_brain/model/v20180712/GetServiceResultAsyncResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class GetServiceResultAsyncResponse extends AcsResponse {
2828

2929
private String data;
3030

31+
private String code;
32+
33+
private String message;
34+
3135
public String getRequestId() {
3236
return this.requestId;
3337
}
@@ -44,6 +48,22 @@ public void setData(String data) {
4448
this.data = data;
4549
}
4650

51+
public String getCode() {
52+
return this.code;
53+
}
54+
55+
public void setCode(String code) {
56+
this.code = code;
57+
}
58+
59+
public String getMessage() {
60+
return this.message;
61+
}
62+
63+
public void setMessage(String message) {
64+
this.message = message;
65+
}
66+
4767
@Override
4868
public GetServiceResultAsyncResponse getInstance(UnmarshallerContext context) {
4969
return GetServiceResultAsyncResponseUnmarshaller.unmarshall(this, context);

0 commit comments

Comments
 (0)