@cirrobio/api-client 0.10.5 → 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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/WorkspacesApi.d.ts +145 -0
  3. package/dist/apis/WorkspacesApi.js +398 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/WorkspacesApi.d.ts +145 -0
  7. package/dist/esm/apis/WorkspacesApi.js +394 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/Dashboard.d.ts +2 -2
  11. package/dist/esm/models/Dashboard.js +3 -4
  12. package/dist/esm/models/DashboardRequest.d.ts +2 -2
  13. package/dist/esm/models/DashboardRequest.js +3 -4
  14. package/dist/esm/models/MountedDataset.d.ts +37 -0
  15. package/dist/esm/models/MountedDataset.js +46 -0
  16. package/dist/esm/models/ShareDetail.d.ts +0 -6
  17. package/dist/esm/models/ShareDetail.js +0 -3
  18. package/dist/esm/models/SharingType.d.ts +23 -0
  19. package/dist/esm/models/SharingType.js +32 -0
  20. package/dist/esm/models/Workspace.d.ts +108 -0
  21. package/dist/esm/models/Workspace.js +84 -0
  22. package/dist/esm/models/WorkspaceComputeConfig.d.ts +63 -0
  23. package/dist/esm/models/WorkspaceComputeConfig.js +54 -0
  24. package/dist/esm/models/WorkspaceConnectionResponse.d.ts +43 -0
  25. package/dist/esm/models/WorkspaceConnectionResponse.js +49 -0
  26. package/dist/esm/models/WorkspaceInput.d.ts +58 -0
  27. package/dist/esm/models/WorkspaceInput.js +58 -0
  28. package/dist/esm/models/WorkspaceSession.d.ts +43 -0
  29. package/dist/esm/models/WorkspaceSession.js +49 -0
  30. package/dist/esm/models/index.d.ts +7 -0
  31. package/dist/esm/models/index.js +7 -0
  32. package/dist/models/Dashboard.d.ts +2 -2
  33. package/dist/models/Dashboard.js +3 -4
  34. package/dist/models/DashboardRequest.d.ts +2 -2
  35. package/dist/models/DashboardRequest.js +3 -4
  36. package/dist/models/MountedDataset.d.ts +37 -0
  37. package/dist/models/MountedDataset.js +53 -0
  38. package/dist/models/ShareDetail.d.ts +0 -6
  39. package/dist/models/ShareDetail.js +0 -3
  40. package/dist/models/SharingType.d.ts +23 -0
  41. package/dist/models/SharingType.js +38 -0
  42. package/dist/models/Workspace.d.ts +108 -0
  43. package/dist/models/Workspace.js +91 -0
  44. package/dist/models/WorkspaceComputeConfig.d.ts +63 -0
  45. package/dist/models/WorkspaceComputeConfig.js +61 -0
  46. package/dist/models/WorkspaceConnectionResponse.d.ts +43 -0
  47. package/dist/models/WorkspaceConnectionResponse.js +56 -0
  48. package/dist/models/WorkspaceInput.d.ts +58 -0
  49. package/dist/models/WorkspaceInput.js +65 -0
  50. package/dist/models/WorkspaceSession.d.ts +43 -0
  51. package/dist/models/WorkspaceSession.js +56 -0
  52. package/dist/models/index.d.ts +7 -0
  53. package/dist/models/index.js +7 -0
  54. package/package.json +1 -1
