sandbox0 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/apispec/src/apis/index.d.ts +0 -1
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +0 -1
- package/dist/apispec/src/models/AppArmorProfile.d.ts +48 -0
- package/dist/apispec/src/models/AppArmorProfile.d.ts.map +1 -0
- package/dist/apispec/src/models/AppArmorProfile.js +53 -0
- package/dist/apispec/src/models/Capabilities.d.ts +6 -0
- package/dist/apispec/src/models/Capabilities.d.ts.map +1 -1
- package/dist/apispec/src/models/Capabilities.js +2 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts +39 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.js +45 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts +0 -7
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/PauseSandboxResponse.js +0 -5
- package/dist/apispec/src/models/PodSpecOverride.d.ts +7 -0
- package/dist/apispec/src/models/PodSpecOverride.d.ts.map +1 -1
- package/dist/apispec/src/models/PodSpecOverride.js +3 -0
- package/dist/apispec/src/models/ResourceQuota.d.ts +6 -0
- package/dist/apispec/src/models/ResourceQuota.d.ts.map +1 -1
- package/dist/apispec/src/models/ResourceQuota.js +2 -0
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +0 -7
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.js +0 -5
- package/dist/apispec/src/models/Sandbox.d.ts +13 -8
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +8 -5
- package/dist/apispec/src/models/SandboxAppService.d.ts +2 -2
- package/dist/apispec/src/models/SandboxAppService.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppService.js +1 -3
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +5 -4
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.js +5 -4
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts +2 -2
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceView.js +1 -3
- package/dist/apispec/src/models/SandboxConfig.d.ts +2 -2
- package/dist/apispec/src/models/SandboxFunction.d.ts +53 -0
- package/dist/apispec/src/models/SandboxFunction.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxFunction.js +56 -0
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts +46 -0
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxFunctionSource.js +53 -0
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +4 -3
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxLifecycleStatus.js +4 -3
- package/dist/apispec/src/models/SandboxSummary.d.ts +10 -5
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +7 -4
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +2 -2
- package/dist/apispec/src/models/SeccompProfile.d.ts +48 -0
- package/dist/apispec/src/models/SeccompProfile.d.ts.map +1 -0
- package/dist/apispec/src/models/SeccompProfile.js +53 -0
- package/dist/apispec/src/models/SecurityContext.d.ts +38 -0
- package/dist/apispec/src/models/SecurityContext.d.ts.map +1 -1
- package/dist/apispec/src/models/SecurityContext.js +14 -0
- package/dist/apispec/src/models/index.d.ts +5 -7
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +5 -7
- package/dist/apispec_compat.d.ts +1 -1507
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/apispec_compat.js +1 -10
- package/dist/client.d.ts +0 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +0 -1
- package/dist/template_helpers.d.ts +1 -9
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +0 -10
- package/package.json +1 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts +0 -34
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +0 -1
- package/dist/apispec/src/apis/FunctionsApi.js +0 -64
- package/dist/apispec/src/models/FunctionInvokeRequest.d.ts +0 -73
- package/dist/apispec/src/models/FunctionInvokeRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionInvokeRequest.js +0 -53
- package/dist/apispec/src/models/FunctionInvokeResponse.d.ts +0 -47
- package/dist/apispec/src/models/FunctionInvokeResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionInvokeResponse.js +0 -47
- package/dist/apispec/src/models/SandboxPowerState.d.ts +0 -82
- package/dist/apispec/src/models/SandboxPowerState.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxPowerState.js +0 -81
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.js +0 -46
- package/dist/apispec/src/models/WarmProcessSpec.d.ts +0 -80
- package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/WarmProcessSpec.js +0 -63
- package/dist/sandbox_functions.d.ts +0 -7
- package/dist/sandbox_functions.d.ts.map +0 -1
- package/dist/sandbox_functions.js +0 -22
|
@@ -20,8 +20,6 @@ import { SandboxAppServiceRuntimeFromJSON, SandboxAppServiceRuntimeToJSON, } fro
|
|
|
20
20
|
export function instanceOfSandboxAppService(value) {
|
|
21
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
if (!('ingress' in value) || value['ingress'] === undefined)
|
|
26
24
|
return false;
|
|
27
25
|
return true;
|
|
@@ -36,7 +34,7 @@ export function SandboxAppServiceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
34
|
return {
|
|
37
35
|
'id': json['id'],
|
|
38
36
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
39
|
-
'port': json['port'],
|
|
37
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
40
38
|
'runtime': json['runtime'] == null ? undefined : SandboxAppServiceRuntimeFromJSON(json['runtime']),
|
|
41
39
|
'ingress': SandboxAppServiceIngressFromJSON(json['ingress']),
|
|
42
40
|
'healthCheck': json['health_check'] == null ? undefined : SandboxAppServiceHealthFromJSON(json['health_check']),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SandboxFunction } from './SandboxFunction.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -42,19 +43,19 @@ export interface SandboxAppServiceRuntime {
|
|
|
42
43
|
[key: string]: string;
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
46
|
+
*
|
|
47
|
+
* @type {SandboxFunction}
|
|
47
48
|
* @memberof SandboxAppServiceRuntime
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
_function?: SandboxFunction;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* @export
|
|
53
54
|
*/
|
|
54
55
|
export declare const SandboxAppServiceRuntimeTypeEnum: {
|
|
55
|
-
readonly WarmProcess: "warm_process";
|
|
56
56
|
readonly Cmd: "cmd";
|
|
57
57
|
readonly Manual: "manual";
|
|
58
|
+
readonly Function: "function";
|
|
58
59
|
};
|
|
59
60
|
export type SandboxAppServiceRuntimeTypeEnum = typeof SandboxAppServiceRuntimeTypeEnum[keyof typeof SandboxAppServiceRuntimeTypeEnum];
|
|
60
61
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceRuntime.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRuntime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,gCAAgC,CAAC;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRuntime.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRuntime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,gCAAgC,CAAC;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;CAInC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAGtI;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAYvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAatI"}
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SandboxFunctionFromJSON, SandboxFunctionToJSON, } from './SandboxFunction.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
17
18
|
export const SandboxAppServiceRuntimeTypeEnum = {
|
|
18
|
-
WarmProcess: 'warm_process',
|
|
19
19
|
Cmd: 'cmd',
|
|
20
|
-
Manual: 'manual'
|
|
20
|
+
Manual: 'manual',
|
|
21
|
+
Function: 'function'
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the SandboxAppServiceRuntime interface.
|
|
@@ -39,7 +40,7 @@ export function SandboxAppServiceRuntimeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
39
40
|
'command': json['command'] == null ? undefined : json['command'],
|
|
40
41
|
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
41
42
|
'envVars': json['env_vars'] == null ? undefined : json['env_vars'],
|
|
42
|
-
'
|
|
43
|
+
'_function': json['function'] == null ? undefined : SandboxFunctionFromJSON(json['function']),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export function SandboxAppServiceRuntimeToJSON(json) {
|
|
@@ -54,6 +55,6 @@ export function SandboxAppServiceRuntimeToJSONTyped(value, ignoreDiscriminator =
|
|
|
54
55
|
'command': value['command'],
|
|
55
56
|
'cwd': value['cwd'],
|
|
56
57
|
'env_vars': value['envVars'],
|
|
57
|
-
'
|
|
58
|
+
'function': SandboxFunctionToJSON(value['_function']),
|
|
58
59
|
};
|
|
59
60
|
}
|
|
@@ -31,11 +31,11 @@ export interface SandboxAppServiceView {
|
|
|
31
31
|
*/
|
|
32
32
|
displayName?: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Public exposure routing port. Required for manual and cmd services. Omit for function services; Sandbox0 assigns the internal function service port.
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof SandboxAppServiceView
|
|
37
37
|
*/
|
|
38
|
-
port
|
|
38
|
+
port?: number;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {SandboxAppServiceRuntime}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceView.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceView.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAK7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAgBjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBhI"}
|
|
@@ -20,8 +20,6 @@ import { SandboxAppServiceRuntimeFromJSON, SandboxAppServiceRuntimeToJSON, } fro
|
|
|
20
20
|
export function instanceOfSandboxAppServiceView(value) {
|
|
21
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
if (!('ingress' in value) || value['ingress'] === undefined)
|
|
26
24
|
return false;
|
|
27
25
|
if (!('publishable' in value) || value['publishable'] === undefined)
|
|
@@ -38,7 +36,7 @@ export function SandboxAppServiceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'],
|
|
40
38
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
41
|
-
'port': json['port'],
|
|
39
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
42
40
|
'runtime': json['runtime'] == null ? undefined : SandboxAppServiceRuntimeFromJSON(json['runtime']),
|
|
43
41
|
'ingress': SandboxAppServiceIngressFromJSON(json['ingress']),
|
|
44
42
|
'healthCheck': json['health_check'] == null ? undefined : SandboxAppServiceHealthFromJSON(json['health_check']),
|
|
@@ -27,13 +27,13 @@ export interface SandboxConfig {
|
|
|
27
27
|
[key: string]: string;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Runtime soft time-to-live in seconds. When it expires, Sandbox0 checkpoints the writable rootfs, pauses the sandbox, and releases runtime compute while preserving durable sandbox state.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof SandboxConfig
|
|
33
33
|
*/
|
|
34
34
|
ttl?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sandbox hard time-to-live in seconds. When it expires, Sandbox0 deletes the sandbox identity and durable state, including paused rootfs checkpoints.
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof SandboxConfig
|
|
39
39
|
*/
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SandboxFunctionSource } from './SandboxFunctionSource.js';
|
|
13
|
+
/**
|
|
14
|
+
* Function code executed by procd for a sandbox service request. cluster-gateway owns public ingress and carries this source to procd.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SandboxFunction
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxFunction {
|
|
19
|
+
/**
|
|
20
|
+
* Function runtime. Only python is supported in this version.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SandboxFunction
|
|
23
|
+
*/
|
|
24
|
+
runtime: SandboxFunctionRuntimeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Python callable name. Defaults to handler.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SandboxFunction
|
|
29
|
+
*/
|
|
30
|
+
handler?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SandboxFunctionSource}
|
|
34
|
+
* @memberof SandboxFunction
|
|
35
|
+
*/
|
|
36
|
+
source: SandboxFunctionSource;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const SandboxFunctionRuntimeEnum: {
|
|
42
|
+
readonly Python: "python";
|
|
43
|
+
};
|
|
44
|
+
export type SandboxFunctionRuntimeEnum = typeof SandboxFunctionRuntimeEnum[keyof typeof SandboxFunctionRuntimeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SandboxFunction interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSandboxFunction(value: object): value is SandboxFunction;
|
|
49
|
+
export declare function SandboxFunctionFromJSON(json: any): SandboxFunction;
|
|
50
|
+
export declare function SandboxFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxFunction;
|
|
51
|
+
export declare function SandboxFunctionToJSON(json: any): SandboxFunction;
|
|
52
|
+
export declare function SandboxFunctionToJSONTyped(value?: SandboxFunction | null, ignoreDiscriminator?: boolean): any;
|
|
53
|
+
//# sourceMappingURL=SandboxFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxFunction.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxFunction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,0BAA0B,CAAC;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;CACjC;AAGD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAIjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SandboxFunctionSourceFromJSON, SandboxFunctionSourceToJSON, } from './SandboxFunctionSource.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SandboxFunctionRuntimeEnum = {
|
|
19
|
+
Python: 'python'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SandboxFunction interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfSandboxFunction(value) {
|
|
25
|
+
if (!('runtime' in value) || value['runtime'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function SandboxFunctionFromJSON(json) {
|
|
32
|
+
return SandboxFunctionFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function SandboxFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'runtime': json['runtime'],
|
|
40
|
+
'handler': json['handler'] == null ? undefined : json['handler'],
|
|
41
|
+
'source': SandboxFunctionSourceFromJSON(json['source']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function SandboxFunctionToJSON(json) {
|
|
45
|
+
return SandboxFunctionToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function SandboxFunctionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'runtime': value['runtime'],
|
|
53
|
+
'handler': value['handler'],
|
|
54
|
+
'source': SandboxFunctionSourceToJSON(value['source']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Function source code stored in sandbox service config.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SandboxFunctionSource
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxFunctionSource {
|
|
18
|
+
/**
|
|
19
|
+
* Source transport. Only inline source is supported in this version.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxFunctionSource
|
|
22
|
+
*/
|
|
23
|
+
type: SandboxFunctionSourceTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Inline source code. Limited to 256 KiB.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxFunctionSource
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SandboxFunctionSourceTypeEnum: {
|
|
35
|
+
readonly Inline: "inline";
|
|
36
|
+
};
|
|
37
|
+
export type SandboxFunctionSourceTypeEnum = typeof SandboxFunctionSourceTypeEnum[keyof typeof SandboxFunctionSourceTypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SandboxFunctionSource interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSandboxFunctionSource(value: object): value is SandboxFunctionSource;
|
|
42
|
+
export declare function SandboxFunctionSourceFromJSON(json: any): SandboxFunctionSource;
|
|
43
|
+
export declare function SandboxFunctionSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxFunctionSource;
|
|
44
|
+
export declare function SandboxFunctionSourceToJSON(json: any): SandboxFunctionSource;
|
|
45
|
+
export declare function SandboxFunctionSourceToJSONTyped(value?: SandboxFunctionSource | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=SandboxFunctionSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxFunctionSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxFunctionSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,6BAA6B,CAAC;IACpC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAGD;;GAEG;AACH,eAAO,MAAM,6BAA6B;;CAEhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CASjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhI"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const SandboxFunctionSourceTypeEnum = {
|
|
18
|
+
Inline: 'inline'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SandboxFunctionSource interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfSandboxFunctionSource(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SandboxFunctionSourceFromJSON(json) {
|
|
31
|
+
return SandboxFunctionSourceFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SandboxFunctionSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'code': json['code'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SandboxFunctionSourceToJSON(json) {
|
|
43
|
+
return SandboxFunctionSourceToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SandboxFunctionSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'code': value['code'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
export declare const SandboxLifecycleStatus: {
|
|
17
17
|
readonly SandboxLifecycleStatusStarting: "starting";
|
|
18
18
|
readonly SandboxLifecycleStatusRunning: "running";
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
19
|
+
readonly SandboxLifecycleStatusPausing: "pausing";
|
|
20
|
+
readonly SandboxLifecycleStatusPaused: "paused";
|
|
21
|
+
readonly SandboxLifecycleStatusResuming: "resuming";
|
|
21
22
|
readonly SandboxLifecycleStatusTerminating: "terminating";
|
|
22
|
-
readonly
|
|
23
|
+
readonly SandboxLifecycleStatusFailed: "failed";
|
|
23
24
|
};
|
|
24
25
|
export type SandboxLifecycleStatus = typeof SandboxLifecycleStatus[keyof typeof SandboxLifecycleStatus];
|
|
25
26
|
export declare function instanceOfSandboxLifecycleStatus(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxLifecycleStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxLifecycleStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"SandboxLifecycleStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxLifecycleStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAGxG,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAEnH;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,GAAG,GAAG,CAEvF;AAED,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAElH"}
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
export const SandboxLifecycleStatus = {
|
|
19
19
|
SandboxLifecycleStatusStarting: 'starting',
|
|
20
20
|
SandboxLifecycleStatusRunning: 'running',
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
SandboxLifecycleStatusPausing: 'pausing',
|
|
22
|
+
SandboxLifecycleStatusPaused: 'paused',
|
|
23
|
+
SandboxLifecycleStatusResuming: 'resuming',
|
|
23
24
|
SandboxLifecycleStatusTerminating: 'terminating',
|
|
24
|
-
|
|
25
|
+
SandboxLifecycleStatusFailed: 'failed'
|
|
25
26
|
};
|
|
26
27
|
export function instanceOfSandboxLifecycleStatus(value) {
|
|
27
28
|
for (const key in SandboxLifecycleStatus) {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SandboxLifecycleStatus } from './SandboxLifecycleStatus.js';
|
|
13
|
-
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -36,17 +35,17 @@ export interface SandboxSummary {
|
|
|
36
35
|
*/
|
|
37
36
|
status: SandboxLifecycleStatus;
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
38
|
+
* True when status is paused and no runtime is attached.
|
|
40
39
|
* @type {boolean}
|
|
41
40
|
* @memberof SandboxSummary
|
|
42
41
|
*/
|
|
43
42
|
paused: boolean;
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
44
|
+
* Monotonically increasing runtime generation. Resume starts a new generation.
|
|
45
|
+
* @type {number}
|
|
47
46
|
* @memberof SandboxSummary
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
runtimeGeneration: number;
|
|
50
49
|
/**
|
|
51
50
|
* Cluster where sandbox runs (multi-cluster only)
|
|
52
51
|
* @type {string}
|
|
@@ -71,6 +70,12 @@ export interface SandboxSummary {
|
|
|
71
70
|
* @memberof SandboxSummary
|
|
72
71
|
*/
|
|
73
72
|
hardExpiresAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof SandboxSummary
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: Date;
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
76
81
|
* Check if a given object implements the SandboxSummary interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAW/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAiBnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBlH"}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { SandboxLifecycleStatusFromJSON, SandboxLifecycleStatusToJSON, } from './SandboxLifecycleStatus.js';
|
|
15
|
-
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
16
15
|
/**
|
|
17
16
|
* Check if a given object implements the SandboxSummary interface.
|
|
18
17
|
*/
|
|
@@ -25,7 +24,7 @@ export function instanceOfSandboxSummary(value) {
|
|
|
25
24
|
return false;
|
|
26
25
|
if (!('paused' in value) || value['paused'] === undefined)
|
|
27
26
|
return false;
|
|
28
|
-
if (!('
|
|
27
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
29
28
|
return false;
|
|
30
29
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
30
|
return false;
|
|
@@ -33,6 +32,8 @@ export function instanceOfSandboxSummary(value) {
|
|
|
33
32
|
return false;
|
|
34
33
|
if (!('hardExpiresAt' in value) || value['hardExpiresAt'] === undefined)
|
|
35
34
|
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
36
37
|
return true;
|
|
37
38
|
}
|
|
38
39
|
export function SandboxSummaryFromJSON(json) {
|
|
@@ -47,11 +48,12 @@ export function SandboxSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'templateId': json['template_id'],
|
|
48
49
|
'status': SandboxLifecycleStatusFromJSON(json['status']),
|
|
49
50
|
'paused': json['paused'],
|
|
50
|
-
'
|
|
51
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
51
52
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
52
53
|
'createdAt': (new Date(json['created_at'])),
|
|
53
54
|
'expiresAt': (new Date(json['expires_at'])),
|
|
54
55
|
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
56
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
export function SandboxSummaryToJSON(json) {
|
|
@@ -66,10 +68,11 @@ export function SandboxSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
68
|
'template_id': value['templateId'],
|
|
67
69
|
'status': SandboxLifecycleStatusToJSON(value['status']),
|
|
68
70
|
'paused': value['paused'],
|
|
69
|
-
'
|
|
71
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
70
72
|
'cluster_id': value['clusterId'],
|
|
71
73
|
'created_at': value['createdAt'].toISOString(),
|
|
72
74
|
'expires_at': value['expiresAt'].toISOString(),
|
|
73
75
|
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
76
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
74
77
|
};
|
|
75
78
|
}
|
|
@@ -13,7 +13,6 @@ import type { PoolStrategy } from './PoolStrategy.js';
|
|
|
13
13
|
import type { SandboxNetworkPolicy } from './SandboxNetworkPolicy.js';
|
|
14
14
|
import type { ContainerSpec } from './ContainerSpec.js';
|
|
15
15
|
import type { LifecyclePolicy } from './LifecyclePolicy.js';
|
|
16
|
-
import type { WarmProcessSpec } from './WarmProcessSpec.js';
|
|
17
16
|
import type { VolumeMountSpec } from './VolumeMountSpec.js';
|
|
18
17
|
import type { PodSpecOverride } from './PodSpecOverride.js';
|
|
19
18
|
/**
|
|
@@ -46,12 +45,6 @@ export interface SandboxTemplateSpec {
|
|
|
46
45
|
* @memberof SandboxTemplateSpec
|
|
47
46
|
*/
|
|
48
47
|
mainContainer?: ContainerSpec;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Array<WarmProcessSpec>}
|
|
52
|
-
* @memberof SandboxTemplateSpec
|
|
53
|
-
*/
|
|
54
|
-
warmProcesses?: Array<WarmProcessSpec>;
|
|
55
48
|
/**
|
|
56
49
|
*
|
|
57
50
|
* @type {Array<VolumeMountSpec>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxTemplateSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxTemplateSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxTemplateSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxTemplateSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACtC;;;;OAIG;IACH,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAoB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB5H"}
|
|
@@ -15,7 +15,6 @@ import { PoolStrategyFromJSON, PoolStrategyToJSON, } from './PoolStrategy.js';
|
|
|
15
15
|
import { SandboxNetworkPolicyFromJSON, SandboxNetworkPolicyToJSON, } from './SandboxNetworkPolicy.js';
|
|
16
16
|
import { ContainerSpecFromJSON, ContainerSpecToJSON, } from './ContainerSpec.js';
|
|
17
17
|
import { LifecyclePolicyFromJSON, LifecyclePolicyToJSON, } from './LifecyclePolicy.js';
|
|
18
|
-
import { WarmProcessSpecFromJSON, WarmProcessSpecToJSON, } from './WarmProcessSpec.js';
|
|
19
18
|
import { VolumeMountSpecFromJSON, VolumeMountSpecToJSON, } from './VolumeMountSpec.js';
|
|
20
19
|
import { PodSpecOverrideFromJSON, PodSpecOverrideToJSON, } from './PodSpecOverride.js';
|
|
21
20
|
/**
|
|
@@ -36,7 +35,6 @@ export function SandboxTemplateSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
35
|
'displayName': json['displayName'] == null ? undefined : json['displayName'],
|
|
37
36
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
38
37
|
'mainContainer': json['mainContainer'] == null ? undefined : ContainerSpecFromJSON(json['mainContainer']),
|
|
39
|
-
'warmProcesses': json['warmProcesses'] == null ? undefined : (json['warmProcesses'].map(WarmProcessSpecFromJSON)),
|
|
40
38
|
'volumeMounts': json['volumeMounts'] == null ? undefined : (json['volumeMounts'].map(VolumeMountSpecFromJSON)),
|
|
41
39
|
'pod': json['pod'] == null ? undefined : PodSpecOverrideFromJSON(json['pod']),
|
|
42
40
|
'network': json['network'] == null ? undefined : SandboxNetworkPolicyFromJSON(json['network']),
|
|
@@ -60,7 +58,6 @@ export function SandboxTemplateSpecToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
60
58
|
'displayName': value['displayName'],
|
|
61
59
|
'tags': value['tags'],
|
|
62
60
|
'mainContainer': ContainerSpecToJSON(value['mainContainer']),
|
|
63
|
-
'warmProcesses': value['warmProcesses'] == null ? undefined : (value['warmProcesses'].map(WarmProcessSpecToJSON)),
|
|
64
61
|
'volumeMounts': value['volumeMounts'] == null ? undefined : (value['volumeMounts'].map(VolumeMountSpecToJSON)),
|
|
65
62
|
'pod': PodSpecOverrideToJSON(value['pod']),
|
|
66
63
|
'network': SandboxNetworkPolicyToJSON(value['network']),
|
|
@@ -20,13 +20,13 @@ import type { SandboxNetworkPolicy } from './SandboxNetworkPolicy.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface SandboxUpdateConfig {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Runtime soft time-to-live in seconds. When it expires, Sandbox0 checkpoints the writable rootfs, pauses the sandbox, and releases runtime compute while preserving durable sandbox state.
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof SandboxUpdateConfig
|
|
26
26
|
*/
|
|
27
27
|
ttl?: number;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sandbox hard time-to-live in seconds. When it expires, Sandbox0 deletes the sandbox identity and durable state, including paused rootfs checkpoints.
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof SandboxUpdateConfig
|
|
32
32
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SeccompProfile
|
|
16
|
+
*/
|
|
17
|
+
export interface SeccompProfile {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SeccompProfile
|
|
22
|
+
*/
|
|
23
|
+
type: SeccompProfileTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SeccompProfile
|
|
28
|
+
*/
|
|
29
|
+
localhostProfile?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SeccompProfileTypeEnum: {
|
|
35
|
+
readonly Unconfined: "Unconfined";
|
|
36
|
+
readonly RuntimeDefault: "RuntimeDefault";
|
|
37
|
+
readonly Localhost: "Localhost";
|
|
38
|
+
};
|
|
39
|
+
export type SeccompProfileTypeEnum = typeof SeccompProfileTypeEnum[keyof typeof SeccompProfileTypeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the SeccompProfile interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfSeccompProfile(value: object): value is SeccompProfile;
|
|
44
|
+
export declare function SeccompProfileFromJSON(json: any): SeccompProfile;
|
|
45
|
+
export declare function SeccompProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeccompProfile;
|
|
46
|
+
export declare function SeccompProfileToJSON(json: any): SeccompProfile;
|
|
47
|
+
export declare function SeccompProfileToJSONTyped(value?: SeccompProfile | null, ignoreDiscriminator?: boolean): any;
|
|
48
|
+
//# sourceMappingURL=SeccompProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeccompProfile.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SeccompProfile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAGD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAGxG;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CASnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlH"}
|