sandbox0 0.10.4 → 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/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 +5 -1
- package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -1
- package/dist/apispec/src/models/QuotaDimension.js +5 -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/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 +8 -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,111 @@
|
|
|
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 SandboxRootFSIdentityDesiredStateEnum = {
|
|
18
|
+
RootFSIdentityActive: 'active',
|
|
19
|
+
RootFSIdentityPaused: 'paused',
|
|
20
|
+
RootFSIdentityTerminated: 'terminated'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SandboxRootFSIdentity interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfSandboxRootFSIdentity(value) {
|
|
26
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('lifecycleEpoch' in value) || value['lifecycleEpoch'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('desiredState' in value) || value['desiredState'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('managedFilesSizeBytes' in value) || value['managedFilesSizeBytes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('filesystemId' in value) || value['filesystemId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('headGenerationId' in value) || value['headGenerationId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('writerEpoch' in value) || value['writerEpoch'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('baseArtifactDigest' in value) || value['baseArtifactDigest'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('sourceOciDigest' in value) || value['sourceOciDigest'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('hasImportedFilesystem' in value) || value['hasImportedFilesystem'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('activeLifecycle' in value) || value['activeLifecycle'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('sandboxCreatedAt' in value) || value['sandboxCreatedAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('filesystemCreatedAt' in value) || value['filesystemCreatedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('observedAt' in value) || value['observedAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
export function SandboxRootFSIdentityFromJSON(json) {
|
|
59
|
+
return SandboxRootFSIdentityFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function SandboxRootFSIdentityFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'sandboxId': json['sandbox_id'],
|
|
67
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
68
|
+
'lifecycleEpoch': json['lifecycle_epoch'],
|
|
69
|
+
'desiredState': json['desired_state'],
|
|
70
|
+
'managedFilesSizeBytes': json['managed_files_size_bytes'],
|
|
71
|
+
'filesystemId': json['filesystem_id'],
|
|
72
|
+
'headGenerationId': json['head_generation_id'],
|
|
73
|
+
'writerEpoch': json['writer_epoch'],
|
|
74
|
+
'baseArtifactDigest': json['base_artifact_digest'],
|
|
75
|
+
'sourceOciDigest': json['source_oci_digest'],
|
|
76
|
+
'runtimeCompatibilityDigest': json['runtime_compatibility_digest'] == null ? undefined : json['runtime_compatibility_digest'],
|
|
77
|
+
'retainedRuntimeCompatibilityDigest': json['retained_runtime_compatibility_digest'] == null ? undefined : json['retained_runtime_compatibility_digest'],
|
|
78
|
+
'hasImportedFilesystem': json['has_imported_filesystem'],
|
|
79
|
+
'activeLifecycle': json['active_lifecycle'],
|
|
80
|
+
'sandboxCreatedAt': (new Date(json['sandbox_created_at'])),
|
|
81
|
+
'filesystemCreatedAt': (new Date(json['filesystem_created_at'])),
|
|
82
|
+
'observedAt': (new Date(json['observed_at'])),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export function SandboxRootFSIdentityToJSON(json) {
|
|
86
|
+
return SandboxRootFSIdentityToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
export function SandboxRootFSIdentityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'sandbox_id': value['sandboxId'],
|
|
94
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
95
|
+
'lifecycle_epoch': value['lifecycleEpoch'],
|
|
96
|
+
'desired_state': value['desiredState'],
|
|
97
|
+
'managed_files_size_bytes': value['managedFilesSizeBytes'],
|
|
98
|
+
'filesystem_id': value['filesystemId'],
|
|
99
|
+
'head_generation_id': value['headGenerationId'],
|
|
100
|
+
'writer_epoch': value['writerEpoch'],
|
|
101
|
+
'base_artifact_digest': value['baseArtifactDigest'],
|
|
102
|
+
'source_oci_digest': value['sourceOciDigest'],
|
|
103
|
+
'runtime_compatibility_digest': value['runtimeCompatibilityDigest'],
|
|
104
|
+
'retained_runtime_compatibility_digest': value['retainedRuntimeCompatibilityDigest'],
|
|
105
|
+
'has_imported_filesystem': value['hasImportedFilesystem'],
|
|
106
|
+
'active_lifecycle': value['activeLifecycle'],
|
|
107
|
+
'sandbox_created_at': value['sandboxCreatedAt'].toISOString(),
|
|
108
|
+
'filesystem_created_at': value['filesystemCreatedAt'].toISOString(),
|
|
109
|
+
'observed_at': value['observedAt'].toISOString(),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface SandboxRootFSSnapshot {
|
|
|
27
27
|
* @memberof SandboxRootFSSnapshot
|
|
28
28
|
*/
|
|
29
29
|
sandboxId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Immutable storage generation captured by this snapshot. Use this exact value as snapshot_generation_id for conditional recovery; never substitute the sandbox's current head. May be absent on older servers, which cannot supply a conditional recovery target.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxRootFSSnapshot
|
|
34
|
+
*/
|
|
35
|
+
generationId?: string;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxRootFSSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRootFSSnapshot.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;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,
|
|
1
|
+
{"version":3,"file":"SandboxRootFSSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRootFSSnapshot.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;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,CAcjH;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,CAehI"}
|
|
@@ -33,6 +33,7 @@ export function SandboxRootFSSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return {
|
|
34
34
|
'id': json['id'],
|
|
35
35
|
'sandboxId': json['sandbox_id'],
|
|
36
|
+
'generationId': json['generation_id'] == null ? undefined : json['generation_id'],
|
|
36
37
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
39
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -49,6 +50,7 @@ export function SandboxRootFSSnapshotToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
50
|
return {
|
|
50
51
|
'id': value['id'],
|
|
51
52
|
'sandbox_id': value['sandboxId'],
|
|
53
|
+
'generation_id': value['generationId'],
|
|
52
54
|
'name': value['name'],
|
|
53
55
|
'description': value['description'],
|
|
54
56
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { SandboxHealthObservation } from './SandboxHealthObservation.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SandboxRuntimeHealth
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxRuntimeHealth {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SandboxHealthObservation}
|
|
22
|
+
* @memberof SandboxRuntimeHealth
|
|
23
|
+
*/
|
|
24
|
+
launchAuthority: SandboxHealthObservation;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SandboxHealthObservation}
|
|
28
|
+
* @memberof SandboxRuntimeHealth
|
|
29
|
+
*/
|
|
30
|
+
liveness: SandboxHealthObservation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SandboxRuntimeHealth interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSandboxRuntimeHealth(value: object): value is SandboxRuntimeHealth;
|
|
36
|
+
export declare function SandboxRuntimeHealthFromJSON(json: any): SandboxRuntimeHealth;
|
|
37
|
+
export declare function SandboxRuntimeHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeHealth;
|
|
38
|
+
export declare function SandboxRuntimeHealthToJSON(json: any): SandboxRuntimeHealth;
|
|
39
|
+
export declare function SandboxRuntimeHealthToJSONTyped(value?: SandboxRuntimeHealth | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
//# sourceMappingURL=SandboxRuntimeHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRuntimeHealth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeHealth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,eAAe,EAAE,wBAAwB,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,EAAE,wBAAwB,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAS/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9H"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { SandboxHealthObservationFromJSON, SandboxHealthObservationToJSON, } from './SandboxHealthObservation.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SandboxRuntimeHealth interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSandboxRuntimeHealth(value) {
|
|
19
|
+
if (!('launchAuthority' in value) || value['launchAuthority'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('liveness' in value) || value['liveness'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function SandboxRuntimeHealthFromJSON(json) {
|
|
26
|
+
return SandboxRuntimeHealthFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function SandboxRuntimeHealthFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'launchAuthority': SandboxHealthObservationFromJSON(json['launch_authority']),
|
|
34
|
+
'liveness': SandboxHealthObservationFromJSON(json['liveness']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function SandboxRuntimeHealthToJSON(json) {
|
|
38
|
+
return SandboxRuntimeHealthToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function SandboxRuntimeHealthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'launch_authority': SandboxHealthObservationToJSON(value['launchAuthority']),
|
|
46
|
+
'liveness': SandboxHealthObservationToJSON(value['liveness']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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 SandboxSnapshotRestoreOperation
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxSnapshotRestoreOperation {
|
|
19
|
+
/**
|
|
20
|
+
* Immutable snapshot selected when the operation was admitted; it may since have expired or been deleted.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
23
|
+
*/
|
|
24
|
+
snapshotId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Exact snapshot generation fixed at admission.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
29
|
+
*/
|
|
30
|
+
snapshotGenerationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
35
|
+
*/
|
|
36
|
+
discardProcessState: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Present after the head replacement and cold resume child commit together. This alone does not prove the new runtime launched.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
41
|
+
*/
|
|
42
|
+
restoredRootfsGenerationId?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
53
|
+
*/
|
|
54
|
+
sandboxId: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
59
|
+
*/
|
|
60
|
+
requestKey: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
65
|
+
*/
|
|
66
|
+
fromRuntimeGeneration: number;
|
|
67
|
+
/**
|
|
68
|
+
* Paused means an admitted paused source awaiting resume; only succeeded proves replacement. Failed and superseded are terminal and are never replayed.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
71
|
+
*/
|
|
72
|
+
state: SandboxSnapshotRestoreOperationStateEnum;
|
|
73
|
+
/**
|
|
74
|
+
* Present only after committed replacement, even if a later lifecycle changes the current runtime.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
77
|
+
*/
|
|
78
|
+
resultRuntimeGeneration?: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
83
|
+
*/
|
|
84
|
+
reason?: SandboxSnapshotRestoreOperationReasonEnum;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
89
|
+
*/
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
95
|
+
*/
|
|
96
|
+
updatedAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
101
|
+
*/
|
|
102
|
+
finishedAt?: Date;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {SandboxRestartRetryObservation}
|
|
106
|
+
* @memberof SandboxSnapshotRestoreOperation
|
|
107
|
+
*/
|
|
108
|
+
retry?: SandboxRestartRetryObservation;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export declare const SandboxSnapshotRestoreOperationStateEnum: {
|
|
114
|
+
readonly SandboxSnapshotRestoreStatePausing: "pausing";
|
|
115
|
+
readonly SandboxSnapshotRestoreStatePaused: "paused";
|
|
116
|
+
readonly SandboxSnapshotRestoreStateResuming: "resuming";
|
|
117
|
+
readonly SandboxSnapshotRestoreStateSucceeded: "succeeded";
|
|
118
|
+
readonly SandboxSnapshotRestoreStateSuperseded: "superseded";
|
|
119
|
+
readonly SandboxSnapshotRestoreStateFailed: "failed";
|
|
120
|
+
};
|
|
121
|
+
export type SandboxSnapshotRestoreOperationStateEnum = typeof SandboxSnapshotRestoreOperationStateEnum[keyof typeof SandboxSnapshotRestoreOperationStateEnum];
|
|
122
|
+
/**
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export declare const SandboxSnapshotRestoreOperationReasonEnum: {
|
|
126
|
+
readonly SandboxSnapshotRestoreReasonSourceChanged: "source_changed";
|
|
127
|
+
readonly SandboxSnapshotRestoreReasonPauseAborted: "pause_aborted";
|
|
128
|
+
readonly SandboxSnapshotRestoreReasonResumeAborted: "resume_aborted";
|
|
129
|
+
};
|
|
130
|
+
export type SandboxSnapshotRestoreOperationReasonEnum = typeof SandboxSnapshotRestoreOperationReasonEnum[keyof typeof SandboxSnapshotRestoreOperationReasonEnum];
|
|
131
|
+
/**
|
|
132
|
+
* Check if a given object implements the SandboxSnapshotRestoreOperation interface.
|
|
133
|
+
*/
|
|
134
|
+
export declare function instanceOfSandboxSnapshotRestoreOperation(value: object): value is SandboxSnapshotRestoreOperation;
|
|
135
|
+
export declare function SandboxSnapshotRestoreOperationFromJSON(json: any): SandboxSnapshotRestoreOperation;
|
|
136
|
+
export declare function SandboxSnapshotRestoreOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxSnapshotRestoreOperation;
|
|
137
|
+
export declare function SandboxSnapshotRestoreOperationToJSON(json: any): SandboxSnapshotRestoreOperation;
|
|
138
|
+
export declare function SandboxSnapshotRestoreOperationToJSONTyped(value?: SandboxSnapshotRestoreOperation | null, ignoreDiscriminator?: boolean): any;
|
|
139
|
+
//# sourceMappingURL=SandboxSnapshotRestoreOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxSnapshotRestoreOperation.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSnapshotRestoreOperation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAQvF;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;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,wCAAwC,CAAC;IAChD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,yCAAyC,CAAC;IACnD;;;;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,wCAAwC;;;;;;;CAO3C,CAAC;AACX,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAC,MAAM,OAAO,wCAAwC,CAAC,CAAC;AAE9J;;GAEG;AACH,eAAO,MAAM,yCAAyC;;;;CAI5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,OAAO,yCAAyC,CAAC,MAAM,OAAO,yCAAyC,CAAC,CAAC;AAGjK;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,+BAA+B,CAYjH;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAElG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CAsBrI;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAEhG;AAED,wBAAgB,0CAA0C,CAAC,KAAK,CAAC,EAAE,+BAA+B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBpJ"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 SandboxSnapshotRestoreOperationStateEnum = {
|
|
19
|
+
SandboxSnapshotRestoreStatePausing: 'pausing',
|
|
20
|
+
SandboxSnapshotRestoreStatePaused: 'paused',
|
|
21
|
+
SandboxSnapshotRestoreStateResuming: 'resuming',
|
|
22
|
+
SandboxSnapshotRestoreStateSucceeded: 'succeeded',
|
|
23
|
+
SandboxSnapshotRestoreStateSuperseded: 'superseded',
|
|
24
|
+
SandboxSnapshotRestoreStateFailed: 'failed'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const SandboxSnapshotRestoreOperationReasonEnum = {
|
|
30
|
+
SandboxSnapshotRestoreReasonSourceChanged: 'source_changed',
|
|
31
|
+
SandboxSnapshotRestoreReasonPauseAborted: 'pause_aborted',
|
|
32
|
+
SandboxSnapshotRestoreReasonResumeAborted: 'resume_aborted'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the SandboxSnapshotRestoreOperation interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfSandboxSnapshotRestoreOperation(value) {
|
|
38
|
+
if (!('snapshotId' in value) || value['snapshotId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('snapshotGenerationId' in value) || value['snapshotGenerationId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('discardProcessState' in value) || value['discardProcessState'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('requestKey' in value) || value['requestKey'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('fromRuntimeGeneration' in value) || value['fromRuntimeGeneration'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
export function SandboxSnapshotRestoreOperationFromJSON(json) {
|
|
61
|
+
return SandboxSnapshotRestoreOperationFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function SandboxSnapshotRestoreOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'snapshotId': json['snapshot_id'],
|
|
69
|
+
'snapshotGenerationId': json['snapshot_generation_id'],
|
|
70
|
+
'discardProcessState': json['discard_process_state'],
|
|
71
|
+
'restoredRootfsGenerationId': json['restored_rootfs_generation_id'] == null ? undefined : json['restored_rootfs_generation_id'],
|
|
72
|
+
'id': json['id'],
|
|
73
|
+
'sandboxId': json['sandbox_id'],
|
|
74
|
+
'requestKey': json['request_key'],
|
|
75
|
+
'fromRuntimeGeneration': json['from_runtime_generation'],
|
|
76
|
+
'state': json['state'],
|
|
77
|
+
'resultRuntimeGeneration': json['result_runtime_generation'] == null ? undefined : json['result_runtime_generation'],
|
|
78
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
79
|
+
'createdAt': (new Date(json['created_at'])),
|
|
80
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
81
|
+
'finishedAt': json['finished_at'] == null ? undefined : (new Date(json['finished_at'])),
|
|
82
|
+
'retry': json['retry'] == null ? undefined : SandboxRestartRetryObservationFromJSON(json['retry']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export function SandboxSnapshotRestoreOperationToJSON(json) {
|
|
86
|
+
return SandboxSnapshotRestoreOperationToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
export function SandboxSnapshotRestoreOperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'snapshot_id': value['snapshotId'],
|
|
94
|
+
'snapshot_generation_id': value['snapshotGenerationId'],
|
|
95
|
+
'discard_process_state': value['discardProcessState'],
|
|
96
|
+
'restored_rootfs_generation_id': value['restoredRootfsGenerationId'],
|
|
97
|
+
'id': value['id'],
|
|
98
|
+
'sandbox_id': value['sandboxId'],
|
|
99
|
+
'request_key': value['requestKey'],
|
|
100
|
+
'from_runtime_generation': value['fromRuntimeGeneration'],
|
|
101
|
+
'state': value['state'],
|
|
102
|
+
'result_runtime_generation': value['resultRuntimeGeneration'],
|
|
103
|
+
'reason': value['reason'],
|
|
104
|
+
'created_at': value['createdAt'].toISOString(),
|
|
105
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
106
|
+
'finished_at': value['finishedAt'] == null ? value['finishedAt'] : value['finishedAt'].toISOString(),
|
|
107
|
+
'retry': SandboxRestartRetryObservationToJSON(value['retry']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 SandboxSnapshotRestoreRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxSnapshotRestoreRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxSnapshotRestoreRequest
|
|
22
|
+
*/
|
|
23
|
+
expectedRuntimeGeneration: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxSnapshotRestoreRequest
|
|
28
|
+
*/
|
|
29
|
+
snapshotId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxSnapshotRestoreRequest
|
|
34
|
+
*/
|
|
35
|
+
snapshotGenerationId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Explicit acknowledgement that old processes end and the selected snapshot replaces the current writable RootFS.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SandboxSnapshotRestoreRequest
|
|
40
|
+
*/
|
|
41
|
+
discardProcessState: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SandboxSnapshotRestoreRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSandboxSnapshotRestoreRequest(value: object): value is SandboxSnapshotRestoreRequest;
|
|
47
|
+
export declare function SandboxSnapshotRestoreRequestFromJSON(json: any): SandboxSnapshotRestoreRequest;
|
|
48
|
+
export declare function SandboxSnapshotRestoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxSnapshotRestoreRequest;
|
|
49
|
+
export declare function SandboxSnapshotRestoreRequestToJSON(json: any): SandboxSnapshotRestoreRequest;
|
|
50
|
+
export declare function SandboxSnapshotRestoreRequestToJSONTyped(value?: SandboxSnapshotRestoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
//# sourceMappingURL=SandboxSnapshotRestoreRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxSnapshotRestoreRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSnapshotRestoreRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAM7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAWjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhJ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 SandboxSnapshotRestoreRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxSnapshotRestoreRequest(value) {
|
|
18
|
+
if (!('expectedRuntimeGeneration' in value) || value['expectedRuntimeGeneration'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('snapshotId' in value) || value['snapshotId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('snapshotGenerationId' in value) || value['snapshotGenerationId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('discardProcessState' in value) || value['discardProcessState'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function SandboxSnapshotRestoreRequestFromJSON(json) {
|
|
29
|
+
return SandboxSnapshotRestoreRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function SandboxSnapshotRestoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'expectedRuntimeGeneration': json['expected_runtime_generation'],
|
|
37
|
+
'snapshotId': json['snapshot_id'],
|
|
38
|
+
'snapshotGenerationId': json['snapshot_generation_id'],
|
|
39
|
+
'discardProcessState': json['discard_process_state'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SandboxSnapshotRestoreRequestToJSON(json) {
|
|
43
|
+
return SandboxSnapshotRestoreRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SandboxSnapshotRestoreRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'expected_runtime_generation': value['expectedRuntimeGeneration'],
|
|
51
|
+
'snapshot_id': value['snapshotId'],
|
|
52
|
+
'snapshot_generation_id': value['snapshotGenerationId'],
|
|
53
|
+
'discard_process_state': value['discardProcessState'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SandboxHealthObservation } from './SandboxHealthObservation.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SandboxStorageHealth
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxStorageHealth {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SandboxHealthObservation}
|
|
22
|
+
* @memberof SandboxStorageHealth
|
|
23
|
+
*/
|
|
24
|
+
identity: SandboxHealthObservation;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SandboxHealthObservation}
|
|
28
|
+
* @memberof SandboxStorageHealth
|
|
29
|
+
*/
|
|
30
|
+
writerAuthority: SandboxHealthObservation;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SandboxHealthObservation}
|
|
34
|
+
* @memberof SandboxStorageHealth
|
|
35
|
+
*/
|
|
36
|
+
io: SandboxHealthObservation;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SandboxStorageHealth interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSandboxStorageHealth(value: object): value is SandboxStorageHealth;
|
|
42
|
+
export declare function SandboxStorageHealthFromJSON(json: any): SandboxStorageHealth;
|
|
43
|
+
export declare function SandboxStorageHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxStorageHealth;
|
|
44
|
+
export declare function SandboxStorageHealthToJSON(json: any): SandboxStorageHealth;
|
|
45
|
+
export declare function SandboxStorageHealthToJSONTyped(value?: SandboxStorageHealth | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=SandboxStorageHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxStorageHealth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxStorageHealth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,QAAQ,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,eAAe,EAAE,wBAAwB,CAAC;IAC1C;;;;OAIG;IACH,EAAE,EAAE,wBAAwB,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAK3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAU/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9H"}
|