Skip to content

Commit 0603a68

Browse files
committed
Fix java async sdk signature algorithem.
1 parent b68a182 commit 0603a68

File tree

186 files changed

+1413
-920
lines changed

Some content is hidden

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

186 files changed

+1413
-920
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-01-10 Version: 2.0.2
2+
- Fix java async sdk signature algorithem.
3+
14
2022-11-21 Version: 2.0.0
25
- Incompatible changes, some of dependencies paths should be altered to v2 paths.
36

fc-open-20210406/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-fc_open20210406</artifactId>
6-
<version>2.0.0</version>
6+
<version>2.0.2</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-fc_open20210406</name>
99
<description>Alibaba Cloud FC-Open (20210406) 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.8-beta</service.version>
44+
<service.version>0.1.9-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ 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+
*/
6973
CompletableFuture<GetFunctionAsyncInvokeConfigResponse> getFunctionAsyncInvokeConfig(GetFunctionAsyncInvokeConfigRequest request);
7074

7175
CompletableFuture<GetFunctionCodeResponse> getFunctionCode(GetFunctionCodeRequest request);
@@ -80,6 +84,10 @@ static AsyncClient create() {
8084

8185
CompletableFuture<GetServiceResponse> getService(GetServiceRequest request);
8286

87+
/**
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.
89+
*
90+
*/
8391
CompletableFuture<GetStatefulAsyncInvocationResponse> getStatefulAsyncInvocation(GetStatefulAsyncInvocationRequest request);
8492

8593
CompletableFuture<GetTriggerResponse> getTrigger(GetTriggerRequest request);
@@ -92,10 +100,19 @@ static AsyncClient create() {
92100

93101
CompletableFuture<ListEventSourcesResponse> listEventSources(ListEventSourcesRequest request);
94102

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+
*/
95107
CompletableFuture<ListFunctionAsyncInvokeConfigsResponse> listFunctionAsyncInvokeConfigs(ListFunctionAsyncInvokeConfigsRequest request);
96108

97109
CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest request);
98110

111+
/**
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.
114+
*
115+
*/
99116
CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request);
100117

