Skip to content

Commit 9bac830

Browse files
committed
test
1 parent e6ba0f2 commit 9bac830

File tree

7 files changed

+421
-2
lines changed

7 files changed

+421
-2
lines changed

avatar-20220130/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-04-04 Version: 1.0.2
2+
- test
3+
14
2023-03-08 Version: 1.0.1
25
- offline Add word subtitle
36

avatar-20220130/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-avatar20220130</artifactId>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-avatar20220130</name>
99
<description>Alibaba Cloud avatar (20220130) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>0.1.9-beta</service.version>
44+
<service.version>0.1.13-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

avatar-20220130/src/main/java/com/aliyun/sdk/service/avatar20220130/AsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ static AsyncClient create() {
2626

2727
CompletableFuture<GetVideoTaskInfoResponse> getVideoTaskInfo(GetVideoTaskInfoRequest request);
2828

29+
CompletableFuture<LicenseAuthResponse> licenseAuth(LicenseAuthRequest request);
30+
2931
CompletableFuture<QueryRunningInstanceResponse> queryRunningInstance(QueryRunningInstanceRequest request);
3032

3133
CompletableFuture<QueryTimedResetOperateStatusResponse> queryTimedResetOperateStatus(QueryTimedResetOperateStatusRequest request);

avatar-20220130/src/main/java/com/aliyun/sdk/service/avatar20220130/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,20 @@ public CompletableFuture<GetVideoTaskInfoResponse> getVideoTaskInfo(GetVideoTask
9595
}
9696
}
9797

98+
@Override
99+
public CompletableFuture<LicenseAuthResponse> licenseAuth(LicenseAuthRequest request) {
100+
try {
101+
this.handler.validateRequestModel(request);
102+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("LicenseAuth").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
103+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(LicenseAuthResponse.create());
104+
return this.handler.execute(params);
105+
} catch (Exception e) {
106+
CompletableFuture<LicenseAuthResponse> future = new CompletableFuture<>();
107+
future.completeExceptionally(e);
108+
return future;
109+
}
110+
}
111+
98112
@Override
99113
public CompletableFuture<QueryRunningInstanceResponse> queryRunningInstance(QueryRunningInstanceRequest request) {
100114
try {
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.avatar20220130.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link LicenseAuthRequest} extends {@link RequestModel}
11+
*
12+
* <p>LicenseAuthRequest</p>
13+
*/
14+
public class LicenseAuthRequest extends Request {
15+
@Query
16+
@NameInMap("AppId")
17+
@Validation(required = true)
18+
private String appId;
19+
20+
@Query
21+
@NameInMap("License")
22+
@Validation(required = true)
23+
private String license;
24+
25+
@Query
26+
@NameInMap("TenantId")
27+
@Validation(required = true)
28+
private Long tenantId;
29+
30+
private LicenseAuthRequest(Builder builder) {
31+
super(builder);
32+
this.appId = builder.appId;
33+
this.license = builder.license;
34+
this.tenantId = builder.tenantId;
35+
}
36+
37+
public static Builder builder() {
38+
return new Builder();
39+
}
40+
41+
public static LicenseAuthRequest create() {
42+
return builder().build();
43+
}
44+
45+
@Override
46+
public Builder toBuilder() {
47+
return new Builder(this);
48+
}
49+
50+
/**
51+
* @return appId
52+
*/
53+
public String getAppId() {
54+
return this.appId;
55+
}
56+
57+
/**
58+
* @return license
59+
*/
60+
public String getLicense() {
61+
return this.license;
62+
}
63+
64+
/**
65+
* @return tenantId
66+
*/
67+
public Long getTenantId() {
68+
return this.tenantId;
69+
}
70+
71+
public static final class Builder extends Request.Builder<LicenseAuthRequest, Builder> {
72+
private String appId;
73+
private String license;
74+
private Long tenantId;
75+
76+
private Builder() {
77+
super();
78+
}
79+
80+
private Builder(LicenseAuthRequest request) {
81+
super(request);
82+
this.appId = request.appId;
83+
this.license = request.license;
84+
this.tenantId = request.tenantId;
85+
}
86+
87+
/**
88+
* AppId.
89+
*/
90+
public Builder appId(String appId) {
91+
this.putQueryParameter("AppId", appId);
92+
this.appId = appId;
93+
return this;
94+
}
95+
96+
/**
97+
* License.
98+
*/
99+
public Builder license(String license) {
100+
this.putQueryParameter("License", license);
101+
this.license = license;
102+
return this;
103+
}
104+
105+
/**
106+
* TenantId.
107+
*/
108+
public Builder tenantId(Long tenantId) {
109+
this.putQueryParameter("TenantId", tenantId);
110+
this.tenantId = tenantId;
111+
return this;
112+
}
113+
114+
@Override
115+
public LicenseAuthRequest build() {
116+
return new LicenseAuthRequest(this);
117+
}
118+
119+
}
120+
121+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.avatar20220130.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link LicenseAuthResponse} extends {@link TeaModel}
11+
*
12+
* <p>LicenseAuthResponse</p>
13+
*/
14+
public class LicenseAuthResponse extends Response {
15+
@NameInMap("headers")
16+
@Validation(required = true)
17+
private java.util.Map < String, String > headers;
18+
19+
@NameInMap("body")
20+
@Validation(required = true)
21+
private LicenseAuthResponseBody body;
22+
23+
private LicenseAuthResponse(BuilderImpl builder) {
24+
super(builder);
25+
this.headers = builder.headers;
26+
this.body = builder.body;
27+
}
28+
29+
public static LicenseAuthResponse create() {
30+
return new BuilderImpl().build();
31+
}
32+
33+
@Override
34+
public Builder toBuilder() {
35+
return new BuilderImpl(this);
36+
}
37+
38+
/**
39+
* @return headers
40+
*/
41+
public java.util.Map < String, String > getHeaders() {
42+
return this.headers;
43+
}
44+
45+
/**
46+
* @return body
47+
*/
48+
public LicenseAuthResponseBody getBody() {
49+
return this.body;
50+
}
51+
52+
public interface Builder extends Response.Builder<LicenseAuthResponse, Builder> {
53+
54+
Builder headers(java.util.Map < String, String > headers);
55+
56+
Builder body(LicenseAuthResponseBody body);
57+
58+
@Override
59+
LicenseAuthResponse build();
60+
61+
}
62+
63+
private static final class BuilderImpl
64+
extends Response.BuilderImpl<LicenseAuthResponse, Builder>
65+
implements Builder {
66+
private java.util.Map < String, String > headers;
67+
private LicenseAuthResponseBody body;
68+
69+
private BuilderImpl() {
70+
super();
71+
}
72+
73+
private BuilderImpl(LicenseAuthResponse response) {
74+
super(response);
75+
this.headers = response.headers;
76+
this.body = response.body;
77+
}
78+
79+
/**
80+
* headers.
81+
*/
82+
@Override
83+
public Builder headers(java.util.Map < String, String > headers) {
84+
this.headers = headers;
85+
return this;
86+
}
87+
88+
/**
89+
* body.
90+
*/
91+
@Override
92+
public Builder body(LicenseAuthResponseBody body) {
93+
this.body = body;
94+
return this;
95+
}
96+
97+
@Override
98+
public LicenseAuthResponse build() {
99+
return new LicenseAuthResponse(this);
100+
}
101+
102+
}
103+
104+
}

0 commit comments

Comments
 (0)