Skip to content

Commit 8c8b3de

Browse files
committed
Merge 'vefaas_dev-Node.js-2024-06-06-online-2465-2026_04_02_12_01_41' into 'master'
vefaas_dev-Node.js-2024-06-06-online-2465-2026_04_02_12_01_41 See merge request: !70
2 parents d4e1eee + c9d2ead commit 8c8b3de

22 files changed

Lines changed: 664 additions & 20 deletions

service/vefaasdev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@volcengine/vefaasdev",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "swagger client for @volcengine/vefaasdev",
55
"license": "Apache-2.0",
66
"main": "./dist/cjs/index.js",

service/vefaasdev/src/api.ts

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,23 @@ import { ListRevisionsRequest } from './types/index';
5050
import { ListRevisionsResponse } from './types/index';
5151
import { ListSandboxesRequest } from './types/index';
5252
import { ListSandboxesResponse } from './types/index';
53+
import { PauseSandboxRequest } from './types/index';
54+
import { PauseSandboxResponse } from './types/index';
5355
import { ReadFilesRequest } from './types/index';
5456
import { ReadFilesResponse } from './types/index';
5557
import { ReleaseRequest } from './types/index';
5658
import { ReleaseResponse } from './types/index';
59+
import { ResumeSandboxRequest } from './types/index';
60+
import { ResumeSandboxResponse } from './types/index';
5761
import { RunCodeRequest } from './types/index';
5862
import { RunCodeResponse } from './types/index';
5963
import { SetSandboxTimeoutRequest } from './types/index';
6064
import { SetSandboxTimeoutResponse } from './types/index';
65+
import { TransitionSandboxRequest } from './types/index';
66+
import { TransitionSandboxResponse } from './types/index';
6167
import { UpdateFunctionRequest } from './types/index';
68+
import { UpdateFunctionResourceRequest } from './types/index';
69+
import { UpdateFunctionResourceResponse } from './types/index';
6270
import { UpdateFunctionResponse } from './types/index';
6371
import { UpdateReleaseRequest } from './types/index';
6472
import { UpdateReleaseResponse } from './types/index';
@@ -86,15 +94,18 @@ export type ListFunctionsCommandOutput = CommandOutput<ListFunctionsResponse>;
8694
export type ListReleaseRecordsCommandOutput = CommandOutput<ListReleaseRecordsResponse>;
8795
export type ListRevisionsCommandOutput = CommandOutput<ListRevisionsResponse>;
8896
export type ListSandboxesCommandOutput = CommandOutput<ListSandboxesResponse>;
97+
export type PauseSandboxCommandOutput = CommandOutput<PauseSandboxResponse>;
8998
export type ReadFilesCommandOutput = CommandOutput<ReadFilesResponse>;
9099
export type ReleaseCommandOutput = CommandOutput<ReleaseResponse>;
100+
export type ResumeSandboxCommandOutput = CommandOutput<ResumeSandboxResponse>;
91101
export type RunCodeCommandOutput = CommandOutput<RunCodeResponse>;
92102
export type SetSandboxTimeoutCommandOutput = CommandOutput<SetSandboxTimeoutResponse>;
103+
export type TransitionSandboxCommandOutput = CommandOutput<TransitionSandboxResponse>;
93104
export type UpdateFunctionCommandOutput = CommandOutput<UpdateFunctionResponse>;
105+
export type UpdateFunctionResourceCommandOutput = CommandOutput<UpdateFunctionResourceResponse>;
94106
export type UpdateReleaseCommandOutput = CommandOutput<UpdateReleaseResponse>;
95107
export type WriteFilesCommandOutput = CommandOutput<WriteFilesResponse>;
96108

