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,67 @@
|
|
|
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
|
+
* Check if a given object implements the SandboxRestartFinalCaptureFile interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxRestartFinalCaptureFile(value) {
|
|
18
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('captureId' in value) || value['captureId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('mutationSequence' in value) || value['mutationSequence'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('found' in value) || value['found'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function SandboxRestartFinalCaptureFileFromJSON(json) {
|
|
35
|
+
return SandboxRestartFinalCaptureFileFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SandboxRestartFinalCaptureFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'operationId': json['operation_id'],
|
|
43
|
+
'captureId': json['capture_id'],
|
|
44
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
45
|
+
'mutationSequence': json['mutation_sequence'],
|
|
46
|
+
'sizeBytes': json['size_bytes'],
|
|
47
|
+
'found': json['found'],
|
|
48
|
+
'content': json['content'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function SandboxRestartFinalCaptureFileToJSON(json) {
|
|
52
|
+
return SandboxRestartFinalCaptureFileToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function SandboxRestartFinalCaptureFileToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'operation_id': value['operationId'],
|
|
60
|
+
'capture_id': value['captureId'],
|
|
61
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
62
|
+
'mutation_sequence': value['mutationSequence'],
|
|
63
|
+
'size_bytes': value['sizeBytes'],
|
|
64
|
+
'found': value['found'],
|
|
65
|
+
'content': value['content'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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
|
+
import type { SandboxRestartRetryObservation } from './SandboxRestartRetryObservation.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SandboxRestartOperation
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxRestartOperation {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SandboxRestartOperation
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SandboxRestartOperation
|
|
29
|
+
*/
|
|
30
|
+
sandboxId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SandboxRestartOperation
|
|
35
|
+
*/
|
|
36
|
+
requestKey: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SandboxRestartOperation
|
|
41
|
+
*/
|
|
42
|
+
fromRuntimeGeneration: number;
|
|
43
|
+
/**
|
|
44
|
+
* Paused means an admitted paused source awaiting resume; only succeeded proves replacement. Failed and superseded are terminal and are never replayed.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SandboxRestartOperation
|
|
47
|
+
*/
|
|
48
|
+
state: SandboxRestartOperationStateEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Present only after committed replacement, even if a later lifecycle changes the current runtime.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof SandboxRestartOperation
|
|
53
|
+
*/
|
|
54
|
+
resultRuntimeGeneration?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SandboxRestartOperation
|
|
59
|
+
*/
|
|
60
|
+
reason?: SandboxRestartOperationReasonEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof SandboxRestartOperation
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof SandboxRestartOperation
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof SandboxRestartOperation
|
|
77
|
+
*/
|
|
78
|
+
finishedAt?: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {SandboxRestartRetryObservation}
|
|
82
|
+
* @memberof SandboxRestartOperation
|
|
83
|
+
*/
|
|
84
|
+
retry?: SandboxRestartRetryObservation;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const SandboxRestartOperationStateEnum: {
|
|
90
|
+
readonly SandboxRestartStatePausing: "pausing";
|
|
91
|
+
readonly SandboxRestartStatePaused: "paused";
|
|
92
|
+
readonly SandboxRestartStateResuming: "resuming";
|
|
93
|
+
readonly SandboxRestartStateSucceeded: "succeeded";
|
|
94
|
+
readonly SandboxRestartStateSuperseded: "superseded";
|
|
95
|
+
readonly SandboxRestartStateFailed: "failed";
|
|
96
|
+
};
|
|
97
|
+
export type SandboxRestartOperationStateEnum = typeof SandboxRestartOperationStateEnum[keyof typeof SandboxRestartOperationStateEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const SandboxRestartOperationReasonEnum: {
|
|
102
|
+
readonly SandboxRestartReasonSourceChanged: "source_changed";
|
|
103
|
+
readonly SandboxRestartReasonPauseAborted: "pause_aborted";
|
|
104
|
+
readonly SandboxRestartReasonResumeAborted: "resume_aborted";
|
|
105
|
+
};
|
|
106
|
+
export type SandboxRestartOperationReasonEnum = typeof SandboxRestartOperationReasonEnum[keyof typeof SandboxRestartOperationReasonEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the SandboxRestartOperation interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfSandboxRestartOperation(value: object): value is SandboxRestartOperation;
|
|
111
|
+
export declare function SandboxRestartOperationFromJSON(json: any): SandboxRestartOperation;
|
|
112
|
+
export declare function SandboxRestartOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRestartOperation;
|
|
113
|
+
export declare function SandboxRestartOperationToJSON(json: any): SandboxRestartOperation;
|
|
114
|
+
export declare function SandboxRestartOperationToJSONTyped(value?: SandboxRestartOperation | null, ignoreDiscriminator?: boolean): any;
|
|
115
|
+
//# sourceMappingURL=SandboxRestartOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRestartOperation.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRestartOperation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAQvF;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,KAAK,EAAE,gCAAgC,CAAC;IACxC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,iCAAiC,CAAC;IAC3C;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,8BAA8B,CAAC;CAC1C;AAGD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;CAOnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAEtI;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,OAAO,iCAAiC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC;AAGzI;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CASjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAkBrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBpI"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { SandboxRestartRetryObservationFromJSON, SandboxRestartRetryObservationToJSON, } from './SandboxRestartRetryObservation.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SandboxRestartOperationStateEnum = {
|
|
19
|
+
SandboxRestartStatePausing: 'pausing',
|
|
20
|
+
SandboxRestartStatePaused: 'paused',
|
|
21
|
+
SandboxRestartStateResuming: 'resuming',
|
|
22
|
+
SandboxRestartStateSucceeded: 'succeeded',
|
|
23
|
+
SandboxRestartStateSuperseded: 'superseded',
|
|
24
|
+
SandboxRestartStateFailed: 'failed'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const SandboxRestartOperationReasonEnum = {
|
|
30
|
+
SandboxRestartReasonSourceChanged: 'source_changed',
|
|
31
|
+
SandboxRestartReasonPauseAborted: 'pause_aborted',
|
|
32
|
+
SandboxRestartReasonResumeAborted: 'resume_aborted'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the SandboxRestartOperation interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfSandboxRestartOperation(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('requestKey' in value) || value['requestKey'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('fromRuntimeGeneration' in value) || value['fromRuntimeGeneration'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
export function SandboxRestartOperationFromJSON(json) {
|
|
55
|
+
return SandboxRestartOperationFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function SandboxRestartOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'sandboxId': json['sandbox_id'],
|
|
64
|
+
'requestKey': json['request_key'],
|
|
65
|
+
'fromRuntimeGeneration': json['from_runtime_generation'],
|
|
66
|
+
'state': json['state'],
|
|
67
|
+
'resultRuntimeGeneration': json['result_runtime_generation'] == null ? undefined : json['result_runtime_generation'],
|
|
68
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
69
|
+
'createdAt': (new Date(json['created_at'])),
|
|
70
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
71
|
+
'finishedAt': json['finished_at'] == null ? undefined : (new Date(json['finished_at'])),
|
|
72
|
+
'retry': json['retry'] == null ? undefined : SandboxRestartRetryObservationFromJSON(json['retry']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function SandboxRestartOperationToJSON(json) {
|
|
76
|
+
return SandboxRestartOperationToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
export function SandboxRestartOperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'sandbox_id': value['sandboxId'],
|
|
85
|
+
'request_key': value['requestKey'],
|
|
86
|
+
'from_runtime_generation': value['fromRuntimeGeneration'],
|
|
87
|
+
'state': value['state'],
|
|
88
|
+
'result_runtime_generation': value['resultRuntimeGeneration'],
|
|
89
|
+
'reason': value['reason'],
|
|
90
|
+
'created_at': value['createdAt'].toISOString(),
|
|
91
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
92
|
+
'finished_at': value['finishedAt'] == null ? value['finishedAt'] : value['finishedAt'].toISOString(),
|
|
93
|
+
'retry': SandboxRestartRetryObservationToJSON(value['retry']),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 SandboxRestartRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxRestartRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Exact observed source runtime generation. Zero is allowed for a never-run paused sandbox. A changed source requires a new explicit request, never an automatic retry with a fresh generation.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxRestartRequest
|
|
22
|
+
*/
|
|
23
|
+
expectedRuntimeGeneration: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SandboxRestartRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSandboxRestartRequest(value: object): value is SandboxRestartRequest;
|
|
29
|
+
export declare function SandboxRestartRequestFromJSON(json: any): SandboxRestartRequest;
|
|
30
|
+
export declare function SandboxRestartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRestartRequest;
|
|
31
|
+
export declare function SandboxRestartRequestToJSON(json: any): SandboxRestartRequest;
|
|
32
|
+
export declare function SandboxRestartRequestToJSONTyped(value?: SandboxRestartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
//# sourceMappingURL=SandboxRestartRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRestartRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRestartRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;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,CAShI"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the SandboxRestartRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxRestartRequest(value) {
|
|
18
|
+
if (!('expectedRuntimeGeneration' in value) || value['expectedRuntimeGeneration'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SandboxRestartRequestFromJSON(json) {
|
|
23
|
+
return SandboxRestartRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SandboxRestartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'expectedRuntimeGeneration': json['expected_runtime_generation'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function SandboxRestartRequestToJSON(json) {
|
|
34
|
+
return SandboxRestartRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SandboxRestartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'expected_runtime_generation': value['expectedRuntimeGeneration'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 SandboxRestartRetryObservation
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxRestartRetryObservation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxRestartRetryObservation
|
|
22
|
+
*/
|
|
23
|
+
attempts: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof SandboxRestartRetryObservation
|
|
28
|
+
*/
|
|
29
|
+
observedAt?: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxRestartRetryObservation
|
|
34
|
+
*/
|
|
35
|
+
observedStage?: SandboxRestartRetryObservationObservedStageEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SandboxRestartRetryObservation
|
|
40
|
+
*/
|
|
41
|
+
nextAttemptAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Fixed diagnostic code for the current stage. storage_not_writable means the host could not provide a writable RootFS and does not identify the underlying cause or authorize repair. No raw node errors, credentials, or topology are exposed.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SandboxRestartRetryObservation
|
|
46
|
+
*/
|
|
47
|
+
blockedReason?: SandboxRestartRetryObservationBlockedReasonEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const SandboxRestartRetryObservationObservedStageEnum: {
|
|
53
|
+
readonly SandboxRestartObservedPausing: "pausing";
|
|
54
|
+
readonly SandboxRestartObservedPaused: "paused";
|
|
55
|
+
readonly SandboxRestartObservedResuming: "resuming";
|
|
56
|
+
readonly SandboxRestartObservedSucceeded: "succeeded";
|
|
57
|
+
readonly SandboxRestartObservedSuperseded: "superseded";
|
|
58
|
+
readonly SandboxRestartObservedFailed: "failed";
|
|
59
|
+
};
|
|
60
|
+
export type SandboxRestartRetryObservationObservedStageEnum = typeof SandboxRestartRetryObservationObservedStageEnum[keyof typeof SandboxRestartRetryObservationObservedStageEnum];
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const SandboxRestartRetryObservationBlockedReasonEnum: {
|
|
65
|
+
readonly SandboxRestartBlockedRetirementPending: "retirement_pending";
|
|
66
|
+
readonly SandboxRestartBlockedQuotaExceeded: "quota_exceeded";
|
|
67
|
+
readonly SandboxRestartBlockedCapacityUnavailable: "capacity_unavailable";
|
|
68
|
+
readonly SandboxRestartBlockedRuntimeUnavailable: "runtime_unavailable";
|
|
69
|
+
readonly SandboxRestartBlockedStorageNotWritable: "storage_not_writable";
|
|
70
|
+
readonly SandboxRestartBlockedAttemptTimedOut: "attempt_timed_out";
|
|
71
|
+
readonly SandboxRestartBlockedControlPlaneUnavailable: "control_plane_unavailable";
|
|
72
|
+
readonly SandboxRestartBlockedLaunchPending: "launch_pending";
|
|
73
|
+
};
|
|
74
|
+
export type SandboxRestartRetryObservationBlockedReasonEnum = typeof SandboxRestartRetryObservationBlockedReasonEnum[keyof typeof SandboxRestartRetryObservationBlockedReasonEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the SandboxRestartRetryObservation interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfSandboxRestartRetryObservation(value: object): value is SandboxRestartRetryObservation;
|
|
79
|
+
export declare function SandboxRestartRetryObservationFromJSON(json: any): SandboxRestartRetryObservation;
|
|
80
|
+
export declare function SandboxRestartRetryObservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRestartRetryObservation;
|
|
81
|
+
export declare function SandboxRestartRetryObservationToJSON(json: any): SandboxRestartRetryObservation;
|
|
82
|
+
export declare function SandboxRestartRetryObservationToJSONTyped(value?: SandboxRestartRetryObservation | null, ignoreDiscriminator?: boolean): any;
|
|
83
|
+
//# sourceMappingURL=SandboxRestartRetryObservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRestartRetryObservation.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRestartRetryObservation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,+CAA+C,CAAC;IAChE;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,EAAE,+CAA+C,CAAC;CACnE;AAGD;;GAEG;AACH,eAAO,MAAM,+CAA+C;;;;;;;CAOlD,CAAC;AACX,MAAM,MAAM,+CAA+C,GAAG,OAAO,+CAA+C,CAAC,MAAM,OAAO,+CAA+C,CAAC,CAAC;AAEnL;;GAEG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;CASlD,CAAC;AACX,MAAM,MAAM,+CAA+C,GAAG,OAAO,+CAA+C,CAAC,MAAM,OAAO,+CAA+C,CAAC,CAAC;AAGnL;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAG/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAYnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalJ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 SandboxRestartRetryObservationObservedStageEnum = {
|
|
18
|
+
SandboxRestartObservedPausing: 'pausing',
|
|
19
|
+
SandboxRestartObservedPaused: 'paused',
|
|
20
|
+
SandboxRestartObservedResuming: 'resuming',
|
|
21
|
+
SandboxRestartObservedSucceeded: 'succeeded',
|
|
22
|
+
SandboxRestartObservedSuperseded: 'superseded',
|
|
23
|
+
SandboxRestartObservedFailed: 'failed'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const SandboxRestartRetryObservationBlockedReasonEnum = {
|
|
29
|
+
SandboxRestartBlockedRetirementPending: 'retirement_pending',
|
|
30
|
+
SandboxRestartBlockedQuotaExceeded: 'quota_exceeded',
|
|
31
|
+
SandboxRestartBlockedCapacityUnavailable: 'capacity_unavailable',
|
|
32
|
+
SandboxRestartBlockedRuntimeUnavailable: 'runtime_unavailable',
|
|
33
|
+
SandboxRestartBlockedStorageNotWritable: 'storage_not_writable',
|
|
34
|
+
SandboxRestartBlockedAttemptTimedOut: 'attempt_timed_out',
|
|
35
|
+
SandboxRestartBlockedControlPlaneUnavailable: 'control_plane_unavailable',
|
|
36
|
+
SandboxRestartBlockedLaunchPending: 'launch_pending'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SandboxRestartRetryObservation interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSandboxRestartRetryObservation(value) {
|
|
42
|
+
if (!('attempts' in value) || value['attempts'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function SandboxRestartRetryObservationFromJSON(json) {
|
|
47
|
+
return SandboxRestartRetryObservationFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function SandboxRestartRetryObservationFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'attempts': json['attempts'],
|
|
55
|
+
'observedAt': json['observed_at'] == null ? undefined : (new Date(json['observed_at'])),
|
|
56
|
+
'observedStage': json['observed_stage'] == null ? undefined : json['observed_stage'],
|
|
57
|
+
'nextAttemptAt': json['next_attempt_at'] == null ? undefined : (new Date(json['next_attempt_at'])),
|
|
58
|
+
'blockedReason': json['blocked_reason'] == null ? undefined : json['blocked_reason'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function SandboxRestartRetryObservationToJSON(json) {
|
|
62
|
+
return SandboxRestartRetryObservationToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function SandboxRestartRetryObservationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'attempts': value['attempts'],
|
|
70
|
+
'observed_at': value['observedAt'] == null ? value['observedAt'] : value['observedAt'].toISOString(),
|
|
71
|
+
'observed_stage': value['observedStage'],
|
|
72
|
+
'next_attempt_at': value['nextAttemptAt'] == null ? value['nextAttemptAt'] : value['nextAttemptAt'].toISOString(),
|
|
73
|
+
'blocked_reason': value['blockedReason'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
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 SandboxRootFSForkLaunch
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxRootFSForkLaunch {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxRootFSForkLaunch
|
|
22
|
+
*/
|
|
23
|
+
operationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxRootFSForkLaunch
|
|
28
|
+
*/
|
|
29
|
+
sandboxId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxRootFSForkLaunch
|
|
34
|
+
*/
|
|
35
|
+
forkOperationId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SandboxRootFSForkLaunch
|
|
40
|
+
*/
|
|
41
|
+
filesystemId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SandboxRootFSForkLaunch
|
|
46
|
+
*/
|
|
47
|
+
headGenerationId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Original pre-admission writer epoch, not a current writer lease
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SandboxRootFSForkLaunch
|
|
52
|
+
*/
|
|
53
|
+
writerEpoch: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SandboxRootFSForkLaunch
|
|
58
|
+
*/
|
|
59
|
+
lifecycleEpoch: SandboxRootFSForkLaunchLifecycleEpochEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Zero while pending or aborted; one when completed
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SandboxRootFSForkLaunch
|
|
64
|
+
*/
|
|
65
|
+
runtimeGeneration: SandboxRootFSForkLaunchRuntimeGenerationEnum;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SandboxRootFSForkLaunch
|
|
70
|
+
*/
|
|
71
|
+
state: SandboxRootFSForkLaunchStateEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof SandboxRootFSForkLaunch
|
|
76
|
+
*/
|
|
77
|
+
current: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Present only for completed history; digest of retained external launch proof
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof SandboxRootFSForkLaunch
|
|
82
|
+
*/
|
|
83
|
+
launchDigest?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Present only for completed history
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof SandboxRootFSForkLaunch
|
|
88
|
+
*/
|
|
89
|
+
completedAt?: Date;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const SandboxRootFSForkLaunchLifecycleEpochEnum: {
|
|
95
|
+
readonly NUMBER_1: 1;
|
|
96
|
+
};
|
|
97
|
+
export type SandboxRootFSForkLaunchLifecycleEpochEnum = typeof SandboxRootFSForkLaunchLifecycleEpochEnum[keyof typeof SandboxRootFSForkLaunchLifecycleEpochEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const SandboxRootFSForkLaunchRuntimeGenerationEnum: {
|
|
102
|
+
readonly NUMBER_0: 0;
|
|
103
|
+
readonly NUMBER_1: 1;
|
|
104
|
+
};
|
|
105
|
+
export type SandboxRootFSForkLaunchRuntimeGenerationEnum = typeof SandboxRootFSForkLaunchRuntimeGenerationEnum[keyof typeof SandboxRootFSForkLaunchRuntimeGenerationEnum];
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export declare const SandboxRootFSForkLaunchStateEnum: {
|
|
110
|
+
readonly Pending: "pending";
|
|
111
|
+
readonly Completed: "completed";
|
|
112
|
+
readonly Aborted: "aborted";
|
|
113
|
+
};
|
|
114
|
+
export type SandboxRootFSForkLaunchStateEnum = typeof SandboxRootFSForkLaunchStateEnum[keyof typeof SandboxRootFSForkLaunchStateEnum];
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the SandboxRootFSForkLaunch interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfSandboxRootFSForkLaunch(value: object): value is SandboxRootFSForkLaunch;
|
|
119
|
+
export declare function SandboxRootFSForkLaunchFromJSON(json: any): SandboxRootFSForkLaunch;
|
|
120
|
+
export declare function SandboxRootFSForkLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRootFSForkLaunch;
|
|
121
|
+
export declare function SandboxRootFSForkLaunchToJSON(json: any): SandboxRootFSForkLaunch;
|
|
122
|
+
export declare function SandboxRootFSForkLaunchToJSONTyped(value?: SandboxRootFSForkLaunch | null, ignoreDiscriminator?: boolean): any;
|
|
123
|
+
//# sourceMappingURL=SandboxRootFSForkLaunch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRootFSForkLaunch.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRootFSForkLaunch.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,yCAAyC,CAAC;IAC1D;;;;OAIG;IACH,iBAAiB,EAAE,4CAA4C,CAAC;IAChE;;;;OAIG;IACH,KAAK,EAAE,gCAAgC,CAAC;IACxC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;CACtB;AAGD;;GAEG;AACH,eAAO,MAAM,yCAAyC;;CAE5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,OAAO,yCAAyC,CAAC,MAAM,OAAO,yCAAyC,CAAC,CAAC;AAEjK;;GAEG;AACH,eAAO,MAAM,4CAA4C;;;CAG/C,CAAC;AACX,MAAM,MAAM,4CAA4C,GAAG,OAAO,4CAA4C,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC;AAE1K;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;CAInC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAGtI;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAYjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAmBrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBpI"}
|