sandbox0 0.2.8 → 0.3.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/README.md +0 -2
- package/dist/apispec/src/apis/AuthApi.d.ts +15 -1
- package/dist/apispec/src/apis/AuthApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/AuthApi.js +33 -1
- package/dist/apispec/src/apis/SandboxVolumesApi.d.ts +1 -36
- package/dist/apispec/src/apis/SandboxVolumesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxVolumesApi.js +1 -110
- package/dist/apispec/src/apis/SandboxesApi.d.ts +7 -7
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +11 -6
- package/dist/apispec/src/models/APIKey.d.ts +6 -0
- package/dist/apispec/src/models/APIKey.d.ts.map +1 -1
- package/dist/apispec/src/models/APIKey.js +4 -0
- package/dist/apispec/src/models/ClaimMountRequest.d.ts +0 -7
- package/dist/apispec/src/models/ClaimMountRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimMountRequest.js +0 -3
- package/dist/apispec/src/models/ClaimRequest.d.ts +0 -17
- package/dist/apispec/src/models/ClaimRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimRequest.js +0 -4
- package/dist/apispec/src/models/CreateAPIKeyRequest.d.ts +7 -1
- package/dist/apispec/src/models/CreateAPIKeyRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateAPIKeyRequest.js +2 -0
- package/dist/apispec/src/models/CreateAPIKeyResponse.d.ts +6 -0
- package/dist/apispec/src/models/CreateAPIKeyResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateAPIKeyResponse.js +4 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +0 -24
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +0 -8
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts +6 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/CurrentAPIKeyResponse.js +4 -0
- package/dist/apispec/src/models/ForkVolumeRequest.d.ts +0 -24
- package/dist/apispec/src/models/ForkVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkVolumeRequest.js +0 -8
- package/dist/apispec/src/models/MountStatus.d.ts +0 -6
- package/dist/apispec/src/models/MountStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/MountStatus.js +0 -2
- 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 +0 -24
- package/dist/apispec/src/models/SandboxVolume.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxVolume.js +0 -12
- package/dist/apispec/src/models/VolumeMountSpec.d.ts +45 -0
- package/dist/apispec/src/models/VolumeMountSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeMountSpec.js +49 -0
- package/dist/apispec/src/models/WebLoginExchangeRequest.d.ts +39 -0
- package/dist/apispec/src/models/WebLoginExchangeRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/WebLoginExchangeRequest.js +47 -0
- package/dist/apispec/src/models/WebhookConfig.d.ts +1 -0
- package/dist/apispec/src/models/WebhookConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/index.d.ts +2 -11
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +2 -11
- package/dist/client.d.ts +1 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/models.d.ts +7 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/sandboxes.d.ts +0 -2
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +1 -5
- package/dist/sandbox_logs.d.ts +1 -2
- package/dist/sandbox_logs.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/apispec/src/models/ActiveTeam.d.ts +0 -63
- package/dist/apispec/src/models/ActiveTeam.d.ts.map +0 -1
- package/dist/apispec/src/models/ActiveTeam.js +0 -57
- package/dist/apispec/src/models/MountRequest.d.ts +0 -52
- package/dist/apispec/src/models/MountRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/MountRequest.js +0 -52
- package/dist/apispec/src/models/MountResponse.d.ts +0 -51
- package/dist/apispec/src/models/MountResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/MountResponse.js +0 -55
- package/dist/apispec/src/models/ProbePort.d.ts +0 -22
- package/dist/apispec/src/models/ProbePort.d.ts.map +0 -1
- package/dist/apispec/src/models/ProbePort.js +0 -43
- package/dist/apispec/src/models/SandboxLogs.d.ts +0 -57
- package/dist/apispec/src/models/SandboxLogs.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxLogs.js +0 -59
- package/dist/apispec/src/models/SuccessActiveTeamResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessActiveTeamResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessActiveTeamResponse.js +0 -46
- package/dist/apispec/src/models/SuccessMountResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessMountResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessMountResponse.js +0 -46
- package/dist/apispec/src/models/SuccessMountStatusResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessMountStatusResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessMountStatusResponse.js +0 -46
- package/dist/apispec/src/models/SuccessMountStatusResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessMountStatusResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessMountStatusResponseAllOfData.js +0 -42
- package/dist/apispec/src/models/SuccessSandboxLogsResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessSandboxLogsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessSandboxLogsResponse.js +0 -46
- package/dist/apispec/src/models/SuccessUnmountedResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessUnmountedResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessUnmountedResponse.js +0 -46
- package/dist/apispec/src/models/SuccessUnmountedResponseAllOfData.d.ts +0 -33
- package/dist/apispec/src/models/SuccessUnmountedResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessUnmountedResponseAllOfData.js +0 -41
- package/dist/apispec/src/models/TplSandboxNetworkPolicy.d.ts +0 -51
- package/dist/apispec/src/models/TplSandboxNetworkPolicy.d.ts.map +0 -1
- package/dist/apispec/src/models/TplSandboxNetworkPolicy.js +0 -53
- package/dist/apispec/src/models/UnmountRequest.d.ts +0 -39
- package/dist/apispec/src/models/UnmountRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/UnmountRequest.js +0 -47
- package/dist/apispec/src/models/VolumeConfig.d.ts +0 -51
- package/dist/apispec/src/models/VolumeConfig.d.ts.map +0 -1
- package/dist/apispec/src/models/VolumeConfig.js +0 -47
- package/dist/sandbox_volumes.d.ts +0 -10
- package/dist/sandbox_volumes.d.ts.map +0 -1
- package/dist/sandbox_volumes.js +0 -42
|
@@ -1,46 +0,0 @@
|
|
|
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 { SandboxLogsFromJSON, SandboxLogsToJSON, } from './SandboxLogs.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessSandboxLogsResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessSandboxLogsResponse(value) {
|
|
19
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function SuccessSandboxLogsResponseFromJSON(json) {
|
|
24
|
-
return SuccessSandboxLogsResponseFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function SuccessSandboxLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'success': json['success'],
|
|
32
|
-
'data': json['data'] == null ? undefined : SandboxLogsFromJSON(json['data']),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function SuccessSandboxLogsResponseToJSON(json) {
|
|
36
|
-
return SuccessSandboxLogsResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function SuccessSandboxLogsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'success': value['success'],
|
|
44
|
-
'data': SandboxLogsToJSON(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { SuccessUnmountedResponseAllOfData } from './SuccessUnmountedResponseAllOfData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SuccessUnmountedResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface SuccessUnmountedResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof SuccessUnmountedResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {SuccessUnmountedResponseAllOfData}
|
|
28
|
-
* @memberof SuccessUnmountedResponse
|
|
29
|
-
*/
|
|
30
|
-
data?: SuccessUnmountedResponseAllOfData;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the SuccessUnmountedResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfSuccessUnmountedResponse(value: object): value is SuccessUnmountedResponse;
|
|
36
|
-
export declare function SuccessUnmountedResponseFromJSON(json: any): SuccessUnmountedResponse;
|
|
37
|
-
export declare function SuccessUnmountedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessUnmountedResponse;
|
|
38
|
-
export declare function SuccessUnmountedResponseToJSON(json: any): SuccessUnmountedResponse;
|
|
39
|
-
export declare function SuccessUnmountedResponseToJSONTyped(value?: SuccessUnmountedResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
-
//# sourceMappingURL=SuccessUnmountedResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessUnmountedResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessUnmountedResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQ7F;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,iCAAiC,CAAC;CAC5C;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CASvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtI"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { SuccessUnmountedResponseAllOfDataFromJSON, SuccessUnmountedResponseAllOfDataToJSON, } from './SuccessUnmountedResponseAllOfData.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessUnmountedResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessUnmountedResponse(value) {
|
|
19
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function SuccessUnmountedResponseFromJSON(json) {
|
|
24
|
-
return SuccessUnmountedResponseFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function SuccessUnmountedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'success': json['success'],
|
|
32
|
-
'data': json['data'] == null ? undefined : SuccessUnmountedResponseAllOfDataFromJSON(json['data']),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function SuccessUnmountedResponseToJSON(json) {
|
|
36
|
-
return SuccessUnmountedResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function SuccessUnmountedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'success': value['success'],
|
|
44
|
-
'data': SuccessUnmountedResponseAllOfDataToJSON(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 SuccessUnmountedResponseAllOfData
|
|
16
|
-
*/
|
|
17
|
-
export interface SuccessUnmountedResponseAllOfData {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof SuccessUnmountedResponseAllOfData
|
|
22
|
-
*/
|
|
23
|
-
unmounted?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the SuccessUnmountedResponseAllOfData interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfSuccessUnmountedResponseAllOfData(value: object): value is SuccessUnmountedResponseAllOfData;
|
|
29
|
-
export declare function SuccessUnmountedResponseAllOfDataFromJSON(json: any): SuccessUnmountedResponseAllOfData;
|
|
30
|
-
export declare function SuccessUnmountedResponseAllOfDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessUnmountedResponseAllOfData;
|
|
31
|
-
export declare function SuccessUnmountedResponseAllOfDataToJSON(json: any): SuccessUnmountedResponseAllOfData;
|
|
32
|
-
export declare function SuccessUnmountedResponseAllOfDataToJSONTyped(value?: SuccessUnmountedResponseAllOfData | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
-
//# sourceMappingURL=SuccessUnmountedResponseAllOfData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessUnmountedResponseAllOfData.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessUnmountedResponseAllOfData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAErH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAQzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxJ"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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 SuccessUnmountedResponseAllOfData interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfSuccessUnmountedResponseAllOfData(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function SuccessUnmountedResponseAllOfDataFromJSON(json) {
|
|
21
|
-
return SuccessUnmountedResponseAllOfDataFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function SuccessUnmountedResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'unmounted': json['unmounted'] == null ? undefined : json['unmounted'],
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function SuccessUnmountedResponseAllOfDataToJSON(json) {
|
|
32
|
-
return SuccessUnmountedResponseAllOfDataToJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
export function SuccessUnmountedResponseAllOfDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
-
if (value == null) {
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'unmounted': value['unmounted'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global directory.
|
|
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 { NetworkEgressPolicy } from './NetworkEgressPolicy.js';
|
|
13
|
-
/**
|
|
14
|
-
* Template-level outbound network policy.
|
|
15
|
-
* `allow-all` permits traffic by default and applies `denied*` rules as subtractive filters.
|
|
16
|
-
* `block-all` denies traffic by default and applies `allowed*` rules as additive exceptions.
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface TplSandboxNetworkPolicy
|
|
20
|
-
*/
|
|
21
|
-
export interface TplSandboxNetworkPolicy {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof TplSandboxNetworkPolicy
|
|
26
|
-
*/
|
|
27
|
-
mode: TplSandboxNetworkPolicyModeEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {NetworkEgressPolicy}
|
|
31
|
-
* @memberof TplSandboxNetworkPolicy
|
|
32
|
-
*/
|
|
33
|
-
egress?: NetworkEgressPolicy;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
|
-
export declare const TplSandboxNetworkPolicyModeEnum: {
|
|
39
|
-
readonly AllowAll: "allow-all";
|
|
40
|
-
readonly BlockAll: "block-all";
|
|
41
|
-
};
|
|
42
|
-
export type TplSandboxNetworkPolicyModeEnum = typeof TplSandboxNetworkPolicyModeEnum[keyof typeof TplSandboxNetworkPolicyModeEnum];
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the TplSandboxNetworkPolicy interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfTplSandboxNetworkPolicy(value: object): value is TplSandboxNetworkPolicy;
|
|
47
|
-
export declare function TplSandboxNetworkPolicyFromJSON(json: any): TplSandboxNetworkPolicy;
|
|
48
|
-
export declare function TplSandboxNetworkPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TplSandboxNetworkPolicy;
|
|
49
|
-
export declare function TplSandboxNetworkPolicyToJSON(json: any): TplSandboxNetworkPolicy;
|
|
50
|
-
export declare function TplSandboxNetworkPolicyToJSONTyped(value?: TplSandboxNetworkPolicy | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
-
//# sourceMappingURL=TplSandboxNetworkPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TplSandboxNetworkPolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/TplSandboxNetworkPolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,IAAI,EAAE,+BAA+B,CAAC;IACtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAGD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGnI;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAGjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Sandbox0 API
|
|
5
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global directory.
|
|
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 { NetworkEgressPolicyFromJSON, NetworkEgressPolicyToJSON, } from './NetworkEgressPolicy.js';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const TplSandboxNetworkPolicyModeEnum = {
|
|
19
|
-
AllowAll: 'allow-all',
|
|
20
|
-
BlockAll: 'block-all'
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the TplSandboxNetworkPolicy interface.
|
|
24
|
-
*/
|
|
25
|
-
export function instanceOfTplSandboxNetworkPolicy(value) {
|
|
26
|
-
if (!('mode' in value) || value['mode'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
export function TplSandboxNetworkPolicyFromJSON(json) {
|
|
31
|
-
return TplSandboxNetworkPolicyFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
export function TplSandboxNetworkPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'mode': json['mode'],
|
|
39
|
-
'egress': json['egress'] == null ? undefined : NetworkEgressPolicyFromJSON(json['egress']),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export function TplSandboxNetworkPolicyToJSON(json) {
|
|
43
|
-
return TplSandboxNetworkPolicyToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
export function TplSandboxNetworkPolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'mode': value['mode'],
|
|
51
|
-
'egress': NetworkEgressPolicyToJSON(value['egress']),
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 UnmountRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UnmountRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UnmountRequest
|
|
22
|
-
*/
|
|
23
|
-
sandboxvolumeId: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UnmountRequest
|
|
28
|
-
*/
|
|
29
|
-
mountSessionId: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the UnmountRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfUnmountRequest(value: object): value is UnmountRequest;
|
|
35
|
-
export declare function UnmountRequestFromJSON(json: any): UnmountRequest;
|
|
36
|
-
export declare function UnmountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnmountRequest;
|
|
37
|
-
export declare function UnmountRequestToJSON(json: any): UnmountRequest;
|
|
38
|
-
export declare function UnmountRequestToJSONTyped(value?: UnmountRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=UnmountRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnmountRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/UnmountRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CASnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlH"}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 UnmountRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfUnmountRequest(value) {
|
|
18
|
-
if (!('sandboxvolumeId' in value) || value['sandboxvolumeId'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('mountSessionId' in value) || value['mountSessionId'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
export function UnmountRequestFromJSON(json) {
|
|
25
|
-
return UnmountRequestFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function UnmountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (json == null) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'sandboxvolumeId': json['sandboxvolume_id'],
|
|
33
|
-
'mountSessionId': json['mount_session_id'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function UnmountRequestToJSON(json) {
|
|
37
|
-
return UnmountRequestToJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
export function UnmountRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'sandboxvolume_id': value['sandboxvolumeId'],
|
|
45
|
-
'mount_session_id': value['mountSessionId'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
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 VolumeConfig
|
|
16
|
-
*/
|
|
17
|
-
export interface VolumeConfig {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VolumeConfig
|
|
22
|
-
*/
|
|
23
|
-
cacheSize?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof VolumeConfig
|
|
28
|
-
*/
|
|
29
|
-
prefetch?: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof VolumeConfig
|
|
34
|
-
*/
|
|
35
|
-
bufferSize?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof VolumeConfig
|
|
40
|
-
*/
|
|
41
|
-
writeback?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the VolumeConfig interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfVolumeConfig(value: object): value is VolumeConfig;
|
|
47
|
-
export declare function VolumeConfigFromJSON(json: any): VolumeConfig;
|
|
48
|
-
export declare function VolumeConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): VolumeConfig;
|
|
49
|
-
export declare function VolumeConfigToJSON(json: any): VolumeConfig;
|
|
50
|
-
export declare function VolumeConfigToJSONTyped(value?: VolumeConfig | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
-
//# sourceMappingURL=VolumeConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VolumeConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/VolumeConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;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;CACvB;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"}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 VolumeConfig interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfVolumeConfig(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function VolumeConfigFromJSON(json) {
|
|
21
|
-
return VolumeConfigFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function VolumeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'cacheSize': json['cache_size'] == null ? undefined : json['cache_size'],
|
|
29
|
-
'prefetch': json['prefetch'] == null ? undefined : json['prefetch'],
|
|
30
|
-
'bufferSize': json['buffer_size'] == null ? undefined : json['buffer_size'],
|
|
31
|
-
'writeback': json['writeback'] == null ? undefined : json['writeback'],
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function VolumeConfigToJSON(json) {
|
|
35
|
-
return VolumeConfigToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function VolumeConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'cache_size': value['cacheSize'],
|
|
43
|
-
'prefetch': value['prefetch'],
|
|
44
|
-
'buffer_size': value['bufferSize'],
|
|
45
|
-
'writeback': value['writeback'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MountRequest, MountStatus, SuccessUnmountedResponse } from "./apispec/src/models/index.js";
|
|
2
|
-
import { MountSession } from "./sessions.js";
|
|
3
|
-
declare module "./sandbox" {
|
|
4
|
-
interface Sandbox {
|
|
5
|
-
mount(volumeId: string, mountPoint: string, config?: MountRequest["volumeConfig"]): Promise<MountSession>;
|
|
6
|
-
unmount(volumeId: string, mountSessionId: string): Promise<SuccessUnmountedResponse>;
|
|
7
|
-
mountStatus(): Promise<MountStatus[]>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=sandbox_volumes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox_volumes.d.ts","sourceRoot":"","sources":["../src/sandbox_volumes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO1C,OAAO,QAAQ,WAAW,CAAC;IACzB,UAAU,OAAO;QACf,KAAK,CACH,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,GACpC,OAAO,CAAC,YAAY,CAAC,CAAC;QACzB,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,wBAAwB,CAAC,CAAC;QACrC,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;KACvC;CACF"}
|
package/dist/sandbox_volumes.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { wrapApiCall } from "./errors.js";
|
|
2
|
-
import { ensureData, ensureModel } from "./response.js";
|
|
3
|
-
import { MountSession } from "./sessions.js";
|
|
4
|
-
import { Sandbox } from "./sandbox.js";
|
|
5
|
-
function getClient(sandbox) {
|
|
6
|
-
return sandbox.client;
|
|
7
|
-
}
|
|
8
|
-
Sandbox.prototype.mount = async function (volumeId, mountPoint, config) {
|
|
9
|
-
const client = getClient(this);
|
|
10
|
-
const request = {
|
|
11
|
-
sandboxvolumeId: volumeId,
|
|
12
|
-
mountPoint,
|
|
13
|
-
volumeConfig: config,
|
|
14
|
-
};
|
|
15
|
-
const response = await wrapApiCall(() => client.apispec.sandboxVolumes.apiV1SandboxesIdSandboxvolumesMountPost({
|
|
16
|
-
id: this.id,
|
|
17
|
-
mountRequest: request,
|
|
18
|
-
}));
|
|
19
|
-
const data = ensureData(response, "mount volume returned empty response");
|
|
20
|
-
return new MountSession(volumeId, data.mountPoint, data.mountSessionId, async () => {
|
|
21
|
-
await this.unmount(volumeId, data.mountSessionId);
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Sandbox.prototype.unmount = async function (volumeId, mountSessionId) {
|
|
25
|
-
const client = getClient(this);
|
|
26
|
-
const response = await wrapApiCall(() => client.apispec.sandboxVolumes.apiV1SandboxesIdSandboxvolumesUnmountPost({
|
|
27
|
-
id: this.id,
|
|
28
|
-
unmountRequest: {
|
|
29
|
-
sandboxvolumeId: volumeId,
|
|
30
|
-
mountSessionId,
|
|
31
|
-
},
|
|
32
|
-
}));
|
|
33
|
-
return ensureModel(response, "unmount volume returned empty response");
|
|
34
|
-
};
|
|
35
|
-
Sandbox.prototype.mountStatus = async function () {
|
|
36
|
-
const client = getClient(this);
|
|
37
|
-
const response = await wrapApiCall(() => client.apispec.sandboxVolumes.apiV1SandboxesIdSandboxvolumesStatusGet({
|
|
38
|
-
id: this.id,
|
|
39
|
-
}));
|
|
40
|
-
const data = ensureData(response, "mount status returned empty response");
|
|
41
|
-
return data.mounts ?? [];
|
|
42
|
-
};
|