@cirrobio/api-client 0.11.2 → 0.11.4

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 CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.11.2 --save
39
+ npm install @cirrobio/api-client@0.11.4 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -92,6 +92,12 @@ export interface ProjectDetail {
92
92
  * @memberof ProjectDetail
93
93
  */
94
94
  classificationIds: Array<string>;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof ProjectDetail
99
+ */
100
+ deployedAt?: Date | null;
95
101
  /**
96
102
  *
97
103
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  import { CloudAccountFromJSON, CloudAccountToJSON, } from './CloudAccount';
15
16
  import { ContactFromJSON, ContactToJSON, } from './Contact';
16
17
  import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
@@ -58,6 +59,7 @@ export function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
58
59
  'statusMessage': json['statusMessage'],
59
60
  'tags': (json['tags'].map(TagFromJSON)),
60
61
  'classificationIds': json['classificationIds'],
62
+ 'deployedAt': !exists(json, 'deployedAt') ? undefined : (json['deployedAt'] === null ? null : new Date(json['deployedAt'])),
61
63
  'createdBy': json['createdBy'],
62
64
  'createdAt': (new Date(json['createdAt'])),
63
65
  'updatedAt': (new Date(json['updatedAt'])),
@@ -83,6 +85,7 @@ export function ProjectDetailToJSON(value) {
83
85
  'statusMessage': value.statusMessage,
84
86
  'tags': (value.tags.map(TagToJSON)),
85
87
  'classificationIds': value.classificationIds,
88
+ 'deployedAt': value.deployedAt === undefined ? undefined : (value.deployedAt === null ? null : value.deployedAt.toISOString()),
86
89
  'createdBy': value.createdBy,
87
90
  'createdAt': (value.createdAt.toISOString()),
88
91
  'updatedAt': (value.updatedAt.toISOString()),
@@ -50,6 +50,12 @@ export interface Workspace {
50
50
  * @memberof Workspace
51
51
  */
52
52
  statusMessage: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof Workspace
57
+ */
58
+ environmentId: string;
53
59
  /**
54
60
  *
55
61
  * @type {Array<MountedDataset>}
@@ -27,6 +27,7 @@ export function instanceOfWorkspace(value) {
27
27
  isInstance = isInstance && "description" in value;
28
28
  isInstance = isInstance && "status" in value;
29
29
  isInstance = isInstance && "statusMessage" in value;
30
+ isInstance = isInstance && "environmentId" in value;
30
31
  isInstance = isInstance && "mountedDatasets" in value;
31
32
  isInstance = isInstance && "computeConfig" in value;
32
33
  isInstance = isInstance && "sharingType" in value;
@@ -49,6 +50,7 @@ export function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
49
50
  'description': json['description'],
50
51
  'status': StatusFromJSON(json['status']),
51
52
  'statusMessage': json['statusMessage'],
53
+ 'environmentId': json['environmentId'],
52
54
  'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
53
55
  'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
54
56
  'sharingType': SharingTypeFromJSON(json['sharingType']),
@@ -72,6 +74,7 @@ export function WorkspaceToJSON(value) {
72
74
  'description': value.description,
73
75
  'status': StatusToJSON(value.status),
74
76
  'statusMessage': value.statusMessage,
77
+ 'environmentId': value.environmentId,
75
78
  'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
76
79
  'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
77
80
  'sharingType': SharingTypeToJSON(value.sharingType),
@@ -32,13 +32,13 @@ export interface WorkspaceComputeConfig {
32
32
  * @type {number}
33
33
  * @memberof WorkspaceComputeConfig
34
34
  */
35
- memoryGib?: number;
35
+ memoryGiB?: number;
36
36
  /**
37
37
  * Persistent storage volume size allocated to the workspace in GiB.
38
38
  * @type {number}
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
- volumeSizeGib?: number;
41
+ volumeSizeGiB?: number;
42
42
  /**
43
43
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
44
  * @type {{ [key: string]: string; }}
@@ -30,8 +30,8 @@ export function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
30
30
  return {
31
31
  'containerImageUri': json['containerImageUri'],
32
32
  'cpu': !exists(json, 'cpu') ? undefined : json['cpu'],
33
- 'memoryGib': !exists(json, 'memoryGib') ? undefined : json['memoryGib'],
34
- 'volumeSizeGib': !exists(json, 'volumeSizeGib') ? undefined : json['volumeSizeGib'],
33
+ 'memoryGiB': !exists(json, 'memoryGiB') ? undefined : json['memoryGiB'],
34
+ 'volumeSizeGiB': !exists(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
35
35
  'environmentVariables': !exists(json, 'environmentVariables') ? undefined : json['environmentVariables'],
36
36
  'localPort': !exists(json, 'localPort') ? undefined : json['localPort'],
37
37
  };
@@ -46,8 +46,8 @@ export function WorkspaceComputeConfigToJSON(value) {
46
46
  return {
47
47
  'containerImageUri': value.containerImageUri,
48
48
  'cpu': value.cpu,
49
- 'memoryGib': value.memoryGib,
50
- 'volumeSizeGib': value.volumeSizeGib,
49
+ 'memoryGiB': value.memoryGiB,
50
+ 'volumeSizeGiB': value.volumeSizeGiB,
51
51
  'environmentVariables': value.environmentVariables,
52
52
  'localPort': value.localPort,
53
53
  };
@@ -36,6 +36,12 @@ export interface WorkspaceInput {
36
36
  * @memberof WorkspaceInput
37
37
  */
38
38
  mountedDatasets: Array<MountedDataset>;
39
+ /**
40
+ * ID of the predefined workspace environment to use.
41
+ * @type {string}
42
+ * @memberof WorkspaceInput
43
+ */
44
+ environmentId?: string | null;
39
45
  /**
40
46
  *
41
47
  * @type {WorkspaceComputeConfig}
@@ -37,6 +37,7 @@ export function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'name': json['name'],
38
38
  'description': !exists(json, 'description') ? undefined : json['description'],
39
39
  'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
40
+ 'environmentId': !exists(json, 'environmentId') ? undefined : json['environmentId'],
40
41
  'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
41
42
  'sharingType': SharingTypeFromJSON(json['sharingType']),
42
43
  };
@@ -52,6 +53,7 @@ export function WorkspaceInputToJSON(value) {
52
53
  'name': value.name,
53
54
  'description': value.description,
54
55
  'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
56
+ 'environmentId': value.environmentId,
55
57
  'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
56
58
  'sharingType': SharingTypeToJSON(value.sharingType),
57
59
  };
@@ -92,6 +92,12 @@ export interface ProjectDetail {
92
92
  * @memberof ProjectDetail
93
93
  */
94
94
  classificationIds: Array<string>;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof ProjectDetail
99
+ */
100
+ deployedAt?: Date | null;
95
101
  /**
96
102
  *
97
103
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectDetailToJSON = exports.ProjectDetailFromJSONTyped = exports.ProjectDetailFromJSON = exports.instanceOfProjectDetail = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const CloudAccount_1 = require("./CloudAccount");
18
19
  const Contact_1 = require("./Contact");
19
20
  const ProjectSettings_1 = require("./ProjectSettings");
@@ -63,6 +64,7 @@ function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
63
64
  'statusMessage': json['statusMessage'],
64
65
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
65
66
  'classificationIds': json['classificationIds'],
67
+ 'deployedAt': !(0, runtime_1.exists)(json, 'deployedAt') ? undefined : (json['deployedAt'] === null ? null : new Date(json['deployedAt'])),
66
68
  'createdBy': json['createdBy'],
67
69
  'createdAt': (new Date(json['createdAt'])),
68
70
  'updatedAt': (new Date(json['updatedAt'])),
@@ -89,6 +91,7 @@ function ProjectDetailToJSON(value) {
89
91
  'statusMessage': value.statusMessage,
90
92
  'tags': (value.tags.map(Tag_1.TagToJSON)),
91
93
  'classificationIds': value.classificationIds,
94
+ 'deployedAt': value.deployedAt === undefined ? undefined : (value.deployedAt === null ? null : value.deployedAt.toISOString()),
92
95
  'createdBy': value.createdBy,
93
96
  'createdAt': (value.createdAt.toISOString()),
94
97
  'updatedAt': (value.updatedAt.toISOString()),
@@ -50,6 +50,12 @@ export interface Workspace {
50
50
  * @memberof Workspace
51
51
  */
52
52
  statusMessage: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof Workspace
57
+ */
58
+ environmentId: string;
53
59
  /**
54
60
  *
55
61
  * @type {Array<MountedDataset>}
@@ -30,6 +30,7 @@ function instanceOfWorkspace(value) {
30
30
  isInstance = isInstance && "description" in value;
31
31
  isInstance = isInstance && "status" in value;
32
32
  isInstance = isInstance && "statusMessage" in value;
33
+ isInstance = isInstance && "environmentId" in value;
33
34
  isInstance = isInstance && "mountedDatasets" in value;
34
35
  isInstance = isInstance && "computeConfig" in value;
35
36
  isInstance = isInstance && "sharingType" in value;
@@ -54,6 +55,7 @@ function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
54
55
  'description': json['description'],
55
56
  'status': (0, Status_1.StatusFromJSON)(json['status']),
56
57
  'statusMessage': json['statusMessage'],
58
+ 'environmentId': json['environmentId'],
57
59
  'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
58
60
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
59
61
  'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
@@ -78,6 +80,7 @@ function WorkspaceToJSON(value) {
78
80
  'description': value.description,
79
81
  'status': (0, Status_1.StatusToJSON)(value.status),
80
82
  'statusMessage': value.statusMessage,
83
+ 'environmentId': value.environmentId,
81
84
  'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
82
85
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
83
86
  'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
@@ -32,13 +32,13 @@ export interface WorkspaceComputeConfig {
32
32
  * @type {number}
33
33
  * @memberof WorkspaceComputeConfig
34
34
  */
35
- memoryGib?: number;
35
+ memoryGiB?: number;
36
36
  /**
37
37
  * Persistent storage volume size allocated to the workspace in GiB.
38
38
  * @type {number}
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
- volumeSizeGib?: number;
41
+ volumeSizeGiB?: number;
42
42
  /**
43
43
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
44
  * @type {{ [key: string]: string; }}
@@ -35,8 +35,8 @@ function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return {
36
36
  'containerImageUri': json['containerImageUri'],
37
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'],
38
+ 'memoryGiB': !(0, runtime_1.exists)(json, 'memoryGiB') ? undefined : json['memoryGiB'],
39
+ 'volumeSizeGiB': !(0, runtime_1.exists)(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
40
40
  'environmentVariables': !(0, runtime_1.exists)(json, 'environmentVariables') ? undefined : json['environmentVariables'],
41
41
  'localPort': !(0, runtime_1.exists)(json, 'localPort') ? undefined : json['localPort'],
42
42
  };
@@ -52,8 +52,8 @@ function WorkspaceComputeConfigToJSON(value) {
52
52
  return {
53
53
  'containerImageUri': value.containerImageUri,
54
54
  'cpu': value.cpu,
55
- 'memoryGib': value.memoryGib,
56
- 'volumeSizeGib': value.volumeSizeGib,
55
+ 'memoryGiB': value.memoryGiB,
56
+ 'volumeSizeGiB': value.volumeSizeGiB,
57
57
  'environmentVariables': value.environmentVariables,
58
58
  'localPort': value.localPort,
59
59
  };
@@ -36,6 +36,12 @@ export interface WorkspaceInput {
36
36
  * @memberof WorkspaceInput
37
37
  */
38
38
  mountedDatasets: Array<MountedDataset>;
39
+ /**
40
+ * ID of the predefined workspace environment to use.
41
+ * @type {string}
42
+ * @memberof WorkspaceInput
43
+ */
44
+ environmentId?: string | null;
39
45
  /**
40
46
  *
41
47
  * @type {WorkspaceComputeConfig}
@@ -42,6 +42,7 @@ function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'name': json['name'],
43
43
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
44
44
  'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
45
+ 'environmentId': !(0, runtime_1.exists)(json, 'environmentId') ? undefined : json['environmentId'],
45
46
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
46
47
  'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
47
48
  };
@@ -58,6 +59,7 @@ function WorkspaceInputToJSON(value) {
58
59
  'name': value.name,
59
60
  'description': value.description,
60
61
  'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
62
+ 'environmentId': value.environmentId,
61
63
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
62
64
  'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
63
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {