Skip to content

Commit 491c4f8

Browse files
committed
Support API CreateAppCode.
1 parent 58e3783 commit 491c4f8

15 files changed

+635
-3
lines changed

cloudapi-20160714/ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2024-05-16 Version: 3.7.0
2+
- Support API CreateAppCode.
3+
- Support API CreateAppKey.
4+
- Support API DeleteAppCode.
5+
- Support API DeleteAppKey.
6+
7+
18
2024-05-11 Version: 3.6.1
29
- Update API DescribeVpcAccesses: add param AccurateQuery.
310

cloudapi-20160714/pom.xml

Lines changed: 3 additions & 3 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>cloudapi20160714</artifactId>
6-
<version>3.6.1</version>
6+
<version>3.7.0</version>
77
<packaging>jar</packaging>
88
<name>cloudapi20160714</name>
99
<description>Alibaba Cloud CloudAPI (20160714) SDK for Java
@@ -41,12 +41,12 @@
4141
<dependency>
4242
<groupId>com.aliyun</groupId>
4343
<artifactId>tea-util</artifactId>
44-
<version>0.2.21</version>
44+
<version>0.2.22</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>com.aliyun</groupId>
4848
<artifactId>tea-openapi</artifactId>
49-
<version>0.3.2</version>
49+
<version>0.3.3</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.aliyun</groupId>

cloudapi-20160714/src/main/java/com/aliyun/cloudapi20160714/Client.java

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,102 @@ public CreateAppResponse createApp(CreateAppRequest request) throws Exception {
978978
return this.createAppWithOptions(request, runtime);
979979
}
980980