@@ -0,0 +1,37 @@
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
+ * Represents a mounted dataset in a workspace
14
+ * @export
15
+ * @interface MountedDataset
16
+ */
17
+ export interface MountedDataset {
18
+ /**
19
+ * Folder name that appears in the workspace
20
+ * @type {string}
21
+ * @memberof MountedDataset
22
+ */
23
+ name: string;
24
+ /**
25
+ * Full S3 prefix to the data
26
+ * @type {string}
27
+ * @memberof MountedDataset
28
+ */
29
+ uri: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MountedDataset interface.
33
+ */
34
+ export declare function instanceOfMountedDataset(value: object): boolean;
35
+ export declare function MountedDatasetFromJSON(json: any): MountedDataset;
36
+ export declare function MountedDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): MountedDataset;
37
+ export declare function MountedDatasetToJSON(value?: MountedDataset | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 MountedDataset interface.
16
+ */
17
+ export function instanceOfMountedDataset(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "uri" in value;
21
+ return isInstance;
22
+ }
23
+ export function MountedDatasetFromJSON(json) {
24
+ return MountedDatasetFromJSONTyped(json, false);
25
+ }
26
+ export function MountedDatasetFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'uri': json['uri'],
33
+ };
34
+ }
35
+ export function MountedDatasetToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'name': value.name,
44
+ 'uri': value.uri,
45
+ };
46
+ }
@@ -72,12 +72,6 @@ export interface ShareDetail {
72
72
  * @memberof ShareDetail
73
73
  */
74
74
  classificationIds: Array<string>;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof ShareDetail
79
- */
80
- isSubscribed: boolean;
81
75
  /**
82
76
  *
83
77
  * @type {boolean}
@@ -28,7 +28,6 @@ export function instanceOfShareDetail(value) {
28
28
  isInstance = isInstance && "conditions" in value;
29
29
  isInstance = isInstance && "keywords" in value;
30
30
  isInstance = isInstance && "classificationIds" in value;
31
- isInstance = isInstance && "isSubscribed" in value;
32
31
  isInstance = isInstance && "isViewRestricted" in value;
33
32
  isInstance = isInstance && "createdBy" in value;
34
33
  isInstance = isInstance && "createdAt" in value;
@@ -52,7 +51,6 @@ export function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
52
51
  'conditions': (json['conditions'].map(DatasetConditionFromJSON)),
53
52
  'keywords': json['keywords'],
54
53
  'classificationIds': json['classificationIds'],
55
- 'isSubscribed': json['isSubscribed'],
56
54
  'isViewRestricted': json['isViewRestricted'],
57
55
  'createdBy': json['createdBy'],
58
56
  'createdAt': (new Date(json['createdAt'])),
@@ -76,7 +74,6 @@ export function ShareDetailToJSON(value) {
76
74
  'conditions': (value.conditions.map(DatasetConditionToJSON)),
77
75
  'keywords': value.keywords,
78
76
  'classificationIds': value.classificationIds,
79
- 'isSubscribed': value.isSubscribed,
80
77
  'isViewRestricted': value.isViewRestricted,
81
78
  'createdBy': value.createdBy,
82
79
  'createdAt': (value.createdAt.toISOString()),
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum SharingType {
18
+ Private = "PRIVATE",
19
+ ReadWrite = "READ_WRITE"
20
+ }
21
+ export declare function SharingTypeFromJSON(json: any): SharingType;
22
+ export declare function SharingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingType;
23
+ export declare function SharingTypeToJSON(value?: SharingType | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var SharingType;
20
+ (function (SharingType) {
21
+ SharingType["Private"] = "PRIVATE";
22
+ SharingType["ReadWrite"] = "READ_WRITE";
23
+ })(SharingType || (SharingType = {}));
24
+ export function SharingTypeFromJSON(json) {
25
+ return SharingTypeFromJSONTyped(json, false);
26
+ }
27
+ export function SharingTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function SharingTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -0,0 +1,108 @@
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 { Status } from './Status';
15
+ import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
16
+ import type { WorkspaceSession } from './WorkspaceSession';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface Workspace
21
+ */
22
+ export interface Workspace {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof Workspace
27
+ */
28
+ id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof Workspace
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Workspace
39
+ */
40
+ description: string;
41
+ /**
42
+ *
43
+ * @type {Status}
44
+ * @memberof Workspace
45
+ */
46
+ status: Status;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof Workspace
51
+ */
52
+ statusMessage: string;
53
+ /**
54
+ *
55
+ * @type {Array<MountedDataset>}
56
+ * @memberof Workspace
57
+ */
58
+ mountedDatasets: Array<MountedDataset>;
59
+ /**
60
+ *
61
+ * @type {WorkspaceComputeConfig}
62
+ * @memberof Workspace
63
+ */
64
+ computeConfig: WorkspaceComputeConfig;
65
+ /**
66
+ *
67
+ * @type {SharingType}
68
+ * @memberof Workspace
69
+ */
70
+ sharingType: SharingType;
71
+ /**
72
+ *
73
+ * @type {Array<WorkspaceSession>}
74
+ * @memberof Workspace
75
+ */
76
+ sessions?: Array<WorkspaceSession> | null;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof Workspace
81
+ */
82
+ createdBy: string;
83
+ /**
84
+ *
85
+ * @type {Date}
86
+ * @memberof Workspace
87
+ */
88
+ createdAt: Date;
89
+ /**
90
+ *
91
+ * @type {Date}
92
+ * @memberof Workspace
93
+ */
94
+ startedAt: Date;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof Workspace
99
+ */
100
+ updatedAt: Date;
101
+ }
102
+ /**
103
+ * Check if a given object implements the Workspace interface.
104
+ */
105
+ export declare function instanceOfWorkspace(value: object): boolean;
106
+ export declare function WorkspaceFromJSON(json: any): Workspace;
107
+ export declare function WorkspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Workspace;
108
+ export declare function WorkspaceToJSON(value?: Workspace | null): any;
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 { exists } from '../runtime';
15
+ import { MountedDatasetFromJSON, MountedDatasetToJSON, } from './MountedDataset';
16
+ import { SharingTypeFromJSON, SharingTypeToJSON, } from './SharingType';
17
+ import { StatusFromJSON, StatusToJSON, } from './Status';
18
+ import { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
19
+ import { WorkspaceSessionFromJSON, WorkspaceSessionToJSON, } from './WorkspaceSession';
20
+ /**
21
+ * Check if a given object implements the Workspace interface.
22
+ */
23
+ export function instanceOfWorkspace(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "name" in value;
27
+ isInstance = isInstance && "description" in value;
28
+ isInstance = isInstance && "status" in value;
29
+ isInstance = isInstance && "statusMessage" in value;
30
+ isInstance = isInstance && "mountedDatasets" in value;
31
+ isInstance = isInstance && "computeConfig" in value;
32
+ isInstance = isInstance && "sharingType" in value;
33
+ isInstance = isInstance && "createdBy" in value;
34
+ isInstance = isInstance && "createdAt" in value;
35
+ isInstance = isInstance && "startedAt" in value;
36
+ isInstance = isInstance && "updatedAt" in value;
37
+ return isInstance;
38
+ }
39
+ export function WorkspaceFromJSON(json) {
40
+ return WorkspaceFromJSONTyped(json, false);
41
+ }
42
+ export function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
43
+ if ((json === undefined) || (json === null)) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'name': json['name'],
49
+ 'description': json['description'],
50
+ 'status': StatusFromJSON(json['status']),
51
+ 'statusMessage': json['statusMessage'],
52
+ 'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
53
+ 'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
54
+ 'sharingType': SharingTypeFromJSON(json['sharingType']),
55
+ 'sessions': !exists(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSessionFromJSON)),
56
+ 'createdBy': json['createdBy'],
57
+ 'createdAt': (new Date(json['createdAt'])),
58
+ 'startedAt': (new Date(json['startedAt'])),
59
+ 'updatedAt': (new Date(json['updatedAt'])),
60
+ };
61
+ }
62
+ export function WorkspaceToJSON(value) {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+ 'id': value.id,
71
+ 'name': value.name,
72
+ 'description': value.description,
73
+ 'status': StatusToJSON(value.status),
74
+ 'statusMessage': value.statusMessage,
75
+ 'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
76
+ 'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
77
+ 'sharingType': SharingTypeToJSON(value.sharingType),
78
+ 'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSessionToJSON)),
79
+ 'createdBy': value.createdBy,
80
+ 'createdAt': (value.createdAt.toISOString()),
81
+ 'startedAt': (value.startedAt.toISOString()),
82
+ 'updatedAt': (value.updatedAt.toISOString()),
83
+ };
84
+ }
@@ -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,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the WorkspaceComputeConfig interface.
17
+ */
18
+ export function instanceOfWorkspaceComputeConfig(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "containerImageUri" in value;
21
+ return isInstance;
22
+ }
23
+ export function WorkspaceComputeConfigFromJSON(json) {
24
+ return WorkspaceComputeConfigFromJSONTyped(json, false);
25
+ }
26
+ export function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'containerImageUri': json['containerImageUri'],
32
+ 'cpu': !exists(json, 'cpu') ? undefined : json['cpu'],
33
+ 'memoryGib': !exists(json, 'memoryGib') ? undefined : json['memoryGib'],
34
+ 'volumeSizeGib': !exists(json, 'volumeSizeGib') ? undefined : json['volumeSizeGib'],
35
+ 'environmentVariables': !exists(json, 'environmentVariables') ? undefined : json['environmentVariables'],
36
+ 'localPort': !exists(json, 'localPort') ? undefined : json['localPort'],
37
+ };
38
+ }
39
+ export function WorkspaceComputeConfigToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'containerImageUri': value.containerImageUri,
48
+ 'cpu': value.cpu,
49
+ 'memoryGib': value.memoryGib,
50
+ 'volumeSizeGib': value.volumeSizeGib,
51
+ 'environmentVariables': value.environmentVariables,
52
+ 'localPort': value.localPort,
53
+ };
54
+ }
@@ -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,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 WorkspaceConnectionResponse interface.
16
+ */
17
+ export function instanceOfWorkspaceConnectionResponse(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "connectionUrl" in value;
20
+ isInstance = isInstance && "expiresAt" in value;
21
+ isInstance = isInstance && "message" in value;
22
+ return isInstance;
23
+ }
24
+ export function WorkspaceConnectionResponseFromJSON(json) {
25
+ return WorkspaceConnectionResponseFromJSONTyped(json, false);
26
+ }
27
+ export function WorkspaceConnectionResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'connectionUrl': json['connectionUrl'],
33
+ 'expiresAt': (new Date(json['expiresAt'])),
34
+ 'message': json['message'],
35
+ };
36
+ }
37
+ export function WorkspaceConnectionResponseToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'connectionUrl': value.connectionUrl,
46
+ 'expiresAt': (value.expiresAt.toISOString()),
47
+ 'message': value.message,
48
+ };
49
+ }
@@ -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;