@cirrobio/api-client 0.10.6 → 0.11.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 +1 -1
- package/dist/apis/WorkspacesApi.d.ts +145 -0
- package/dist/apis/WorkspacesApi.js +398 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/WorkspacesApi.d.ts +145 -0
- package/dist/esm/apis/WorkspacesApi.js +394 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Dashboard.d.ts +2 -2
- package/dist/esm/models/Dashboard.js +3 -4
- package/dist/esm/models/DashboardRequest.d.ts +2 -2
- package/dist/esm/models/DashboardRequest.js +3 -4
- package/dist/esm/models/MountedDataset.d.ts +37 -0
- package/dist/esm/models/MountedDataset.js +46 -0
- package/dist/esm/models/ShareDetail.d.ts +0 -6
- package/dist/esm/models/ShareDetail.js +0 -3
- package/dist/esm/models/SharingType.d.ts +23 -0
- package/dist/esm/models/SharingType.js +32 -0
- package/dist/esm/models/Workspace.d.ts +108 -0
- package/dist/esm/models/Workspace.js +84 -0
- package/dist/esm/models/WorkspaceComputeConfig.d.ts +63 -0
- package/dist/esm/models/WorkspaceComputeConfig.js +54 -0
- package/dist/esm/models/WorkspaceConnectionResponse.d.ts +43 -0
- package/dist/esm/models/WorkspaceConnectionResponse.js +49 -0
- package/dist/esm/models/WorkspaceInput.d.ts +58 -0
- package/dist/esm/models/WorkspaceInput.js +58 -0
- package/dist/esm/models/WorkspaceSession.d.ts +43 -0
- package/dist/esm/models/WorkspaceSession.js +49 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/Dashboard.d.ts +2 -2
- package/dist/models/Dashboard.js +3 -4
- package/dist/models/DashboardRequest.d.ts +2 -2
- package/dist/models/DashboardRequest.js +3 -4
- package/dist/models/MountedDataset.d.ts +37 -0
- package/dist/models/MountedDataset.js +53 -0
- package/dist/models/ShareDetail.d.ts +0 -6
- package/dist/models/ShareDetail.js +0 -3
- package/dist/models/SharingType.d.ts +23 -0
- package/dist/models/SharingType.js +38 -0
- package/dist/models/Workspace.d.ts +108 -0
- package/dist/models/Workspace.js +91 -0
- package/dist/models/WorkspaceComputeConfig.d.ts +63 -0
- package/dist/models/WorkspaceComputeConfig.js +61 -0
- package/dist/models/WorkspaceConnectionResponse.d.ts +43 -0
- package/dist/models/WorkspaceConnectionResponse.js +56 -0
- package/dist/models/WorkspaceInput.d.ts +58 -0
- package/dist/models/WorkspaceInput.js +65 -0
- package/dist/models/WorkspaceSession.d.ts +43 -0
- package/dist/models/WorkspaceSession.js +56 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkspaceToJSON = exports.WorkspaceFromJSONTyped = exports.WorkspaceFromJSON = exports.instanceOfWorkspace = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const MountedDataset_1 = require("./MountedDataset");
|
|
19
|
+
const SharingType_1 = require("./SharingType");
|
|
20
|
+
const Status_1 = require("./Status");
|
|
21
|
+
const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
|
|
22
|
+
const WorkspaceSession_1 = require("./WorkspaceSession");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the Workspace interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWorkspace(value) {
|
|
27
|
+
let isInstance = true;
|
|
28
|
+
isInstance = isInstance && "id" in value;
|
|
29
|
+
isInstance = isInstance && "name" in value;
|
|
30
|
+
isInstance = isInstance && "description" in value;
|
|
31
|
+
isInstance = isInstance && "status" in value;
|
|
32
|
+
isInstance = isInstance && "statusMessage" in value;
|
|
33
|
+
isInstance = isInstance && "mountedDatasets" in value;
|
|
34
|
+
isInstance = isInstance && "computeConfig" in value;
|
|
35
|
+
isInstance = isInstance && "sharingType" in value;
|
|
36
|
+
isInstance = isInstance && "createdBy" in value;
|
|
37
|
+
isInstance = isInstance && "createdAt" in value;
|
|
38
|
+
isInstance = isInstance && "startedAt" in value;
|
|
39
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
40
|
+
return isInstance;
|
|
41
|
+
}
|
|
42
|
+
exports.instanceOfWorkspace = instanceOfWorkspace;
|
|
43
|
+
function WorkspaceFromJSON(json) {
|
|
44
|
+
return WorkspaceFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
exports.WorkspaceFromJSON = WorkspaceFromJSON;
|
|
47
|
+
function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if ((json === undefined) || (json === null)) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'description': json['description'],
|
|
55
|
+
'status': (0, Status_1.StatusFromJSON)(json['status']),
|
|
56
|
+
'statusMessage': json['statusMessage'],
|
|
57
|
+
'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
|
|
58
|
+
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
|
|
59
|
+
'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
|
|
60
|
+
'sessions': !(0, runtime_1.exists)(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSession_1.WorkspaceSessionFromJSON)),
|
|
61
|
+
'createdBy': json['createdBy'],
|
|
62
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
63
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
64
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.WorkspaceFromJSONTyped = WorkspaceFromJSONTyped;
|
|
68
|
+
function WorkspaceToJSON(value) {
|
|
69
|
+
if (value === undefined) {
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
if (value === null) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': value.id,
|
|
77
|
+
'name': value.name,
|
|
78
|
+
'description': value.description,
|
|
79
|
+
'status': (0, Status_1.StatusToJSON)(value.status),
|
|
80
|
+
'statusMessage': value.statusMessage,
|
|
81
|
+
'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
|
|
82
|
+
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
|
|
83
|
+
'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
|
|
84
|
+
'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSession_1.WorkspaceSessionToJSON)),
|
|
85
|
+
'createdBy': value.createdBy,
|
|
86
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
87
|
+
'startedAt': (value.startedAt.toISOString()),
|
|
88
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.WorkspaceToJSON = WorkspaceToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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
|
+
* Configuration parameters for a containerized workspace compute environment.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkspaceComputeConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkspaceComputeConfig {
|
|
18
|
+
/**
|
|
19
|
+
* Fully qualified container image URI (including registry, repository, and tag).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkspaceComputeConfig
|
|
22
|
+
*/
|
|
23
|
+
containerImageUri: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of vCPU cores allocated to the workspace.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof WorkspaceComputeConfig
|
|
28
|
+
*/
|
|
29
|
+
cpu?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Memory allocated to the workspace container in GiB.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof WorkspaceComputeConfig
|
|
34
|
+
*/
|
|
35
|
+
memoryGib?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Persistent storage volume size allocated to the workspace in GiB.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof WorkspaceComputeConfig
|
|
40
|
+
*/
|
|
41
|
+
volumeSizeGib?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Map of environment variables injected into the container at runtime. Keys must be non-blank.
|
|
44
|
+
* @type {{ [key: string]: string; }}
|
|
45
|
+
* @memberof WorkspaceComputeConfig
|
|
46
|
+
*/
|
|
47
|
+
environmentVariables?: {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
} | null;
|
|
50
|
+
/**
|
|
51
|
+
* User-facing web server port (http).
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof WorkspaceComputeConfig
|
|
54
|
+
*/
|
|
55
|
+
localPort?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the WorkspaceComputeConfig interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfWorkspaceComputeConfig(value: object): boolean;
|
|
61
|
+
export declare function WorkspaceComputeConfigFromJSON(json: any): WorkspaceComputeConfig;
|
|
62
|
+
export declare function WorkspaceComputeConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceComputeConfig;
|
|
63
|
+
export declare function WorkspaceComputeConfigToJSON(value?: WorkspaceComputeConfig | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkspaceComputeConfigToJSON = exports.WorkspaceComputeConfigFromJSONTyped = exports.WorkspaceComputeConfigFromJSON = exports.instanceOfWorkspaceComputeConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the WorkspaceComputeConfig interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfWorkspaceComputeConfig(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "containerImageUri" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfWorkspaceComputeConfig = instanceOfWorkspaceComputeConfig;
|
|
27
|
+
function WorkspaceComputeConfigFromJSON(json) {
|
|
28
|
+
return WorkspaceComputeConfigFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.WorkspaceComputeConfigFromJSON = WorkspaceComputeConfigFromJSON;
|
|
31
|
+
function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'containerImageUri': json['containerImageUri'],
|
|
37
|
+
'cpu': !(0, runtime_1.exists)(json, 'cpu') ? undefined : json['cpu'],
|
|
38
|
+
'memoryGib': !(0, runtime_1.exists)(json, 'memoryGib') ? undefined : json['memoryGib'],
|
|
39
|
+
'volumeSizeGib': !(0, runtime_1.exists)(json, 'volumeSizeGib') ? undefined : json['volumeSizeGib'],
|
|
40
|
+
'environmentVariables': !(0, runtime_1.exists)(json, 'environmentVariables') ? undefined : json['environmentVariables'],
|
|
41
|
+
'localPort': !(0, runtime_1.exists)(json, 'localPort') ? undefined : json['localPort'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.WorkspaceComputeConfigFromJSONTyped = WorkspaceComputeConfigFromJSONTyped;
|
|
45
|
+
function WorkspaceComputeConfigToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'containerImageUri': value.containerImageUri,
|
|
54
|
+
'cpu': value.cpu,
|
|
55
|
+
'memoryGib': value.memoryGib,
|
|
56
|
+
'volumeSizeGib': value.volumeSizeGib,
|
|
57
|
+
'environmentVariables': value.environmentVariables,
|
|
58
|
+
'localPort': value.localPort,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.WorkspaceComputeConfigToJSON = WorkspaceComputeConfigToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 WorkspaceConnectionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkspaceConnectionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkspaceConnectionResponse
|
|
22
|
+
*/
|
|
23
|
+
connectionUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof WorkspaceConnectionResponse
|
|
28
|
+
*/
|
|
29
|
+
expiresAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WorkspaceConnectionResponse
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WorkspaceConnectionResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWorkspaceConnectionResponse(value: object): boolean;
|
|
41
|
+
export declare function WorkspaceConnectionResponseFromJSON(json: any): WorkspaceConnectionResponse;
|
|
42
|
+
export declare function WorkspaceConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceConnectionResponse;
|
|
43
|
+
export declare function WorkspaceConnectionResponseToJSON(value?: WorkspaceConnectionResponse | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkspaceConnectionResponseToJSON = exports.WorkspaceConnectionResponseFromJSONTyped = exports.WorkspaceConnectionResponseFromJSON = exports.instanceOfWorkspaceConnectionResponse = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the WorkspaceConnectionResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfWorkspaceConnectionResponse(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "connectionUrl" in value;
|
|
23
|
+
isInstance = isInstance && "expiresAt" in value;
|
|
24
|
+
isInstance = isInstance && "message" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfWorkspaceConnectionResponse = instanceOfWorkspaceConnectionResponse;
|
|
28
|
+
function WorkspaceConnectionResponseFromJSON(json) {
|
|
29
|
+
return WorkspaceConnectionResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.WorkspaceConnectionResponseFromJSON = WorkspaceConnectionResponseFromJSON;
|
|
32
|
+
function WorkspaceConnectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'connectionUrl': json['connectionUrl'],
|
|
38
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
39
|
+
'message': json['message'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.WorkspaceConnectionResponseFromJSONTyped = WorkspaceConnectionResponseFromJSONTyped;
|
|
43
|
+
function WorkspaceConnectionResponseToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'connectionUrl': value.connectionUrl,
|
|
52
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
53
|
+
'message': value.message,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.WorkspaceConnectionResponseToJSON = WorkspaceConnectionResponseToJSON;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 { MountedDataset } from './MountedDataset';
|
|
13
|
+
import type { SharingType } from './SharingType';
|
|
14
|
+
import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WorkspaceInput
|
|
19
|
+
*/
|
|
20
|
+
export interface WorkspaceInput {
|
|
21
|
+
/**
|
|
22
|
+
* Name of the workspace.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WorkspaceInput
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Description of the workspace.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof WorkspaceInput
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* List of datasets to mount into the workspace.
|
|
35
|
+
* @type {Array<MountedDataset>}
|
|
36
|
+
* @memberof WorkspaceInput
|
|
37
|
+
*/
|
|
38
|
+
mountedDatasets: Array<MountedDataset>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {WorkspaceComputeConfig}
|
|
42
|
+
* @memberof WorkspaceInput
|
|
43
|
+
*/
|
|
44
|
+
computeConfig: WorkspaceComputeConfig;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {SharingType}
|
|
48
|
+
* @memberof WorkspaceInput
|
|
49
|
+
*/
|
|
50
|
+
sharingType: SharingType;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the WorkspaceInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfWorkspaceInput(value: object): boolean;
|
|
56
|
+
export declare function WorkspaceInputFromJSON(json: any): WorkspaceInput;
|
|
57
|
+
export declare function WorkspaceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceInput;
|
|
58
|
+
export declare function WorkspaceInputToJSON(value?: WorkspaceInput | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkspaceInputToJSON = exports.WorkspaceInputFromJSONTyped = exports.WorkspaceInputFromJSON = exports.instanceOfWorkspaceInput = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const MountedDataset_1 = require("./MountedDataset");
|
|
19
|
+
const SharingType_1 = require("./SharingType");
|
|
20
|
+
const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WorkspaceInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWorkspaceInput(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "mountedDatasets" in value;
|
|
28
|
+
isInstance = isInstance && "computeConfig" in value;
|
|
29
|
+
isInstance = isInstance && "sharingType" in value;
|
|
30
|
+
return isInstance;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfWorkspaceInput = instanceOfWorkspaceInput;
|
|
33
|
+
function WorkspaceInputFromJSON(json) {
|
|
34
|
+
return WorkspaceInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.WorkspaceInputFromJSON = WorkspaceInputFromJSON;
|
|
37
|
+
function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
44
|
+
'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
|
|
45
|
+
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
|
|
46
|
+
'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.WorkspaceInputFromJSONTyped = WorkspaceInputFromJSONTyped;
|
|
50
|
+
function WorkspaceInputToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'name': value.name,
|
|
59
|
+
'description': value.description,
|
|
60
|
+
'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
|
|
61
|
+
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
|
|
62
|
+
'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.WorkspaceInputToJSON = WorkspaceInputToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 WorkspaceSession
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkspaceSession {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkspaceSession
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkspaceSession
|
|
28
|
+
*/
|
|
29
|
+
user: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof WorkspaceSession
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WorkspaceSession interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWorkspaceSession(value: object): boolean;
|
|
41
|
+
export declare function WorkspaceSessionFromJSON(json: any): WorkspaceSession;
|
|
42
|
+
export declare function WorkspaceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceSession;
|
|
43
|
+
export declare function WorkspaceSessionToJSON(value?: WorkspaceSession | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkspaceSessionToJSON = exports.WorkspaceSessionFromJSONTyped = exports.WorkspaceSessionFromJSON = exports.instanceOfWorkspaceSession = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the WorkspaceSession interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfWorkspaceSession(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "user" in value;
|
|
24
|
+
isInstance = isInstance && "createdAt" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfWorkspaceSession = instanceOfWorkspaceSession;
|
|
28
|
+
function WorkspaceSessionFromJSON(json) {
|
|
29
|
+
return WorkspaceSessionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.WorkspaceSessionFromJSON = WorkspaceSessionFromJSON;
|
|
32
|
+
function WorkspaceSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
'user': json['user'],
|
|
39
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.WorkspaceSessionFromJSONTyped = WorkspaceSessionFromJSONTyped;
|
|
43
|
+
function WorkspaceSessionToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value.id,
|
|
52
|
+
'user': value.user,
|
|
53
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.WorkspaceSessionToJSON = WorkspaceSessionToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export * from './Message';
|
|
|
78
78
|
export * from './MessageInput';
|
|
79
79
|
export * from './MessageType';
|
|
80
80
|
export * from './MetricRecord';
|
|
81
|
+
export * from './MountedDataset';
|
|
81
82
|
export * from './MoveDatasetInput';
|
|
82
83
|
export * from './MoveDatasetResponse';
|
|
83
84
|
export * from './NamedItem';
|
|
@@ -125,6 +126,7 @@ export * from './Share';
|
|
|
125
126
|
export * from './ShareDetail';
|
|
126
127
|
export * from './ShareInput';
|
|
127
128
|
export * from './ShareType';
|
|
129
|
+
export * from './SharingType';
|
|
128
130
|
export * from './SortOrder';
|
|
129
131
|
export * from './Status';
|
|
130
132
|
export * from './StopExecutionResponse';
|
|
@@ -144,3 +146,8 @@ export * from './UserProjectAssignment';
|
|
|
144
146
|
export * from './UserSettings';
|
|
145
147
|
export * from './ValidateFileNamePatternsRequest';
|
|
146
148
|
export * from './ValidateFileRequirementsRequest';
|
|
149
|
+
export * from './Workspace';
|
|
150
|
+
export * from './WorkspaceComputeConfig';
|
|
151
|
+
export * from './WorkspaceConnectionResponse';
|
|
152
|
+
export * from './WorkspaceInput';
|
|
153
|
+
export * from './WorkspaceSession';
|
package/dist/models/index.js
CHANGED
|
@@ -96,6 +96,7 @@ __exportStar(require("./Message"), exports);
|
|
|
96
96
|
__exportStar(require("./MessageInput"), exports);
|
|
97
97
|
__exportStar(require("./MessageType"), exports);
|
|
98
98
|
__exportStar(require("./MetricRecord"), exports);
|
|
99
|
+
__exportStar(require("./MountedDataset"), exports);
|
|
99
100
|
__exportStar(require("./MoveDatasetInput"), exports);
|
|
100
101
|
__exportStar(require("./MoveDatasetResponse"), exports);
|
|
101
102
|
__exportStar(require("./NamedItem"), exports);
|
|
@@ -143,6 +144,7 @@ __exportStar(require("./Share"), exports);
|
|
|
143
144
|
__exportStar(require("./ShareDetail"), exports);
|
|
144
145
|
__exportStar(require("./ShareInput"), exports);
|
|
145
146
|
__exportStar(require("./ShareType"), exports);
|
|
147
|
+
__exportStar(require("./SharingType"), exports);
|
|
146
148
|
__exportStar(require("./SortOrder"), exports);
|
|
147
149
|
__exportStar(require("./Status"), exports);
|
|
148
150
|
__exportStar(require("./StopExecutionResponse"), exports);
|
|
@@ -162,3 +164,8 @@ __exportStar(require("./UserProjectAssignment"), exports);
|
|
|
162
164
|
__exportStar(require("./UserSettings"), exports);
|
|
163
165
|
__exportStar(require("./ValidateFileNamePatternsRequest"), exports);
|
|
164
166
|
__exportStar(require("./ValidateFileRequirementsRequest"), exports);
|
|
167
|
+
__exportStar(require("./Workspace"), exports);
|
|
168
|
+
__exportStar(require("./WorkspaceComputeConfig"), exports);
|
|
169
|
+
__exportStar(require("./WorkspaceConnectionResponse"), exports);
|
|
170
|
+
__exportStar(require("./WorkspaceInput"), exports);
|
|
171
|
+
__exportStar(require("./WorkspaceSession"), exports);
|