sandbox0 0.10.3 → 0.10.5
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 +134 -0
- package/dist/apispec/src/apis/FilesApi.d.ts +14 -10
- package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FilesApi.js +14 -10
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +96 -5
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxRootfsApi.js +291 -5
- package/dist/apispec/src/apis/SandboxesApi.d.ts +345 -6
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +1017 -7
- package/dist/apispec/src/apis/SessionsApi.d.ts +51 -1
- package/dist/apispec/src/apis/SessionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SessionsApi.js +159 -1
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.d.ts +51 -0
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.js +49 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.d.ts +46 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.js +52 -0
- package/dist/apispec/src/models/ContainerSpec.d.ts +1 -2
- package/dist/apispec/src/models/ContainerSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/ContainerSpec.js +0 -1
- package/dist/apispec/src/models/ForkSandboxConfig.d.ts +6 -0
- package/dist/apispec/src/models/ForkSandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkSandboxConfig.js +2 -0
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts +6 -0
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkSandboxRequest.js +2 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.d.ts +64 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.js +65 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.d.ts +39 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.js +47 -0
- package/dist/apispec/src/models/ManagedFilesState.d.ts +58 -0
- package/dist/apispec/src/models/ManagedFilesState.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFilesState.js +61 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts +12 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/PauseSandboxResponse.js +4 -0
- package/dist/apispec/src/models/QuotaDimension.d.ts +6 -1
- package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -1
- package/dist/apispec/src/models/QuotaDimension.js +6 -1
- package/dist/apispec/src/models/ResourceQuota.d.ts +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +25 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.js +8 -0
- package/dist/apispec/src/models/SandboxExecutionStateRequest.d.ts +14 -2
- package/dist/apispec/src/models/SandboxExecutionStateRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxExecutionStateRequest.js +4 -0
- package/dist/apispec/src/models/SandboxHealth.d.ts +99 -0
- package/dist/apispec/src/models/SandboxHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxHealth.js +90 -0
- package/dist/apispec/src/models/SandboxHealthObservation.d.ts +109 -0
- package/dist/apispec/src/models/SandboxHealthObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxHealthObservation.js +110 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.d.ts +115 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.js +100 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.d.ts +64 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.js +64 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.d.ts +63 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.js +63 -0
- package/dist/apispec/src/models/SandboxPauseRequest.d.ts +39 -0
- package/dist/apispec/src/models/SandboxPauseRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPauseRequest.js +43 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.d.ts +79 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.js +70 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.d.ts +39 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.js +47 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.d.ts +69 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.js +67 -0
- package/dist/apispec/src/models/SandboxRestartOperation.d.ts +115 -0
- package/dist/apispec/src/models/SandboxRestartOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartOperation.js +95 -0
- package/dist/apispec/src/models/SandboxRestartRequest.d.ts +33 -0
- package/dist/apispec/src/models/SandboxRestartRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartRequest.js +43 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.d.ts +83 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.js +75 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.d.ts +123 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.js +104 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.d.ts +51 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.js +55 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.d.ts +129 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.js +107 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.d.ts +138 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.js +111 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts +6 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxRootFSSnapshot.js +2 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.d.ts +40 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.js +48 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.d.ts +139 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.js +109 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.d.ts +51 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.js +55 -0
- package/dist/apispec/src/models/SandboxStorageHealth.d.ts +46 -0
- package/dist/apispec/src/models/SandboxStorageHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxStorageHealth.js +52 -0
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +15 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +3 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.js +48 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.js +48 -0
- package/dist/apispec/src/models/index.d.ts +37 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +37 -0
- package/dist/fork_launch.d.ts +15 -0
- package/dist/fork_launch.d.ts.map +1 -0
- package/dist/fork_launch.js +38 -0
- package/dist/health.d.ts +4 -0
- package/dist/health.d.ts.map +1 -0
- package/dist/health.js +46 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/memory_operation.d.ts +12 -0
- package/dist/memory_operation.d.ts.map +1 -0
- package/dist/memory_operation.js +44 -0
- package/dist/memory_restoration.d.ts +5 -0
- package/dist/memory_restoration.d.ts.map +1 -0
- package/dist/memory_restoration.js +29 -0
- package/dist/models.d.ts +2 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/sandboxes.d.ts +73 -1
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +336 -3
- package/dist/restart_final_capture.d.ts +10 -0
- package/dist/restart_final_capture.d.ts.map +1 -0
- package/dist/restart_final_capture.js +52 -0
- package/dist/sandbox_managed_files.d.ts +34 -0
- package/dist/sandbox_managed_files.d.ts.map +1 -0
- package/dist/sandbox_managed_files.js +96 -0
- package/dist/sandbox_sessions.d.ts +5 -0
- package/dist/sandbox_sessions.d.ts.map +1 -1
- package/dist/sandbox_sessions.js +103 -1
- package/dist/ws_client.d.ts +8 -0
- package/dist/ws_client.d.ts.map +1 -1
- package/dist/ws_client.js +20 -2
- package/package.json +2 -2
|
@@ -0,0 +1,99 @@
|
|
|
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 { SandboxStorageHealth } from './SandboxStorageHealth.js';
|
|
13
|
+
import type { SandboxHealthObservation } from './SandboxHealthObservation.js';
|
|
14
|
+
import type { SandboxRuntimeHealth } from './SandboxRuntimeHealth.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SandboxHealth
|
|
19
|
+
*/
|
|
20
|
+
export interface SandboxHealth {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof SandboxHealth
|
|
25
|
+
*/
|
|
26
|
+
sandboxId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof SandboxHealth
|
|
31
|
+
*/
|
|
32
|
+
runtimeGeneration: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof SandboxHealth
|
|
37
|
+
*/
|
|
38
|
+
lifecycleEpoch: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof SandboxHealth
|
|
43
|
+
*/
|
|
44
|
+
desiredState: SandboxHealthDesiredStateEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof SandboxHealth
|
|
49
|
+
*/
|
|
50
|
+
activeLifecycle: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Latest regional authority snapshot time; individual checks retain their own observation time.
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof SandboxHealth
|
|
55
|
+
*/
|
|
56
|
+
observedAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {SandboxRuntimeHealth}
|
|
60
|
+
* @memberof SandboxHealth
|
|
61
|
+
*/
|
|
62
|
+
runtime: SandboxRuntimeHealth;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {SandboxHealthObservation}
|
|
66
|
+
* @memberof SandboxHealth
|
|
67
|
+
*/
|
|
68
|
+
execution: SandboxHealthObservation;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {SandboxHealthObservation}
|
|
72
|
+
* @memberof SandboxHealth
|
|
73
|
+
*/
|
|
74
|
+
terminal: SandboxHealthObservation;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {SandboxStorageHealth}
|
|
78
|
+
* @memberof SandboxHealth
|
|
79
|
+
*/
|
|
80
|
+
storage: SandboxStorageHealth;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const SandboxHealthDesiredStateEnum: {
|
|
86
|
+
readonly HealthDesiredActive: "active";
|
|
87
|
+
readonly HealthDesiredPaused: "paused";
|
|
88
|
+
readonly HealthDesiredTerminated: "terminated";
|
|
89
|
+
};
|
|
90
|
+
export type SandboxHealthDesiredStateEnum = typeof SandboxHealthDesiredStateEnum[keyof typeof SandboxHealthDesiredStateEnum];
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the SandboxHealth interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfSandboxHealth(value: object): value is SandboxHealth;
|
|
95
|
+
export declare function SandboxHealthFromJSON(json: any): SandboxHealth;
|
|
96
|
+
export declare function SandboxHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxHealth;
|
|
97
|
+
export declare function SandboxHealthToJSON(json: any): SandboxHealth;
|
|
98
|
+
export declare function SandboxHealthToJSONTyped(value?: SandboxHealth | null, ignoreDiscriminator?: boolean): any;
|
|
99
|
+
//# sourceMappingURL=SandboxHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxHealth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxHealth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,6BAA6B,CAAC;IAC5C;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,EAAE,wBAAwB,CAAC;IACpC;;;;OAIG;IACH,QAAQ,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,oBAAoB,CAAC;CACjC;AAGD;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAY7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAiBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBhH"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { SandboxStorageHealthFromJSON, SandboxStorageHealthToJSON, } from './SandboxStorageHealth.js';
|
|
15
|
+
import { SandboxHealthObservationFromJSON, SandboxHealthObservationToJSON, } from './SandboxHealthObservation.js';
|
|
16
|
+
import { SandboxRuntimeHealthFromJSON, SandboxRuntimeHealthToJSON, } from './SandboxRuntimeHealth.js';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SandboxHealthDesiredStateEnum = {
|
|
21
|
+
HealthDesiredActive: 'active',
|
|
22
|
+
HealthDesiredPaused: 'paused',
|
|
23
|
+
HealthDesiredTerminated: 'terminated'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SandboxHealth interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfSandboxHealth(value) {
|
|
29
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('lifecycleEpoch' in value) || value['lifecycleEpoch'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('desiredState' in value) || value['desiredState'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('activeLifecycle' in value) || value['activeLifecycle'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('observedAt' in value) || value['observedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('runtime' in value) || value['runtime'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('execution' in value) || value['execution'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('terminal' in value) || value['terminal'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('storage' in value) || value['storage'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
export function SandboxHealthFromJSON(json) {
|
|
52
|
+
return SandboxHealthFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function SandboxHealthFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'sandboxId': json['sandbox_id'],
|
|
60
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
61
|
+
'lifecycleEpoch': json['lifecycle_epoch'],
|
|
62
|
+
'desiredState': json['desired_state'],
|
|
63
|
+
'activeLifecycle': json['active_lifecycle'],
|
|
64
|
+
'observedAt': (new Date(json['observed_at'])),
|
|
65
|
+
'runtime': SandboxRuntimeHealthFromJSON(json['runtime']),
|
|
66
|
+
'execution': SandboxHealthObservationFromJSON(json['execution']),
|
|
67
|
+
'terminal': SandboxHealthObservationFromJSON(json['terminal']),
|
|
68
|
+
'storage': SandboxStorageHealthFromJSON(json['storage']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function SandboxHealthToJSON(json) {
|
|
72
|
+
return SandboxHealthToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function SandboxHealthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'sandbox_id': value['sandboxId'],
|
|
80
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
81
|
+
'lifecycle_epoch': value['lifecycleEpoch'],
|
|
82
|
+
'desired_state': value['desiredState'],
|
|
83
|
+
'active_lifecycle': value['activeLifecycle'],
|
|
84
|
+
'observed_at': value['observedAt'].toISOString(),
|
|
85
|
+
'runtime': SandboxRuntimeHealthToJSON(value['runtime']),
|
|
86
|
+
'execution': SandboxHealthObservationToJSON(value['execution']),
|
|
87
|
+
'terminal': SandboxHealthObservationToJSON(value['terminal']),
|
|
88
|
+
'storage': SandboxStorageHealthToJSON(value['storage']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 SandboxHealthObservation
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxHealthObservation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxHealthObservation
|
|
22
|
+
*/
|
|
23
|
+
state: SandboxHealthObservationStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Fixed explanation code; no raw backend error or guest output.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxHealthObservation
|
|
28
|
+
*/
|
|
29
|
+
reason: SandboxHealthObservationReasonEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Evidence origin. Guest evidence and its clock are workload-controlled and advisory.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxHealthObservation
|
|
34
|
+
*/
|
|
35
|
+
source: SandboxHealthObservationSourceEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Original observation time, including cached guest observations; null when unobserved.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SandboxHealthObservation
|
|
40
|
+
*/
|
|
41
|
+
observedAt: Date | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SandboxHealthObservationStateEnum: {
|
|
47
|
+
readonly HealthAvailable: "available";
|
|
48
|
+
readonly HealthUnavailable: "unavailable";
|
|
49
|
+
readonly HealthUnknown: "unknown";
|
|
50
|
+
};
|
|
51
|
+
export type SandboxHealthObservationStateEnum = typeof SandboxHealthObservationStateEnum[keyof typeof SandboxHealthObservationStateEnum];
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const SandboxHealthObservationReasonEnum: {
|
|
56
|
+
readonly HealthReasonLaunchUnobserved: "launch_unobserved";
|
|
57
|
+
readonly HealthReasonRuntimeLivenessUnobserved: "runtime_liveness_unobserved";
|
|
58
|
+
readonly HealthReasonRootfsIdentityUninitialized: "rootfs_identity_uninitialized";
|
|
59
|
+
readonly HealthReasonWriterUnobserved: "writer_unobserved";
|
|
60
|
+
readonly HealthReasonStorageIoUnobserved: "storage_io_unobserved";
|
|
61
|
+
readonly HealthReasonRuntimeUnavailableForDiagnostics: "runtime_unavailable_for_diagnostics";
|
|
62
|
+
readonly HealthReasonRootfsIdentityPresent: "rootfs_identity_present";
|
|
63
|
+
readonly HealthReasonLifecycleTransition: "lifecycle_transition";
|
|
64
|
+
readonly HealthReasonRuntimeNotRequested: "runtime_not_requested";
|
|
65
|
+
readonly HealthReasonRuntimeSlotMissing: "runtime_slot_missing";
|
|
66
|
+
readonly HealthReasonRuntimeSlotInactive: "runtime_slot_inactive";
|
|
67
|
+
readonly HealthReasonRuntimeHeartbeatExpired: "runtime_heartbeat_expired";
|
|
68
|
+
readonly HealthReasonExternalLaunchUnverified: "external_launch_unverified";
|
|
69
|
+
readonly HealthReasonExternalLaunchAuthorityPresent: "external_launch_authority_present";
|
|
70
|
+
readonly HealthReasonCurrentWriterLeasePresent: "current_writer_lease_present";
|
|
71
|
+
readonly HealthReasonCurrentWriterLeaseUnverified: "current_writer_lease_unverified";
|
|
72
|
+
readonly HealthReasonDiagnosticProbeBusy: "diagnostic_probe_busy";
|
|
73
|
+
readonly HealthReasonDiagnosticRuntimeChanged: "diagnostic_runtime_changed";
|
|
74
|
+
readonly HealthReasonExternalRuntimeUnavailable: "external_runtime_unavailable";
|
|
75
|
+
readonly HealthReasonDiagnosticsNotConfigured: "diagnostics_not_configured";
|
|
76
|
+
readonly HealthReasonDiagnosticAddressUnavailable: "diagnostic_address_unavailable";
|
|
77
|
+
readonly HealthReasonDiagnosticAuthUnavailable: "diagnostic_auth_unavailable";
|
|
78
|
+
readonly HealthReasonGuestDiagnosticsUnavailable: "guest_diagnostics_unavailable";
|
|
79
|
+
readonly HealthReasonCommandCompleted: "command_completed";
|
|
80
|
+
readonly HealthReasonCommandStartFailed: "command_start_failed";
|
|
81
|
+
readonly HealthReasonCommandFailed: "command_failed";
|
|
82
|
+
readonly HealthReasonProbeTimeout: "probe_timeout";
|
|
83
|
+
readonly HealthReasonProbeCanceled: "probe_canceled";
|
|
84
|
+
readonly HealthReasonRunscRunning: "runsc_running";
|
|
85
|
+
readonly HealthReasonRunscStopped: "runsc_stopped";
|
|
86
|
+
readonly HealthReasonRunscAbsent: "runsc_absent";
|
|
87
|
+
readonly HealthReasonRunscUnavailable: "runsc_unavailable";
|
|
88
|
+
readonly HealthReasonRuntimeIdentityChanged: "runtime_identity_changed";
|
|
89
|
+
};
|
|
90
|
+
export type SandboxHealthObservationReasonEnum = typeof SandboxHealthObservationReasonEnum[keyof typeof SandboxHealthObservationReasonEnum];
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const SandboxHealthObservationSourceEnum: {
|
|
95
|
+
readonly HealthSourceNone: "none";
|
|
96
|
+
readonly HealthSourceRegionalAuthority: "regional_authority";
|
|
97
|
+
readonly HealthSourceNodeRuntime: "node_runtime";
|
|
98
|
+
readonly HealthSourceGuestDiagnostic: "guest_diagnostic";
|
|
99
|
+
};
|
|
100
|
+
export type SandboxHealthObservationSourceEnum = typeof SandboxHealthObservationSourceEnum[keyof typeof SandboxHealthObservationSourceEnum];
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the SandboxHealthObservation interface.
|
|
103
|
+
*/
|
|
104
|
+
export declare function instanceOfSandboxHealthObservation(value: object): value is SandboxHealthObservation;
|
|
105
|
+
export declare function SandboxHealthObservationFromJSON(json: any): SandboxHealthObservation;
|
|
106
|
+
export declare function SandboxHealthObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxHealthObservation;
|
|
107
|
+
export declare function SandboxHealthObservationToJSON(json: any): SandboxHealthObservation;
|
|
108
|
+
export declare function SandboxHealthObservationToJSONTyped(value?: SandboxHealthObservation | null, ignoreDiscriminator?: boolean): any;
|
|
109
|
+
//# sourceMappingURL=SandboxHealthObservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxHealthObservation.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxHealthObservation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,KAAK,EAAE,iCAAiC,CAAC;IACzC;;;;OAIG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAC3C;;;;OAIG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAC3C;;;;OAIG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B;AAGD;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,OAAO,iCAAiC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC;AAEzI;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAE5I;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;CAKrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAG5I;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAMnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAWvH;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,CAYtI"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 SandboxHealthObservationStateEnum = {
|
|
18
|
+
HealthAvailable: 'available',
|
|
19
|
+
HealthUnavailable: 'unavailable',
|
|
20
|
+
HealthUnknown: 'unknown'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const SandboxHealthObservationReasonEnum = {
|
|
26
|
+
HealthReasonLaunchUnobserved: 'launch_unobserved',
|
|
27
|
+
HealthReasonRuntimeLivenessUnobserved: 'runtime_liveness_unobserved',
|
|
28
|
+
HealthReasonRootfsIdentityUninitialized: 'rootfs_identity_uninitialized',
|
|
29
|
+
HealthReasonWriterUnobserved: 'writer_unobserved',
|
|
30
|
+
HealthReasonStorageIoUnobserved: 'storage_io_unobserved',
|
|
31
|
+
HealthReasonRuntimeUnavailableForDiagnostics: 'runtime_unavailable_for_diagnostics',
|
|
32
|
+
HealthReasonRootfsIdentityPresent: 'rootfs_identity_present',
|
|
33
|
+
HealthReasonLifecycleTransition: 'lifecycle_transition',
|
|
34
|
+
HealthReasonRuntimeNotRequested: 'runtime_not_requested',
|
|
35
|
+
HealthReasonRuntimeSlotMissing: 'runtime_slot_missing',
|
|
36
|
+
HealthReasonRuntimeSlotInactive: 'runtime_slot_inactive',
|
|
37
|
+
HealthReasonRuntimeHeartbeatExpired: 'runtime_heartbeat_expired',
|
|
38
|
+
HealthReasonExternalLaunchUnverified: 'external_launch_unverified',
|
|
39
|
+
HealthReasonExternalLaunchAuthorityPresent: 'external_launch_authority_present',
|
|
40
|
+
HealthReasonCurrentWriterLeasePresent: 'current_writer_lease_present',
|
|
41
|
+
HealthReasonCurrentWriterLeaseUnverified: 'current_writer_lease_unverified',
|
|
42
|
+
HealthReasonDiagnosticProbeBusy: 'diagnostic_probe_busy',
|
|
43
|
+
HealthReasonDiagnosticRuntimeChanged: 'diagnostic_runtime_changed',
|
|
44
|
+
HealthReasonExternalRuntimeUnavailable: 'external_runtime_unavailable',
|
|
45
|
+
HealthReasonDiagnosticsNotConfigured: 'diagnostics_not_configured',
|
|
46
|
+
HealthReasonDiagnosticAddressUnavailable: 'diagnostic_address_unavailable',
|
|
47
|
+
HealthReasonDiagnosticAuthUnavailable: 'diagnostic_auth_unavailable',
|
|
48
|
+
HealthReasonGuestDiagnosticsUnavailable: 'guest_diagnostics_unavailable',
|
|
49
|
+
HealthReasonCommandCompleted: 'command_completed',
|
|
50
|
+
HealthReasonCommandStartFailed: 'command_start_failed',
|
|
51
|
+
HealthReasonCommandFailed: 'command_failed',
|
|
52
|
+
HealthReasonProbeTimeout: 'probe_timeout',
|
|
53
|
+
HealthReasonProbeCanceled: 'probe_canceled',
|
|
54
|
+
HealthReasonRunscRunning: 'runsc_running',
|
|
55
|
+
HealthReasonRunscStopped: 'runsc_stopped',
|
|
56
|
+
HealthReasonRunscAbsent: 'runsc_absent',
|
|
57
|
+
HealthReasonRunscUnavailable: 'runsc_unavailable',
|
|
58
|
+
HealthReasonRuntimeIdentityChanged: 'runtime_identity_changed'
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const SandboxHealthObservationSourceEnum = {
|
|
64
|
+
HealthSourceNone: 'none',
|
|
65
|
+
HealthSourceRegionalAuthority: 'regional_authority',
|
|
66
|
+
HealthSourceNodeRuntime: 'node_runtime',
|
|
67
|
+
HealthSourceGuestDiagnostic: 'guest_diagnostic'
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the SandboxHealthObservation interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfSandboxHealthObservation(value) {
|
|
73
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('observedAt' in value) || value['observedAt'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
export function SandboxHealthObservationFromJSON(json) {
|
|
84
|
+
return SandboxHealthObservationFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
export function SandboxHealthObservationFromJSONTyped(json, ignoreDiscriminator) {
|
|
87
|
+
if (json == null) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'state': json['state'],
|
|
92
|
+
'reason': json['reason'],
|
|
93
|
+
'source': json['source'],
|
|
94
|
+
'observedAt': (json['observed_at'] == null ? null : new Date(json['observed_at'])),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export function SandboxHealthObservationToJSON(json) {
|
|
98
|
+
return SandboxHealthObservationToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
export function SandboxHealthObservationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
'state': value['state'],
|
|
106
|
+
'reason': value['reason'],
|
|
107
|
+
'source': value['source'],
|
|
108
|
+
'observed_at': value['observedAt'] == null ? value['observedAt'] : value['observedAt'].toISOString(),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 SandboxMemoryOperation
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxMemoryOperation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxMemoryOperation
|
|
22
|
+
*/
|
|
23
|
+
sandboxId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Authenticated caller request ID, never the internal restore worker operation ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxMemoryOperation
|
|
28
|
+
*/
|
|
29
|
+
operationId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxMemoryOperation
|
|
34
|
+
*/
|
|
35
|
+
checkpointId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SandboxMemoryOperation
|
|
40
|
+
*/
|
|
41
|
+
action: SandboxMemoryOperationActionEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SandboxMemoryOperation
|
|
46
|
+
*/
|
|
47
|
+
fromRuntimeGeneration: number;
|
|
48
|
+
/**
|
|
49
|
+
* Original operation epoch. Bind subsequent current-identity checks to this epoch; current is only a read snapshot.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SandboxMemoryOperation
|
|
52
|
+
*/
|
|
53
|
+
lifecycleEpoch: number;
|
|
54
|
+
/**
|
|
55
|
+
* Present only for completed or physically resolved failed resume; equals source plus one in both cases.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SandboxMemoryOperation
|
|
58
|
+
*/
|
|
59
|
+
resultRuntimeGeneration?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SandboxMemoryOperation
|
|
64
|
+
*/
|
|
65
|
+
state: SandboxMemoryOperationStateEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Present only for canceled or failed. A failed capture never attests that the source survived.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SandboxMemoryOperation
|
|
70
|
+
*/
|
|
71
|
+
reason?: SandboxMemoryOperationReasonEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Whether this terminal result still matches the owner snapshot. False for pending and capture failure. Never a new lease or execution authorization.
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof SandboxMemoryOperation
|
|
76
|
+
*/
|
|
77
|
+
current: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const SandboxMemoryOperationActionEnum: {
|
|
83
|
+
readonly Pause: "pause";
|
|
84
|
+
readonly Resume: "resume";
|
|
85
|
+
};
|
|
86
|
+
export type SandboxMemoryOperationActionEnum = typeof SandboxMemoryOperationActionEnum[keyof typeof SandboxMemoryOperationActionEnum];
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const SandboxMemoryOperationStateEnum: {
|
|
91
|
+
readonly Pending: "pending";
|
|
92
|
+
readonly Completed: "completed";
|
|
93
|
+
readonly Canceled: "canceled";
|
|
94
|
+
readonly Failed: "failed";
|
|
95
|
+
};
|
|
96
|
+
export type SandboxMemoryOperationStateEnum = typeof SandboxMemoryOperationStateEnum[keyof typeof SandboxMemoryOperationStateEnum];
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const SandboxMemoryOperationReasonEnum: {
|
|
101
|
+
readonly BeforeCapture: "before_capture";
|
|
102
|
+
readonly CaptureFailed: "capture_failed";
|
|
103
|
+
readonly BeforeRestore: "before_restore";
|
|
104
|
+
readonly RestoreFailed: "restore_failed";
|
|
105
|
+
};
|
|
106
|
+
export type SandboxMemoryOperationReasonEnum = typeof SandboxMemoryOperationReasonEnum[keyof typeof SandboxMemoryOperationReasonEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the SandboxMemoryOperation interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfSandboxMemoryOperation(value: object): value is SandboxMemoryOperation;
|
|
111
|
+
export declare function SandboxMemoryOperationFromJSON(json: any): SandboxMemoryOperation;
|
|
112
|
+
export declare function SandboxMemoryOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxMemoryOperation;
|
|
113
|
+
export declare function SandboxMemoryOperationToJSON(json: any): SandboxMemoryOperation;
|
|
114
|
+
export declare function SandboxMemoryOperationToJSONTyped(value?: SandboxMemoryOperation | null, ignoreDiscriminator?: boolean): any;
|
|
115
|
+
//# sourceMappingURL=SandboxMemoryOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxMemoryOperation.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxMemoryOperation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,gCAAgC,CAAC;IACzC;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,KAAK,EAAE,+BAA+B,CAAC;IACvC;;;;OAIG;IACH,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CACpB;AAGD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAEtI;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;CAKlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAEnI;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;CAKnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAGtI;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAU/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAiBnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBlI"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 SandboxMemoryOperationActionEnum = {
|
|
18
|
+
Pause: 'pause',
|
|
19
|
+
Resume: 'resume'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const SandboxMemoryOperationStateEnum = {
|
|
25
|
+
Pending: 'pending',
|
|
26
|
+
Completed: 'completed',
|
|
27
|
+
Canceled: 'canceled',
|
|
28
|
+
Failed: 'failed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const SandboxMemoryOperationReasonEnum = {
|
|
34
|
+
BeforeCapture: 'before_capture',
|
|
35
|
+
CaptureFailed: 'capture_failed',
|
|
36
|
+
BeforeRestore: 'before_restore',
|
|
37
|
+
RestoreFailed: 'restore_failed'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SandboxMemoryOperation interface.
|
|
41
|
+
*/
|
|
42
|
+
export function instanceOfSandboxMemoryOperation(value) {
|
|
43
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('checkpointId' in value) || value['checkpointId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('fromRuntimeGeneration' in value) || value['fromRuntimeGeneration'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('lifecycleEpoch' in value) || value['lifecycleEpoch'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('current' in value) || value['current'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
export function SandboxMemoryOperationFromJSON(json) {
|
|
62
|
+
return SandboxMemoryOperationFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function SandboxMemoryOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'sandboxId': json['sandbox_id'],
|
|
70
|
+
'operationId': json['operation_id'],
|
|
71
|
+
'checkpointId': json['checkpoint_id'],
|
|
72
|
+
'action': json['action'],
|
|
73
|
+
'fromRuntimeGeneration': json['from_runtime_generation'],
|
|
74
|
+
'lifecycleEpoch': json['lifecycle_epoch'],
|
|
75
|
+
'resultRuntimeGeneration': json['result_runtime_generation'] == null ? undefined : json['result_runtime_generation'],
|
|
76
|
+
'state': json['state'],
|
|
77
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
78
|
+
'current': json['current'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export function SandboxMemoryOperationToJSON(json) {
|
|
82
|
+
return SandboxMemoryOperationToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
export function SandboxMemoryOperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'sandbox_id': value['sandboxId'],
|
|
90
|
+
'operation_id': value['operationId'],
|
|
91
|
+
'checkpoint_id': value['checkpointId'],
|
|
92
|
+
'action': value['action'],
|
|
93
|
+
'from_runtime_generation': value['fromRuntimeGeneration'],
|
|
94
|
+
'lifecycle_epoch': value['lifecycleEpoch'],
|
|
95
|
+
'result_runtime_generation': value['resultRuntimeGeneration'],
|
|
96
|
+
'state': value['state'],
|
|
97
|
+
'reason': value['reason'],
|
|
98
|
+
'current': value['current'],
|
|
99
|
+
};
|
|
100
|
+
}
|