sandbox0 0.2.5 → 0.2.7
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 +3 -1
- package/dist/apispec/src/apis/ApiKeysApi.d.ts +11 -1
- package/dist/apispec/src/apis/ApiKeysApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/ApiKeysApi.js +32 -1
- package/dist/apispec/src/apis/UsersApi.d.ts +31 -1
- package/dist/apispec/src/apis/UsersApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/UsersApi.js +97 -1
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.d.ts +39 -0
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CreateSSHPublicKeyRequest.js +47 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts +75 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/CurrentAPIKeyResponse.js +71 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts +7 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/PauseSandboxResponse.js +5 -0
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +7 -0
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.js +5 -0
- package/dist/apispec/src/models/SSHPublicKey.d.ts +75 -0
- package/dist/apispec/src/models/SSHPublicKey.d.ts.map +1 -0
- package/dist/apispec/src/models/SSHPublicKey.js +69 -0
- package/dist/apispec/src/models/Sandbox.d.ts +14 -0
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +8 -0
- package/dist/apispec/src/models/SandboxPowerState.d.ts +82 -0
- package/dist/apispec/src/models/SandboxPowerState.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPowerState.js +81 -0
- package/dist/apispec/src/models/SandboxSSHConnection.d.ts +45 -0
- package/dist/apispec/src/models/SandboxSSHConnection.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSSHConnection.js +51 -0
- package/dist/apispec/src/models/SandboxSummary.d.ts +7 -0
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +5 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +3 -16
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +3 -8
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponse.js +46 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessCurrentAPIKeyResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyListResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSSHPublicKeyResponse.js +46 -0
- package/dist/apispec/src/models/WarmProcessSpec.d.ts +67 -0
- package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/WarmProcessSpec.js +58 -0
- package/dist/apispec/src/models/index.d.ts +11 -3
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +11 -3
- package/dist/resources/volumes.js +1 -1
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +1 -2
- package/dist/sandbox.js +1 -1
- package/dist/sandbox_files.js +1 -1
- package/dist/template_helpers.d.ts +7 -20
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +7 -27
- package/dist/ws_client.d.ts +13 -3
- package/dist/ws_client.d.ts.map +1 -1
- package/dist/ws_client.js +145 -28
- package/package.json +1 -1
- package/dist/apispec/src/models/ContainerMountSpec.d.ts +0 -45
- package/dist/apispec/src/models/ContainerMountSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/ContainerMountSpec.js +0 -49
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts +0 -69
- package/dist/apispec/src/models/SharedVolumeSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/SharedVolumeSpec.js +0 -57
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts +0 -91
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/SidecarContainerSpec.js +0 -69
|
@@ -0,0 +1,75 @@
|
|
|
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 SSHPublicKey
|
|
16
|
+
*/
|
|
17
|
+
export interface SSHPublicKey {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SSHPublicKey
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SSHPublicKey
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SSHPublicKey
|
|
34
|
+
*/
|
|
35
|
+
publicKey: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SSHPublicKey
|
|
40
|
+
*/
|
|
41
|
+
keyType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SSHPublicKey
|
|
46
|
+
*/
|
|
47
|
+
fingerprintSha256: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SSHPublicKey
|
|
52
|
+
*/
|
|
53
|
+
comment?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof SSHPublicKey
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof SSHPublicKey
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SSHPublicKey interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSSHPublicKey(value: object): value is SSHPublicKey;
|
|
71
|
+
export declare function SSHPublicKeyFromJSON(json: any): SSHPublicKey;
|
|
72
|
+
export declare function SSHPublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SSHPublicKey;
|
|
73
|
+
export declare function SSHPublicKeyToJSON(json: any): SSHPublicKey;
|
|
74
|
+
export declare function SSHPublicKeyToJSONTyped(value?: SSHPublicKey | null, ignoreDiscriminator?: boolean): any;
|
|
75
|
+
//# sourceMappingURL=SSHPublicKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SSHPublicKey.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SSHPublicKey.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAS3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAe/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,CAgB9G"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 SSHPublicKey interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSSHPublicKey(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('publicKey' in value) || value['publicKey'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('keyType' in value) || value['keyType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('fingerprintSha256' in value) || value['fingerprintSha256'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function SSHPublicKeyFromJSON(json) {
|
|
35
|
+
return SSHPublicKeyFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SSHPublicKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'publicKey': json['public_key'],
|
|
45
|
+
'keyType': json['key_type'],
|
|
46
|
+
'fingerprintSha256': json['fingerprint_sha256'],
|
|
47
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function SSHPublicKeyToJSON(json) {
|
|
53
|
+
return SSHPublicKeyToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function SSHPublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'public_key': value['publicKey'],
|
|
63
|
+
'key_type': value['keyType'],
|
|
64
|
+
'fingerprint_sha256': value['fingerprintSha256'],
|
|
65
|
+
'comment': value['comment'],
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SandboxSSHConnection } from './SandboxSSHConnection.js';
|
|
12
13
|
import type { ExposedPortConfig } from './ExposedPortConfig.js';
|
|
14
|
+
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
17
|
* @export
|
|
@@ -52,6 +54,12 @@ export interface Sandbox {
|
|
|
52
54
|
* @memberof Sandbox
|
|
53
55
|
*/
|
|
54
56
|
paused: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {SandboxPowerState}
|
|
60
|
+
* @memberof Sandbox
|
|
61
|
+
*/
|
|
62
|
+
powerState: SandboxPowerState;
|
|
55
63
|
/**
|
|
56
64
|
*
|
|
57
65
|
* @type {boolean}
|
|
@@ -70,6 +78,12 @@ export interface Sandbox {
|
|
|
70
78
|
* @memberof Sandbox
|
|
71
79
|
*/
|
|
72
80
|
podName: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {SandboxSSHConnection}
|
|
84
|
+
* @memberof Sandbox
|
|
85
|
+
*/
|
|
86
|
+
ssh?: SandboxSSHConnection;
|
|
73
87
|
/**
|
|
74
88
|
* Soft expiration timestamp. Zero value means not set.
|
|
75
89
|
* @type {Date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACxC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.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,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBpG"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SandboxSSHConnectionFromJSON, SandboxSSHConnectionToJSON, } from './SandboxSSHConnection.js';
|
|
14
15
|
import { ExposedPortConfigFromJSON, ExposedPortConfigToJSON, } from './ExposedPortConfig.js';
|
|
16
|
+
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
15
17
|
/**
|
|
16
18
|
* Check if a given object implements the Sandbox interface.
|
|
17
19
|
*/
|
|
@@ -26,6 +28,8 @@ export function instanceOfSandbox(value) {
|
|
|
26
28
|
return false;
|
|
27
29
|
if (!('paused' in value) || value['paused'] === undefined)
|
|
28
30
|
return false;
|
|
31
|
+
if (!('powerState' in value) || value['powerState'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
if (!('autoResume' in value) || value['autoResume'] === undefined)
|
|
30
34
|
return false;
|
|
31
35
|
if (!('podName' in value) || value['podName'] === undefined)
|
|
@@ -54,9 +58,11 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
58
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
55
59
|
'status': json['status'],
|
|
56
60
|
'paused': json['paused'],
|
|
61
|
+
'powerState': SandboxPowerStateFromJSON(json['power_state']),
|
|
57
62
|
'autoResume': json['auto_resume'],
|
|
58
63
|
'exposedPorts': json['exposed_ports'] == null ? undefined : (json['exposed_ports'].map(ExposedPortConfigFromJSON)),
|
|
59
64
|
'podName': json['pod_name'],
|
|
65
|
+
'ssh': json['ssh'] == null ? undefined : SandboxSSHConnectionFromJSON(json['ssh']),
|
|
60
66
|
'expiresAt': (new Date(json['expires_at'])),
|
|
61
67
|
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
62
68
|
'claimedAt': (new Date(json['claimed_at'])),
|
|
@@ -77,9 +83,11 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
83
|
'user_id': value['userId'],
|
|
78
84
|
'status': value['status'],
|
|
79
85
|
'paused': value['paused'],
|
|
86
|
+
'power_state': SandboxPowerStateToJSON(value['powerState']),
|
|
80
87
|
'auto_resume': value['autoResume'],
|
|
81
88
|
'exposed_ports': value['exposedPorts'] == null ? undefined : (value['exposedPorts'].map(ExposedPortConfigToJSON)),
|
|
82
89
|
'pod_name': value['podName'],
|
|
90
|
+
'ssh': SandboxSSHConnectionToJSON(value['ssh']),
|
|
83
91
|
'expires_at': value['expiresAt'].toISOString(),
|
|
84
92
|
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
85
93
|
'claimed_at': value['claimedAt'].toISOString(),
|
|
@@ -0,0 +1,82 @@
|
|
|
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 SandboxPowerState
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxPowerState {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxPowerState
|
|
22
|
+
*/
|
|
23
|
+
desired: SandboxPowerStateDesiredEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SandboxPowerState
|
|
28
|
+
*/
|
|
29
|
+
desiredGeneration: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxPowerState
|
|
34
|
+
*/
|
|
35
|
+
observed: SandboxPowerStateObservedEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SandboxPowerState
|
|
40
|
+
*/
|
|
41
|
+
observedGeneration: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SandboxPowerState
|
|
46
|
+
*/
|
|
47
|
+
phase: SandboxPowerStatePhaseEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const SandboxPowerStateDesiredEnum: {
|
|
53
|
+
readonly Active: "active";
|
|
54
|
+
readonly Paused: "paused";
|
|
55
|
+
};
|
|
56
|
+
export type SandboxPowerStateDesiredEnum = typeof SandboxPowerStateDesiredEnum[keyof typeof SandboxPowerStateDesiredEnum];
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const SandboxPowerStateObservedEnum: {
|
|
61
|
+
readonly Active: "active";
|
|
62
|
+
readonly Paused: "paused";
|
|
63
|
+
};
|
|
64
|
+
export type SandboxPowerStateObservedEnum = typeof SandboxPowerStateObservedEnum[keyof typeof SandboxPowerStateObservedEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const SandboxPowerStatePhaseEnum: {
|
|
69
|
+
readonly Stable: "stable";
|
|
70
|
+
readonly Pausing: "pausing";
|
|
71
|
+
readonly Resuming: "resuming";
|
|
72
|
+
};
|
|
73
|
+
export type SandboxPowerStatePhaseEnum = typeof SandboxPowerStatePhaseEnum[keyof typeof SandboxPowerStatePhaseEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the SandboxPowerState interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfSandboxPowerState(value: object): value is SandboxPowerState;
|
|
78
|
+
export declare function SandboxPowerStateFromJSON(json: any): SandboxPowerState;
|
|
79
|
+
export declare function SandboxPowerStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxPowerState;
|
|
80
|
+
export declare function SandboxPowerStateToJSON(json: any): SandboxPowerState;
|
|
81
|
+
export declare function SandboxPowerStateToJSONTyped(value?: SandboxPowerState | null, ignoreDiscriminator?: boolean): any;
|
|
82
|
+
//# sourceMappingURL=SandboxPowerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxPowerState.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxPowerState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,OAAO,EAAE,4BAA4B,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,6BAA6B,CAAC;IACxC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,0BAA0B,CAAC;CACrC;AAGD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAE1H;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAE7H;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAOrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAYzG;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,CAaxH"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const SandboxPowerStateDesiredEnum = {
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Paused: 'paused'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const SandboxPowerStateObservedEnum = {
|
|
25
|
+
Active: 'active',
|
|
26
|
+
Paused: 'paused'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const SandboxPowerStatePhaseEnum = {
|
|
32
|
+
Stable: 'stable',
|
|
33
|
+
Pausing: 'pausing',
|
|
34
|
+
Resuming: 'resuming'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SandboxPowerState interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSandboxPowerState(value) {
|
|
40
|
+
if (!('desired' in value) || value['desired'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('desiredGeneration' in value) || value['desiredGeneration'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('observed' in value) || value['observed'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('observedGeneration' in value) || value['observedGeneration'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('phase' in value) || value['phase'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
export function SandboxPowerStateFromJSON(json) {
|
|
53
|
+
return SandboxPowerStateFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function SandboxPowerStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'desired': json['desired'],
|
|
61
|
+
'desiredGeneration': json['desired_generation'],
|
|
62
|
+
'observed': json['observed'],
|
|
63
|
+
'observedGeneration': json['observed_generation'],
|
|
64
|
+
'phase': json['phase'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export function SandboxPowerStateToJSON(json) {
|
|
68
|
+
return SandboxPowerStateToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
export function SandboxPowerStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'desired': value['desired'],
|
|
76
|
+
'desired_generation': value['desiredGeneration'],
|
|
77
|
+
'observed': value['observed'],
|
|
78
|
+
'observed_generation': value['observedGeneration'],
|
|
79
|
+
'phase': value['phase'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 SandboxSSHConnection
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxSSHConnection {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxSSHConnection
|
|
22
|
+
*/
|
|
23
|
+
host: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SandboxSSHConnection
|
|
28
|
+
*/
|
|
29
|
+
port: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxSSHConnection
|
|
34
|
+
*/
|
|
35
|
+
username: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SandboxSSHConnection interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSandboxSSHConnection(value: object): value is SandboxSSHConnection;
|
|
41
|
+
export declare function SandboxSSHConnectionFromJSON(json: any): SandboxSSHConnection;
|
|
42
|
+
export declare function SandboxSSHConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxSSHConnection;
|
|
43
|
+
export declare function SandboxSSHConnectionToJSON(json: any): SandboxSSHConnection;
|
|
44
|
+
export declare function SandboxSSHConnectionToJSONTyped(value?: SandboxSSHConnection | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=SandboxSSHConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxSSHConnection.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSSHConnection.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAK3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAU/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9H"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 SandboxSSHConnection interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxSSHConnection(value) {
|
|
18
|
+
if (!('host' in value) || value['host'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('port' in value) || value['port'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SandboxSSHConnectionFromJSON(json) {
|
|
27
|
+
return SandboxSSHConnectionFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SandboxSSHConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'host': json['host'],
|
|
35
|
+
'port': json['port'],
|
|
36
|
+
'username': json['username'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function SandboxSSHConnectionToJSON(json) {
|
|
40
|
+
return SandboxSSHConnectionToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SandboxSSHConnectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'host': value['host'],
|
|
48
|
+
'port': value['port'],
|
|
49
|
+
'username': value['username'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface SandboxSummary {
|
|
|
39
40
|
* @memberof SandboxSummary
|
|
40
41
|
*/
|
|
41
42
|
paused: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SandboxPowerState}
|
|
46
|
+
* @memberof SandboxSummary
|
|
47
|
+
*/
|
|
48
|
+
powerState: SandboxPowerState;
|
|
42
49
|
/**
|
|
43
50
|
* Cluster where sandbox runs (multi-cluster only)
|
|
44
51
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;CACvB;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;CACvB;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAU/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAgBnG;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,CAiBlH"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -32,6 +33,8 @@ export function instanceOfSandboxSummary(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('paused' in value) || value['paused'] === undefined)
|
|
34
35
|
return false;
|
|
36
|
+
if (!('powerState' in value) || value['powerState'] === undefined)
|
|
37
|
+
return false;
|
|
35
38
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
39
|
return false;
|
|
37
40
|
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
@@ -52,6 +55,7 @@ export function SandboxSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'templateId': json['template_id'],
|
|
53
56
|
'status': json['status'],
|
|
54
57
|
'paused': json['paused'],
|
|
58
|
+
'powerState': SandboxPowerStateFromJSON(json['power_state']),
|
|
55
59
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
56
60
|
'createdAt': (new Date(json['created_at'])),
|
|
57
61
|
'expiresAt': (new Date(json['expires_at'])),
|
|
@@ -70,6 +74,7 @@ export function SandboxSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
74
|
'template_id': value['templateId'],
|
|
71
75
|
'status': value['status'],
|
|
72
76
|
'paused': value['paused'],
|
|
77
|
+
'power_state': SandboxPowerStateToJSON(value['powerState']),
|
|
73
78
|
'cluster_id': value['clusterId'],
|
|
74
79
|
'created_at': value['createdAt'].toISOString(),
|
|
75
80
|
'expires_at': value['expiresAt'].toISOString(),
|
|
@@ -13,8 +13,7 @@ import type { PoolStrategy } from './PoolStrategy.js';
|
|
|
13
13
|
import type { SandboxNetworkPolicy } from './SandboxNetworkPolicy.js';
|
|
14
14
|
import type { ContainerSpec } from './ContainerSpec.js';
|
|
15
15
|
import type { LifecyclePolicy } from './LifecyclePolicy.js';
|
|
16
|
-
import type {
|
|
17
|
-
import type { SharedVolumeSpec } from './SharedVolumeSpec.js';
|
|
16
|
+
import type { WarmProcessSpec } from './WarmProcessSpec.js';
|
|
18
17
|
import type { PodSpecOverride } from './PodSpecOverride.js';
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
@@ -48,16 +47,10 @@ export interface SandboxTemplateSpec {
|
|
|
48
47
|
mainContainer?: ContainerSpec;
|
|
49
48
|
/**
|
|
50
49
|
*
|
|
51
|
-
* @type {Array<
|
|
50
|
+
* @type {Array<WarmProcessSpec>}
|
|
52
51
|
* @memberof SandboxTemplateSpec
|
|
53
52
|
*/
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<SharedVolumeSpec>}
|
|
58
|
-
* @memberof SandboxTemplateSpec
|
|
59
|
-
*/
|
|
60
|
-
sharedVolumes?: Array<SharedVolumeSpec>;
|
|
53
|
+
warmProcesses?: Array<WarmProcessSpec>;
|
|
61
54
|
/**
|
|
62
55
|
*
|
|
63
56
|
* @type {PodSpecOverride}
|
|
@@ -102,12 +95,6 @@ export interface SandboxTemplateSpec {
|
|
|
102
95
|
* @memberof SandboxTemplateSpec
|
|
103
96
|
*/
|
|
104
97
|
allowedTeams?: Array<string>;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof SandboxTemplateSpec
|
|
109
|
-
*/
|
|
110
|
-
runtimeClassName?: string;
|
|
111
98
|
/**
|
|
112
99
|
*
|
|
113
100
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxTemplateSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxTemplateSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SandboxTempl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