sandbox0 0.5.4 → 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/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 +1 -7
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.js +0 -3
- 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/SandboxFunctionSource.d.ts +0 -6
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxFunctionSource.js +0 -2
- 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 +3 -4
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +3 -4
- package/dist/apispec_compat.d.ts +1 -1509
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/apispec_compat.js +1 -10
- 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/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/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
|
@@ -43,12 +43,7 @@ export interface SandboxAppServiceRuntime {
|
|
|
43
43
|
[key: string]: string;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof SandboxAppServiceRuntime
|
|
49
|
-
*/
|
|
50
|
-
warmProcessName?: string;
|
|
51
|
-
/**
|
|
46
|
+
*
|
|
52
47
|
* @type {SandboxFunction}
|
|
53
48
|
* @memberof SandboxAppServiceRuntime
|
|
54
49
|
*/
|
|
@@ -58,7 +53,6 @@ export interface SandboxAppServiceRuntime {
|
|
|
58
53
|
* @export
|
|
59
54
|
*/
|
|
60
55
|
export declare const SandboxAppServiceRuntimeTypeEnum: {
|
|
61
|
-
readonly WarmProcess: "warm_process";
|
|
62
56
|
readonly Cmd: "cmd";
|
|
63
57
|
readonly Manual: "manual";
|
|
64
58
|
readonly Function: "function";
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -16,7 +16,6 @@ import { SandboxFunctionFromJSON, SandboxFunctionToJSON, } from './SandboxFuncti
|
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const SandboxAppServiceRuntimeTypeEnum = {
|
|
19
|
-
WarmProcess: 'warm_process',
|
|
20
19
|
Cmd: 'cmd',
|
|
21
20
|
Manual: 'manual',
|
|
22
21
|
Function: 'function'
|
|
@@ -41,7 +40,6 @@ export function SandboxAppServiceRuntimeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
40
|
'command': json['command'] == null ? undefined : json['command'],
|
|
42
41
|
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
43
42
|
'envVars': json['env_vars'] == null ? undefined : json['env_vars'],
|
|
44
|
-
'warmProcessName': json['warm_process_name'] == null ? undefined : json['warm_process_name'],
|
|
45
43
|
'_function': json['function'] == null ? undefined : SandboxFunctionFromJSON(json['function']),
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -57,7 +55,6 @@ export function SandboxAppServiceRuntimeToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
55
|
'command': value['command'],
|
|
58
56
|
'cwd': value['cwd'],
|
|
59
57
|
'env_vars': value['envVars'],
|
|
60
|
-
'warm_process_name': value['warmProcessName'],
|
|
61
58
|
'function': SandboxFunctionToJSON(value['_function']),
|
|
62
59
|
};
|
|
63
60
|
}
|
|
@@ -31,11 +31,11 @@ export interface SandboxAppServiceView {
|
|
|
31
31
|
*/
|
|
32
32
|
displayName?: string;
|
|
33
33
|
/**
|
|
34
|
-
* Public exposure routing port.
|
|
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
|
*/
|
|
@@ -21,12 +21,6 @@ export interface SandboxFunctionSource {
|
|
|
21
21
|
* @memberof SandboxFunctionSource
|
|
22
22
|
*/
|
|
23
23
|
type: SandboxFunctionSourceTypeEnum;
|
|
24
|
-
/**
|
|
25
|
-
* Relative Python filename used when materializing the source. Defaults to main.py.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SandboxFunctionSource
|
|
28
|
-
*/
|
|
29
|
-
filename?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Inline source code. Limited to 256 KiB.
|
|
32
26
|
* @type {string}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -36,7 +36,6 @@ export function SandboxFunctionSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'type': json['type'],
|
|
39
|
-
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
40
39
|
'code': json['code'],
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -49,7 +48,6 @@ export function SandboxFunctionSourceToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
48
|
}
|
|
50
49
|
return {
|
|
51
50
|
'type': value['type'],
|
|
52
|
-
'filename': value['filename'],
|
|
53
51
|
'code': value['code'],
|
|
54
52
|
};
|
|
55
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"}
|
|
@@ -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 SeccompProfileTypeEnum = {
|
|
18
|
+
Unconfined: 'Unconfined',
|
|
19
|
+
RuntimeDefault: 'RuntimeDefault',
|
|
20
|
+
Localhost: 'Localhost'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SeccompProfile interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfSeccompProfile(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SeccompProfileFromJSON(json) {
|
|
31
|
+
return SeccompProfileFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SeccompProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'localhostProfile': json['localhostProfile'] == null ? undefined : json['localhostProfile'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SeccompProfileToJSON(json) {
|
|
43
|
+
return SeccompProfileToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SeccompProfileToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'localhostProfile': value['localhostProfile'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Capabilities } from './Capabilities.js';
|
|
13
|
+
import type { AppArmorProfile } from './AppArmorProfile.js';
|
|
14
|
+
import type { SeccompProfile } from './SeccompProfile.js';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
17
|
* @export
|
|
@@ -22,6 +24,12 @@ export interface SecurityContext {
|
|
|
22
24
|
* @memberof SecurityContext
|
|
23
25
|
*/
|
|
24
26
|
capabilities?: Capabilities;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof SecurityContext
|
|
31
|
+
*/
|
|
32
|
+
privileged?: boolean;
|
|
25
33
|
/**
|
|
26
34
|
*
|
|
27
35
|
* @type {number}
|
|
@@ -34,6 +42,36 @@ export interface SecurityContext {
|
|
|
34
42
|
* @memberof SecurityContext
|
|
35
43
|
*/
|
|
36
44
|
runAsGroup?: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof SecurityContext
|
|
49
|
+
*/
|
|
50
|
+
runAsNonRoot?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof SecurityContext
|
|
55
|
+
*/
|
|
56
|
+
readOnlyRootFilesystem?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof SecurityContext
|
|
61
|
+
*/
|
|
62
|
+
allowPrivilegeEscalation?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {SeccompProfile}
|
|
66
|
+
* @memberof SecurityContext
|
|
67
|
+
*/
|
|
68
|
+
seccompProfile?: SeccompProfile;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {AppArmorProfile}
|
|
72
|
+
* @memberof SecurityContext
|
|
73
|
+
*/
|
|
74
|
+
appArmorProfile?: AppArmorProfile;
|
|
37
75
|
}
|
|
38
76
|
/**
|
|
39
77
|
* Check if a given object implements the SecurityContext interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecurityContext.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SecurityContext.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"SecurityContext.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SecurityContext.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAgBrG;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,CAiBpH"}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { CapabilitiesFromJSON, CapabilitiesToJSON, } from './Capabilities.js';
|
|
15
|
+
import { AppArmorProfileFromJSON, AppArmorProfileToJSON, } from './AppArmorProfile.js';
|
|
16
|
+
import { SeccompProfileFromJSON, SeccompProfileToJSON, } from './SeccompProfile.js';
|
|
15
17
|
/**
|
|
16
18
|
* Check if a given object implements the SecurityContext interface.
|
|
17
19
|
*/
|
|
@@ -27,8 +29,14 @@ export function SecurityContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
29
|
}
|
|
28
30
|
return {
|
|
29
31
|
'capabilities': json['capabilities'] == null ? undefined : CapabilitiesFromJSON(json['capabilities']),
|
|
32
|
+
'privileged': json['privileged'] == null ? undefined : json['privileged'],
|
|
30
33
|
'runAsUser': json['runAsUser'] == null ? undefined : json['runAsUser'],
|
|
31
34
|
'runAsGroup': json['runAsGroup'] == null ? undefined : json['runAsGroup'],
|
|
35
|
+
'runAsNonRoot': json['runAsNonRoot'] == null ? undefined : json['runAsNonRoot'],
|
|
36
|
+
'readOnlyRootFilesystem': json['readOnlyRootFilesystem'] == null ? undefined : json['readOnlyRootFilesystem'],
|
|
37
|
+
'allowPrivilegeEscalation': json['allowPrivilegeEscalation'] == null ? undefined : json['allowPrivilegeEscalation'],
|
|
38
|
+
'seccompProfile': json['seccompProfile'] == null ? undefined : SeccompProfileFromJSON(json['seccompProfile']),
|
|
39
|
+
'appArmorProfile': json['appArmorProfile'] == null ? undefined : AppArmorProfileFromJSON(json['appArmorProfile']),
|
|
32
40
|
};
|
|
33
41
|
}
|
|
34
42
|
export function SecurityContextToJSON(json) {
|
|
@@ -40,7 +48,13 @@ export function SecurityContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
40
48
|
}
|
|
41
49
|
return {
|
|
42
50
|
'capabilities': CapabilitiesToJSON(value['capabilities']),
|
|
51
|
+
'privileged': value['privileged'],
|
|
43
52
|
'runAsUser': value['runAsUser'],
|
|
44
53
|
'runAsGroup': value['runAsGroup'],
|
|
54
|
+
'runAsNonRoot': value['runAsNonRoot'],
|
|
55
|
+
'readOnlyRootFilesystem': value['readOnlyRootFilesystem'],
|
|
56
|
+
'allowPrivilegeEscalation': value['allowPrivilegeEscalation'],
|
|
57
|
+
'seccompProfile': SeccompProfileToJSON(value['seccompProfile']),
|
|
58
|
+
'appArmorProfile': AppArmorProfileToJSON(value['appArmorProfile']),
|
|
45
59
|
};
|
|
46
60
|
}
|
|
@@ -2,6 +2,7 @@ export * from './APIKey.js';
|
|
|
2
2
|
export * from './AddTeamMemberRequest.js';
|
|
3
3
|
export * from './Affinity.js';
|
|
4
4
|
export * from './ApiV1SandboxesIdFilesGet200Response.js';
|
|
5
|
+
export * from './AppArmorProfile.js';
|
|
5
6
|
export * from './AuthProvider.js';
|
|
6
7
|
export * from './CachePolicySpec.js';
|
|
7
8
|
export * from './Capabilities.js';
|
|
@@ -49,6 +50,7 @@ export * from './EgressCredentialRule.js';
|
|
|
49
50
|
export * from './EgressProxyPolicy.js';
|
|
50
51
|
export * from './EgressProxyType.js';
|
|
51
52
|
export * from './EgressTLSMode.js';
|
|
53
|
+
export * from './EmptyDirMountSpec.js';
|
|
52
54
|
export * from './EnvVar.js';
|
|
53
55
|
export * from './ErrorEnvelope.js';
|
|
54
56
|
export * from './ExecAction.js';
|
|
@@ -137,9 +139,6 @@ export * from './SandboxFunction.js';
|
|
|
137
139
|
export * from './SandboxFunctionSource.js';
|
|
138
140
|
export * from './SandboxLifecycleStatus.js';
|
|
139
141
|
export * from './SandboxNetworkPolicy.js';
|
|
140
|
-
export * from './SandboxPowerState.js';
|
|
141
|
-
export * from './SandboxProbeSet.js';
|
|
142
|
-
export * from './SandboxProbeSpec.js';
|
|
143
142
|
export * from './SandboxRefreshRequest.js';
|
|
144
143
|
export * from './SandboxResourceUsage.js';
|
|
145
144
|
export * from './SandboxSSHConnection.js';
|
|
@@ -153,6 +152,7 @@ export * from './SandboxTemplateStatus.js';
|
|
|
153
152
|
export * from './SandboxUpdateConfig.js';
|
|
154
153
|
export * from './SandboxUpdateRequest.js';
|
|
155
154
|
export * from './SandboxVolume.js';
|
|
155
|
+
export * from './SeccompProfile.js';
|
|
156
156
|
export * from './SecurityContext.js';
|
|
157
157
|
export * from './SignalContextRequest.js';
|
|
158
158
|
export * from './Snapshot.js';
|
|
@@ -257,7 +257,6 @@ export * from './User.js';
|
|
|
257
257
|
export * from './VolumeAccessMode.js';
|
|
258
258
|
export * from './VolumeFileArchiveImportResponse.js';
|
|
259
259
|
export * from './VolumeMountSpec.js';
|
|
260
|
-
export * from './WarmProcessSpec.js';
|
|
261
260
|
export * from './WebLoginExchangeRequest.js';
|
|
262
261
|
export * from './WebhookConfig.js';
|
|
263
262
|
export * from './WeightedPodAffinityTerm.js';
|