sandbox0 0.10.0 → 0.10.2
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 +5 -4
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +15 -1
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxRootfsApi.js +41 -1
- package/dist/apispec/src/apis/TemplatesApi.d.ts +2 -2
- package/dist/apispec/src/apis/TemplatesApi.js +2 -2
- package/dist/apispec/src/models/ClaimResponse.d.ts +2 -2
- package/dist/apispec/src/models/ClaimResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimResponse.js +3 -3
- package/dist/apispec/src/models/ContainerSpec.d.ts +12 -11
- package/dist/apispec/src/models/ContainerSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/ContainerSpec.js +9 -5
- package/dist/apispec/src/models/EphemeralMountSpec.d.ts +39 -0
- package/dist/apispec/src/models/EphemeralMountSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/{EmptyDirMountSpec.js → EphemeralMountSpec.js} +11 -9
- package/dist/apispec/src/models/ObservabilityEventSource.d.ts +0 -2
- package/dist/apispec/src/models/ObservabilityEventSource.d.ts.map +1 -1
- package/dist/apispec/src/models/ObservabilityEventSource.js +1 -3
- package/dist/apispec/src/models/RebaseSandboxRootFSRequest.d.ts +39 -0
- package/dist/apispec/src/models/RebaseSandboxRootFSRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/RebaseSandboxRootFSRequest.js +45 -0
- package/dist/apispec/src/models/RebaseSandboxRootFSResponse.d.ts +58 -0
- package/dist/apispec/src/models/RebaseSandboxRootFSResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/RebaseSandboxRootFSResponse.js +60 -0
- package/dist/apispec/src/models/ResourceQuota.d.ts +1 -1
- package/dist/apispec/src/models/SSHProxyProjection.d.ts +1 -1
- package/dist/apispec/src/models/Sandbox.d.ts +2 -2
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +3 -3
- package/dist/apispec/src/models/SandboxResourceConfig.d.ts +1 -1
- package/dist/apispec/src/models/SandboxStatus.d.ts +2 -2
- package/dist/apispec/src/models/SandboxStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxStatus.js +2 -2
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +5 -18
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +6 -9
- package/dist/apispec/src/models/SandboxTemplateStatus.d.ts +0 -25
- package/dist/apispec/src/models/SandboxTemplateStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateStatus.js +0 -9
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +3 -27
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +0 -8
- package/dist/apispec/src/models/SuccessRebaseSandboxRootFSResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessRebaseSandboxRootFSResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessRebaseSandboxRootFSResponse.js +46 -0
- package/dist/apispec/src/models/TemplateCreationStatus.d.ts +2 -11
- package/dist/apispec/src/models/TemplateCreationStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/TemplateCreationStatus.js +1 -4
- package/dist/apispec/src/models/TemplateFromSandboxSpecOverrides.d.ts +1 -11
- package/dist/apispec/src/models/TemplateFromSandboxSpecOverrides.d.ts.map +1 -1
- package/dist/apispec/src/models/TemplateFromSandboxSpecOverrides.js +0 -3
- package/dist/apispec/src/models/index.d.ts +4 -28
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +4 -28
- package/dist/resources/sandboxes.d.ts +2 -2
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +8 -8
- package/dist/sandbox.d.ts +2 -2
- package/dist/sandbox.d.ts.map +1 -1
- package/dist/sandbox.js +2 -2
- package/dist/template_helpers.d.ts +4 -6
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +5 -5
- package/package.json +2 -2
- package/dist/apispec/src/models/Affinity.d.ts +0 -41
- package/dist/apispec/src/models/Affinity.d.ts.map +0 -1
- package/dist/apispec/src/models/Affinity.js +0 -45
- package/dist/apispec/src/models/AppArmorProfile.d.ts +0 -48
- package/dist/apispec/src/models/AppArmorProfile.d.ts.map +0 -1
- package/dist/apispec/src/models/AppArmorProfile.js +0 -53
- package/dist/apispec/src/models/Capabilities.d.ts +0 -39
- package/dist/apispec/src/models/Capabilities.d.ts.map +0 -1
- package/dist/apispec/src/models/Capabilities.js +0 -43
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts +0 -39
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/ExecAction.d.ts +0 -33
- package/dist/apispec/src/models/ExecAction.d.ts.map +0 -1
- package/dist/apispec/src/models/ExecAction.js +0 -41
- package/dist/apispec/src/models/GRPCAction.d.ts +0 -39
- package/dist/apispec/src/models/GRPCAction.d.ts.map +0 -1
- package/dist/apispec/src/models/GRPCAction.js +0 -45
- package/dist/apispec/src/models/HTTPGetAction.d.ts +0 -58
- package/dist/apispec/src/models/HTTPGetAction.d.ts.map +0 -1
- package/dist/apispec/src/models/HTTPGetAction.js +0 -52
- package/dist/apispec/src/models/HTTPHeader.d.ts +0 -39
- package/dist/apispec/src/models/HTTPHeader.d.ts.map +0 -1
- package/dist/apispec/src/models/HTTPHeader.js +0 -47
- package/dist/apispec/src/models/LabelSelector.d.ts +0 -42
- package/dist/apispec/src/models/LabelSelector.d.ts.map +0 -1
- package/dist/apispec/src/models/LabelSelector.js +0 -44
- package/dist/apispec/src/models/LabelSelectorRequirement.d.ts +0 -45
- package/dist/apispec/src/models/LabelSelectorRequirement.d.ts.map +0 -1
- package/dist/apispec/src/models/LabelSelectorRequirement.js +0 -49
- package/dist/apispec/src/models/NodeAffinity.d.ts +0 -41
- package/dist/apispec/src/models/NodeAffinity.d.ts.map +0 -1
- package/dist/apispec/src/models/NodeAffinity.js +0 -45
- package/dist/apispec/src/models/NodeSelector.d.ts +0 -34
- package/dist/apispec/src/models/NodeSelector.d.ts.map +0 -1
- package/dist/apispec/src/models/NodeSelector.js +0 -42
- package/dist/apispec/src/models/NodeSelectorRequirement.d.ts +0 -45
- package/dist/apispec/src/models/NodeSelectorRequirement.d.ts.map +0 -1
- package/dist/apispec/src/models/NodeSelectorRequirement.js +0 -49
- package/dist/apispec/src/models/NodeSelectorTerm.d.ts +0 -40
- package/dist/apispec/src/models/NodeSelectorTerm.d.ts.map +0 -1
- package/dist/apispec/src/models/NodeSelectorTerm.js +0 -44
- package/dist/apispec/src/models/ObjectMeta.d.ts +0 -55
- package/dist/apispec/src/models/ObjectMeta.d.ts.map +0 -1
- package/dist/apispec/src/models/ObjectMeta.js +0 -47
- package/dist/apispec/src/models/PodAffinity.d.ts +0 -41
- package/dist/apispec/src/models/PodAffinity.d.ts.map +0 -1
- package/dist/apispec/src/models/PodAffinity.js +0 -45
- package/dist/apispec/src/models/PodAffinityTerm.d.ts +0 -46
- package/dist/apispec/src/models/PodAffinityTerm.d.ts.map +0 -1
- package/dist/apispec/src/models/PodAffinityTerm.js +0 -48
- package/dist/apispec/src/models/PodSpecOverride.d.ts +0 -62
- package/dist/apispec/src/models/PodSpecOverride.d.ts.map +0 -1
- package/dist/apispec/src/models/PodSpecOverride.js +0 -52
- package/dist/apispec/src/models/PoolStrategy.d.ts +0 -39
- package/dist/apispec/src/models/PoolStrategy.d.ts.map +0 -1
- package/dist/apispec/src/models/PoolStrategy.js +0 -47
- package/dist/apispec/src/models/PreferredSchedulingTerm.d.ts +0 -40
- package/dist/apispec/src/models/PreferredSchedulingTerm.d.ts.map +0 -1
- package/dist/apispec/src/models/PreferredSchedulingTerm.js +0 -48
- package/dist/apispec/src/models/Probe.d.ts +0 -91
- package/dist/apispec/src/models/Probe.d.ts.map +0 -1
- package/dist/apispec/src/models/Probe.js +0 -63
- package/dist/apispec/src/models/SandboxTemplate.d.ts +0 -60
- package/dist/apispec/src/models/SandboxTemplate.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxTemplate.js +0 -52
- package/dist/apispec/src/models/SandboxTemplateCondition.d.ts +0 -57
- package/dist/apispec/src/models/SandboxTemplateCondition.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxTemplateCondition.js +0 -49
- package/dist/apispec/src/models/SeccompProfile.d.ts +0 -48
- package/dist/apispec/src/models/SeccompProfile.d.ts.map +0 -1
- package/dist/apispec/src/models/SeccompProfile.js +0 -53
- package/dist/apispec/src/models/SecurityContext.d.ts +0 -84
- package/dist/apispec/src/models/SecurityContext.d.ts.map +0 -1
- package/dist/apispec/src/models/SecurityContext.js +0 -60
- package/dist/apispec/src/models/SuccessRestoreResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessRestoreResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessRestoreResponse.js +0 -46
- package/dist/apispec/src/models/SuccessRestoreResponseAllOfData.d.ts +0 -33
- package/dist/apispec/src/models/SuccessRestoreResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessRestoreResponseAllOfData.js +0 -41
- package/dist/apispec/src/models/TCPSocketAction.d.ts +0 -39
- package/dist/apispec/src/models/TCPSocketAction.d.ts.map +0 -1
- package/dist/apispec/src/models/TCPSocketAction.js +0 -45
- package/dist/apispec/src/models/Toleration.d.ts +0 -51
- package/dist/apispec/src/models/Toleration.d.ts.map +0 -1
- package/dist/apispec/src/models/Toleration.js +0 -47
- package/dist/apispec/src/models/WeightedPodAffinityTerm.d.ts +0 -40
- package/dist/apispec/src/models/WeightedPodAffinityTerm.d.ts.map +0 -1
- package/dist/apispec/src/models/WeightedPodAffinityTerm.js +0 -48
package/README.md
CHANGED
|
@@ -115,10 +115,11 @@ console.log(template.templateId, template.status?.creation?.state);
|
|
|
115
115
|
|
|
116
116
|
Without `wait: true`, creation returns as soon as Sandbox0 accepts the request.
|
|
117
117
|
The rootfs capture point is `status.creation.capturedAt`, not request
|
|
118
|
-
acceptance, so keep the source sandbox available
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
creation
|
|
118
|
+
acceptance, so keep the source sandbox available until capture completes. A
|
|
119
|
+
running source is briefly write-barriered and remains running afterward.
|
|
120
|
+
`waitUntilReady()` can wait for the same template later. Aborting a wait only
|
|
121
|
+
stops local polling; it does not cancel creation of the immutable RootFS base on
|
|
122
|
+
the server.
|
|
122
123
|
|
|
123
124
|
## Runtime Metrics
|
|
124
125
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { CreateSandboxRootFSSnapshotRequest, ForkSandboxRequest, RestoreSandboxRootFSRequest, SuccessDeletedResponse, SuccessForkSandboxResponse, SuccessRestoreSandboxRootFSResponse, SuccessSandboxRootFSSnapshotListResponse, SuccessSandboxRootFSSnapshotResponse } from '../models/index.js';
|
|
13
|
+
import type { CreateSandboxRootFSSnapshotRequest, ForkSandboxRequest, RebaseSandboxRootFSRequest, RestoreSandboxRootFSRequest, SuccessDeletedResponse, SuccessForkSandboxResponse, SuccessRebaseSandboxRootFSResponse, SuccessRestoreSandboxRootFSResponse, SuccessSandboxRootFSSnapshotListResponse, SuccessSandboxRootFSSnapshotResponse } from '../models/index.js';
|
|
14
14
|
export interface ApiV1SandboxRootfsSnapshotsSnapshotIdDeleteRequest {
|
|
15
15
|
snapshotId: string;
|
|
16
16
|
}
|
|
@@ -21,6 +21,10 @@ export interface ApiV1SandboxesIdForkPostRequest {
|
|
|
21
21
|
id: string;
|
|
22
22
|
forkSandboxRequest?: ForkSandboxRequest;
|
|
23
23
|
}
|
|
24
|
+
export interface ApiV1SandboxesIdRootfsRebasePutRequest {
|
|
25
|
+
id: string;
|
|
26
|
+
rebaseSandboxRootFSRequest: RebaseSandboxRootFSRequest;
|
|
27
|
+
}
|
|
24
28
|
export interface ApiV1SandboxesIdRootfsRestorePostRequest {
|
|
25
29
|
id: string;
|
|
26
30
|
restoreSandboxRootFSRequest: RestoreSandboxRootFSRequest;
|
|
@@ -62,6 +66,16 @@ export declare class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
62
66
|
* Fork sandbox rootfs
|
|
63
67
|
*/
|
|
64
68
|
apiV1SandboxesIdForkPost(requestParameters: ApiV1SandboxesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessForkSandboxResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Applies the paused sandbox\'s file-level changes to an already-attested immutable Base artifact. The operation keeps the sandbox paused, publishes one durable block-COW generation, and retains the previous generation for the requested bounded rollback window.
|
|
71
|
+
* Rebase a paused sandbox rootfs
|
|
72
|
+
*/
|
|
73
|
+
apiV1SandboxesIdRootfsRebasePutRaw(requestParameters: ApiV1SandboxesIdRootfsRebasePutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessRebaseSandboxRootFSResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Applies the paused sandbox\'s file-level changes to an already-attested immutable Base artifact. The operation keeps the sandbox paused, publishes one durable block-COW generation, and retains the previous generation for the requested bounded rollback window.
|
|
76
|
+
* Rebase a paused sandbox rootfs
|
|
77
|
+
*/
|
|
78
|
+
apiV1SandboxesIdRootfsRebasePut(requestParameters: ApiV1SandboxesIdRootfsRebasePutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessRebaseSandboxRootFSResponse>;
|
|
65
79
|
/**
|
|
66
80
|
* Restore sandbox rootfs from snapshot
|
|
67
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxRootfsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxRootfsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,kCAAkC,EAElC,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,mCAAmC,EACnC,wCAAwC,EACxC,oCAAoC,EACrC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxRootfsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxRootfsApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { CreateSandboxRootFSSnapshotRequestToJSON, ForkSandboxRequestToJSON, RestoreSandboxRootFSRequestToJSON, SuccessDeletedResponseFromJSON, SuccessForkSandboxResponseFromJSON, SuccessRestoreSandboxRootFSResponseFromJSON, SuccessSandboxRootFSSnapshotListResponseFromJSON, SuccessSandboxRootFSSnapshotResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { CreateSandboxRootFSSnapshotRequestToJSON, ForkSandboxRequestToJSON, RebaseSandboxRootFSRequestToJSON, RestoreSandboxRootFSRequestToJSON, SuccessDeletedResponseFromJSON, SuccessForkSandboxResponseFromJSON, SuccessRebaseSandboxRootFSResponseFromJSON, SuccessRestoreSandboxRootFSResponseFromJSON, SuccessSandboxRootFSSnapshotListResponseFromJSON, SuccessSandboxRootFSSnapshotResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -120,6 +120,46 @@ export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
120
120
|
const response = await this.apiV1SandboxesIdForkPostRaw(requestParameters, initOverrides);
|
|
121
121
|
return await response.value();
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Applies the paused sandbox\'s file-level changes to an already-attested immutable Base artifact. The operation keeps the sandbox paused, publishes one durable block-COW generation, and retains the previous generation for the requested bounded rollback window.
|
|
125
|
+
* Rebase a paused sandbox rootfs
|
|
126
|
+
*/
|
|
127
|
+
async apiV1SandboxesIdRootfsRebasePutRaw(requestParameters, initOverrides) {
|
|
128
|
+
if (requestParameters['id'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdRootfsRebasePut().');
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['rebaseSandboxRootFSRequest'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('rebaseSandboxRootFSRequest', 'Required parameter "rebaseSandboxRootFSRequest" was null or undefined when calling apiV1SandboxesIdRootfsRebasePut().');
|
|
133
|
+
}
|
|
134
|
+
const queryParameters = {};
|
|
135
|
+
const headerParameters = {};
|
|
136
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = await token("bearerAuth", []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/api/v1/sandboxes/{id}/rootfs/rebase`;
|
|
145
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
146
|
+
const response = await this.request({
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'PUT',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
body: RebaseSandboxRootFSRequestToJSON(requestParameters['rebaseSandboxRootFSRequest']),
|
|
152
|
+
}, initOverrides);
|
|
153
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessRebaseSandboxRootFSResponseFromJSON(jsonValue));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Applies the paused sandbox\'s file-level changes to an already-attested immutable Base artifact. The operation keeps the sandbox paused, publishes one durable block-COW generation, and retains the previous generation for the requested bounded rollback window.
|
|
157
|
+
* Rebase a paused sandbox rootfs
|
|
158
|
+
*/
|
|
159
|
+
async apiV1SandboxesIdRootfsRebasePut(requestParameters, initOverrides) {
|
|
160
|
+
const response = await this.apiV1SandboxesIdRootfsRebasePutRaw(requestParameters, initOverrides);
|
|
161
|
+
return await response.value();
|
|
162
|
+
}
|
|
123
163
|
/**
|
|
124
164
|
* Restore sandbox rootfs from snapshot
|
|
125
165
|
*/
|
|
@@ -33,12 +33,12 @@ export interface ApiV1TemplatesPostRequest {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare class TemplatesApi extends runtime.BaseAPI {
|
|
35
35
|
/**
|
|
36
|
-
* Asynchronously captures the sandbox\'s writable root filesystem,
|
|
36
|
+
* Asynchronously captures the sandbox\'s writable root filesystem, retains the resulting immutable regional block-COW generation, and creates a claimable template. The capture point is reported by `status.creation.capturedAt`, not by acceptance of this request. Keep the source sandbox available until capture completes. A running source is briefly write-barriered while its exact writer publishes the capture; it does not need to be paused. Poll the returned template with `GET /api/v1/templates/{id}` until `status.creation.state` is `ready` or `failed`. The caller needs both `template:create` and `sandbox:read` permissions.
|
|
37
37
|
* Create template from sandbox
|
|
38
38
|
*/
|
|
39
39
|
apiV1TemplatesFromSandboxPostRaw(requestParameters: ApiV1TemplatesFromSandboxPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessTemplateResponse>>;
|
|
40
40
|
/**
|
|
41
|
-
* Asynchronously captures the sandbox\'s writable root filesystem,
|
|
41
|
+
* Asynchronously captures the sandbox\'s writable root filesystem, retains the resulting immutable regional block-COW generation, and creates a claimable template. The capture point is reported by `status.creation.capturedAt`, not by acceptance of this request. Keep the source sandbox available until capture completes. A running source is briefly write-barriered while its exact writer publishes the capture; it does not need to be paused. Poll the returned template with `GET /api/v1/templates/{id}` until `status.creation.state` is `ready` or `failed`. The caller needs both `template:create` and `sandbox:read` permissions.
|
|
42
42
|
* Create template from sandbox
|
|
43
43
|
*/
|
|
44
44
|
apiV1TemplatesFromSandboxPost(requestParameters: ApiV1TemplatesFromSandboxPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessTemplateResponse>;
|
|
@@ -18,7 +18,7 @@ import { SuccessMessageResponseFromJSON, SuccessTemplateListResponseFromJSON, Su
|
|
|
18
18
|
*/
|
|
19
19
|
export class TemplatesApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
* Asynchronously captures the sandbox\'s writable root filesystem,
|
|
21
|
+
* Asynchronously captures the sandbox\'s writable root filesystem, retains the resulting immutable regional block-COW generation, and creates a claimable template. The capture point is reported by `status.creation.capturedAt`, not by acceptance of this request. Keep the source sandbox available until capture completes. A running source is briefly write-barriered while its exact writer publishes the capture; it does not need to be paused. Poll the returned template with `GET /api/v1/templates/{id}` until `status.creation.state` is `ready` or `failed`. The caller needs both `template:create` and `sandbox:read` permissions.
|
|
22
22
|
* Create template from sandbox
|
|
23
23
|
*/
|
|
24
24
|
async apiV1TemplatesFromSandboxPostRaw(requestParameters, initOverrides) {
|
|
@@ -49,7 +49,7 @@ export class TemplatesApi extends runtime.BaseAPI {
|
|
|
49
49
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessTemplateResponseFromJSON(jsonValue));
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Asynchronously captures the sandbox\'s writable root filesystem,
|
|
52
|
+
* Asynchronously captures the sandbox\'s writable root filesystem, retains the resulting immutable regional block-COW generation, and creates a claimable template. The capture point is reported by `status.creation.capturedAt`, not by acceptance of this request. Keep the source sandbox available until capture completes. A running source is briefly write-barriered while its exact writer publishes the capture; it does not need to be paused. Poll the returned template with `GET /api/v1/templates/{id}` until `status.creation.state` is `ready` or `failed`. The caller needs both `template:create` and `sandbox:read` permissions.
|
|
53
53
|
* Create template from sandbox
|
|
54
54
|
*/
|
|
55
55
|
async apiV1TemplatesFromSandboxPost(requestParameters, initOverrides) {
|
|
@@ -29,11 +29,11 @@ export interface ClaimResponse {
|
|
|
29
29
|
*/
|
|
30
30
|
status: SandboxLifecycleStatus;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Opaque identifier of the current physical runtime allocation.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof ClaimResponse
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
runtimeId: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"ClaimResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAYjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahH"}
|
|
@@ -20,7 +20,7 @@ export function instanceOfClaimResponse(value) {
|
|
|
20
20
|
return false;
|
|
21
21
|
if (!('status' in value) || value['status'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('
|
|
23
|
+
if (!('runtimeId' in value) || value['runtimeId'] === undefined)
|
|
24
24
|
return false;
|
|
25
25
|
if (!('template' in value) || value['template'] === undefined)
|
|
26
26
|
return false;
|
|
@@ -36,7 +36,7 @@ export function ClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'sandboxId': json['sandbox_id'],
|
|
38
38
|
'status': SandboxLifecycleStatusFromJSON(json['status']),
|
|
39
|
-
'
|
|
39
|
+
'runtimeId': json['runtime_id'],
|
|
40
40
|
'template': json['template'],
|
|
41
41
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
42
42
|
};
|
|
@@ -51,7 +51,7 @@ export function ClaimResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
51
|
return {
|
|
52
52
|
'sandbox_id': value['sandboxId'],
|
|
53
53
|
'status': SandboxLifecycleStatusToJSON(value['status']),
|
|
54
|
-
'
|
|
54
|
+
'runtime_id': value['runtimeId'],
|
|
55
55
|
'template': value['template'],
|
|
56
56
|
'cluster_id': value['clusterId'],
|
|
57
57
|
};
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ResourceQuota } from './ResourceQuota.js';
|
|
13
|
-
import type { SecurityContext } from './SecurityContext.js';
|
|
14
13
|
import type { EnvVar } from './EnvVar.js';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
@@ -19,17 +18,11 @@ import type { EnvVar } from './EnvVar.js';
|
|
|
19
18
|
*/
|
|
20
19
|
export interface ContainerSpec {
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Canonical normalized OCI reference pinned by a lowercase SHA-256 digest. Mutable tags are rejected.
|
|
23
22
|
* @type {string}
|
|
24
23
|
* @memberof ContainerSpec
|
|
25
24
|
*/
|
|
26
25
|
image: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof ContainerSpec
|
|
31
|
-
*/
|
|
32
|
-
imagePullPolicy?: string;
|
|
33
26
|
/**
|
|
34
27
|
*
|
|
35
28
|
* @type {Array<EnvVar>}
|
|
@@ -43,12 +36,20 @@ export interface ContainerSpec {
|
|
|
43
36
|
*/
|
|
44
37
|
resources: ResourceQuota;
|
|
45
38
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {
|
|
39
|
+
* Immutable gVisor guest privilege class. Privileged capabilities remain confined by runsc and do not expose host devices.
|
|
40
|
+
* @type {string}
|
|
48
41
|
* @memberof ContainerSpec
|
|
49
42
|
*/
|
|
50
|
-
|
|
43
|
+
securityClass?: ContainerSpecSecurityClassEnum;
|
|
51
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const ContainerSpecSecurityClassEnum: {
|
|
49
|
+
readonly Standard: "standard";
|
|
50
|
+
readonly Privileged: "privileged";
|
|
51
|
+
};
|
|
52
|
+
export type ContainerSpecSecurityClassEnum = typeof ContainerSpecSecurityClassEnum[keyof typeof ContainerSpecSecurityClassEnum];
|
|
52
53
|
/**
|
|
53
54
|
* Check if a given object implements the ContainerSpec interface.
|
|
54
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContainerSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ContainerSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContainerSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAGD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAGhI;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"}
|
|
@@ -12,8 +12,14 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ResourceQuotaFromJSON, ResourceQuotaToJSON, } from './ResourceQuota.js';
|
|
15
|
-
import { SecurityContextFromJSON, SecurityContextToJSON, } from './SecurityContext.js';
|
|
16
15
|
import { EnvVarFromJSON, EnvVarToJSON, } from './EnvVar.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const ContainerSpecSecurityClassEnum = {
|
|
20
|
+
Standard: 'standard',
|
|
21
|
+
Privileged: 'privileged'
|
|
22
|
+
};
|
|
17
23
|
/**
|
|
18
24
|
* Check if a given object implements the ContainerSpec interface.
|
|
19
25
|
*/
|
|
@@ -33,10 +39,9 @@ export function ContainerSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
39
|
}
|
|
34
40
|
return {
|
|
35
41
|
'image': json['image'],
|
|
36
|
-
'imagePullPolicy': json['imagePullPolicy'] == null ? undefined : json['imagePullPolicy'],
|
|
37
42
|
'env': json['env'] == null ? undefined : (json['env'].map(EnvVarFromJSON)),
|
|
38
43
|
'resources': ResourceQuotaFromJSON(json['resources']),
|
|
39
|
-
'
|
|
44
|
+
'securityClass': json['securityClass'] == null ? undefined : json['securityClass'],
|
|
40
45
|
};
|
|
41
46
|
}
|
|
42
47
|
export function ContainerSpecToJSON(json) {
|
|
@@ -48,9 +53,8 @@ export function ContainerSpecToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
53
|
}
|
|
49
54
|
return {
|
|
50
55
|
'image': value['image'],
|
|
51
|
-
'imagePullPolicy': value['imagePullPolicy'],
|
|
52
56
|
'env': value['env'] == null ? undefined : (value['env'].map(EnvVarToJSON)),
|
|
53
57
|
'resources': ResourceQuotaToJSON(value['resources']),
|
|
54
|
-
'
|
|
58
|
+
'securityClass': value['securityClass'],
|
|
55
59
|
};
|
|
56
60
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 EphemeralMountSpec
|
|
16
|
+
*/
|
|
17
|
+
export interface EphemeralMountSpec {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EphemeralMountSpec
|
|
22
|
+
*/
|
|
23
|
+
mountPath: string;
|
|
24
|
+
/**
|
|
25
|
+
* Exact byte quantity between 1Mi and 1Ti. The tmpfs remains subject to the sandbox memory cgroup.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EphemeralMountSpec
|
|
28
|
+
*/
|
|
29
|
+
sizeLimit: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the EphemeralMountSpec interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfEphemeralMountSpec(value: object): value is EphemeralMountSpec;
|
|
35
|
+
export declare function EphemeralMountSpecFromJSON(json: any): EphemeralMountSpec;
|
|
36
|
+
export declare function EphemeralMountSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): EphemeralMountSpec;
|
|
37
|
+
export declare function EphemeralMountSpecToJSON(json: any): EphemeralMountSpec;
|
|
38
|
+
export declare function EphemeralMountSpecToJSONTyped(value?: EphemeralMountSpec | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=EphemeralMountSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EphemeralMountSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/EphemeralMountSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAIvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAS3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1H"}
|
|
@@ -12,29 +12,31 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the EphemeralMountSpec interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfEphemeralMountSpec(value) {
|
|
18
18
|
if (!('mountPath' in value) || value['mountPath'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('sizeLimit' in value) || value['sizeLimit'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
return true;
|
|
21
23
|
}
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
24
|
+
export function EphemeralMountSpecFromJSON(json) {
|
|
25
|
+
return EphemeralMountSpecFromJSONTyped(json, false);
|
|
24
26
|
}
|
|
25
|
-
export function
|
|
27
|
+
export function EphemeralMountSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
28
|
if (json == null) {
|
|
27
29
|
return json;
|
|
28
30
|
}
|
|
29
31
|
return {
|
|
30
32
|
'mountPath': json['mountPath'],
|
|
31
|
-
'sizeLimit': json['sizeLimit']
|
|
33
|
+
'sizeLimit': json['sizeLimit'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
export function
|
|
35
|
-
return
|
|
36
|
+
export function EphemeralMountSpecToJSON(json) {
|
|
37
|
+
return EphemeralMountSpecToJSONTyped(json, false);
|
|
36
38
|
}
|
|
37
|
-
export function
|
|
39
|
+
export function EphemeralMountSpecToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
40
|
if (value == null) {
|
|
39
41
|
return value;
|
|
40
42
|
}
|
|
@@ -16,10 +16,8 @@
|
|
|
16
16
|
export declare const ObservabilityEventSource: {
|
|
17
17
|
readonly ClusterGateway: "cluster_gateway";
|
|
18
18
|
readonly Manager: "manager";
|
|
19
|
-
readonly Netd: "netd";
|
|
20
19
|
readonly Procd: "procd";
|
|
21
20
|
readonly Ctld: "ctld";
|
|
22
|
-
readonly StorageProxy: "storage_proxy";
|
|
23
21
|
};
|
|
24
22
|
export type ObservabilityEventSource = typeof ObservabilityEventSource[keyof typeof ObservabilityEventSource];
|
|
25
23
|
export declare function instanceOfObservabilityEventSource(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservabilityEventSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ObservabilityEventSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"ObservabilityEventSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ObservabilityEventSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAStE;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEvH;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,GAAG,GAAG,CAE3F;AAED,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEtH"}
|
|
@@ -18,10 +18,8 @@
|
|
|
18
18
|
export const ObservabilityEventSource = {
|
|
19
19
|
ClusterGateway: 'cluster_gateway',
|
|
20
20
|
Manager: 'manager',
|
|
21
|
-
Netd: 'netd',
|
|
22
21
|
Procd: 'procd',
|
|
23
|
-
Ctld: 'ctld'
|
|
24
|
-
StorageProxy: 'storage_proxy'
|
|
22
|
+
Ctld: 'ctld'
|
|
25
23
|
};
|
|
26
24
|
export function instanceOfObservabilityEventSource(value) {
|
|
27
25
|
for (const key in ObservabilityEventSource) {
|
|
@@ -0,0 +1,39 @@
|
|
|
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 RebaseSandboxRootFSRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RebaseSandboxRootFSRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical SHA-256 digest of an already-attested immutable RootFS Base artifact.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RebaseSandboxRootFSRequest
|
|
22
|
+
*/
|
|
23
|
+
targetBaseArtifactDigest: string;
|
|
24
|
+
/**
|
|
25
|
+
* Rollback retention in seconds. Defaults to 86400 seconds and cannot exceed seven days.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RebaseSandboxRootFSRequest
|
|
28
|
+
*/
|
|
29
|
+
rollbackTtl?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RebaseSandboxRootFSRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRebaseSandboxRootFSRequest(value: object): value is RebaseSandboxRootFSRequest;
|
|
35
|
+
export declare function RebaseSandboxRootFSRequestFromJSON(json: any): RebaseSandboxRootFSRequest;
|
|
36
|
+
export declare function RebaseSandboxRootFSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebaseSandboxRootFSRequest;
|
|
37
|
+
export declare function RebaseSandboxRootFSRequestToJSON(json: any): RebaseSandboxRootFSRequest;
|
|
38
|
+
export declare function RebaseSandboxRootFSRequestToJSONTyped(value?: RebaseSandboxRootFSRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=RebaseSandboxRootFSRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RebaseSandboxRootFSRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/RebaseSandboxRootFSRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAGvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAS3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1I"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 RebaseSandboxRootFSRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRebaseSandboxRootFSRequest(value) {
|
|
18
|
+
if (!('targetBaseArtifactDigest' in value) || value['targetBaseArtifactDigest'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function RebaseSandboxRootFSRequestFromJSON(json) {
|
|
23
|
+
return RebaseSandboxRootFSRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function RebaseSandboxRootFSRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'targetBaseArtifactDigest': json['target_base_artifact_digest'],
|
|
31
|
+
'rollbackTtl': json['rollback_ttl'] == null ? undefined : json['rollback_ttl'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function RebaseSandboxRootFSRequestToJSON(json) {
|
|
35
|
+
return RebaseSandboxRootFSRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function RebaseSandboxRootFSRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'target_base_artifact_digest': value['targetBaseArtifactDigest'],
|
|
43
|
+
'rollback_ttl': value['rollbackTtl'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { SandboxLifecycleStatus } from './SandboxLifecycleStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RebaseSandboxRootFSResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RebaseSandboxRootFSResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RebaseSandboxRootFSResponse
|
|
23
|
+
*/
|
|
24
|
+
sandboxId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RebaseSandboxRootFSResponse
|
|
29
|
+
*/
|
|
30
|
+
generationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RebaseSandboxRootFSResponse
|
|
35
|
+
*/
|
|
36
|
+
baseArtifactDigest: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof RebaseSandboxRootFSResponse
|
|
41
|
+
*/
|
|
42
|
+
rollbackExpiresAt: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SandboxLifecycleStatus}
|
|
46
|
+
* @memberof RebaseSandboxRootFSResponse
|
|
47
|
+
*/
|
|
48
|
+
status: SandboxLifecycleStatus;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the RebaseSandboxRootFSResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfRebaseSandboxRootFSResponse(value: object): value is RebaseSandboxRootFSResponse;
|
|
54
|
+
export declare function RebaseSandboxRootFSResponseFromJSON(json: any): RebaseSandboxRootFSResponse;
|
|
55
|
+
export declare function RebaseSandboxRootFSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RebaseSandboxRootFSResponse;
|
|
56
|
+
export declare function RebaseSandboxRootFSResponseToJSON(json: any): RebaseSandboxRootFSResponse;
|
|
57
|
+
export declare function RebaseSandboxRootFSResponseToJSONTyped(value?: RebaseSandboxRootFSResponse | null, ignoreDiscriminator?: boolean): any;
|
|
58
|
+
//# sourceMappingURL=RebaseSandboxRootFSResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RebaseSandboxRootFSResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/RebaseSandboxRootFSResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,iBAAiB,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAOzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAY7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5I"}
|