sandbox0 0.6.3 → 0.7.1
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/dist/apispec/src/apis/SandboxRootfsApi.d.ts +88 -0
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -0
- package/dist/apispec/src/apis/SandboxRootfsApi.js +227 -0
- package/dist/apispec/src/apis/index.d.ts +1 -0
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +1 -0
- package/dist/apispec/src/models/ClaimRequest.d.ts +6 -0
- package/dist/apispec/src/models/ClaimRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimRequest.js +2 -0
- package/dist/apispec/src/models/ContextExecResponse.d.ts +12 -0
- package/dist/apispec/src/models/ContextExecResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ContextExecResponse.js +4 -0
- package/dist/apispec/src/models/ContextResponse.d.ts +12 -0
- package/dist/apispec/src/models/ContextResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ContextResponse.js +4 -0
- package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts +45 -0
- package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.js +45 -0
- package/dist/apispec/src/models/ForkSandboxResponse.d.ts +40 -0
- package/dist/apispec/src/models/ForkSandboxResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/ForkSandboxResponse.js +48 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSRequest.d.ts +33 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSRequest.js +43 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSResponse.d.ts +46 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/RestoreSandboxRootFSResponse.js +52 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts +63 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.js +57 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshotList.d.ts +40 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshotList.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshotList.js +48 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -19
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -7
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +12 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +2 -0
- package/dist/apispec/src/models/SuccessForkSandboxResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessForkSandboxResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessForkSandboxResponse.js +46 -0
- package/dist/apispec/src/models/SuccessRestoreSandboxRootFSResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessRestoreSandboxRootFSResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessRestoreSandboxRootFSResponse.js +46 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSSnapshotResponse.js +46 -0
- package/dist/apispec/src/models/index.d.ts +10 -2
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +10 -2
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -0
- package/dist/resources/sandboxes.d.ts +8 -1
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +41 -1
- package/dist/template_helpers.d.ts +1 -4
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +0 -3
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import type { CreateSandboxRootFSSnapshotRequest, RestoreSandboxRootFSRequest, SuccessDeletedResponse, SuccessForkSandboxResponse, SuccessRestoreSandboxRootFSResponse, SuccessSandboxRootFSSnapshotListResponse, SuccessSandboxRootFSSnapshotResponse } from '../models/index.js';
|
|
14
|
+
export interface ApiV1SandboxRootfsSnapshotsSnapshotIdDeleteRequest {
|
|
15
|
+
snapshotId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiV1SandboxRootfsSnapshotsSnapshotIdGetRequest {
|
|
18
|
+
snapshotId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiV1SandboxesIdForkPostRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
body?: object;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiV1SandboxesIdRootfsRestorePostRequest {
|
|
25
|
+
id: string;
|
|
26
|
+
restoreSandboxRootFSRequest: RestoreSandboxRootFSRequest;
|
|
27
|
+
}
|
|
28
|
+
export interface ApiV1SandboxesIdSnapshotsGetRequest {
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ApiV1SandboxesIdSnapshotsPostRequest {
|
|
32
|
+
id: string;
|
|
33
|
+
createSandboxRootFSSnapshotRequest?: CreateSandboxRootFSSnapshotRequest;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class SandboxRootfsApi extends runtime.BaseAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Delete sandbox rootfs snapshot
|
|
41
|
+
*/
|
|
42
|
+
apiV1SandboxRootfsSnapshotsSnapshotIdDeleteRaw(requestParameters: ApiV1SandboxRootfsSnapshotsSnapshotIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessDeletedResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete sandbox rootfs snapshot
|
|
45
|
+
*/
|
|
46
|
+
apiV1SandboxRootfsSnapshotsSnapshotIdDelete(requestParameters: ApiV1SandboxRootfsSnapshotsSnapshotIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessDeletedResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Get sandbox rootfs snapshot
|
|
49
|
+
*/
|
|
50
|
+
apiV1SandboxRootfsSnapshotsSnapshotIdGetRaw(requestParameters: ApiV1SandboxRootfsSnapshotsSnapshotIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRootFSSnapshotResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Get sandbox rootfs snapshot
|
|
53
|
+
*/
|
|
54
|
+
apiV1SandboxRootfsSnapshotsSnapshotIdGet(requestParameters: ApiV1SandboxRootfsSnapshotsSnapshotIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Fork sandbox from paused rootfs
|
|
57
|
+
*/
|
|
58
|
+
apiV1SandboxesIdForkPostRaw(requestParameters: ApiV1SandboxesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessForkSandboxResponse>>;
|
|
59
|
+
/**
|
|
60
|
+
* Fork sandbox from paused rootfs
|
|
61
|
+
*/
|
|
62
|
+
apiV1SandboxesIdForkPost(requestParameters: ApiV1SandboxesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessForkSandboxResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Restore sandbox rootfs from snapshot
|
|
65
|
+
*/
|
|
66
|
+
apiV1SandboxesIdRootfsRestorePostRaw(requestParameters: ApiV1SandboxesIdRootfsRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessRestoreSandboxRootFSResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Restore sandbox rootfs from snapshot
|
|
69
|
+
*/
|
|
70
|
+
apiV1SandboxesIdRootfsRestorePost(requestParameters: ApiV1SandboxesIdRootfsRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessRestoreSandboxRootFSResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* List sandbox rootfs snapshots
|
|
73
|
+
*/
|
|
74
|
+
apiV1SandboxesIdSnapshotsGetRaw(requestParameters: ApiV1SandboxesIdSnapshotsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRootFSSnapshotListResponse>>;
|
|
75
|
+
/**
|
|
76
|
+
* List sandbox rootfs snapshots
|
|
77
|
+
*/
|
|
78
|
+
apiV1SandboxesIdSnapshotsGet(requestParameters: ApiV1SandboxesIdSnapshotsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotListResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Create sandbox rootfs snapshot
|
|
81
|
+
*/
|
|
82
|
+
apiV1SandboxesIdSnapshotsPostRaw(requestParameters: ApiV1SandboxesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRootFSSnapshotResponse>>;
|
|
83
|
+
/**
|
|
84
|
+
* Create sandbox rootfs snapshot
|
|
85
|
+
*/
|
|
86
|
+
apiV1SandboxesIdSnapshotsPost(requestParameters: ApiV1SandboxesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotResponse>;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=SandboxRootfsApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxRootfsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxRootfsApi.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,227 @@
|
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { CreateSandboxRootFSSnapshotRequestToJSON, RestoreSandboxRootFSRequestToJSON, SuccessDeletedResponseFromJSON, SuccessForkSandboxResponseFromJSON, SuccessRestoreSandboxRootFSResponseFromJSON, SuccessSandboxRootFSSnapshotListResponseFromJSON, SuccessSandboxRootFSSnapshotResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Delete sandbox rootfs snapshot
|
|
22
|
+
*/
|
|
23
|
+
async apiV1SandboxRootfsSnapshotsSnapshotIdDeleteRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['snapshotId'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxRootfsSnapshotsSnapshotIdDelete().');
|
|
26
|
+
}
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
30
|
+
const token = this.configuration.accessToken;
|
|
31
|
+
const tokenString = await token("bearerAuth", []);
|
|
32
|
+
if (tokenString) {
|
|
33
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
let urlPath = `/api/v1/sandbox-rootfs-snapshots/{snapshot_id}`;
|
|
37
|
+
urlPath = urlPath.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
38
|
+
const response = await this.request({
|
|
39
|
+
path: urlPath,
|
|
40
|
+
method: 'DELETE',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
}, initOverrides);
|
|
44
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessDeletedResponseFromJSON(jsonValue));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete sandbox rootfs snapshot
|
|
48
|
+
*/
|
|
49
|
+
async apiV1SandboxRootfsSnapshotsSnapshotIdDelete(requestParameters, initOverrides) {
|
|
50
|
+
const response = await this.apiV1SandboxRootfsSnapshotsSnapshotIdDeleteRaw(requestParameters, initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get sandbox rootfs snapshot
|
|
55
|
+
*/
|
|
56
|
+
async apiV1SandboxRootfsSnapshotsSnapshotIdGetRaw(requestParameters, initOverrides) {
|
|
57
|
+
if (requestParameters['snapshotId'] == null) {
|
|
58
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxRootfsSnapshotsSnapshotIdGet().');
|
|
59
|
+
}
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
63
|
+
const token = this.configuration.accessToken;
|
|
64
|
+
const tokenString = await token("bearerAuth", []);
|
|
65
|
+
if (tokenString) {
|
|
66
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
let urlPath = `/api/v1/sandbox-rootfs-snapshots/{snapshot_id}`;
|
|
70
|
+
urlPath = urlPath.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
71
|
+
const response = await this.request({
|
|
72
|
+
path: urlPath,
|
|
73
|
+
method: 'GET',
|
|
74
|
+
headers: headerParameters,
|
|
75
|
+
query: queryParameters,
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRootFSSnapshotResponseFromJSON(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get sandbox rootfs snapshot
|
|
81
|
+
*/
|
|
82
|
+
async apiV1SandboxRootfsSnapshotsSnapshotIdGet(requestParameters, initOverrides) {
|
|
83
|
+
const response = await this.apiV1SandboxRootfsSnapshotsSnapshotIdGetRaw(requestParameters, initOverrides);
|
|
84
|
+
return await response.value();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Fork sandbox from paused rootfs
|
|
88
|
+
*/
|
|
89
|
+
async apiV1SandboxesIdForkPostRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['id'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdForkPost().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = await token("bearerAuth", []);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
let urlPath = `/api/v1/sandboxes/{id}/fork`;
|
|
104
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: urlPath,
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
body: requestParameters['body'],
|
|
111
|
+
}, initOverrides);
|
|
112
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessForkSandboxResponseFromJSON(jsonValue));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Fork sandbox from paused rootfs
|
|
116
|
+
*/
|
|
117
|
+
async apiV1SandboxesIdForkPost(requestParameters, initOverrides) {
|
|
118
|
+
const response = await this.apiV1SandboxesIdForkPostRaw(requestParameters, initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Restore sandbox rootfs from snapshot
|
|
123
|
+
*/
|
|
124
|
+
async apiV1SandboxesIdRootfsRestorePostRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters['id'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdRootfsRestorePost().');
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['restoreSandboxRootFSRequest'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('restoreSandboxRootFSRequest', 'Required parameter "restoreSandboxRootFSRequest" was null or undefined when calling apiV1SandboxesIdRootfsRestorePost().');
|
|
130
|
+
}
|
|
131
|
+
const queryParameters = {};
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = await token("bearerAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
let urlPath = `/api/v1/sandboxes/{id}/rootfs/restore`;
|
|
142
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
143
|
+
const response = await this.request({
|
|
144
|
+
path: urlPath,
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: RestoreSandboxRootFSRequestToJSON(requestParameters['restoreSandboxRootFSRequest']),
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessRestoreSandboxRootFSResponseFromJSON(jsonValue));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Restore sandbox rootfs from snapshot
|
|
154
|
+
*/
|
|
155
|
+
async apiV1SandboxesIdRootfsRestorePost(requestParameters, initOverrides) {
|
|
156
|
+
const response = await this.apiV1SandboxesIdRootfsRestorePostRaw(requestParameters, initOverrides);
|
|
157
|
+
return await response.value();
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* List sandbox rootfs snapshots
|
|
161
|
+
*/
|
|
162
|
+
async apiV1SandboxesIdSnapshotsGetRaw(requestParameters, initOverrides) {
|
|
163
|
+
if (requestParameters['id'] == null) {
|
|
164
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdSnapshotsGet().');
|
|
165
|
+
}
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
const token = this.configuration.accessToken;
|
|
170
|
+
const tokenString = await token("bearerAuth", []);
|
|
171
|
+
if (tokenString) {
|
|
172
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
let urlPath = `/api/v1/sandboxes/{id}/snapshots`;
|
|
176
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
177
|
+
const response = await this.request({
|
|
178
|
+
path: urlPath,
|
|
179
|
+
method: 'GET',
|
|
180
|
+
headers: headerParameters,
|
|
181
|
+
query: queryParameters,
|
|
182
|
+
}, initOverrides);
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRootFSSnapshotListResponseFromJSON(jsonValue));
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* List sandbox rootfs snapshots
|
|
187
|
+
*/
|
|
188
|
+
async apiV1SandboxesIdSnapshotsGet(requestParameters, initOverrides) {
|
|
189
|
+
const response = await this.apiV1SandboxesIdSnapshotsGetRaw(requestParameters, initOverrides);
|
|
190
|
+
return await response.value();
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Create sandbox rootfs snapshot
|
|
194
|
+
*/
|
|
195
|
+
async apiV1SandboxesIdSnapshotsPostRaw(requestParameters, initOverrides) {
|
|
196
|
+
if (requestParameters['id'] == null) {
|
|
197
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdSnapshotsPost().');
|
|
198
|
+
}
|
|
199
|
+
const queryParameters = {};
|
|
200
|
+
const headerParameters = {};
|
|
201
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
203
|
+
const token = this.configuration.accessToken;
|
|
204
|
+
const tokenString = await token("bearerAuth", []);
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
let urlPath = `/api/v1/sandboxes/{id}/snapshots`;
|
|
210
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
211
|
+
const response = await this.request({
|
|
212
|
+
path: urlPath,
|
|
213
|
+
method: 'POST',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
body: CreateSandboxRootFSSnapshotRequestToJSON(requestParameters['createSandboxRootFSSnapshotRequest']),
|
|
217
|
+
}, initOverrides);
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRootFSSnapshotResponseFromJSON(jsonValue));
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Create sandbox rootfs snapshot
|
|
222
|
+
*/
|
|
223
|
+
async apiV1SandboxesIdSnapshotsPost(requestParameters, initOverrides) {
|
|
224
|
+
const response = await this.apiV1SandboxesIdSnapshotsPostRaw(requestParameters, initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from './HealthApi.js';
|
|
|
7
7
|
export * from './QuotasApi.js';
|
|
8
8
|
export * from './RegionsApi.js';
|
|
9
9
|
export * from './RegistryApi.js';
|
|
10
|
+
export * from './SandboxRootfsApi.js';
|
|
10
11
|
export * from './SandboxVolumesApi.js';
|
|
11
12
|
export * from './SandboxesApi.js';
|
|
12
13
|
export * from './SnapshotsApi.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -9,6 +9,7 @@ export * from './HealthApi.js';
|
|
|
9
9
|
export * from './QuotasApi.js';
|
|
10
10
|
export * from './RegionsApi.js';
|
|
11
11
|
export * from './RegistryApi.js';
|
|
12
|
+
export * from './SandboxRootfsApi.js';
|
|
12
13
|
export * from './SandboxVolumesApi.js';
|
|
13
14
|
export * from './SandboxesApi.js';
|
|
14
15
|
export * from './SnapshotsApi.js';
|
|
@@ -23,6 +23,12 @@ export interface ClaimRequest {
|
|
|
23
23
|
* @memberof ClaimRequest
|
|
24
24
|
*/
|
|
25
25
|
template?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional sandbox rootfs snapshot ID used to initialize the claimed sandbox writable root filesystem.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ClaimRequest
|
|
30
|
+
*/
|
|
31
|
+
snapshotId?: string;
|
|
26
32
|
/**
|
|
27
33
|
*
|
|
28
34
|
* @type {SandboxConfig}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"ClaimRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAW/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY9G"}
|
|
@@ -28,6 +28,7 @@ export function ClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'template': json['template'] == null ? undefined : json['template'],
|
|
31
|
+
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
31
32
|
'config': json['config'] == null ? undefined : SandboxConfigFromJSON(json['config']),
|
|
32
33
|
'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(ClaimMountRequestFromJSON)),
|
|
33
34
|
};
|
|
@@ -41,6 +42,7 @@ export function ClaimRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'template': value['template'],
|
|
45
|
+
'snapshot_id': value['snapshotId'],
|
|
44
46
|
'config': SandboxConfigToJSON(value['config']),
|
|
45
47
|
'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(ClaimMountRequestToJSON)),
|
|
46
48
|
};
|
|
@@ -21,6 +21,18 @@ export interface ContextExecResponse {
|
|
|
21
21
|
* @memberof ContextExecResponse
|
|
22
22
|
*/
|
|
23
23
|
outputRaw: string;
|
|
24
|
+
/**
|
|
25
|
+
* Present when the underlying process has exited.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ContextExecResponse
|
|
28
|
+
*/
|
|
29
|
+
exitCode?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Final process state when the underlying process has exited.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContextExecResponse
|
|
34
|
+
*/
|
|
35
|
+
state?: string;
|
|
24
36
|
}
|
|
25
37
|
/**
|
|
26
38
|
* Check if a given object implements the ContextExecResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextExecResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContextExecResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextExecResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContextExecResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAU7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5H"}
|
|
@@ -28,6 +28,8 @@ export function ContextExecResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'outputRaw': json['output_raw'],
|
|
31
|
+
'exitCode': json['exit_code'] == null ? undefined : json['exit_code'],
|
|
32
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
export function ContextExecResponseToJSON(json) {
|
|
@@ -39,5 +41,7 @@ export function ContextExecResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
39
41
|
}
|
|
40
42
|
return {
|
|
41
43
|
'output_raw': value['outputRaw'],
|
|
44
|
+
'exit_code': value['exitCode'],
|
|
45
|
+
'state': value['state'],
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -72,6 +72,18 @@ export interface ContextResponse {
|
|
|
72
72
|
* @memberof ContextResponse
|
|
73
73
|
*/
|
|
74
74
|
outputRaw?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Present when the underlying process has exited.
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof ContextResponse
|
|
79
|
+
*/
|
|
80
|
+
exitCode?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Final process state when the underlying process has exited.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ContextResponse
|
|
85
|
+
*/
|
|
86
|
+
state?: string;
|
|
75
87
|
}
|
|
76
88
|
/**
|
|
77
89
|
* Check if a given object implements the ContextResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContextResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ContextResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContextResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAID;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAOjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAkBrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBpH"}
|
|
@@ -45,6 +45,8 @@ export function ContextResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'paused': json['paused'],
|
|
46
46
|
'createdAt': json['created_at'],
|
|
47
47
|
'outputRaw': json['output_raw'] == null ? undefined : json['output_raw'],
|
|
48
|
+
'exitCode': json['exit_code'] == null ? undefined : json['exit_code'],
|
|
49
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
export function ContextResponseToJSON(json) {
|
|
@@ -64,5 +66,7 @@ export function ContextResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
66
|
'paused': value['paused'],
|
|
65
67
|
'created_at': value['createdAt'],
|
|
66
68
|
'output_raw': value['outputRaw'],
|
|
69
|
+
'exit_code': value['exitCode'],
|
|
70
|
+
'state': value['state'],
|
|
67
71
|
};
|
|
68
72
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CreateSandboxRootFSSnapshotRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSandboxRootFSSnapshotRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSandboxRootFSSnapshotRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSandboxRootFSSnapshotRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional snapshot expiration timestamp. Zero value means not set.
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CreateSandboxRootFSSnapshotRequest
|
|
34
|
+
*/
|
|
35
|
+
expiresAt?: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateSandboxRootFSSnapshotRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateSandboxRootFSSnapshotRequest(value: object): value is CreateSandboxRootFSSnapshotRequest;
|
|
41
|
+
export declare function CreateSandboxRootFSSnapshotRequestFromJSON(json: any): CreateSandboxRootFSSnapshotRequest;
|
|
42
|
+
export declare function CreateSandboxRootFSSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSandboxRootFSSnapshotRequest;
|
|
43
|
+
export declare function CreateSandboxRootFSSnapshotRequestToJSON(json: any): CreateSandboxRootFSSnapshotRequest;
|
|
44
|
+
export declare function CreateSandboxRootFSSnapshotRequestToJSONTyped(value?: CreateSandboxRootFSSnapshotRequest | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=CreateSandboxRootFSSnapshotRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSandboxRootFSSnapshotRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxRootFSSnapshotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kCAAkC,CAEvH;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAExG;AAED,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kCAAkC,CAU3I;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAEtG;AAED,wBAAgB,6CAA6C,CAAC,KAAK,CAAC,EAAE,kCAAkC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1J"}
|
|
@@ -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 CreateSandboxRootFSSnapshotRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateSandboxRootFSSnapshotRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CreateSandboxRootFSSnapshotRequestFromJSON(json) {
|
|
21
|
+
return CreateSandboxRootFSSnapshotRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CreateSandboxRootFSSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function CreateSandboxRootFSSnapshotRequestToJSON(json) {
|
|
34
|
+
return CreateSandboxRootFSSnapshotRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CreateSandboxRootFSSnapshotRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
'description': value['description'],
|
|
43
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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 { Sandbox } from './Sandbox.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ForkSandboxResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ForkSandboxResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ForkSandboxResponse
|
|
23
|
+
*/
|
|
24
|
+
sourceSandboxId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Sandbox}
|
|
28
|
+
* @memberof ForkSandboxResponse
|
|
29
|
+
*/
|
|
30
|
+
sandbox: Sandbox;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ForkSandboxResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfForkSandboxResponse(value: object): value is ForkSandboxResponse;
|
|
36
|
+
export declare function ForkSandboxResponseFromJSON(json: any): ForkSandboxResponse;
|
|
37
|
+
export declare function ForkSandboxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForkSandboxResponse;
|
|
38
|
+
export declare function ForkSandboxResponseToJSON(json: any): ForkSandboxResponse;
|
|
39
|
+
export declare function ForkSandboxResponseToJSONTyped(value?: ForkSandboxResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
//# sourceMappingURL=ForkSandboxResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForkSandboxResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAIzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAS7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5H"}
|