sandbox0 0.6.3 → 0.7.0
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/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/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 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +10 -0
- 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 +7 -1
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +38 -0
- 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';
|
|
@@ -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"}
|
|
@@ -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 { SandboxFromJSON, SandboxToJSON, } from './Sandbox.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ForkSandboxResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfForkSandboxResponse(value) {
|
|
19
|
+
if (!('sourceSandboxId' in value) || value['sourceSandboxId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('sandbox' in value) || value['sandbox'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ForkSandboxResponseFromJSON(json) {
|
|
26
|
+
return ForkSandboxResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ForkSandboxResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'sourceSandboxId': json['source_sandbox_id'],
|
|
34
|
+
'sandbox': SandboxFromJSON(json['sandbox']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ForkSandboxResponseToJSON(json) {
|
|
38
|
+
return ForkSandboxResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ForkSandboxResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'source_sandbox_id': value['sourceSandboxId'],
|
|
46
|
+
'sandbox': SandboxToJSON(value['sandbox']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RestoreSandboxRootFSRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RestoreSandboxRootFSRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RestoreSandboxRootFSRequest
|
|
22
|
+
*/
|
|
23
|
+
snapshotId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RestoreSandboxRootFSRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRestoreSandboxRootFSRequest(value: object): value is RestoreSandboxRootFSRequest;
|
|
29
|
+
export declare function RestoreSandboxRootFSRequestFromJSON(json: any): RestoreSandboxRootFSRequest;
|
|
30
|
+
export declare function RestoreSandboxRootFSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreSandboxRootFSRequest;
|
|
31
|
+
export declare function RestoreSandboxRootFSRequestToJSON(json: any): RestoreSandboxRootFSRequest;
|
|
32
|
+
export declare function RestoreSandboxRootFSRequestToJSONTyped(value?: RestoreSandboxRootFSRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
//# sourceMappingURL=RestoreSandboxRootFSRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestoreSandboxRootFSRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/RestoreSandboxRootFSRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAQ7H;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,CAS5I"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the RestoreSandboxRootFSRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRestoreSandboxRootFSRequest(value) {
|
|
18
|
+
if (!('snapshotId' in value) || value['snapshotId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function RestoreSandboxRootFSRequestFromJSON(json) {
|
|
23
|
+
return RestoreSandboxRootFSRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function RestoreSandboxRootFSRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'snapshotId': json['snapshot_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function RestoreSandboxRootFSRequestToJSON(json) {
|
|
34
|
+
return RestoreSandboxRootFSRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function RestoreSandboxRootFSRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'snapshot_id': value['snapshotId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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 { SandboxLifecycleStatus } from './SandboxLifecycleStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RestoreSandboxRootFSResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RestoreSandboxRootFSResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RestoreSandboxRootFSResponse
|
|
23
|
+
*/
|
|
24
|
+
sandboxId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RestoreSandboxRootFSResponse
|
|
29
|
+
*/
|
|
30
|
+
snapshotId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SandboxLifecycleStatus}
|
|
34
|
+
* @memberof RestoreSandboxRootFSResponse
|
|
35
|
+
*/
|
|
36
|
+
status: SandboxLifecycleStatus;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RestoreSandboxRootFSResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfRestoreSandboxRootFSResponse(value: object): value is RestoreSandboxRootFSResponse;
|
|
42
|
+
export declare function RestoreSandboxRootFSResponseFromJSON(json: any): RestoreSandboxRootFSResponse;
|
|
43
|
+
export declare function RestoreSandboxRootFSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestoreSandboxRootFSResponse;
|
|
44
|
+
export declare function RestoreSandboxRootFSResponseToJSON(json: any): RestoreSandboxRootFSResponse;
|
|
45
|
+
export declare function RestoreSandboxRootFSResponseToJSONTyped(value?: RestoreSandboxRootFSResponse | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=RestoreSandboxRootFSResponse.d.ts.map
|