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

Skip to content

Commit a89b19f

Browse files
committed
IMAGESEARCH SDK Auto Released By hq90172,Version:2.0.0
发布日志: 1, Release AddImage/SearchImage/DeleteImage OpenApi. 2, Add 'SearchByName' feature to SearchImage
1 parent 36279d3 commit a89b19f

16 files changed

+673
-320
lines changed

aliyun-java-sdk-imagesearch/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-04-11 Version: 2.0.0
2+
1, Release AddImage/SearchImage/DeleteImage OpenApi.
3+
2, Add 'SearchByName' feature to SearchImage
4+
15
2019-03-18 Version: 1.0.1
26
1, Update Dependency
37

aliyun-java-sdk-imagesearch/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-imagesearch</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.0.1</version>
6+
<version>2.0.0</version>
77
<name>aliyun-java-sdk-imagesearch</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-imagesearch/src/main/java/com/aliyuncs/imagesearch/model/v20180120/DeleteItemRequest.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

aliyun-java-sdk-imagesearch/src/main/java/com/aliyuncs/imagesearch/model/v20180120/SearchItemRequest.java

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
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.imagesearch.model.v20190325;
16+
17+
import com.aliyuncs.RoaAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class AddImageRequest extends RoaAcsRequest<AddImageResponse> {
25+
26+
public AddImageRequest() {
27+
super("ImageSearch", "2019-03-25", "AddImage", "imagesearch");
28+
setUriPattern("/v2/image/add");
29+
setMethod(MethodType.POST);
30+
}
31+
32+
private String picContent;
33+
34+
private String strAttr;
35+
36+
private String instanceName;
37+
38+
private Integer intAttr;
39+
40+
private String productId;
41+
42+
private String picName;
43+
44+
private String customContent;
45+
46+
private String region;
47+
48+
private Integer categoryId;
49+
50+
private Boolean crop;
51+
52+
public String getPicContent() {
53+
return this.picContent;
54+
}
55+
56+
public void setPicContent(String picContent) {
57+
this.picContent = picContent;
58+
if(picContent != null){
59+
putBodyParameter("PicContent", picContent);
60+
}
61+
}
62+
63+
public String getStrAttr() {
64+
return this.strAttr;
65+
}
66+
67+
public void setStrAttr(String strAttr) {
68+
this.strAttr = strAttr;
69+
if(strAttr != null){
70+
putBodyParameter("StrAttr", strAttr);
71+
}
72+
}
73+
74+
public String getInstanceName() {
75+
return this.instanceName;
76+
}
77+
78+
public void setInstanceName(String instanceName) {
79+
this.instanceName = instanceName;
80+
if(instanceName != null){
81+
putBodyParameter("InstanceName", instanceName);
82+
}
83+
}
84+
85+
public Integer getIntAttr() {
86+
return this.intAttr;
87+
}
88+
89+
public void setIntAttr(Integer intAttr) {
90+
this.intAttr = intAttr;
91+
if(intAttr != null){
92+
putBodyParameter("IntAttr", intAttr.toString());
93+
}
94+
}
95+
96+
public String getProductId() {
97+
return this.productId;
98+
}
99+
100+
public void setProductId(String productId) {
101+
this.productId = productId;
102+
if(productId != null){
103+
putBodyParameter("ProductId", productId);
104+
}
105+
}
106+
107+
public String getPicName() {
108+
return this.picName;
109+
}
110+
111+
public void setPicName(String picName) {
112+
this.picName = picName;
113+
if(picName != null){
114+
putBodyParameter("PicName", picName);
115+
}
116+
}
117+
118+
public String getCustomContent() {
119+
return this.customContent;
120+
}
121+
122+
public void setCustomContent(String customContent) {
123+
this.customContent = customContent;
124+
if(customContent != null){
125+
putBodyParameter("CustomContent", customContent);
126+
}
127+
}
128+
129+
public String getRegion() {
130+
return this.region;
131+
}
132+
133+
public void setRegion(String region) {
134+
this.region = region;
135+
if(region != null){
136+
putBodyParameter("Region", region);
137+
}
138+
}
139+
140+
public Integer getCategoryId() {
141+
return this.categoryId;
142+
}
143+
144+
public void setCategoryId(Integer categoryId) {
145+
this.categoryId = categoryId;
146+
if(categoryId != null){
147+
putBodyParameter("CategoryId", categoryId.toString());
148+
}
149+
}
150+
151+
public Boolean getCrop() {
152+
return this.crop;
153+
}
154+
155+
public void setCrop(Boolean crop) {
156+
this.crop = crop;
157+
if(crop != null){
158+
putBodyParameter("Crop", crop.toString());
159+
}
160+
}
161+
162+
@Override
163+
public Class<AddImageResponse> getResponseClass() {
164+
return AddImageResponse.class;
165+
}
166+
167+
}
Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
* limitations under the License.
1313
*/
1414

15-
package com.aliyuncs.imagesearch.model.v20180120;
15+
package com.aliyuncs.imagesearch.model.v20190325;
1616

1717
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.imagesearch.transform.v20180120.DeleteItemResponseUnmarshaller;
18+
import com.aliyuncs.imagesearch.transform.v20190325.AddImageResponseUnmarshaller;
1919
import com.aliyuncs.transform.UnmarshallerContext;
2020

2121
/**
2222
* @author auto create
2323
* @version
2424
*/
25-
public class DeleteItemResponse extends AcsResponse {
25+
public class AddImageResponse extends AcsResponse {
2626

2727
private String requestId;
2828

@@ -32,6 +32,8 @@ public class DeleteItemResponse extends AcsResponse {
3232

3333
private Integer code;
3434

35+
private PicInfo picInfo;
36+
3537
public String getRequestId() {
3638
return this.requestId;
3739
}
@@ -64,8 +66,44 @@ public void setCode(Integer code) {
6466
this.code = code;
6567
}
6668

69+
public PicInfo getPicInfo() {
70+
return this.picInfo;
71+
}
72+
73+
public void setPicInfo(PicInfo picInfo) {
74+
this.picInfo = picInfo;
75+
}
76+
77+
public static class PicInfo {
78+
79+
private Integer categoryId;
80+
81+
private String region;
82+
83+
public Integer getCategoryId() {
84+
return this.categoryId;
85+
}
86+
87+
public void setCategoryId(Integer categoryId) {
88+
this.categoryId = categoryId;
89+
}
90+
91+
public String getRegion() {
92+
return this.region;
93+
}
94+
95+
public void setRegion(String region) {
96+
this.region = region;
97+
}
98+
}
99+
100+
@Override
101+
public AddImageResponse getInstance(UnmarshallerContext context) {
102+
return AddImageResponseUnmarshaller.unmarshall(this, context);
103+
}
104+
67105
@Override
68-
public DeleteItemResponse getInstance(UnmarshallerContext context) {
69-
return DeleteItemResponseUnmarshaller.unmarshall(this, context);
106+
public boolean checkShowJsonItemName() {
107+
return false;
70108
}
71109
}

0 commit comments

Comments
 (0)