Skip to content

Commit abc90c0

Browse files
committed
AICS OpenApi Invoke
1 parent cb9133c commit abc90c0

File tree

5 files changed

+206
-2
lines changed

5 files changed

+206
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-21 Version: 1.0.3
2+
- AICS OpenApi Invoke
3+
14
2025-02-21 Version: 1.0.2
25
- AIVPP api.
36

aliyun-java-sdk-brain-industrial/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-brain-industrial</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
<name>aliyun-java-sdk-brain-industrial</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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.brain_industrial.model.v20200920;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.brain_industrial.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class OpenApiInvokeRequest extends RpcAcsRequest<OpenApiInvokeResponse> {
27+
28+
29+
private String param;
30+
31+
private String serviceId;
32+
33+
private String nodeId;
34+
public OpenApiInvokeRequest() {
35+
super("brain-industrial", "2020-09-20", "OpenApiInvoke", "aistudio");
36+
setProtocol(ProtocolType.HTTPS);
37+
setMethod(MethodType.POST);
38+
try {
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
40+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
41+
} catch (Exception e) {}
42+
}
43+
44+
public String getParam() {
45+
return this.param;
46+
}
47+
48+
public void setParam(String param) {
49+
this.param = param;
50+
if(param != null){
51+
putBodyParameter("Param", param);
52+
}
53+
}
54+
55+
public String getServiceId() {
56+
return this.serviceId;
57+
}
58+
59+
public void setServiceId(String serviceId) {
60+
this.serviceId = serviceId;
61+
if(serviceId != null){
62+
putQueryParameter("ServiceId", serviceId);
63+
}
64+
}
65+
66+
public String getNodeId() {
67+
return this.nodeId;
68+
}
69+
70+
public void setNodeId(String nodeId) {
71+
this.nodeId = nodeId;
72+
if(nodeId != null){
73+
putQueryParameter("NodeId", nodeId);
74+
}
75+
}
76+
77+
@Override
78+
public Class<OpenApiInvokeResponse> getResponseClass() {
79+
return OpenApiInvokeResponse.class;
80+
}
81+
82+
}
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.brain_industrial.model.v20200920;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.brain_industrial.transform.v20200920.OpenApiInvokeResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class OpenApiInvokeResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String success;
30+
31+
private String code;
32+
33+
private String message;
34+
35+
private String data;
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 getSuccess() {
46+
return this.success;
47+
}
48+
49+
public void setSuccess(String success) {
50+
this.success = success;
51+
}
52+
53+
public String getCode() {
54+
return this.code;
55+
}
56+
57+
public void setCode(String code) {
58+
this.code = code;
59+
}
60+
61+
public String getMessage() {
62+
return this.message;
63+
}
64+
65+
public void setMessage(String message) {
66+
this.message = message;
67+
}
68+
69+
public String getData() {
70+
return this.data;
71+
}
72+
73+
public void setData(String data) {
74+
this.data = data;
75+
}
76+
77+
@Override
78+
public OpenApiInvokeResponse getInstance(UnmarshallerContext context) {
79+
return OpenApiInvokeResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
82+
@Override
83+
public boolean checkShowJsonItemName() {
84+
return false;
85+
}
86+
}
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.brain_industrial.transform.v20200920;
16+
17+
import com.aliyuncs.brain_industrial.model.v20200920.OpenApiInvokeResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class OpenApiInvokeResponseUnmarshaller {
22+
23+
public static OpenApiInvokeResponse unmarshall(OpenApiInvokeResponse openApiInvokeResponse, UnmarshallerContext _ctx) {
24+
25+
openApiInvokeResponse.setRequestId(_ctx.stringValue("OpenApiInvokeResponse.RequestId"));
26+
openApiInvokeResponse.setSuccess(_ctx.stringValue("OpenApiInvokeResponse.Success"));
27+
openApiInvokeResponse.setCode(_ctx.stringValue("OpenApiInvokeResponse.Code"));
28+
openApiInvokeResponse.setMessage(_ctx.stringValue("OpenApiInvokeResponse.Message"));
29+
openApiInvokeResponse.setData(_ctx.stringValue("OpenApiInvokeResponse.Data"));
30+
31+
return openApiInvokeResponse;
32+
}
33+
}

0 commit comments

Comments
 (0)