Skip to content

Commit 68fc230

Browse files
committed
Support NAS with TLS.
1 parent 48b72b5 commit 68fc230

File tree

49 files changed

+520
-85
lines changed

Some content is hidden

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

49 files changed

+520
-85
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-02-09 Version: 2.0.4
2+
- Support NAS with TLS.
3+
14
2023-01-13 Version: 2.0.3
25
- Fix java async sdk signature algorithem.
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.3</version>
6+
<version>2.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/models/ClaimGPUInstanceRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public Builder sourceCidrIp(String sourceCidrIp) {
375375
}
376376

377377
/**
378-
* The range of TCP ports that are open to the security group of the GPU-rendered instance.
378+
* The range of TCP ports that are open to the security group of the GPU rendering instance.
379379
*/
380380
public Builder tcpPortRange(java.util.List < String > tcpPortRange) {
381381
this.putBodyParameter("tcpPortRange", tcpPortRange);
@@ -393,7 +393,7 @@ public Builder udpPortRange(java.util.List < String > udpPortRange) {
393393
}
394394

395395
/**
396-
* The ID of the virtual private cloud (VPC).
396+
* The ID of the VPC in which the instance resides.
397397
*/
398398
public Builder vpcId(String vpcId) {
399399
this.putBodyParameter("vpcId", vpcId);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,23 @@ public static final class Builder {
6262
private String publicIp;
6363

6464
/**
65-
* The time when the product instance was created.
65+
* The time when the product instance is created.
6666
*/
6767
public Builder createdTime(String createdTime) {
6868
this.createdTime = createdTime;
6969
return this;
7070
}
7171

7272
/**
73-
* The ID of the instance.
73+
* The ID of the instance that you query.
7474
*/
7575
public Builder instanceId(String instanceId) {
7676
this.instanceId = instanceId;
7777
return this;
7878
}
7979

8080
/**
81-
* The public IP address.
81+
* The public IP address of the server.
8282
*/
8383
public Builder publicIp(String publicIp) {
8484
this.publicIp = publicIp;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public Builder xFcAccountId(String xFcAccountId) {
176176
}
177177

178178
/**
179-
* The time when Function Compute API is called. Specify the time in the **EEE,d MMM yyyy HH:mm:ss GMT** format.
179+
* The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.
180180
*/
181181
public Builder xFcDate(String xFcDate) {
182182
this.putHeaderParameter("X-Fc-Date", xFcDate);
@@ -215,9 +215,9 @@ public Builder domainName(String domainName) {
215215
* The protocol types supported by the domain name. Valid values:
216216
* <p>
217217
*
218-
* - **HTTP**: Only HTTP is supported.
219-
* - **HTTPS**: Only HTTPS is supported.
220-
* - **HTTP,HTTPS**: Both HTTP and HTTPS are supported.
218+
* * **HTTP**: Only HTTP is supported.
219+
* * **HTTPS**: Only HTTPS is supported.
220+
* * **HTTP,HTTPS**: HTTP and HTTPS are supported.
221221
*/
222222
public Builder protocol(String protocol) {
223223
this.putBodyParameter("protocol", protocol);
@@ -235,7 +235,7 @@ public Builder routeConfig(RouteConfig routeConfig) {
235235
}
236236

237237
/**
238-
* The configurations of the TLS.
238+
* The Transport Layer Security (TLS) configuration.
239239
*/
240240
public Builder tlsConfig(TLSConfig tlsConfig) {
241241
this.putBodyParameter("tlsConfig", tlsConfig);
@@ -244,7 +244,7 @@ public Builder tlsConfig(TLSConfig tlsConfig) {
244244
}
245245

246246
/**
247-
* wafConfig.
247+
* The Web Application Firewall (WAF) configuration.
248248
*/
249249
public Builder wafConfig(WAFConfig wafConfig) {
250250
this.putBodyParameter("wafConfig", wafConfig);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static final class Builder {
146146
private WAFConfig wafConfig;
147147

148148
/**
149-
* The ID of the account.
149+
* The ID of your Alibaba Cloud account.
150150
*/
151151
public Builder accountId(String accountId) {
152152
this.accountId = accountId;
@@ -197,9 +197,9 @@ public Builder lastModifiedTime(String lastModifiedTime) {
197197
* The protocol types supported by the domain name. Valid values:
198198
* <p>
199199
*
200-
* - **HTTP**: Only HTTP is supported.
201-
* - **HTTPS**: Only HTTPS is supported.
202-
* - **HTTP,HTTPS**: Both HTTP and HTTPS are supported.
200+
* * **HTTP**: Only HTTP is supported.
201+
* * **HTTPS**: Only HTTPS is supported.
202+
* * **HTTP,HTTPS**: HTTP and HTTPS are supported.
203203
*/
204204
public Builder protocol(String protocol) {
205205
this.protocol = protocol;
@@ -215,15 +215,15 @@ public Builder routeConfig(RouteConfig routeConfig) {
215215
}
216216

217217
/**
218-
* The configurations of the TLS.
218+
* The Transport Layer Security (TLS) configuration.
219219
*/
220220
public Builder tlsConfig(TLSConfig tlsConfig) {
221221
this.tlsConfig = tlsConfig;
222222
return this;
223223
}
224224

225225
/**
226-
* wafConfig.
226+
* The Web Application Firewall (WAF) configuration.
227227
*/
228228
public Builder wafConfig(WAFConfig wafConfig) {
229229
this.wafConfig = wafConfig;

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public class CreateFunctionRequest extends Request {
7777
@Validation(required = true)
7878
private String functionName;
7979

80+
@Body
81+
@NameInMap("gpuMemorySize")
82+
private Integer gpuMemorySize;
83+
8084
@Body
8185
@NameInMap("handler")
8286
@Validation(required = true)
@@ -141,6 +145,7 @@ private CreateFunctionRequest(Builder builder) {
141145
this.diskSize = builder.diskSize;
142146
this.environmentVariables = builder.environmentVariables;
143147
this.functionName = builder.functionName;
148+
this.gpuMemorySize = builder.gpuMemorySize;
144149
this.handler = builder.handler;
145150
this.initializationTimeout = builder.initializationTimeout;
146151
this.initializer = builder.initializer;
@@ -279,6 +284,13 @@ public String getFunctionName() {
279284
return this.functionName;
280285
}
281286

287+
/**
288+
* @return gpuMemorySize
289+
*/
290+
public Integer getGpuMemorySize() {
291+
return this.gpuMemorySize;
292+
}
293+
282294
/**
283295
* @return handler
284296
*/
@@ -373,6 +385,7 @@ public static final class Builder extends Request.Builder<CreateFunctionRequest,
373385
private Integer diskSize;
374386
private java.util.Map < String, String > environmentVariables;
375387
private String functionName;
388+
private Integer gpuMemorySize;
376389
private String handler;
377390
private Integer initializationTimeout;
378391
private String initializer;
@@ -407,6 +420,7 @@ private Builder(CreateFunctionRequest request) {
407420
this.diskSize = request.diskSize;
408421
this.environmentVariables = request.environmentVariables;
409422
this.functionName = request.functionName;
423+
this.gpuMemorySize = request.gpuMemorySize;
410424
this.handler = request.handler;
411425
this.initializationTimeout = request.initializationTimeout;
412426
this.initializer = request.initializer;
@@ -564,6 +578,15 @@ public Builder functionName(String functionName) {
564578
return this;
565579
}
566580

581+
/**
582+
* function的GPU显存规格,单位为MB,为1024MB的倍数
583+
*/
584+
public Builder gpuMemorySize(Integer gpuMemorySize) {
585+
this.putBodyParameter("gpuMemorySize", gpuMemorySize);
586+
this.gpuMemorySize = gpuMemorySize;
587+
return this;
588+
}
589+
567590
/**
568591
* The handler of the function. The format varies based on the programming language. For more information, see [Function handlers](~~157704~~).
569592
*/

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public class CreateFunctionResponseBody extends TeaModel {
5454
@NameInMap("functionName")
5555
private String functionName;
5656

57+
@NameInMap("gpuMemorySize")
58+
private Integer gpuMemorySize;
59+
5760
@NameInMap("handler")
5861
private String handler;
5962

@@ -105,6 +108,7 @@ private CreateFunctionResponseBody(Builder builder) {
105108
this.environmentVariables = builder.environmentVariables;
106109
this.functionId = builder.functionId;
107110
this.functionName = builder.functionName;
111+
this.gpuMemorySize = builder.gpuMemorySize;
108112
this.handler = builder.handler;
109113
this.initializationTimeout = builder.initializationTimeout;
110114
this.initializer = builder.initializer;
@@ -225,6 +229,13 @@ public String getFunctionName() {
225229
return this.functionName;
226230
}
227231

232+
/**
233+
* @return gpuMemorySize
234+
*/
235+
public Integer getGpuMemorySize() {
236+
return this.gpuMemorySize;
237+
}
238+
228239
/**
229240
* @return handler
230241
*/
@@ -324,6 +335,7 @@ public static final class Builder {
324335
private java.util.Map < String, String > environmentVariables;
325336
private String functionId;
326337
private String functionName;
338+
private Integer gpuMemorySize;
327339
private String handler;
328340
private Integer initializationTimeout;
329341
private String initializer;
@@ -449,6 +461,14 @@ public Builder functionName(String functionName) {
449461
return this;
450462
}
451463

464+
/**
465+
* function的GPU显存规格,单位为MB,为1024MB的倍数
466+
*/
467+
public Builder gpuMemorySize(Integer gpuMemorySize) {
468+
this.gpuMemorySize = gpuMemorySize;
469+
return this;
470+
}
471+
452472
/**
453473
* The handler of the function.
454474
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Builder xFcAccountId(String xFcAccountId) {
115115
}
116116

117117
/**
118-
* The time when Function Compute API is called. Specify the time in the **EEE,d MMM yyyy HH:mm:ss GMT** format.
118+
* The time when the operation is called. The format is: **EEE,d MMM yyyy HH:mm:ss GMT**.
119119
*/
120120
public Builder xFcDate(String xFcDate) {
121121
this.putHeaderParameter("X-Fc-Date", xFcDate);

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ public static final class Builder {
146146
private WAFConfig wafConfig;
147147

148148
/**
149-
* The version number of the API.
149+
* The ID of your Alibaba Cloud account.
150150
*/
151151
public Builder accountId(String accountId) {
152152
this.accountId = accountId;
153153
return this;
154154
}
155155

156156
/**
157-
* The version number of the API.
157+
* The version of the API.
158158
*/
159159
public Builder apiVersion(String apiVersion) {
160160
this.apiVersion = apiVersion;
@@ -170,7 +170,7 @@ public Builder certConfig(CertConfig certConfig) {
170170
}
171171

172172
/**
173-
* The time when the domain name was added.
173+
* The time when the custom domain name was created.
174174
*/
175175
public Builder createdTime(String createdTime) {
176176
this.createdTime = createdTime;
@@ -197,9 +197,9 @@ public Builder lastModifiedTime(String lastModifiedTime) {
197197
* The protocol types supported by the domain name. Valid values:
198198
* <p>
199199
*
200-
* - **HTTP**: Only HTTP is supported.
201-
* - **HTTPS**: Only HTTPS is supported.
202-
* - **HTTP,HTTPS**: Both HTTP and HTTPS are supported.
200+
* * **HTTP**: Only HTTP is supported.
201+
* * **HTTPS**: Only HTTPS is supported.
202+
* * **HTTP,HTTPS**: HTTP and HTTPS are supported.
203203
*/
204204
public Builder protocol(String protocol) {
205205
this.protocol = protocol;
@@ -215,15 +215,15 @@ public Builder routeConfig(RouteConfig routeConfig) {
215215
}
216216

217217
/**
218-
* The configurations of the TLS.
218+
* The Transport Layer Security (TLS) configuration.
219219
*/
220220
public Builder tlsConfig(TLSConfig tlsConfig) {
221221
this.tlsConfig = tlsConfig;
222222
return this;
223223
}
224224

225225
/**
226-
* wafConfig.
226+
* The Web Application Firewall (WAF) configuration.
227227
*/
228228
public Builder wafConfig(WAFConfig wafConfig) {
229229
this.wafConfig = wafConfig;

0 commit comments

Comments
 (0)