@cirrobio/api-client 0.12.3 → 0.12.5
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/esm/models/EntityType.d.ts +1 -0
- package/dist/esm/models/EntityType.js +1 -0
- package/dist/esm/models/Workspace.d.ts +6 -0
- package/dist/esm/models/Workspace.js +2 -0
- package/dist/esm/models/WorkspaceInput.d.ts +6 -0
- package/dist/esm/models/WorkspaceInput.js +2 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +1 -0
- package/dist/models/Workspace.d.ts +6 -0
- package/dist/models/Workspace.js +2 -0
- package/dist/models/WorkspaceInput.d.ts +6 -0
- package/dist/models/WorkspaceInput.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ export var EntityType;
|
|
|
25
25
|
EntityType["Process"] = "PROCESS";
|
|
26
26
|
EntityType["Reference"] = "REFERENCE";
|
|
27
27
|
EntityType["Notebook"] = "NOTEBOOK";
|
|
28
|
+
EntityType["Workspace"] = "WORKSPACE";
|
|
28
29
|
EntityType["Sample"] = "SAMPLE";
|
|
29
30
|
EntityType["Share"] = "SHARE";
|
|
30
31
|
EntityType["Tag"] = "TAG";
|
|
@@ -53,6 +53,7 @@ export function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
|
|
54
54
|
'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
|
|
55
55
|
'sharingType': SharingTypeFromJSON(json['sharingType']),
|
|
56
|
+
'autoStopTimeout': !exists(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
|
|
56
57
|
'sessions': !exists(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSessionFromJSON)),
|
|
57
58
|
'createdBy': json['createdBy'],
|
|
58
59
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -77,6 +78,7 @@ export function WorkspaceToJSON(value) {
|
|
|
77
78
|
'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
|
|
78
79
|
'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
|
|
79
80
|
'sharingType': SharingTypeToJSON(value.sharingType),
|
|
81
|
+
'autoStopTimeout': value.autoStopTimeout,
|
|
80
82
|
'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSessionToJSON)),
|
|
81
83
|
'createdBy': value.createdBy,
|
|
82
84
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -54,6 +54,12 @@ export interface WorkspaceInput {
|
|
|
54
54
|
* @memberof WorkspaceInput
|
|
55
55
|
*/
|
|
56
56
|
sharingType: SharingType;
|
|
57
|
+
/**
|
|
58
|
+
* Time period (in hours) to automatically stop the workspace if running
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof WorkspaceInput
|
|
61
|
+
*/
|
|
62
|
+
autoStopTimeout?: number | null;
|
|
57
63
|
}
|
|
58
64
|
/**
|
|
59
65
|
* Check if a given object implements the WorkspaceInput interface.
|
|
@@ -40,6 +40,7 @@ export function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'environmentId': !exists(json, 'environmentId') ? undefined : json['environmentId'],
|
|
41
41
|
'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
|
|
42
42
|
'sharingType': SharingTypeFromJSON(json['sharingType']),
|
|
43
|
+
'autoStopTimeout': !exists(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export function WorkspaceInputToJSON(value) {
|
|
@@ -56,5 +57,6 @@ export function WorkspaceInputToJSON(value) {
|
|
|
56
57
|
'environmentId': value.environmentId,
|
|
57
58
|
'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
|
|
58
59
|
'sharingType': SharingTypeToJSON(value.sharingType),
|
|
60
|
+
'autoStopTimeout': value.autoStopTimeout,
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -28,6 +28,7 @@ var EntityType;
|
|
|
28
28
|
EntityType["Process"] = "PROCESS";
|
|
29
29
|
EntityType["Reference"] = "REFERENCE";
|
|
30
30
|
EntityType["Notebook"] = "NOTEBOOK";
|
|
31
|
+
EntityType["Workspace"] = "WORKSPACE";
|
|
31
32
|
EntityType["Sample"] = "SAMPLE";
|
|
32
33
|
EntityType["Share"] = "SHARE";
|
|
33
34
|
EntityType["Tag"] = "TAG";
|
package/dist/models/Workspace.js
CHANGED
|
@@ -58,6 +58,7 @@ function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
|
|
59
59
|
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
|
|
60
60
|
'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
|
|
61
|
+
'autoStopTimeout': !(0, runtime_1.exists)(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
|
|
61
62
|
'sessions': !(0, runtime_1.exists)(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSession_1.WorkspaceSessionFromJSON)),
|
|
62
63
|
'createdBy': json['createdBy'],
|
|
63
64
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -83,6 +84,7 @@ function WorkspaceToJSON(value) {
|
|
|
83
84
|
'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
|
|
84
85
|
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
|
|
85
86
|
'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
|
|
87
|
+
'autoStopTimeout': value.autoStopTimeout,
|
|
86
88
|
'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSession_1.WorkspaceSessionToJSON)),
|
|
87
89
|
'createdBy': value.createdBy,
|
|
88
90
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -54,6 +54,12 @@ export interface WorkspaceInput {
|
|
|
54
54
|
* @memberof WorkspaceInput
|
|
55
55
|
*/
|
|
56
56
|
sharingType: SharingType;
|
|
57
|
+
/**
|
|
58
|
+
* Time period (in hours) to automatically stop the workspace if running
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof WorkspaceInput
|
|
61
|
+
*/
|
|
62
|
+
autoStopTimeout?: number | null;
|
|
57
63
|
}
|
|
58
64
|
/**
|
|
59
65
|
* Check if a given object implements the WorkspaceInput interface.
|
|
@@ -45,6 +45,7 @@ function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'environmentId': !(0, runtime_1.exists)(json, 'environmentId') ? undefined : json['environmentId'],
|
|
46
46
|
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
|
|
47
47
|
'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
|
|
48
|
+
'autoStopTimeout': !(0, runtime_1.exists)(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
exports.WorkspaceInputFromJSONTyped = WorkspaceInputFromJSONTyped;
|
|
@@ -62,6 +63,7 @@ function WorkspaceInputToJSON(value) {
|
|
|
62
63
|
'environmentId': value.environmentId,
|
|
63
64
|
'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
|
|
64
65
|
'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
|
|
66
|
+
'autoStopTimeout': value.autoStopTimeout,
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
exports.WorkspaceInputToJSON = WorkspaceInputToJSON;
|