Skip to content

Commit d09631a

Browse files
committed
Generated java-async 2021-04-06 for FC-Open.
1 parent f489181 commit d09631a

File tree

72 files changed

+4
-6982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4
-6982
lines changed

fc-open-20210406/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-02-28 Version: 1.0.4
2+
- Generated java-async 2021-04-06 for FC-Open.
3+
14
2022-02-21 Version: 1.0.3
25
- Generated java-async 2021-04-06 for FC-Open.
36

fc-open-20210406/pom.xml

Lines changed: 1 addition & 1 deletion
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-fc_open20210406</artifactId>
6-
<version>1.0.3</version>
6+
<version>1.0.4</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-fc_open20210406</name>
99
<description>Alibaba Cloud FC-Open (20210406) Async SDK for Java

fc-open-20210406/src/main/java/com/aliyun/sdk/service/fc_open20210406/AsyncClient.java

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

7171
CompletableFuture<GetLayerVersionResponse> getLayerVersion(GetLayerVersionRequest request);
7272

73-
CompletableFuture<GetLayerVersionByArnResponse> getLayerVersionByArn(GetLayerVersionByArnRequest request);
74-
7573
CompletableFuture<GetProvisionConfigResponse> getProvisionConfig(GetProvisionConfigRequest request);
7674

7775
CompletableFuture<GetResourceTagsResponse> getResourceTags(GetResourceTagsRequest request);
@@ -94,8 +92,6 @@ static AsyncClient create() {
9492

9593
CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest request);
9694

97-
CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request);
98-
9995
CompletableFuture<ListLayerVersionsResponse> listLayerVersions(ListLayerVersionsRequest request);
10096

10197
CompletableFuture<ListLayersResponse> listLayers(ListLayersRequest request);
@@ -118,10 +114,6 @@ static AsyncClient create() {
118114

119115
CompletableFuture<ListVpcBindingsResponse> listVpcBindings(ListVpcBindingsRequest request);
120116

121-
CompletableFuture<PermanentDeleteLayerVersionResponse> permanentDeleteLayerVersion(PermanentDeleteLayerVersionRequest request);
122-
123-
CompletableFuture<PublishLayerAsPublicResponse> publishLayerAsPublic(PublishLayerAsPublicRequest request);
124-
125117
CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(PublishServiceVersionRequest request);
126118

127119
CompletableFuture<PutFunctionAsyncInvokeConfigResponse> putFunctionAsyncInvokeConfig(PutFunctionAsyncInvokeConfigRequest request);

fc-open-20210406/src/main/java/com/aliyun/sdk/service/fc_open20210406/DefaultAsyncClient.java

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -425,20 +425,6 @@ public CompletableFuture<GetLayerVersionResponse> getLayerVersion(GetLayerVersio
425425
}
426426
}
427427

428-
@Override
429-
public CompletableFuture<GetLayerVersionByArnResponse> getLayerVersionByArn(GetLayerVersionByArnRequest request) {
430-
try {
431-
this.handler.validateRequestModel(request);
432-
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetLayerVersionByArn").setMethod(HttpMethod.GET).setPathRegex("/2021-04-06/layerarn/{arn}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
433-
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetLayerVersionByArnResponse.create());
434-
return this.handler.execute(params);
435-
} catch (Exception e) {
436-
CompletableFuture<GetLayerVersionByArnResponse> future = new CompletableFuture<>();
437-
future.completeExceptionally(e);
438-
return future;
439-
}
440-
}
441-
442428
@Override
443429
public CompletableFuture<GetProvisionConfigResponse> getProvisionConfig(GetProvisionConfigRequest request) {
444430
try {
@@ -593,20 +579,6 @@ public CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsReque
593579
}
594580
}
595581

