Skip to content

Commit 3ebe8c6

Browse files
committed
Add Request Level Stateful Invocation.
1 parent 2629098 commit 3ebe8c6

File tree

88 files changed

+703
-810
lines changed

Some content is hidden

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

88 files changed

+703
-810
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+
2023-05-30 Version: 2.0.9
2+
- Add Request Level Stateful Invocation.
3+
14
2023-04-11 Version: 2.0.8
25
- Fix http invocation with sts credentials.
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>2.0.8</version>
6+
<version>2.0.9</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: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ static AsyncClient create() {
6666

6767
CompletableFuture<GetFunctionResponse> getFunction(GetFunctionRequest request);
6868

69-
/**
70-
* StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If the value of StatefulAsyncInvocation is true, the asynchronous task feature is enabled. All asynchronous invocations change to asynchronous task mode.
71-
*
72-
*/
7369
CompletableFuture<GetFunctionAsyncInvokeConfigResponse> getFunctionAsyncInvokeConfig(GetFunctionAsyncInvokeConfigRequest request);
7470

7571
CompletableFuture<GetFunctionCodeResponse> getFunctionCode(GetFunctionCodeRequest request);
@@ -85,7 +81,7 @@ static AsyncClient create() {
8581
CompletableFuture<GetServiceResponse> getService(GetServiceRequest request);
8682

8783
/**
88-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
84+
* The version or alias of the service to which the asynchronous task belongs.
8985
*
9086
*/
9187
CompletableFuture<GetStatefulAsyncInvocationResponse> getStatefulAsyncInvocation(GetStatefulAsyncInvocationRequest request);
@@ -100,17 +96,13 @@ static AsyncClient create() {
10096

10197
CompletableFuture<ListEventSourcesResponse> listEventSources(ListEventSourcesRequest request);
10298

103-
/**
104-
* StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If StatefulAsyncInvocation is set to true, the asynchronous task is enabled. All asynchronous invocations to the function corresponding to this configuration change to asynchronous task mode.
105-
*
106-
*/
10799
CompletableFuture<ListFunctionAsyncInvokeConfigsResponse> listFunctionAsyncInvokeConfigs(ListFunctionAsyncInvokeConfigsRequest request);
108100

109101
CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest request);
110102

111103
/**
112-
* The ListInstances operation allows you to query the available instances of a function.
113-
* Available instances are instances that are processing requests or can be scheduled to process requests. Available instances queried by the ListInstances operation are the same as those that can be used when you call the InvokeFunction operation with the same values specified for the `serviceName`, `functionName`, and `qualifier` parameters.
104+
* The maximum number of resources to return. Valid values: \\[0,1000].
105+
* The number of returned resources is less than or equal to the specified number.
114106
*
115107
*/
116108
CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request);
@@ -130,13 +122,13 @@ static AsyncClient create() {
130122
CompletableFuture<ListServicesResponse> listServices(ListServicesRequest request);
131123

132124
/**
133-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
125+
* The metadata of the service and function to which the asynchronous task belongs.
134126
*
135127
*/
136128
CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listStatefulAsyncInvocationFunctions(ListStatefulAsyncInvocationFunctionsRequest request);
137129

138130
/**
139-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
131+
* The name of the service to which the asynchronous task belongs.
140132
*
141133
*/
142134
CompletableFuture<ListStatefulAsyncInvocationsResponse> listStatefulAsyncInvocations(ListStatefulAsyncInvocationsRequest request);
@@ -150,7 +142,7 @@ static AsyncClient create() {
150142
CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(PublishServiceVersionRequest request);
151143

152144
/**
153-
* StatefulAsyncInvocation specifies the configurations of the asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
145+
* The maximum validity period of messages.
154146
*
155147
*/
156148
CompletableFuture<PutFunctionAsyncInvokeConfigResponse> putFunctionAsyncInvokeConfig(PutFunctionAsyncInvokeConfigRequest request);

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

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,6 @@ public CompletableFuture<GetFunctionResponse> getFunction(GetFunctionRequest req
383383
}
384384
}
385385

386-
/**
387-
* StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If the value of StatefulAsyncInvocation is true, the asynchronous task feature is enabled. All asynchronous invocations change to asynchronous task mode.
388-
*
389-
*/
390386
@Override
391387
public CompletableFuture<GetFunctionAsyncInvokeConfigResponse> getFunctionAsyncInvokeConfig(GetFunctionAsyncInvokeConfigRequest request) {
392388
try {
@@ -486,7 +482,7 @@ public CompletableFuture<GetServiceResponse> getService(GetServiceRequest reques
486482
}
487483

488484
/**
489-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
485+
* The version or alias of the service to which the asynchronous task belongs.
490486
*
491487
*/
492488
@Override
@@ -573,10 +569,6 @@ public CompletableFuture<ListEventSourcesResponse> listEventSources(ListEventSou
573569
}
574570
}
575571

576-
/**
577-
* StatefulAsyncInvocation indicates whether the asynchronous task feature is enabled. If StatefulAsyncInvocation is set to true, the asynchronous task is enabled. All asynchronous invocations to the function corresponding to this configuration change to asynchronous task mode.
578-
*
579-
*/
580572
@Override
581573
public CompletableFuture<ListFunctionAsyncInvokeConfigsResponse> listFunctionAsyncInvokeConfigs(ListFunctionAsyncInvokeConfigsRequest request) {
582574
try {
@@ -606,8 +598,8 @@ public CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsReque
606598
}
607599

608600
/**
609-
* The ListInstances operation allows you to query the available instances of a function.
610-
* Available instances are instances that are processing requests or can be scheduled to process requests. Available instances queried by the ListInstances operation are the same as those that can be used when you call the InvokeFunction operation with the same values specified for the `serviceName`, `functionName`, and `qualifier` parameters.
601+
* The maximum number of resources to return. Valid values: \\[0,1000].
602+
* The number of returned resources is less than or equal to the specified number.
611603
*
612604
*/
613605
@Override
@@ -723,7 +715,7 @@ public CompletableFuture<ListServicesResponse> listServices(ListServicesRequest
723715
}
724716

725717
/**
726-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
718+
* The metadata of the service and function to which the asynchronous task belongs.
727719
*
728720
*/
729721
@Override
@@ -741,7 +733,7 @@ public CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listState
741733
}
742734

743735
/**
744-
* StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
736+
* The name of the service to which the asynchronous task belongs.
745737
*
746738
*/
747739
@Override
@@ -815,7 +807,7 @@ public CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(Pu
815807
}
816808

817809
/**
818-
* StatefulAsyncInvocation specifies the configurations of the asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios.
810+
* The maximum validity period of messages.
819811
*
820812
*/
821813
@Override

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ public Builder xFcTraceId(String xFcTraceId) {
219219
}
220220

221221
/**
222-
* The canary release version to which the alias points and the weight of the canary release version.
222+
* The additional version to which the alias points and the weight of the additional version.
223223
* <p>
224224
*
225-
* * The canary release version takes effect only when the function is invoked.
225+
* * The additional version takes effect only when the function is invoked.
226226
* * The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.
227227
*/
228228
public Builder additionalVersionWeight(java.util.Map < String, Float > additionalVersionWeight) {
@@ -232,7 +232,7 @@ public Builder additionalVersionWeight(java.util.Map < String, Float > additiona
232232
}
233233

234234
/**
235-
* The name of the alias. The name contains only letters, digits, hyphens (-), and underscores (\_). The name must be 1 to 128 characters in length and cannot start with a digit or hyphen (-). The name cannot be **LATEST**.
235+
* The name of the alias. The name can contain letters, digits, underscores (\_), and hyphens (-) only. The name cannot start with a digit or a hyphen (-). The name must be 1 to 128 characters in length. The name cannot be set to **LATEST**
236236
*/
237237
public Builder aliasName(String aliasName) {
238238
this.putBodyParameter("aliasName", aliasName);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ public static final class Builder {
9898
private String versionId;
9999

100100
/**
101-
* The canary release version to which the alias points and the weight of the canary release version.
101+
* The additional version to which the alias points and the weight of the additional version.
102102
* <p>
103103
*
104-
* * The canary release version takes effect only when the function is invoked.
104+
* * The additional version takes effect only when the function is invoked.
105105
* * The value consists of a version number and a specific weight. For example, 2:0.05 indicates that when a function is invoked, Version 2 is the canary release version, 5% of the traffic is distributed to the canary release version, and 95% of the traffic is distributed to the major version.
106106
*/
107107
public Builder additionalVersionWeight(java.util.Map < String, Float > additionalVersionWeight) {

0 commit comments

Comments
 (0)