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

Skip to content

Commit 78be241

Browse files
committed
update green sdk
1 parent 9d7f76f commit 78be241

19 files changed

+683
-2
lines changed

aliyun-java-sdk-green/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-green</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<name>aliyun-java-sdk-green</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
@@ -18,7 +18,7 @@ http://www.aliyun.com</description>
1818
<dependency>
1919
<groupId>com.aliyun</groupId>
2020
<artifactId>aliyun-java-sdk-core</artifactId>
21-
<version>2.2.6</version>
21+
<version>2.3.2</version>
2222
</dependency>
2323
</dependencies>
2424
<licenses>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.green.model.v20160118;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class ImageDetectionRequest extends RoaAcsRequest<ImageDetectionResponse> {
29+
30+
public ImageDetectionRequest() {
31+
super("Green", "2016-01-18", "ImageDetection");
32+
setUriPattern("/image/detection");
33+
setMethod(MethodType.POST);
34+
}
35+
36+
@Override
37+
public Class<ImageDetectionResponse> getResponseClass() {
38+
return ImageDetectionResponse.class;
39+
}
40+
41+
}
Lines changed: 35 additions & 0 deletions
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.green.model.v20160118;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.green.transform.v20160118.ImageDetectionResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ImageDetectionResponse extends AcsResponse {
30+
31+
@Override
32+
public ImageDetectionResponse getInstance(UnmarshallerContext context) {
33+
return ImageDetectionResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.green.model.v20160118;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class ImageFeedbackRequest extends RoaAcsRequest<ImageFeedbackResponse> {
29+
30+
public ImageFeedbackRequest() {
31+
super("Green", "2016-01-18", "ImageFeedback");
32+
setUriPattern("/image/feedback/[taskid]");
33+
setMethod(MethodType.POST);
34+
}
35+
36+
private String taskid;
37+
38+
public String gettaskid() {
39+
return this.taskid;
40+
}
41+
42+
public void settaskid(String taskid) {
43+
this.taskid = taskid;
44+
putPathParameter("taskid", taskid);
45+
}
46+
47+
@Override
48+
public Class<ImageFeedbackResponse> getResponseClass() {
49+
return ImageFeedbackResponse.class;
50+
}
51+
52+
}
Lines changed: 35 additions & 0 deletions
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.green.model.v20160118;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.green.transform.v20160118.ImageFeedbackResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ImageFeedbackResponse extends AcsResponse {
30+
31+
@Override
32+
public ImageFeedbackResponse getInstance(UnmarshallerContext context) {
33+
return ImageFeedbackResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.green.model.v20160118;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class ImageResultRequest extends RoaAcsRequest<ImageResultResponse> {
29+
30+
public ImageResultRequest() {
31+
super("Green", "2016-01-18", "ImageResult");
32+
setUriPattern("/image/result/[taskid]");
33+
setMethod(MethodType.GET);
34+
}
35+
36+
private String taskid;
37+
38+
public String gettaskid() {
39+
return this.taskid;
40+
}
41+
42+
public void settaskid(String taskid) {
43+
this.taskid = taskid;
44+
putPathParameter("taskid", taskid);
45+
}
46+
47+
@Override
48+
public Class<ImageResultResponse> getResponseClass() {
49+
return ImageResultResponse.class;
50+
}
51+
52+
}
Lines changed: 35 additions & 0 deletions
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.green.model.v20160118;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.green.transform.v20160118.ImageResultResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class ImageResultResponse extends AcsResponse {
30+
31+
@Override
32+
public ImageResultResponse getInstance(UnmarshallerContext context) {
33+
return ImageResultResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.green.model.v20160118;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class SiteSuspectUrlsRequest extends RoaAcsRequest<SiteSuspectUrlsResponse> {
29+
30+
public SiteSuspectUrlsRequest() {
31+
super("Green", "2016-01-18", "SiteSuspectUrls");
32+
setUriPattern("/site/suspectUrls");
33+
setMethod(MethodType.GET);
34+
}
35+
36+
private Long startTime;
37+
38+
public Long getstartTime() {
39+
return this.startTime;
40+
}
41+
42+
public void setstartTime(Long startTime) {
43+
this.startTime = startTime;
44+
putQueryParameter("startTime", startTime);
45+
}
46+
47+
@Override
48+
public Class<SiteSuspectUrlsResponse> getResponseClass() {
49+
return SiteSuspectUrlsResponse.class;
50+
}
51+
52+
}
Lines changed: 35 additions & 0 deletions
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.green.model.v20160118;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.green.transform.v20160118.SiteSuspectUrlsResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class SiteSuspectUrlsResponse extends AcsResponse {
30+
31+
@Override
32+
public SiteSuspectUrlsResponse getInstance(UnmarshallerContext context) {
33+
return SiteSuspectUrlsResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}

0 commit comments

Comments
 (0)