Skip to content

Commit 53ccfc3

Browse files
committed
Update fc pop sdk.
1 parent aa955cc commit 53ccfc3

File tree

73 files changed

+1233
-643
lines changed

Some content is hidden

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

73 files changed

+1233
-643
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-04-01 Version: 1.0.5
2+
- Update fc pop sdk.
3+
14
2022-02-28 Version: 1.0.4
25
- Generated java-async 2021-04-06 for FC-Open.
36

fc-open-20210406/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

fc-open-20210406/pom.xml

Lines changed: 12 additions & 5 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-fc_open20210406</artifactId>
6-
<version>1.0.4</version>
6+
<version>1.0.5</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-fc_open20210406</name>
99
<description>Alibaba Cloud FC-Open (20210406) Async SDK for Java
@@ -45,13 +45,20 @@
4545
</properties>
4646
<dependencies>
4747
<dependency>
48-
<groupId>com.aliyun</groupId>
49-
<artifactId>aliyun-gateway-pop</artifactId>
50-
<version>${service.version}</version>
48+
<groupId>com.github.tomakehurst</groupId>
49+
<artifactId>wiremock-standalone</artifactId>
50+
<version>2.24.1</version>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>4.13.1</version>
57+
<scope>test</scope>
5158
</dependency>
5259
<dependency>
5360
<groupId>com.aliyun</groupId>
54-
<artifactId>darabonba-java-core</artifactId>
61+
<artifactId>aliyun-gateway-pop</artifactId>
5562
<version>${service.version}</version>
5663
</dependency>
5764
</dependencies>

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

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

107107
CompletableFuture<ListServicesResponse> listServices(ListServicesRequest request);
108108

109+
CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listStatefulAsyncInvocationFunctions(ListStatefulAsyncInvocationFunctionsRequest request);
110+
109111
CompletableFuture<ListStatefulAsyncInvocationsResponse> listStatefulAsyncInvocations(ListStatefulAsyncInvocationsRequest request);
110112

111113
CompletableFuture<ListTaggedResourcesResponse> listTaggedResources(ListTaggedResourcesRequest request);

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,20 @@ public CompletableFuture<ListServicesResponse> listServices(ListServicesRequest
677677
}
678678
}
679679