981+
/**
982+
* @summary 创建新的AppCode
983+
*
984+
* @param request CreateAppCodeRequest
985+
* @param runtime runtime options for this request RuntimeOptions
986+
* @return CreateAppCodeResponse
987+
*/
988+
public CreateAppCodeResponse createAppCodeWithOptions(CreateAppCodeRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
989+
com.aliyun.teautil.Common.validateModel(request);
990+
java.util.Map<String, Object> query = new java.util.HashMap<>();
991+
if (!com.aliyun.teautil.Common.isUnset(request.appCode)) {
992+
query.put("AppCode", request.appCode);
993+
}
994+
995+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
996+
query.put("AppId", request.appId);
997+
}
998+
999+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
1000+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
1001+
));
1002+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
1003+
new TeaPair("action", "CreateAppCode"),
1004+
new TeaPair("version", "2016-07-14"),
1005+
new TeaPair("protocol", "HTTPS"),
1006+
new TeaPair("pathname", "/"),
1007+
new TeaPair("method", "POST"),
1008+
new TeaPair("authType", "AK"),
1009+
new TeaPair("style", "RPC"),
1010+
new TeaPair("reqBodyType", "formData"),
1011+
new TeaPair("bodyType", "json")
1012+
));
1013+
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateAppCodeResponse());
1014+
}
1015+
1016+
/**
1017+
* @summary 创建新的AppCode
1018+
*
1019+
* @param request CreateAppCodeRequest
1020+
* @return CreateAppCodeResponse
1021+
*/
1022+
public CreateAppCodeResponse createAppCode(CreateAppCodeRequest request) throws Exception {
1023+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
1024+
return this.createAppCodeWithOptions(request, runtime);
1025+
}
1026+
1027+
/**
1028+
* @summary 创建新的AK、SK
1029+
*
1030+
* @param request CreateAppKeyRequest
1031+
* @param runtime runtime options for this request RuntimeOptions
1032+
* @return CreateAppKeyResponse
1033+
*/
1034+
public CreateAppKeyResponse createAppKeyWithOptions(CreateAppKeyRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
1035+
com.aliyun.teautil.Common.validateModel(request);
1036+
java.util.Map<String, Object> query = new java.util.HashMap<>();
1037+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
1038+
query.put("AppId", request.appId);
1039+
}
1040+
1041+
if (!com.aliyun.teautil.Common.isUnset(request.appKey)) {
1042+
query.put("AppKey", request.appKey);
1043+
}
1044+
1045+
if (!com.aliyun.teautil.Common.isUnset(request.appSecret)) {
1046+
query.put("AppSecret", request.appSecret);
1047+
}
1048+
1049+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
1050+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
1051+
));
1052+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
1053+
new TeaPair("action", "CreateAppKey"),
1054+
new TeaPair("version", "2016-07-14"),
1055+
new TeaPair("protocol", "HTTPS"),
1056+
new TeaPair("pathname", "/"),
1057+
new TeaPair("method", "POST"),
1058+
new TeaPair("authType", "AK"),
1059+
new TeaPair("style", "RPC"),
1060+
new TeaPair("reqBodyType", "formData"),
1061+
new TeaPair("bodyType", "json")
1062+
));
1063+
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateAppKeyResponse());
1064+
}
1065+
1066+
/**
1067+
* @summary 创建新的AK、SK
1068+
*
1069+
* @param request CreateAppKeyRequest
1070+
* @return CreateAppKeyResponse
1071+
*/
1072+
public CreateAppKeyResponse createAppKey(CreateAppKeyRequest request) throws Exception {
1073+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
1074+
return this.createAppKeyWithOptions(request, runtime);
1075+
}
1076+
9811077
/**
9821078
* @summary 创建后端服务
9831079
*
@@ -2178,6 +2274,98 @@ public DeleteAppResponse deleteApp(DeleteAppRequest request) throws Exception {
21782274
return this.deleteAppWithOptions(request, runtime);
21792275
}
21802276

2277+
/**
2278+
* @summary 删除新的AppCode
2279+
*
2280+
* @param request DeleteAppCodeRequest
2281+
* @param runtime runtime options for this request RuntimeOptions
2282+
* @return DeleteAppCodeResponse
2283+
*/
2284+
public DeleteAppCodeResponse deleteAppCodeWithOptions(DeleteAppCodeRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
2285+
com.aliyun.teautil.Common.validateModel(request);
2286+
java.util.Map<String, Object> query = new java.util.HashMap<>();
2287+
if (!com.aliyun.teautil.Common.isUnset(request.appCode)) {
2288+
query.put("AppCode", request.appCode);
2289+
}
2290+
2291+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
2292+
query.put("AppId", request.appId);
2293+
}
2294+
2295+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
2296+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
2297+
));
2298+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
2299+
new TeaPair("action", "DeleteAppCode"),
2300+
new TeaPair("version", "2016-07-14"),
2301+
new TeaPair("protocol", "HTTPS"),
2302+
new TeaPair("pathname", "/"),
2303+
new TeaPair("method", "POST"),
2304+
new TeaPair("authType", "AK"),
2305+
new TeaPair("style", "RPC"),
2306+
new TeaPair("reqBodyType", "formData"),
2307+
new TeaPair("bodyType", "json")
2308+
));
2309+
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteAppCodeResponse());
2310+
}
2311+
2312+
/**
2313+
* @summary 删除新的AppCode
2314+
*
2315+
* @param request DeleteAppCodeRequest
2316+
* @return DeleteAppCodeResponse
2317+
*/
2318+
public DeleteAppCodeResponse deleteAppCode(DeleteAppCodeRequest request) throws Exception {
2319+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
2320+
return this.deleteAppCodeWithOptions(request, runtime);
2321+
}
2322+
2323+
/**
2324+
* @summary 删除新的AppKey
2325+
*
2326+
* @param request DeleteAppKeyRequest
2327+
* @param runtime runtime options for this request RuntimeOptions
2328+
* @return DeleteAppKeyResponse
2329+
*/
2330+
public DeleteAppKeyResponse deleteAppKeyWithOptions(DeleteAppKeyRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
2331+
com.aliyun.teautil.Common.validateModel(request);
2332+
java.util.Map<String, Object> query = new java.util.HashMap<>();
2333+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
2334+
query.put("AppId", request.appId);
2335+
}
2336+
2337+
if (!com.aliyun.teautil.Common.isUnset(request.appKey)) {
2338+
query.put("AppKey", request.appKey);
2339+
}
2340+
2341+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
2342+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
2343+
));
2344+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
2345+
new TeaPair("action", "DeleteAppKey"),
2346+
new TeaPair("version", "2016-07-14"),
2347+
new TeaPair("protocol", "HTTPS"),
2348+
new TeaPair("pathname", "/"),
2349+
new TeaPair("method", "POST"),
2350+
new TeaPair("authType", "AK"),
2351+
new TeaPair("style", "RPC"),
2352+
new TeaPair("reqBodyType", "formData"),
2353+
new TeaPair("bodyType", "json")
2354+
));
2355+
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteAppKeyResponse());
2356+
}
2357+
2358+
/**
2359+
* @summary 删除新的AppKey
2360+
*
2361+
* @param request DeleteAppKeyRequest
2362+
* @return DeleteAppKeyResponse
2363+
*/
2364+
public DeleteAppKeyResponse deleteAppKey(DeleteAppKeyRequest request) throws Exception {
2365+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
2366+
return this.deleteAppKeyWithOptions(request, runtime);
2367+
}
2368+
21812369
/**
21822370
* @summary Deletes a backend service.
21832371
*
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cloudapi20160714.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateAppCodeRequest extends TeaModel {
7+
@NameInMap("AppCode")
8+
public String appCode;
9+
10+
/**
11+
* <p>This parameter is required.</p>
12+
*/
13+
@NameInMap("AppId")
14+
public String appId;
15+
16+
public static CreateAppCodeRequest build(java.util.Map<String, ?> map) throws Exception {
17+
CreateAppCodeRequest self = new CreateAppCodeRequest();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public CreateAppCodeRequest setAppCode(String appCode) {
22+
this.appCode = appCode;
23+
return this;
24+
}
25+
public String getAppCode() {
26+
return this.appCode;
27+
}
28+
29+
public CreateAppCodeRequest setAppId(String appId) {
30+
this.appId = appId;
31+
return this;
32+
}
33+
public String getAppId() {
34+
return this.appId;
35+
}
36+
37+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cloudapi20160714.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateAppCodeResponse extends TeaModel {
7+
@NameInMap("headers")
8+
public java.util.Map<String, String> headers;
9+
10+
@NameInMap("statusCode")
11+
public Integer statusCode;
12+
13+
@NameInMap("body")
14+
public CreateAppCodeResponseBody body;
15+
16+
public static CreateAppCodeResponse build(java.util.Map<String, ?> map) throws Exception {
17+
CreateAppCodeResponse self = new CreateAppCodeResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public CreateAppCodeResponse setHeaders(java.util.Map<String, String> headers) {
22+
this.headers = headers;
23+
return this;
24+
}
25+
public java.util.Map<String, String> getHeaders() {
26+
return this.headers;
27+
}
28+
29+
public CreateAppCodeResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public CreateAppCodeResponse setBody(CreateAppCodeResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public CreateAppCodeResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cloudapi20160714.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateAppCodeResponseBody extends TeaModel {
7+
@NameInMap("RequestId")
8+
public String requestId;
9+
10+
public static CreateAppCodeResponseBody build(java.util.Map<String, ?> map) throws Exception {
11+
CreateAppCodeResponseBody self = new CreateAppCodeResponseBody();
12+
return TeaModel.build(map, self);
13+
}
14+
15+
public CreateAppCodeResponseBody setRequestId(String requestId) {
16+
this.requestId = requestId;
17+
return this;
18+
}
19+
public String getRequestId() {
20+
return this.requestId;
21+
}
22+
23+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cloudapi20160714.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateAppKeyRequest extends TeaModel {
7+
/**
8+
* <p>This parameter is required.</p>
9+
*/
10+
@NameInMap("AppId")
11+
public String appId;
12+
13+
@NameInMap("AppKey")
14+
public String appKey;
15+
16+
@NameInMap("AppSecret")
17+
public String appSecret;
18+
19+
public static CreateAppKeyRequest build(java.util.Map<String, ?> map) throws Exception {
20+
CreateAppKeyRequest self = new CreateAppKeyRequest();
21+
return TeaModel.build(map, self);
22+
}
23+
24+
public CreateAppKeyRequest setAppId(String appId) {
25+
this.appId = appId;
26+
return this;
27+
}
28+
public String getAppId() {
29+
return this.appId;
30+
}
31+
32+
public CreateAppKeyRequest setAppKey(String appKey) {
33+
this.appKey = appKey;
34+
return this;
35+
}
36+
public String getAppKey() {
37+
return this.appKey;
38+
}
39+
40+
public CreateAppKeyRequest setAppSecret(String appSecret) {
41+
this.appSecret = appSecret;
42+
return this;
43+
}
44+
public String getAppSecret() {
45+
return this.appSecret;
46+
}
47+
48+
}

0 commit comments

Comments
 (0)