101118
CompletableFuture<ListLayerVersionsResponse> listLayerVersions(ListLayerVersionsRequest request);
@@ -112,8 +129,16 @@ static AsyncClient create() {
112129

113130
CompletableFuture<ListServicesResponse> listServices(ListServicesRequest request);
114131

132+
/**
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.
134+
*
135+
*/
115136
CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listStatefulAsyncInvocationFunctions(ListStatefulAsyncInvocationFunctionsRequest request);
116137

138+
/**
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.
140+
*
141+
*/
117142
CompletableFuture<ListStatefulAsyncInvocationsResponse> listStatefulAsyncInvocations(ListStatefulAsyncInvocationsRequest request);
118143

119144
CompletableFuture<ListTaggedResourcesResponse> listTaggedResources(ListTaggedResourcesRequest request);
@@ -124,6 +149,10 @@ static AsyncClient create() {
124149

125150
CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(PublishServiceVersionRequest request);
126151

152+
/**
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.
154+
*
155+
*/
127156
CompletableFuture<PutFunctionAsyncInvokeConfigResponse> putFunctionAsyncInvokeConfig(PutFunctionAsyncInvokeConfigRequest request);
128157

129158
CompletableFuture<PutFunctionOnDemandConfigResponse> putFunctionOnDemandConfig(PutFunctionOnDemandConfigRequest request);
@@ -136,6 +165,10 @@ static AsyncClient create() {
136165

137166
CompletableFuture<ReleaseGPUInstanceResponse> releaseGPUInstance(ReleaseGPUInstanceRequest request);
138167

168+
/**
169+
* 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.
170+
*
171+
*/
139172
CompletableFuture<StopStatefulAsyncInvocationResponse> stopStatefulAsyncInvocation(StopStatefulAsyncInvocationRequest request);
140173

141174
CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest request);

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ 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+
*/
386390
@Override
387391
public CompletableFuture<GetFunctionAsyncInvokeConfigResponse> getFunctionAsyncInvokeConfig(GetFunctionAsyncInvokeConfigRequest request) {
388392
try {
@@ -481,6 +485,10 @@ public CompletableFuture<GetServiceResponse> getService(GetServiceRequest reques
481485
}
482486
}
483487

488+
/**
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.
490+
*
491+
*/
484492
@Override
485493
public CompletableFuture<GetStatefulAsyncInvocationResponse> getStatefulAsyncInvocation(GetStatefulAsyncInvocationRequest request) {
486494
try {
@@ -565,6 +573,10 @@ public CompletableFuture<ListEventSourcesResponse> listEventSources(ListEventSou
565573
}
566574
}
567575

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+
*/
568580
@Override
569581
public CompletableFuture<ListFunctionAsyncInvokeConfigsResponse> listFunctionAsyncInvokeConfigs(ListFunctionAsyncInvokeConfigsRequest request) {
570582
try {
@@ -593,6 +605,11 @@ public CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsReque
593605
}
594606
}
595607

608+
/**
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.
611+
*
612+
*/
596613
@Override
597614
public CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request) {
598615
try {
@@ -705,6 +722,10 @@ public CompletableFuture<ListServicesResponse> listServices(ListServicesRequest
705722
}
706723
}
707724

725+
/**
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.
727+
*
728+
*/
708729
@Override
709730
public CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listStatefulAsyncInvocationFunctions(ListStatefulAsyncInvocationFunctionsRequest request) {
710731
try {
@@ -719,6 +740,10 @@ public CompletableFuture<ListStatefulAsyncInvocationFunctionsResponse> listState
719740
}
720741
}
721742

743+
/**
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.
745+
*
746+
*/
722747
@Override
723748
public CompletableFuture<ListStatefulAsyncInvocationsResponse> listStatefulAsyncInvocations(ListStatefulAsyncInvocationsRequest request) {
724749
try {
@@ -789,6 +814,10 @@ public CompletableFuture<PublishServiceVersionResponse> publishServiceVersion(Pu
789814
}
790815
}
791816

817+
/**
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.
819+
*
820+
*/
792821
@Override
793822
public CompletableFuture<PutFunctionAsyncInvokeConfigResponse> putFunctionAsyncInvokeConfig(PutFunctionAsyncInvokeConfigRequest request) {
794823
try {
@@ -873,6 +902,10 @@ public CompletableFuture<ReleaseGPUInstanceResponse> releaseGPUInstance(ReleaseG
873902
}
874903
}
875904

905+
/**
906+
* 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.
907+
*
908+
*/
876909
@Override
877910
public CompletableFuture<StopStatefulAsyncInvocationResponse> stopStatefulAsyncInvocation(StopStatefulAsyncInvocationRequest request) {
878911
try {

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

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ public class ClaimGPUInstanceRequest extends Request {
5050
@NameInMap("password")
5151
private String password;
5252

53+
@Body
54+
@NameInMap("role")
55+
private String role;
56+
57+
@Body
58+
@NameInMap("sgId")
59+
private String sgId;
60+
5361
@Body
5462
@NameInMap("sourceCidrIp")
5563
@Validation(required = true)
@@ -63,6 +71,14 @@ public class ClaimGPUInstanceRequest extends Request {
6371
@NameInMap("udpPortRange")
6472
private java.util.List < String > udpPortRange;
6573

74+
@Body
75+
@NameInMap("vpcId")
76+
private String vpcId;
77+
78+
@Body
79+
@NameInMap("vswId")
80+
private String vswId;
81+
6682
private ClaimGPUInstanceRequest(Builder builder) {
6783
super(builder);
6884
this.xFcAccountId = builder.xFcAccountId;
@@ -74,9 +90,13 @@ private ClaimGPUInstanceRequest(Builder builder) {
7490
this.instanceType = builder.instanceType;
7591
this.internetBandwidthOut = builder.internetBandwidthOut;
7692
this.password = builder.password;
93+
this.role = builder.role;
94+
this.sgId = builder.sgId;
7795
this.sourceCidrIp = builder.sourceCidrIp;
7896
this.tcpPortRange = builder.tcpPortRange;
7997
this.udpPortRange = builder.udpPortRange;
98+
this.vpcId = builder.vpcId;
99+
this.vswId = builder.vswId;
80100
}
81101

82102
public static Builder builder() {
@@ -155,6 +175,20 @@ public String getPassword() {
155175
return this.password;
156176
}
157177

178+
/**
179+
* @return role
180+
*/
181+
public String getRole() {
182+
return this.role;
183+
}
184+
185+
/**
186+
* @return sgId
187+
*/
188+
public String getSgId() {
189+
return this.sgId;
190+
}
191+
158192
/**
159193
* @return sourceCidrIp
160194
*/
@@ -176,6 +210,20 @@ public java.util.List < String > getUdpPortRange() {
176210
return this.udpPortRange;
177211
}
178212

213+
/**
214+
* @return vpcId
215+
*/
216+
public String getVpcId() {
217+
return this.vpcId;
218+
}
219+
220+
/**
221+
* @return vswId
222+
*/
223+
public String getVswId() {
224+
return this.vswId;
225+
}
226+
179227
public static final class Builder extends Request.Builder<ClaimGPUInstanceRequest, Builder> {
180228
private String xFcAccountId;
181229
private String xFcDate;
@@ -186,9 +234,13 @@ public static final class Builder extends Request.Builder<ClaimGPUInstanceReques
186234
private String instanceType;
187235
private String internetBandwidthOut;
188236
private String password;
237+
private String role;
238+
private String sgId;
189239
private String sourceCidrIp;
190240
private java.util.List < String > tcpPortRange;
191241
private java.util.List < String > udpPortRange;
242+
private String vpcId;
243+
private String vswId;
192244

193245
private Builder() {
194246
super();
@@ -205,9 +257,13 @@ private Builder(ClaimGPUInstanceRequest request) {
205257
this.instanceType = request.instanceType;
206258
this.internetBandwidthOut = request.internetBandwidthOut;
207259
this.password = request.password;
260+
this.role = request.role;
261+
this.sgId = request.sgId;
208262
this.sourceCidrIp = request.sourceCidrIp;
209263
this.tcpPortRange = request.tcpPortRange;
210264
this.udpPortRange = request.udpPortRange;
265+
this.vpcId = request.vpcId;
266+
this.vswId = request.vswId;
211267
}
212268

213269
/**
@@ -291,6 +347,24 @@ public Builder password(String password) {
291347
return this;
292348
}
293349

350+
/**
351+
* 用户角色
352+
*/
353+
public Builder role(String role) {
354+
this.putBodyParameter("role", role);
355+
this.role = role;
356+
return this;
357+
}
358+
359+
/**
360+
* 安全组ID
361+
*/
362+
public Builder sgId(String sgId) {
363+
this.putBodyParameter("sgId", sgId);
364+
this.sgId = sgId;
365+
return this;
366+
}
367+
294368
/**
295369
* GPU渲染实例源端IPv4 CIDR地址块
296370
*/
@@ -318,6 +392,24 @@ public Builder udpPortRange(java.util.List < String > udpPortRange) {
318392
return this;
319393
}
320394

395+
/**
396+
* 专有网络ID
397+
*/
398+
public Builder vpcId(String vpcId) {
399+
this.putBodyParameter("vpcId", vpcId);
400+
this.vpcId = vpcId;
401+
return this;
402+
}
403+
404+
/**
405+
* 交换机ID
406+
*/
407+
public Builder vswId(String vswId) {
408+
this.putBodyParameter("vswId", vswId);
409+
this.vswId = vswId;
410+
return this;
411+
}
412+
321413
@Override
322414
public ClaimGPUInstanceRequest build() {
323415
return new ClaimGPUInstanceRequest(this);

0 commit comments

Comments
 (0)