596-
@Override
597-
public CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request) {
598-
try {
599-
this.handler.validateRequestModel(request);
600-
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListInstances").setMethod(HttpMethod.GET).setPathRegex("/2021-04-06/services/{serviceName}/functions/{functionName}/instances").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
601-
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListInstancesResponse.create());
602-
return this.handler.execute(params);
603-
} catch (Exception e) {
604-
CompletableFuture<ListInstancesResponse> future = new CompletableFuture<>();
605-
future.completeExceptionally(e);
606-
return future;
607-
}
608-
}
609-
610582
@Override
611583
public CompletableFuture<ListLayerVersionsResponse> listLayerVersions(ListLayerVersionsRequest request) {
612584
try {
@@ -761,34 +733,6 @@ public CompletableFuture<ListVpcBindingsResponse> listVpcBindings(ListVpcBinding
761733
}
762734
}
763735

764-
@Override
765-
public CompletableFuture<PermanentDeleteLayerVersionResponse> permanentDeleteLayerVersion(PermanentDeleteLayerVersionRequest request) {
766-
try {
767-
this.handler.validateRequestModel(request);
768-
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PermanentDeleteLayerVersion").setMethod(HttpMethod.DELETE).setPathRegex("/2021-04-06/adminlayers/{userID}/{layerName}/versions/{version}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
769-
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PermanentDeleteLayerVersionResponse.create());
770-
return this.handler.execute(params);
771-
} catch (Exception e) {
772-
CompletableFuture<PermanentDeleteLayerVersionResponse> future = new CompletableFuture<>();
773-
future.completeExceptionally(e);
774-
return future;
775-
}
776-
}
777-
778-
@Override
779-
public CompletableFuture<PublishLayerAsPublicResponse> publishLayerAsPublic(PublishLayerAsPublicRequest request) {
780-
try {
781-
this.handler.validateRequestModel(request);
782-
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("PublishLayerAsPublic").setMethod(HttpMethod.POST).setPathRegex("/2021-04-06/layers/{layerName}/versions/{version}").setBodyType(BodyType.NONE).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
783-
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(PublishLayerAsPublicResponse.create());
784-
return this.handler.execute(params);
785-
} catch (Exception e) {
786-
CompletableFuture<PublishLayerAsPublicResponse> future = new CompletableFuture<>();
787-
future.completeExceptionally(e);
788-
return future;
789-
}
790-
}
791-
792736
@Override
793737
public CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(PublishServiceVersionRequest request) {
794738
try {

fc-open-20210406/src/main/java/com/aliyun/sdk/service/fc_open20210406/models/CreateAliasRequest.java

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,14 @@ public class CreateAliasRequest extends Request {
1717
@Validation(required = true)
1818
private String serviceName;
1919

20-
@Host
21-
@NameInMap("AccountID")
22-
private String accountID;
23-
2420
@Header
2521
@NameInMap("X-Fc-Account-Id")
2622
private String xFcAccountId;
2723

28-
@Header
29-
@NameInMap("X-Fc-Code-Checksum")
30-
private String xFcCodeChecksum;
31-
3224
@Header
3325
@NameInMap("X-Fc-Date")
3426
private String xFcDate;
3527

36-
@Header
37-
@NameInMap("X-Fc-Invocation-Type")
38-
private String xFcInvocationType;
39-
40-
@Header
41-
@NameInMap("X-Fc-Log-Type")
42-
private String xFcLogType;
43-
4428
@Header
4529
@NameInMap("X-Fc-Trace-Id")
4630
private String xFcTraceId;
@@ -66,12 +50,8 @@ public class CreateAliasRequest extends Request {
6650
private CreateAliasRequest(Builder builder) {
6751
super(builder);
6852
this.serviceName = builder.serviceName;
69-
this.accountID = builder.accountID;
7053
this.xFcAccountId = builder.xFcAccountId;
71-
this.xFcCodeChecksum = builder.xFcCodeChecksum;
7254
this.xFcDate = builder.xFcDate;
73-
this.xFcInvocationType = builder.xFcInvocationType;
74-
this.xFcLogType = builder.xFcLogType;
7555
this.xFcTraceId = builder.xFcTraceId;
7656
this.additionalVersionWeight = builder.additionalVersionWeight;
7757
this.aliasName = builder.aliasName;
@@ -99,48 +79,20 @@ public String getServiceName() {
9979
return this.serviceName;
10080
}
10181

102-
/**
103-
* @return accountID
104-
*/
105-
public String getAccountID() {
106-
return this.accountID;
107-
}
108-
10982
/**
11083
* @return xFcAccountId
11184
*/
11285
public String getXFcAccountId() {
11386
return this.xFcAccountId;
11487
}
11588

116-
/**
117-
* @return xFcCodeChecksum
118-
*/
119-
public String getXFcCodeChecksum() {
120-
return this.xFcCodeChecksum;
121-
}
122-
12389
/**
12490
* @return xFcDate
12591
*/
12692
public String getXFcDate() {
12793
return this.xFcDate;
12894
}
12995

130-
/**
131-
* @return xFcInvocationType
132-
*/
133-
public String getXFcInvocationType() {
134-
return this.xFcInvocationType;
135-
}
136-
137-
/**
138-
* @return xFcLogType
139-
*/
140-
public String getXFcLogType() {
141-
return this.xFcLogType;
142-
}
143-
14496
/**
14597
* @return xFcTraceId
14698
*/
@@ -178,12 +130,8 @@ public String getVersionId() {
178130

179131
public static final class Builder extends Request.Builder<CreateAliasRequest, Builder> {
180132
private String serviceName;
181-
private String accountID;
182133
private String xFcAccountId;
183-
private String xFcCodeChecksum;
184134
private String xFcDate;
185-
private String xFcInvocationType;
186-
private String xFcLogType;
187135
private String xFcTraceId;
188136
private java.util.Map < String, Float > additionalVersionWeight;
189137
private String aliasName;
@@ -197,12 +145,8 @@ private Builder() {
197145
private Builder(CreateAliasRequest response) {
198146
super(response);
199147
this.serviceName = response.serviceName;
200-
this.accountID = response.accountID;
201148
this.xFcAccountId = response.xFcAccountId;
202-
this.xFcCodeChecksum = response.xFcCodeChecksum;
203149
this.xFcDate = response.xFcDate;
204-
this.xFcInvocationType = response.xFcInvocationType;
205-
this.xFcLogType = response.xFcLogType;
206150
this.xFcTraceId = response.xFcTraceId;
207151
this.additionalVersionWeight = response.additionalVersionWeight;
208152
this.aliasName = response.aliasName;
@@ -219,15 +163,6 @@ public Builder serviceName(String serviceName) {
219163
return this;
220164
}
221165

222-
/**
223-
* AccountID.
224-
*/
225-
public Builder accountID(String accountID) {
226-
this.putHostParameter("AccountID", accountID);
227-
this.accountID = accountID;
228-
return this;
229-
}
230-
231166
/**
232167
* X-Fc-Account-Id.
233168
*/
@@ -237,15 +172,6 @@ public Builder xFcAccountId(String xFcAccountId) {
237172
return this;
238173
}
239174

240-
/**
241-
* X-Fc-Code-Checksum.
242-
*/
243-
public Builder xFcCodeChecksum(String xFcCodeChecksum) {
244-
this.putHeaderParameter("X-Fc-Code-Checksum", xFcCodeChecksum);
245-
this.xFcCodeChecksum = xFcCodeChecksum;
246-
return this;
247-
}
248-
249175
/**
250176
* X-Fc-Date.
251177
*/
@@ -255,24 +181,6 @@ public Builder xFcDate(String xFcDate) {
255181
return this;
256182
}
257183

258-
/**
259-
* X-Fc-Invocation-Type.
260-
*/
261-
public Builder xFcInvocationType(String xFcInvocationType) {
262-
this.putHeaderParameter("X-Fc-Invocation-Type", xFcInvocationType);
263-
this.xFcInvocationType = xFcInvocationType;
264-
return this;
265-
}
266-
267-
/**
268-
* X-Fc-Log-Type.
269-
*/
270-
public Builder xFcLogType(String xFcLogType) {
271-
this.putHeaderParameter("X-Fc-Log-Type", xFcLogType);
272-
this.xFcLogType = xFcLogType;
273-
return this;
274-
}
275-
276184
/**
277185
* X-Fc-Trace-Id.
278186
*/

0 commit comments

Comments
 (0)