Skip to content

Commit 2eeb7b3

Browse files
committed
Supported PackageDesign Apis.
1 parent 6013555 commit 2eeb7b3

14 files changed

+1054
-1
lines changed

aliyun-java-sdk-ivpd/ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2020-04-21 Version: 1.0.4
2+
- Supported PackageDesign Apis.
3+
- Supported Api ListPackageDesignModelTypes.
4+
- Supported Api PreviewModelForPackageDesign.
5+
- Supported Api RenderImageForPackageDesign.
6+
- Supported Api GetRenderResult.
7+
18
2020-04-14 Version: 1.0.3
29
- Supported CreateSegmentBodyJob.
310

aliyun-java-sdk-ivpd/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-ivpd</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.3</version>
7+
<version>1.0.4</version>
88
<name>aliyun-java-sdk-ivpd</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.ivpd.model.v20190625;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.ivpd.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class GetRenderResultRequest extends RpcAcsRequest<GetRenderResultResponse> {
26+
27+
28+
private String jobId;
29+
public GetRenderResultRequest() {
30+
super("ivpd", "2019-06-25", "GetRenderResult");
31+
setMethod(MethodType.POST);
32+
try {
33+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
34+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
35+
} catch (Exception e) {}
36+
}
37+
38+
public String getJobId() {
39+
return this.jobId;
40+
}
41+
42+
public void setJobId(String jobId) {
43+
this.jobId = jobId;
44+
if(jobId != null){
45+
putBodyParameter("JobId", jobId);
46+
}
47+
}
48+
49+
@Override
50+
public Class<GetRenderResultResponse> getResponseClass() {
51+
return GetRenderResultResponse.class;
52+
}
53+
54+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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.ivpd.model.v20190625;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.ivpd.transform.v20190625.GetRenderResultResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class GetRenderResultResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String code;
30+
31+
private String message;
32+
33+
private Data data;
34+
35+
public String getRequestId() {
36+
return this.requestId;
37+
}
38+
39+
public void setRequestId(String requestId) {
40+
this.requestId = requestId;
41+
}
42+
43+
public String getCode() {
44+
return this.code;
45+
}
46+
47+
public void setCode(String code) {
48+
this.code = code;
49+
}
50+
51+
public String getMessage() {
52+
return this.message;
53+
}
54+
55+
public void setMessage(String message) {
56+
this.message = message;
57+
}
58+
59+
public Data getData() {
60+
return this.data;
61+
}
62+
63+
public void setData(Data data) {
64+
this.data = data;
65+
}
66+
67+
public static class Data {
68+
69+
private Boolean completed;
70+
71+
private Float progress;
72+
73+
private String code;
74+
75+
private String message;
76+
77+
private ResultData resultData;
78+
79+
public Boolean getCompleted() {
80+
return this.completed;
81+
}
82+
83+
public void setCompleted(Boolean completed) {
84+
this.completed = completed;
85+
}
86+
87+
public Float getProgress() {
88+
return this.progress;
89+
}
90+
91+
public void setProgress(Float progress) {
92+
this.progress = progress;
93+
}
94+
95+
public String getCode() {
96+
return this.code;
97+
}
98+
99+
public void setCode(String code) {
100+
this.code = code;
101+
}
102+
103+
public String getMessage() {
104+
return this.message;
105+
}
106+
107+
public void setMessage(String message) {
108+
this.message = message;
109+
}
110+
111+
public ResultData getResultData() {
112+
return this.resultData;
113+
}
114+
115+
public void setResultData(ResultData resultData) {
116+
this.resultData = resultData;
117+
}
118+
119+
public static class ResultData {
120+
121+
private String imageUrl;
122+
123+
public String getImageUrl() {
124+
return this.imageUrl;
125+
}
126+
127+
public void setImageUrl(String imageUrl) {
128+
this.imageUrl = imageUrl;
129+
}
130+
}
131+
}
132+
133+
@Override
134+
public GetRenderResultResponse getInstance(UnmarshallerContext context) {
135+
return GetRenderResultResponseUnmarshaller.unmarshall(this, context);
136+
}
137+
138+
@Override
139+
public boolean checkShowJsonItemName() {
140+
return false;
141+
}
142+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.ivpd.model.v20190625;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.ivpd.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class ListPackageDesignModelTypesRequest extends RpcAcsRequest<ListPackageDesignModelTypesResponse> {
26+
27+
public ListPackageDesignModelTypesRequest() {
28+
super("ivpd", "2019-06-25", "ListPackageDesignModelTypes");
29+
setMethod(MethodType.POST);
30+
try {
31+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
32+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
33+
} catch (Exception e) {}
34+
}
35+
36+
@Override
37+
public Class<ListPackageDesignModelTypesResponse> getResponseClass() {
38+
return ListPackageDesignModelTypesResponse.class;
39+
}
40+
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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.ivpd.model.v20190625;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.ivpd.transform.v20190625.ListPackageDesignModelTypesResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class ListPackageDesignModelTypesResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private String code;
31+
32+
private String message;
33+
34+
private Data data;
35+
36+
public String getRequestId() {
37+
return this.requestId;
38+
}
39+
40+
public void setRequestId(String requestId) {
41+
this.requestId = requestId;
42+
}
43+
44+
public String getCode() {
45+
return this.code;
46+
}
47+
48+
public void setCode(String code) {
49+
this.code = code;
50+
}
51+
52+
public String getMessage() {
53+
return this.message;
54+
}
55+
56+
public void setMessage(String message) {
57+
this.message = message;
58+
}
59+
60+
public Data getData() {
61+
return this.data;
62+
}
63+
64+
public void setData(Data data) {
65+
this.data = data;
66+
}
67+
68+
public static class Data {
69+
70+
private List<ModelType> modelTypeList;
71+
72+
public List<ModelType> getModelTypeList() {
73+
return this.modelTypeList;
74+
}
75+
76+
public void setModelTypeList(List<ModelType> modelTypeList) {
77+
this.modelTypeList = modelTypeList;
78+
}
79+
80+
public static class ModelType {
81+
82+
private String modelType;
83+
84+
private List<Element> elements;
85+
86+
public String getModelType() {
87+
return this.modelType;
88+
}
89+
90+
public void setModelType(String modelType) {
91+
this.modelType = modelType;
92+
}
93+
94+
public List<Element> getElements() {
95+
return this.elements;
96+
}
97+
98+
public void setElements(List<Element> elements) {
99+
this.elements = elements;
100+
}
101+
102+
public static class Element {
103+
104+
private String sideName;
105+
106+
public String getSideName() {
107+
return this.sideName;
108+
}
109+
110+
public void setSideName(String sideName) {
111+
this.sideName = sideName;
112+
}
113+
}
114+
}
115+
}
116+
117+
@Override
118+
public ListPackageDesignModelTypesResponse getInstance(UnmarshallerContext context) {
119+
return ListPackageDesignModelTypesResponseUnmarshaller.unmarshall(this, context);
120+
}
121+
122+
@Override
123+
public boolean checkShowJsonItemName() {
124+
return false;
125+
}
126+
}

0 commit comments

Comments
 (0)