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

Skip to content

Commit f44520a

Browse files
committed
Add LivenessDetect API.
1 parent 6b6dee2 commit f44520a

17 files changed

+1086
-1
lines changed

aliyun-java-sdk-cloudauth/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-11-23 Version: 2.0.21
2+
- Add LivenessDetect API.
3+
14
2020-10-20 Version: 2.0.20
25
- Add LivenessFaceVerify API.
36

aliyun-java-sdk-cloudauth/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-cloudauth</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.0.20</version>
7+
<version>2.0.21</version>
88
<name>aliyun-java-sdk-cloudauth</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.cloudauth.model.v20190307;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.cloudauth.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateFaceConfigRequest extends RpcAcsRequest<CreateFaceConfigResponse> {
26+
27+
28+
private String bizName;
29+
30+
private String bizType;
31+
32+
private String sourceIp;
33+
34+
private String lang;
35+
public CreateFaceConfigRequest() {
36+
super("Cloudauth", "2019-03-07", "CreateFaceConfig", "cloudauth");
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 getBizName() {
45+
return this.bizName;
46+
}
47+
48+
public void setBizName(String bizName) {
49+
this.bizName = bizName;
50+
if(bizName != null){
51+
putQueryParameter("BizName", bizName);
52+
}
53+
}
54+
55+
public String getBizType() {
56+
return this.bizType;
57+
}
58+
59+
public void setBizType(String bizType) {
60+
this.bizType = bizType;
61+
if(bizType != null){
62+
putQueryParameter("BizType", bizType);
63+
}
64+
}
65+
66+
public String getSourceIp() {
67+
return this.sourceIp;
68+
}
69+
70+
public void setSourceIp(String sourceIp) {
71+
this.sourceIp = sourceIp;
72+
if(sourceIp != null){
73+
putQueryParameter("SourceIp", sourceIp);
74+
}
75+
}
76+
77+
public String getLang() {
78+
return this.lang;
79+
}
80+
81+
public void setLang(String lang) {
82+
this.lang = lang;
83+
if(lang != null){
84+
putQueryParameter("Lang", lang);
85+
}
86+
}
87+
88+
@Override
89+
public Class<CreateFaceConfigResponse> getResponseClass() {
90+
return CreateFaceConfigResponse.class;
91+
}
92+
93+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.cloudauth.model.v20190307;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.cloudauth.transform.v20190307.CreateFaceConfigResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateFaceConfigResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public CreateFaceConfigResponse getInstance(UnmarshallerContext context) {
39+
return CreateFaceConfigResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.cloudauth.model.v20190307;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.cloudauth.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeFaceConfigRequest extends RpcAcsRequest<DescribeFaceConfigResponse> {
26+
27+
28+
private String sourceIp;
29+
30+
private String lang;
31+
public DescribeFaceConfigRequest() {
32+
super("Cloudauth", "2019-03-07", "DescribeFaceConfig", "cloudauth");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getSourceIp() {
41+
return this.sourceIp;
42+
}
43+
44+
public void setSourceIp(String sourceIp) {
45+
this.sourceIp = sourceIp;
46+
if(sourceIp != null){
47+
putQueryParameter("SourceIp", sourceIp);
48+
}
49+
}
50+
51+
public String getLang() {
52+
return this.lang;
53+
}
54+
55+
public void setLang(String lang) {
56+
this.lang = lang;
57+
if(lang != null){
58+
putQueryParameter("Lang", lang);
59+
}
60+
}
61+
62+
@Override
63+
public Class<DescribeFaceConfigResponse> getResponseClass() {
64+
return DescribeFaceConfigResponse.class;
65+
}
66+
67+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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.cloudauth.model.v20190307;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.cloudauth.transform.v20190307.DescribeFaceConfigResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DescribeFaceConfigResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private List<ItemsItem> items;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public List<ItemsItem> getItems() {
41+
return this.items;
42+
}
43+
44+
public void setItems(List<ItemsItem> items) {
45+
this.items = items;
46+
}
47+
48+
public static class ItemsItem {
49+
50+
private String bizType;
51+
52+
private String bizName;
53+
54+
private Long gmtUpdated;
55+
56+
public String getBizType() {
57+
return this.bizType;
58+
}
59+
60+
public void setBizType(String bizType) {
61+
this.bizType = bizType;
62+
}
63+
64+
public String getBizName() {
65+
return this.bizName;
66+
}
67+
68+
public void setBizName(String bizName) {
69+
this.bizName = bizName;
70+
}
71+
72+
public Long getGmtUpdated() {
73+
return this.gmtUpdated;
74+
}
75+
76+
public void setGmtUpdated(Long gmtUpdated) {
77+
this.gmtUpdated = gmtUpdated;
78+
}
79+
}
80+
81+
@Override
82+
public DescribeFaceConfigResponse getInstance(UnmarshallerContext context) {
83+
return DescribeFaceConfigResponseUnmarshaller.unmarshall(this, context);
84+
}
85+
86+
@Override
87+
public boolean checkShowJsonItemName() {
88+
return false;
89+
}
90+
}

0 commit comments

Comments
 (0)