sandbox0 0.2.2 → 0.2.4
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 +16 -17
- package/dist/apispec/src/apis/RegistryApi.d.ts +6 -3
- package/dist/apispec/src/apis/RegistryApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/RegistryApi.js +6 -4
- package/dist/apispec/src/models/ClaimMountRequest.d.ts +46 -0
- package/dist/apispec/src/models/ClaimMountRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ClaimMountRequest.js +50 -0
- package/dist/apispec/src/models/ClaimRequest.d.ts +24 -0
- package/dist/apispec/src/models/ClaimRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimRequest.js +7 -0
- package/dist/apispec/src/models/ClaimResponse.d.ts +7 -0
- package/dist/apispec/src/models/ClaimResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimResponse.js +3 -0
- package/dist/apispec/src/models/ContainerMountSpec.d.ts +45 -0
- package/dist/apispec/src/models/ContainerMountSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/ContainerMountSpec.js +49 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +12 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +4 -0
- package/dist/apispec/src/models/ForkVolumeRequest.d.ts +12 -0
- package/dist/apispec/src/models/ForkVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkVolumeRequest.js +4 -0
- package/dist/apispec/src/models/MountStatus.d.ts +30 -2
- package/dist/apispec/src/models/MountStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/MountStatus.js +23 -2
- package/dist/apispec/src/models/RegistryCredentialsRequest.d.ts +33 -0
- package/dist/apispec/src/models/RegistryCredentialsRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/RegistryCredentialsRequest.js +41 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +7 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +3 -0
- package/dist/apispec/src/models/SandboxVolume.d.ts +12 -0
- package/dist/apispec/src/models/SandboxVolume.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxVolume.js +4 -0
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts +69 -0
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/SharedVolumeSpec.js +57 -0
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts +4 -4
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SidecarContainerSpec.js +6 -4
- package/dist/apispec/src/models/index.d.ts +4 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/resources/sandboxes.d.ts +9 -3
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +26 -4
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +1 -0
- package/dist/sandbox.d.ts +3 -0
- package/dist/sandbox.d.ts.map +1 -1
- package/dist/sandbox.js +2 -0
- package/dist/template_helpers.d.ts +46 -0
- package/dist/template_helpers.d.ts.map +1 -0
- package/dist/template_helpers.js +64 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -49,27 +49,26 @@ async function main() {
|
|
|
49
49
|
main().catch(console.error);
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## Documentation
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
- [Sandbox0 docs](https://sandbox0.ai/docs)
|
|
55
|
+
- [Template sidecars and shared volumes](https://sandbox0.ai/docs/template/sidecars)
|
|
56
|
+
- [Volume mounts](https://sandbox0.ai/docs/volume/mounts)
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|----------------------------|------------------------------------------|
|
|
58
|
-
| `01_hello_world` | Basic sandbox usage |
|
|
59
|
-
| `02_context_options` | Context configuration options |
|
|
60
|
-
| `03_files` | File read/write/list operations |
|
|
61
|
-
| `04_streaming` | Streaming execution output |
|
|
62
|
-
| `05_templates` | Working with sandbox templates |
|
|
63
|
-
| `06_volumes` | Persistent volumes and snapshots |
|
|
64
|
-
| `07_webhook` | Webhook event delivery |
|
|
65
|
-
| `08_network` | Network policy configuration |
|
|
66
|
-
| `09_expose_port` | Exposing ports publicly |
|
|
58
|
+
## Bootstrap Mounts At Claim Time
|
|
67
59
|
|
|
68
|
-
|
|
60
|
+
```typescript
|
|
61
|
+
const volume = await client.volumes.create({});
|
|
69
62
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
const sandbox = await client.sandboxes.claim("default", {
|
|
64
|
+
mounts: [{ sandboxvolumeId: volume.id, mountPoint: "/workspace/data" }],
|
|
65
|
+
waitForMounts: true,
|
|
66
|
+
mountWaitTimeoutMs: 45_000,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
for (const mount of sandbox.bootstrapMounts) {
|
|
70
|
+
console.log(mount.sandboxvolumeId, mount.state);
|
|
71
|
+
}
|
|
73
72
|
```
|
|
74
73
|
|
|
75
74
|
## Links
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { SuccessRegistryCredentialsResponse } from '../models/index.js';
|
|
13
|
+
import type { RegistryCredentialsRequest, SuccessRegistryCredentialsResponse } from '../models/index.js';
|
|
14
|
+
export interface ApiV1RegistryCredentialsPostRequest {
|
|
15
|
+
registryCredentialsRequest?: RegistryCredentialsRequest;
|
|
16
|
+
}
|
|
14
17
|
/**
|
|
15
18
|
*
|
|
16
19
|
*/
|
|
@@ -18,10 +21,10 @@ export declare class RegistryApi extends runtime.BaseAPI {
|
|
|
18
21
|
/**
|
|
19
22
|
* Get registry credentials for uploads
|
|
20
23
|
*/
|
|
21
|
-
apiV1RegistryCredentialsPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessRegistryCredentialsResponse>>;
|
|
24
|
+
apiV1RegistryCredentialsPostRaw(requestParameters: ApiV1RegistryCredentialsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessRegistryCredentialsResponse>>;
|
|
22
25
|
/**
|
|
23
26
|
* Get registry credentials for uploads
|
|
24
27
|
*/
|
|
25
|
-
apiV1RegistryCredentialsPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessRegistryCredentialsResponse>;
|
|
28
|
+
apiV1RegistryCredentialsPost(requestParameters?: ApiV1RegistryCredentialsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessRegistryCredentialsResponse>;
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=RegistryApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegistryApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/RegistryApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,kCAAkC,EACnC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"RegistryApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/RegistryApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,mCAAmC;IAChD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;CAC3D;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;OAEG;IACG,+BAA+B,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAC;IA6B3N;;OAEG;IACG,4BAA4B,CAAC,iBAAiB,GAAE,mCAAwC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,CAAC;CAK3M"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { SuccessRegistryCredentialsResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { RegistryCredentialsRequestToJSON, SuccessRegistryCredentialsResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -20,9 +20,10 @@ export class RegistryApi extends runtime.BaseAPI {
|
|
|
20
20
|
/**
|
|
21
21
|
* Get registry credentials for uploads
|
|
22
22
|
*/
|
|
23
|
-
async apiV1RegistryCredentialsPostRaw(initOverrides) {
|
|
23
|
+
async apiV1RegistryCredentialsPostRaw(requestParameters, initOverrides) {
|
|
24
24
|
const queryParameters = {};
|
|
25
25
|
const headerParameters = {};
|
|
26
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
26
27
|
if (this.configuration && this.configuration.accessToken) {
|
|
27
28
|
const token = this.configuration.accessToken;
|
|
28
29
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -36,14 +37,15 @@ export class RegistryApi extends runtime.BaseAPI {
|
|
|
36
37
|
method: 'POST',
|
|
37
38
|
headers: headerParameters,
|
|
38
39
|
query: queryParameters,
|
|
40
|
+
body: RegistryCredentialsRequestToJSON(requestParameters['registryCredentialsRequest']),
|
|
39
41
|
}, initOverrides);
|
|
40
42
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessRegistryCredentialsResponseFromJSON(jsonValue));
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
45
|
* Get registry credentials for uploads
|
|
44
46
|
*/
|
|
45
|
-
async apiV1RegistryCredentialsPost(initOverrides) {
|
|
46
|
-
const response = await this.apiV1RegistryCredentialsPostRaw(initOverrides);
|
|
47
|
+
async apiV1RegistryCredentialsPost(requestParameters = {}, initOverrides) {
|
|
48
|
+
const response = await this.apiV1RegistryCredentialsPostRaw(requestParameters, initOverrides);
|
|
47
49
|
return await response.value();
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -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 { VolumeConfig } from './VolumeConfig.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ClaimMountRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ClaimMountRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ClaimMountRequest
|
|
23
|
+
*/
|
|
24
|
+
sandboxvolumeId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ClaimMountRequest
|
|
29
|
+
*/
|
|
30
|
+
mountPoint: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {VolumeConfig}
|
|
34
|
+
* @memberof ClaimMountRequest
|
|
35
|
+
*/
|
|
36
|
+
volumeConfig?: VolumeConfig;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ClaimMountRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfClaimMountRequest(value: object): value is ClaimMountRequest;
|
|
42
|
+
export declare function ClaimMountRequestFromJSON(json: any): ClaimMountRequest;
|
|
43
|
+
export declare function ClaimMountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClaimMountRequest;
|
|
44
|
+
export declare function ClaimMountRequestToJSON(json: any): ClaimMountRequest;
|
|
45
|
+
export declare function ClaimMountRequestToJSONTyped(value?: ClaimMountRequest | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=ClaimMountRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaimMountRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimMountRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { VolumeConfigFromJSON, VolumeConfigToJSON, } from './VolumeConfig.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ClaimMountRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfClaimMountRequest(value) {
|
|
19
|
+
if (!('sandboxvolumeId' in value) || value['sandboxvolumeId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('mountPoint' in value) || value['mountPoint'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ClaimMountRequestFromJSON(json) {
|
|
26
|
+
return ClaimMountRequestFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ClaimMountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'sandboxvolumeId': json['sandboxvolume_id'],
|
|
34
|
+
'mountPoint': json['mount_point'],
|
|
35
|
+
'volumeConfig': json['volume_config'] == null ? undefined : VolumeConfigFromJSON(json['volume_config']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ClaimMountRequestToJSON(json) {
|
|
39
|
+
return ClaimMountRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ClaimMountRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'sandboxvolume_id': value['sandboxvolumeId'],
|
|
47
|
+
'mount_point': value['mountPoint'],
|
|
48
|
+
'volume_config': VolumeConfigToJSON(value['volumeConfig']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ClaimMountRequest } from './ClaimMountRequest.js';
|
|
12
13
|
import type { SandboxConfig } from './SandboxConfig.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,29 @@ export interface ClaimRequest {
|
|
|
28
29
|
* @memberof ClaimRequest
|
|
29
30
|
*/
|
|
30
31
|
config?: SandboxConfig;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<ClaimMountRequest>}
|
|
35
|
+
* @memberof ClaimRequest
|
|
36
|
+
*/
|
|
37
|
+
mounts?: Array<ClaimMountRequest>;
|
|
38
|
+
/**
|
|
39
|
+
* When true, claim waits best-effort for requested bootstrap mounts to
|
|
40
|
+
* reach a terminal state before returning. The wait is bounded by
|
|
41
|
+
* `mount_wait_timeout_ms`.
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof ClaimRequest
|
|
45
|
+
*/
|
|
46
|
+
waitForMounts?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional best-effort wait budget in milliseconds for bootstrap
|
|
49
|
+
* mounts when `wait_for_mounts` is true.
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ClaimRequest
|
|
53
|
+
*/
|
|
54
|
+
mountWaitTimeoutMs?: number;
|
|
31
55
|
}
|
|
32
56
|
/**
|
|
33
57
|
* Check if a given object implements the ClaimRequest interface.
|
|
@@ -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,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;
|
|
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;IAClC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;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,CAY/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,CAa9G"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ClaimMountRequestFromJSON, ClaimMountRequestToJSON, } from './ClaimMountRequest.js';
|
|
14
15
|
import { SandboxConfigFromJSON, SandboxConfigToJSON, } from './SandboxConfig.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the ClaimRequest interface.
|
|
@@ -28,6 +29,9 @@ export function ClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
return {
|
|
29
30
|
'template': json['template'] == null ? undefined : json['template'],
|
|
30
31
|
'config': json['config'] == null ? undefined : SandboxConfigFromJSON(json['config']),
|
|
32
|
+
'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(ClaimMountRequestFromJSON)),
|
|
33
|
+
'waitForMounts': json['wait_for_mounts'] == null ? undefined : json['wait_for_mounts'],
|
|
34
|
+
'mountWaitTimeoutMs': json['mount_wait_timeout_ms'] == null ? undefined : json['mount_wait_timeout_ms'],
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
export function ClaimRequestToJSON(json) {
|
|
@@ -40,5 +44,8 @@ export function ClaimRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
40
44
|
return {
|
|
41
45
|
'template': value['template'],
|
|
42
46
|
'config': SandboxConfigToJSON(value['config']),
|
|
47
|
+
'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(ClaimMountRequestToJSON)),
|
|
48
|
+
'wait_for_mounts': value['waitForMounts'],
|
|
49
|
+
'mount_wait_timeout_ms': value['mountWaitTimeoutMs'],
|
|
43
50
|
};
|
|
44
51
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { MountStatus } from './MountStatus.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface ClaimResponse {
|
|
|
45
46
|
* @memberof ClaimResponse
|
|
46
47
|
*/
|
|
47
48
|
clusterId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<MountStatus>}
|
|
52
|
+
* @memberof ClaimResponse
|
|
53
|
+
*/
|
|
54
|
+
bootstrapMounts?: Array<MountStatus>;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Check if a given object implements the ClaimResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ClaimResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACxC;AAED;;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,CAajG;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,CAchH"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { MountStatusFromJSON, MountStatusToJSON, } from './MountStatus.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the ClaimResponse interface.
|
|
16
17
|
*/
|
|
@@ -38,6 +39,7 @@ export function ClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'podName': json['pod_name'],
|
|
39
40
|
'template': json['template'],
|
|
40
41
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
42
|
+
'bootstrapMounts': json['bootstrap_mounts'] == null ? undefined : (json['bootstrap_mounts'].map(MountStatusFromJSON)),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export function ClaimResponseToJSON(json) {
|
|
@@ -53,5 +55,6 @@ export function ClaimResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
'pod_name': value['podName'],
|
|
54
56
|
'template': value['template'],
|
|
55
57
|
'cluster_id': value['clusterId'],
|
|
58
|
+
'bootstrap_mounts': value['bootstrapMounts'] == null ? undefined : (value['bootstrapMounts'].map(MountStatusToJSON)),
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -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 ContainerMountSpec
|
|
16
|
+
*/
|
|
17
|
+
export interface ContainerMountSpec {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContainerMountSpec
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContainerMountSpec
|
|
28
|
+
*/
|
|
29
|
+
mountPath: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ContainerMountSpec
|
|
34
|
+
*/
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ContainerMountSpec interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfContainerMountSpec(value: object): value is ContainerMountSpec;
|
|
41
|
+
export declare function ContainerMountSpecFromJSON(json: any): ContainerMountSpec;
|
|
42
|
+
export declare function ContainerMountSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerMountSpec;
|
|
43
|
+
export declare function ContainerMountSpecToJSON(json: any): ContainerMountSpec;
|
|
44
|
+
export declare function ContainerMountSpecToJSONTyped(value?: ContainerMountSpec | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=ContainerMountSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerMountSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContainerMountSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;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,CAU3G;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,CAW1H"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ContainerMountSpec interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfContainerMountSpec(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('mountPath' in value) || value['mountPath'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ContainerMountSpecFromJSON(json) {
|
|
25
|
+
return ContainerMountSpecFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ContainerMountSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'mountPath': json['mountPath'],
|
|
34
|
+
'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ContainerMountSpecToJSON(json) {
|
|
38
|
+
return ContainerMountSpecToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ContainerMountSpecToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'mountPath': value['mountPath'],
|
|
47
|
+
'readOnly': value['readOnly'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -16,6 +16,18 @@ import type { VolumeAccessMode } from './VolumeAccessMode.js';
|
|
|
16
16
|
* @interface CreateSandboxVolumeRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateSandboxVolumeRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Default POSIX UID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CreateSandboxVolumeRequest
|
|
23
|
+
*/
|
|
24
|
+
defaultPosixUid?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Default POSIX GID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CreateSandboxVolumeRequest
|
|
29
|
+
*/
|
|
30
|
+
defaultPosixGid?: number;
|
|
19
31
|
/**
|
|
20
32
|
*
|
|
21
33
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,
|
|
1
|
+
{"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAc3H;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,CAe1I"}
|
|
@@ -26,6 +26,8 @@ export function CreateSandboxVolumeRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
|
|
30
|
+
'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
|
|
29
31
|
'cacheSize': json['cache_size'] == null ? undefined : json['cache_size'],
|
|
30
32
|
'prefetch': json['prefetch'] == null ? undefined : json['prefetch'],
|
|
31
33
|
'bufferSize': json['buffer_size'] == null ? undefined : json['buffer_size'],
|
|
@@ -41,6 +43,8 @@ export function CreateSandboxVolumeRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
41
43
|
return value;
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
46
|
+
'default_posix_uid': value['defaultPosixUid'],
|
|
47
|
+
'default_posix_gid': value['defaultPosixGid'],
|
|
44
48
|
'cache_size': value['cacheSize'],
|
|
45
49
|
'prefetch': value['prefetch'],
|
|
46
50
|
'buffer_size': value['bufferSize'],
|
|
@@ -16,6 +16,18 @@ import type { VolumeAccessMode } from './VolumeAccessMode.js';
|
|
|
16
16
|
* @interface ForkVolumeRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface ForkVolumeRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Override the default POSIX UID for external volume access paths. Inherits from the source volume when omitted.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ForkVolumeRequest
|
|
23
|
+
*/
|
|
24
|
+
defaultPosixUid?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Override the default POSIX GID for external volume access paths. Inherits from the source volume when omitted.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ForkVolumeRequest
|
|
29
|
+
*/
|
|
30
|
+
defaultPosixGid?: number;
|
|
19
31
|
/**
|
|
20
32
|
*
|
|
21
33
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForkVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ForkVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAczG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAexH"}
|
|
@@ -26,6 +26,8 @@ export function ForkVolumeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
|
|
30
|
+
'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
|
|
29
31
|
'cacheSize': json['cache_size'] == null ? undefined : json['cache_size'],
|
|
30
32
|
'prefetch': json['prefetch'] == null ? undefined : json['prefetch'],
|
|
31
33
|
'bufferSize': json['buffer_size'] == null ? undefined : json['buffer_size'],
|
|
@@ -41,6 +43,8 @@ export function ForkVolumeRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
41
43
|
return value;
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
46
|
+
'default_posix_uid': value['defaultPosixUid'],
|
|
47
|
+
'default_posix_gid': value['defaultPosixGid'],
|
|
44
48
|
'cache_size': value['cacheSize'],
|
|
45
49
|
'prefetch': value['prefetch'],
|
|
46
50
|
'buffer_size': value['bufferSize'],
|
|
@@ -20,13 +20,19 @@ export interface MountStatus {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof MountStatus
|
|
22
22
|
*/
|
|
23
|
-
sandboxvolumeId
|
|
23
|
+
sandboxvolumeId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof MountStatus
|
|
28
28
|
*/
|
|
29
|
-
mountPoint
|
|
29
|
+
mountPoint: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MountStatus
|
|
34
|
+
*/
|
|
35
|
+
state: MountStatusStateEnum;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -45,7 +51,29 @@ export interface MountStatus {
|
|
|
45
51
|
* @memberof MountStatus
|
|
46
52
|
*/
|
|
47
53
|
mountSessionId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MountStatus
|
|
58
|
+
*/
|
|
59
|
+
errorCode?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof MountStatus
|
|
64
|
+
*/
|
|
65
|
+
errorMessage?: string;
|
|
48
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const MountStatusStateEnum: {
|
|
71
|
+
readonly Pending: "pending";
|
|
72
|
+
readonly Mounting: "mounting";
|
|
73
|
+
readonly Mounted: "mounted";
|
|
74
|
+
readonly Failed: "failed";
|
|
75
|
+
};
|
|
76
|
+
export type MountStatusStateEnum = typeof MountStatusStateEnum[keyof typeof MountStatusStateEnum];
|
|
49
77
|
/**
|
|
50
78
|
* Check if a given object implements the MountStatus interface.
|
|
51
79
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MountStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/MountStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,eAAe,
|
|
1
|
+
{"version":3,"file":"MountStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/MountStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAe7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB5G"}
|
|
@@ -11,10 +11,25 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const MountStatusStateEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Mounting: 'mounting',
|
|
20
|
+
Mounted: 'mounted',
|
|
21
|
+
Failed: 'failed'
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
24
|
* Check if a given object implements the MountStatus interface.
|
|
16
25
|
*/
|
|
17
26
|
export function instanceOfMountStatus(value) {
|
|
27
|
+
if (!('sandboxvolumeId' in value) || value['sandboxvolumeId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mountPoint' in value) || value['mountPoint'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
32
|
+
return false;
|
|
18
33
|
return true;
|
|
19
34
|
}
|
|
20
35
|
export function MountStatusFromJSON(json) {
|
|
@@ -25,11 +40,14 @@ export function MountStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
40
|
return json;
|
|
26
41
|
}
|
|
27
42
|
return {
|
|
28
|
-
'sandboxvolumeId': json['sandboxvolume_id']
|
|
29
|
-
'mountPoint': json['mount_point']
|
|
43
|
+
'sandboxvolumeId': json['sandboxvolume_id'],
|
|
44
|
+
'mountPoint': json['mount_point'],
|
|
45
|
+
'state': json['state'],
|
|
30
46
|
'mountedAt': json['mounted_at'] == null ? undefined : json['mounted_at'],
|
|
31
47
|
'mountedDurationSec': json['mounted_duration_sec'] == null ? undefined : json['mounted_duration_sec'],
|
|
32
48
|
'mountSessionId': json['mount_session_id'] == null ? undefined : json['mount_session_id'],
|
|
49
|
+
'errorCode': json['error_code'] == null ? undefined : json['error_code'],
|
|
50
|
+
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
33
51
|
};
|
|
34
52
|
}
|
|
35
53
|
export function MountStatusToJSON(json) {
|
|
@@ -42,8 +60,11 @@ export function MountStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
42
60
|
return {
|
|
43
61
|
'sandboxvolume_id': value['sandboxvolumeId'],
|
|
44
62
|
'mount_point': value['mountPoint'],
|
|
63
|
+
'state': value['state'],
|
|
45
64
|
'mounted_at': value['mountedAt'],
|
|
46
65
|
'mounted_duration_sec': value['mountedDurationSec'],
|
|
47
66
|
'mount_session_id': value['mountSessionId'],
|
|
67
|
+
'error_code': value['errorCode'],
|
|
68
|
+
'error_message': value['errorMessage'],
|
|
48
69
|
};
|
|
49
70
|
}
|