680+
@Override
681+
public CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listStatefulAsyncInvocationFunctions(ListStatefulAsyncInvocationFunctionsRequest request) {
682+
try {
683+
this.handler.validateRequestModel(request);
684+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListStatefulAsyncInvocationFunctions").setMethod(HttpMethod.GET).setPathRegex("/2021-04-06/stateful-async-invocation-functions").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
685+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListStatefulAsyncInvocationFunctionsResponse.create());
686+
return this.handler.execute(params);
687+
} catch (Exception e) {
688+
CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> future = new CompletableFuture<>();
689+
future.completeExceptionally(e);
690+
return future;
691+
}
692+
}
693+
680694
@Override
681695
public CompletableFuture<ListStatefulAsyncInvocationsResponse> listStatefulAsyncInvocations(ListStatefulAsyncInvocationsRequest request) {
682696
try {
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.fc_open20210406.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 AsyncConfigMeta} extends {@link TeaModel}
11+
*
12+
* <p>AsyncConfigMeta</p>
13+
*/
14+
public class AsyncConfigMeta extends TeaModel {
15+
@NameInMap("functionName")
16+
private String functionName;
17+
18+
@NameInMap("qualifier")
19+
private String qualifier;
20+
21+
@NameInMap("serviceName")
22+
private String serviceName;
23+
24+
private AsyncConfigMeta(Builder builder) {
25+
this.functionName = builder.functionName;
26+
this.qualifier = builder.qualifier;
27+
this.serviceName = builder.serviceName;
28+
}
29+
30+
public static Builder builder() {
31+
return new Builder();
32+
}
33+
34+
public static AsyncConfigMeta create() {
35+
return builder().build();
36+
}
37+
38+
/**
39+
* @return functionName
40+
*/
41+
public String getFunctionName() {
42+
return this.functionName;
43+
}
44+
45+
/**
46+
* @return qualifier
47+
*/
48+
public String getQualifier() {
49+
return this.qualifier;
50+
}
51+
52+
/**
53+
* @return serviceName
54+
*/
55+
public String getServiceName() {
56+
return this.serviceName;
57+
}
58+
59+
public static final class Builder {
60+
private String functionName;
61+
private String qualifier;
62+
private String serviceName;
63+
64+
/**
65+
* 异步配置所属函数名称。
66+
*/
67+
public Builder functionName(String functionName) {
68+
this.functionName = functionName;
69+
return this;
70+
}
71+
72+
/**
73+
* 异步配置所属服务版本/别名。
74+
*/
75+
public Builder qualifier(String qualifier) {
76+
this.qualifier = qualifier;
77+
return this;
78+
}
79+
80+
/**
81+
* 异步配置所属服务名称。
82+
*/
83+
public Builder serviceName(String serviceName) {
84+
this.serviceName = serviceName;
85+
return this;
86+
}
87+
88+
public AsyncConfigMeta build() {
89+
return new AsyncConfigMeta(this);
90+
}
91+
92+
}
93+
94+
}

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
* <p>Code</p>
1313
*/
1414
public class Code extends TeaModel {
15-
@NameInMap("codeCheckSum")
16-
private String codeCheckSum;
17-
18-
@NameInMap("err")
19-
private String err;
20-
2115
@NameInMap("ossBucketName")
2216
private String ossBucketName;
2317

@@ -28,8 +22,6 @@ public class Code extends TeaModel {
2822
private String zipFile;
2923

3024
private Code(Builder builder) {
31-
this.codeCheckSum = builder.codeCheckSum;
32-
this.err = builder.err;
3325
this.ossBucketName = builder.ossBucketName;
3426
this.ossObjectName = builder.ossObjectName;
3527
this.zipFile = builder.zipFile;
@@ -43,20 +35,6 @@ public static Code create() {
4335
return builder().build();
4436
}
4537

46-
/**
47-
* @return codeCheckSum
48-
*/
49-
public String getCodeCheckSum() {
50-
return this.codeCheckSum;
51-
}
52-
53-
/**
54-
* @return err
55-
*/
56-
public String getErr() {
57-
return this.err;
58-
}
59-
6038
/**
6139
* @return ossBucketName
6240
*/
@@ -79,28 +57,10 @@ public String getZipFile() {
7957
}
8058

8159
public static final class Builder {
82-
private String codeCheckSum;
83-
private String err;
8460
private String ossBucketName;
8561
private String ossObjectName;
8662
private String zipFile;
8763

88-
/**
89-
* codeCheckSum
90-
*/
91-
public Builder codeCheckSum(String codeCheckSum) {
92-
this.codeCheckSum = codeCheckSum;
93-
return this;
94-
}
95-
96-
/**
97-
* error
98-
*/
99-
public Builder err(String err) {
100-
this.err = err;
101-
return this;
102-
}
103-
10464
/**
10565
* 函数代码包的OSS bucket name
10666
*/

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,16 @@ private Builder() {
142142
super();
143143
}
144144

145-
private Builder(CreateAliasRequest response) {
146-
super(response);
147-
this.serviceName = response.serviceName;
148-
this.xFcAccountId = response.xFcAccountId;
149-
this.xFcDate = response.xFcDate;
150-
this.xFcTraceId = response.xFcTraceId;
151-
this.additionalVersionWeight = response.additionalVersionWeight;
152-
this.aliasName = response.aliasName;
153-
this.description = response.description;
154-
this.versionId = response.versionId;
145+
private Builder(CreateAliasRequest request) {
146+
super(request);
147+
this.serviceName = request.serviceName;
148+
this.xFcAccountId = request.xFcAccountId;
149+
this.xFcDate = request.xFcDate;
150+
this.xFcTraceId = request.xFcTraceId;
151+
this.additionalVersionWeight = request.additionalVersionWeight;
152+
this.aliasName = request.aliasName;
153+
this.description = request.description;
154+
this.versionId = request.versionId;
155155
}
156156

157157
/**

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ private Builder() {
126126
super();
127127
}
128128

129-
private Builder(CreateCustomDomainRequest response) {
130-
super(response);
131-
this.xFcAccountId = response.xFcAccountId;
132-
this.xFcDate = response.xFcDate;
133-
this.xFcTraceId = response.xFcTraceId;
134-
this.certConfig = response.certConfig;
135-
this.domainName = response.domainName;
136-
this.protocol = response.protocol;
137-
this.routeConfig = response.routeConfig;
129+
private Builder(CreateCustomDomainRequest request) {
130+
super(request);
131+
this.xFcAccountId = request.xFcAccountId;
132+
this.xFcDate = request.xFcDate;
133+
this.xFcTraceId = request.xFcTraceId;
134+
this.certConfig = request.certConfig;
135+
this.domainName = request.domainName;
136+
this.protocol = request.protocol;
137+
this.routeConfig = request.routeConfig;
138138
}
139139

140140
/**

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -336,31 +336,31 @@ private Builder() {
336336
super();
337337
}
338338

339-
private Builder(CreateFunctionRequest response) {
340-
super(response);
341-
this.serviceName = response.serviceName;
342-
this.xFcAccountId = response.xFcAccountId;
343-
this.xFcCodeChecksum = response.xFcCodeChecksum;
344-
this.xFcDate = response.xFcDate;
345-
this.xFcTraceId = response.xFcTraceId;
346-
this.caPort = response.caPort;
347-
this.code = response.code;
348-
this.customContainerConfig = response.customContainerConfig;
349-
this.customDNS = response.customDNS;
350-
this.customRuntimeConfig = response.customRuntimeConfig;
351-
this.description = response.description;
352-
this.environmentVariables = response.environmentVariables;
353-
this.functionName = response.functionName;
354-
this.handler = response.handler;
355-
this.initializationTimeout = response.initializationTimeout;
356-
this.initializer = response.initializer;
357-
this.instanceConcurrency = response.instanceConcurrency;
358-
this.instanceLifecycleConfig = response.instanceLifecycleConfig;
359-
this.instanceType = response.instanceType;
360-
this.layers = response.layers;
361-
this.memorySize = response.memorySize;
362-
this.runtime = response.runtime;
363-
this.timeout = response.timeout;
339+
private Builder(CreateFunctionRequest request) {
340+
super(request);
341+
this.serviceName = request.serviceName;
342+
this.xFcAccountId = request.xFcAccountId;
343+
this.xFcCodeChecksum = request.xFcCodeChecksum;
344+
this.xFcDate = request.xFcDate;
345+
this.xFcTraceId = request.xFcTraceId;
346+
this.caPort = request.caPort;
347+
this.code = request.code;
348+
this.customContainerConfig = request.customContainerConfig;
349+
this.customDNS = request.customDNS;
350+
this.customRuntimeConfig = request.customRuntimeConfig;
351+
this.description = request.description;
352+
this.environmentVariables = request.environmentVariables;
353+
this.functionName = request.functionName;
354+
this.handler = request.handler;
355+
this.initializationTimeout = request.initializationTimeout;
356+
this.initializer = request.initializer;
357+
this.instanceConcurrency = request.instanceConcurrency;
358+
this.instanceLifecycleConfig = request.instanceLifecycleConfig;
359+
this.instanceType = request.instanceType;
360+
this.layers = request.layers;
361+
this.memorySize = request.memorySize;
362+
this.runtime = request.runtime;
363+
this.timeout = request.timeout;
364364
}
365365

366366
/**

0 commit comments

Comments
 (0)