97-
98109
/**
99110
* VEFAASDEVClient Service Client
100111
*/
@@ -378,6 +389,21 @@ export class ListSandboxesCommand extends Command<
378389
this.requestConfig = buildRequestConfigFromMetaPath(ListSandboxesCommand.metaPath);
379390
}
380391
}
392+
/**
393+
* Command to PauseSandbox
394+
*/
395+
export class PauseSandboxCommand extends Command<
396+
PauseSandboxRequest,
397+
PauseSandboxCommandOutput,
398+
'PauseSandboxCommand'
399+
> {
400+
static readonly metaPath = '/PauseSandbox/2024-06-06/vefaas_dev/post/application_json/';
401+
402+
constructor(input: PauseSandboxRequest) {
403+
super(input);
404+
this.requestConfig = buildRequestConfigFromMetaPath(PauseSandboxCommand.metaPath);
405+
}
406+
}
381407
/**
382408
* Command to ReadFiles
383409
*/
@@ -408,6 +434,21 @@ export class ReleaseCommand extends Command<
408434
this.requestConfig = buildRequestConfigFromMetaPath(ReleaseCommand.metaPath);
409435
}
410436
}
437+
/**
438+
* Command to ResumeSandbox
439+
*/
440+
export class ResumeSandboxCommand extends Command<
441+
ResumeSandboxRequest,
442+
ResumeSandboxCommandOutput,
443+
'ResumeSandboxCommand'
444+
> {
445+
static readonly metaPath = '/ResumeSandbox/2024-06-06/vefaas_dev/post/application_json/';
446+
447+
constructor(input: ResumeSandboxRequest) {
448+
super(input);
449+
this.requestConfig = buildRequestConfigFromMetaPath(ResumeSandboxCommand.metaPath);
450+
}
451+
}
411452
/**
412453
* Command to RunCode
413454
*/
@@ -438,6 +479,21 @@ export class SetSandboxTimeoutCommand extends Command<
438479
this.requestConfig = buildRequestConfigFromMetaPath(SetSandboxTimeoutCommand.metaPath);
439480
}
440481
}
482+
/**
483+
* Command to TransitionSandbox
484+
*/
485+
export class TransitionSandboxCommand extends Command<
486+
TransitionSandboxRequest,
487+
TransitionSandboxCommandOutput,
488+
'TransitionSandboxCommand'
489+
> {
490+
static readonly metaPath = '/TransitionSandbox/2024-06-06/vefaas_dev/post/application_json/';
491+
492+
constructor(input: TransitionSandboxRequest) {
493+
super(input);
494+
this.requestConfig = buildRequestConfigFromMetaPath(TransitionSandboxCommand.metaPath);
495+
}
496+
}
441497
/**
442498
* Command to UpdateFunction
443499
*/
@@ -453,6 +509,21 @@ export class UpdateFunctionCommand extends Command<
453509
this.requestConfig = buildRequestConfigFromMetaPath(UpdateFunctionCommand.metaPath);
454510
}
455511
}
512+
/**
513+
* Command to UpdateFunctionResource
514+
*/
515+
export class UpdateFunctionResourceCommand extends Command<
516+
UpdateFunctionResourceRequest,
517+
UpdateFunctionResourceCommandOutput,
518+
'UpdateFunctionResourceCommand'
519+
> {
520+
static readonly metaPath = '/UpdateFunctionResource/2024-06-06/vefaas_dev/post/application_json/';
521+
522+
constructor(input: UpdateFunctionResourceRequest) {
523+
super(input);
524+
this.requestConfig = buildRequestConfigFromMetaPath(UpdateFunctionResourceCommand.metaPath);
525+
}
526+
}
456527
/**
457528
* Command to UpdateRelease
458529
*/
@@ -504,11 +575,15 @@ export default {
504575
ListReleaseRecordsCommand,
505576
ListRevisionsCommand,
506577
ListSandboxesCommand,
578+
PauseSandboxCommand,
507579
ReadFilesCommand,
508580
ReleaseCommand,
581+
ResumeSandboxCommand,
509582
RunCodeCommand,
510583
SetSandboxTimeoutCommand,
584+
TransitionSandboxCommand,
511585
UpdateFunctionCommand,
586+
UpdateFunctionResourceCommand,
512587
UpdateReleaseCommand,
513588
WriteFilesCommand,
514589
};

service/vefaasdev/src/types/create-sandbox-request.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
import { EnvForCreateSandboxInput } from './env-for-create-sandbox-input';
1616
import { InstanceImageInfoForCreateSandboxInput } from './instance-image-info-for-create-sandbox-input';
17+
import { InstanceNasMountConfigForCreateSandboxInput } from './instance-nas-mount-config-for-create-sandbox-input';
1718
import { InstanceTosMountConfigForCreateSandboxInput } from './instance-tos-mount-config-for-create-sandbox-input';
18-
import { MetadataForCreateSandboxInput } from './metadata-for-create-sandbox-input';
1919
/**
2020
*
2121
*
@@ -54,6 +54,12 @@ export interface CreateSandboxRequest {
5454
*/
5555
InstanceImageInfo?: InstanceImageInfoForCreateSandboxInput;
5656

57+
/**
58+
* @type {InstanceNasMountConfigForCreateSandboxInput}
59+
* @memberof CreateSandboxRequest
60+
*/
61+
InstanceNasMountConfig?: InstanceNasMountConfigForCreateSandboxInput;
62+
5763
/**
5864
* @type {InstanceTosMountConfigForCreateSandboxInput}
5965
* @memberof CreateSandboxRequest
@@ -73,10 +79,10 @@ export interface CreateSandboxRequest {
7379
MemoryMB?: number;
7480

7581
/**
76-
* @type {MetadataForCreateSandboxInput}
82+
* @type {{ [key: string]: string; }}
7783
* @memberof CreateSandboxRequest
7884
*/
79-
Metadata?: MetadataForCreateSandboxInput;
85+
Metadata?: { [key: string]: string; };
8086

8187
/**
8288
* @type {number}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* vefaas_dev
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
/**
16+
*
17+
*
18+
* @export
19+
* @interface CredentialsForCreateSandboxInput
20+
*/
21+
export interface CredentialsForCreateSandboxInput {
22+
23+
/**
24+
* @type {string}
25+
* @memberof CredentialsForCreateSandboxInput
26+
*/
27+
AccessKeyId?: string;
28+
29+
/**
30+
* @type {string}
31+
* @memberof CredentialsForCreateSandboxInput
32+
*/
33+
SecretAccessKey?: string;
34+
35+
/**
36+
* @type {string}
37+
* @memberof CredentialsForCreateSandboxInput
38+
*/
39+
SessionToken?: string;
40+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* vefaas_dev
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
/**
16+
*
17+
*
18+
* @export
19+
* @interface EncryptionConfigForCreateSandboxInput
20+
*/
21+
export interface EncryptionConfigForCreateSandboxInput {
22+
23+
/**
24+
* @type {boolean}
25+
* @memberof EncryptionConfigForCreateSandboxInput
26+
*/
27+
EnableSSE?: boolean;
28+
29+
/**
30+
* @type {string}
31+
* @memberof EncryptionConfigForCreateSandboxInput
32+
*/
33+
EncryptionAlgorithm?: string;
34+
35+
/**
36+
* @type {string}
37+
* @memberof EncryptionConfigForCreateSandboxInput
38+
*/
39+
EncryptionMethod?: string;
40+
41+
/**
42+
* @type {string}
43+
* @memberof EncryptionConfigForCreateSandboxInput
44+
*/
45+
KMSMasterKeyID?: string;
46+
47+
/**
48+
* @type {string}
49+
* @memberof EncryptionConfigForCreateSandboxInput
50+
*/
51+
SSECKey?: string;
52+
53+
/**
54+
* @type {string}
55+
* @memberof EncryptionConfigForCreateSandboxInput
56+
*/
57+
SSECMD5?: string;
58+
}

service/vefaasdev/src/types/index.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export * from './create-sandbox-request';
99
export * from './create-sandbox-response';
1010
export * from './credentials-for-create-function-input';
1111
export * from './credentials-for-create-function-output';
12+
export * from './credentials-for-create-sandbox-input';
1213
export * from './credentials-for-get-function-output';
1314
export * from './credentials-for-get-revision-output';
1415
export * from './credentials-for-list-functions-output';
@@ -19,6 +20,7 @@ export * from './delete-function-request';
1920
export * from './delete-function-response';
2021
export * from './describe-sandbox-request';
2122
export * from './describe-sandbox-response';
23+
export * from './encryption-config-for-create-sandbox-input';
2224
export * from './env-for-create-function-input';
2325
export * from './env-for-create-function-output';
2426
export * from './env-for-create-sandbox-input';
@@ -56,6 +58,7 @@ export * from './health-check-config-for-get-revision-output';
5658
export * from './health-check-config-for-list-revisions-output';
5759
export * from './image-info-for-describe-sandbox-output';
5860
export * from './instance-image-info-for-create-sandbox-input';
61+
export * from './instance-nas-mount-config-for-create-sandbox-input';
5962
export * from './instance-tos-mount-config-for-create-sandbox-input';
6063
export * from './instance-tos-mount-config-for-describe-sandbox-output';
6164
export * from './item-for-list-function-instances-output';
@@ -75,9 +78,6 @@ export * from './list-revisions-request';
7578
export * from './list-revisions-response';
7679
export * from './list-sandboxes-request';
7780
export * from './list-sandboxes-response';
78-
export * from './metadata-for-create-sandbox-input';
79-
export * from './metadata-for-list-sandboxes-input';
80-
export * from './metadata-for-list-sandboxes-output';
8181
export * from './metadata-list-for-describe-sandbox-output';
8282
export * from './mount-point-for-create-function-input';
8383
export * from './mount-point-for-create-function-output';
@@ -95,6 +95,7 @@ export * from './nas-config-for-list-functions-output';
9595
export * from './nas-config-for-list-revisions-output';
9696
export * from './nas-config-for-update-function-input';
9797
export * from './nas-config-for-update-function-output';
98+
export * from './nas-mount-point-for-create-sandbox-input';
9899
export * from './nas-storage-for-create-function-input';
99100
export * from './nas-storage-for-create-function-output';
100101
export * from './nas-storage-for-get-function-output';
@@ -104,12 +105,17 @@ export * from './nas-storage-for-list-revisions-output';
104105
export * from './nas-storage-for-update-function-input';
105106
export * from './nas-storage-for-update-function-output';
106107
export * from './order-by-for-list-release-records-input';
108+
export * from './pause-sandbox-request';
109+
export * from './pause-sandbox-response';
107110
export * from './probe-handler-for-get-revision-output';
108111
export * from './probe-handler-for-list-revisions-output';
109112
export * from './read-files-request';
110113
export * from './read-files-response';
111114
export * from './release-request';
112115
export * from './release-response';
116+
export * from './resume-sandbox-request';
117+
export * from './resume-sandbox-response';
118+
export * from './revision-count-for-list-sandboxes-output';
113119
export * from './run-code-request';
114120
export * from './run-code-response';
115121
export * from './run-result-for-run-code-output';
@@ -139,7 +145,11 @@ export * from './tos-mount-config-for-update-function-input';
139145
export * from './tos-mount-config-for-update-function-output';
140146
export * from './tos-mount-point-for-create-sandbox-input';
141147
export * from './tos-mount-point-for-describe-sandbox-output';
148+
export * from './transition-sandbox-request';
149+
export * from './transition-sandbox-response';
142150
export * from './update-function-request';
151+
export * from './update-function-resource-request';
152+
export * from './update-function-resource-response';
143153
export * from './update-function-response';
144154
export * from './update-release-request';
145155
export * from './update-release-response';
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* vefaas_dev
5+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
*
7+
* OpenAPI spec version: common-version
8+
*
9+
*
10+
* NOTE: This class is auto generated by the swagger code generator program.
11+
* https://github.com/swagger-api/swagger-codegen.git
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { NasMountPointForCreateSandboxInput } from './nas-mount-point-for-create-sandbox-input';
16+
/**
17+
*
18+
*
19+
* @export
20+
* @interface InstanceNasMountConfigForCreateSandboxInput
21+
*/
22+
export interface InstanceNasMountConfigForCreateSandboxInput {
23+
24+
/**
25+
* @type {boolean}
26+
* @memberof InstanceNasMountConfigForCreateSandboxInput
27+
*/
28+
Enable?: boolean;
29+
30+
/**
31+
* @type {Array<NasMountPointForCreateSandboxInput>}
32+
* @memberof InstanceNasMountConfigForCreateSandboxInput
33+
*/
34+
NasMountPoints?: Array<NasMountPointForCreateSandboxInput>;
35+
}

0 commit comments

Comments
 (0)