@cirrobio/api-client 0.12.7 → 0.12.9

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.12.7 --save
39
+ npm install @cirrobio/api-client@0.12.9 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -38,6 +38,12 @@ export interface Workspace {
38
38
  * @memberof Workspace
39
39
  */
40
40
  description: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Workspace
45
+ */
46
+ projectId: string;
41
47
  /**
42
48
  *
43
49
  * @type {Status}
@@ -25,6 +25,7 @@ export function instanceOfWorkspace(value) {
25
25
  isInstance = isInstance && "id" in value;
26
26
  isInstance = isInstance && "name" in value;
27
27
  isInstance = isInstance && "description" in value;
28
+ isInstance = isInstance && "projectId" in value;
28
29
  isInstance = isInstance && "status" in value;
29
30
  isInstance = isInstance && "statusMessage" in value;
30
31
  isInstance = isInstance && "environmentId" in value;
@@ -47,6 +48,7 @@ export function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'id': json['id'],
48
49
  'name': json['name'],
49
50
  'description': json['description'],
51
+ 'projectId': json['projectId'],
50
52
  'status': StatusFromJSON(json['status']),
51
53
  'statusMessage': json['statusMessage'],
52
54
  'environmentId': json['environmentId'],
@@ -73,6 +75,7 @@ export function WorkspaceToJSON(value) {
73
75
  'id': value.id,
74
76
  'name': value.name,
75
77
  'description': value.description,
78
+ 'projectId': value.projectId,
76
79
  'status': StatusToJSON(value.status),
77
80
  'statusMessage': value.statusMessage,
78
81
  'environmentId': value.environmentId,
@@ -39,6 +39,12 @@ export interface WorkspaceComputeConfig {
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
41
  volumeSizeGiB?: number;
42
+ /**
43
+ * Number of GPUs allocated to the workspace
44
+ * @type {number}
45
+ * @memberof WorkspaceComputeConfig
46
+ */
47
+ gpu?: number;
42
48
  /**
43
49
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
50
  * @type {{ [key: string]: string; }}
@@ -32,6 +32,7 @@ export function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'cpu': !exists(json, 'cpu') ? undefined : json['cpu'],
33
33
  'memoryGiB': !exists(json, 'memoryGiB') ? undefined : json['memoryGiB'],
34
34
  'volumeSizeGiB': !exists(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
35
+ 'gpu': !exists(json, 'gpu') ? undefined : json['gpu'],
35
36
  'environmentVariables': !exists(json, 'environmentVariables') ? undefined : json['environmentVariables'],
36
37
  'localPort': !exists(json, 'localPort') ? undefined : json['localPort'],
37
38
  };
@@ -48,6 +49,7 @@ export function WorkspaceComputeConfigToJSON(value) {
48
49
  'cpu': value.cpu,
49
50
  'memoryGiB': value.memoryGiB,
50
51
  'volumeSizeGiB': value.volumeSizeGiB,
52
+ 'gpu': value.gpu,
51
53
  'environmentVariables': value.environmentVariables,
52
54
  'localPort': value.localPort,
53
55
  };
@@ -38,6 +38,12 @@ export interface Workspace {
38
38
  * @memberof Workspace
39
39
  */
40
40
  description: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Workspace
45
+ */
46
+ projectId: string;
41
47
  /**
42
48
  *
43
49
  * @type {Status}
@@ -28,6 +28,7 @@ function instanceOfWorkspace(value) {
28
28
  isInstance = isInstance && "id" in value;
29
29
  isInstance = isInstance && "name" in value;
30
30
  isInstance = isInstance && "description" in value;
31
+ isInstance = isInstance && "projectId" in value;
31
32
  isInstance = isInstance && "status" in value;
32
33
  isInstance = isInstance && "statusMessage" in value;
33
34
  isInstance = isInstance && "environmentId" in value;
@@ -52,6 +53,7 @@ function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'id': json['id'],
53
54
  'name': json['name'],
54
55
  'description': json['description'],
56
+ 'projectId': json['projectId'],
55
57
  'status': (0, Status_1.StatusFromJSON)(json['status']),
56
58
  'statusMessage': json['statusMessage'],
57
59
  'environmentId': json['environmentId'],
@@ -79,6 +81,7 @@ function WorkspaceToJSON(value) {
79
81
  'id': value.id,
80
82
  'name': value.name,
81
83
  'description': value.description,
84
+ 'projectId': value.projectId,
82
85
  'status': (0, Status_1.StatusToJSON)(value.status),
83
86
  'statusMessage': value.statusMessage,
84
87
  'environmentId': value.environmentId,
@@ -39,6 +39,12 @@ export interface WorkspaceComputeConfig {
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
41
  volumeSizeGiB?: number;
42
+ /**
43
+ * Number of GPUs allocated to the workspace
44
+ * @type {number}
45
+ * @memberof WorkspaceComputeConfig
46
+ */
47
+ gpu?: number;
42
48
  /**
43
49
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
50
  * @type {{ [key: string]: string; }}
@@ -37,6 +37,7 @@ function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'cpu': !(0, runtime_1.exists)(json, 'cpu') ? undefined : json['cpu'],
38
38
  'memoryGiB': !(0, runtime_1.exists)(json, 'memoryGiB') ? undefined : json['memoryGiB'],
39
39
  'volumeSizeGiB': !(0, runtime_1.exists)(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
40
+ 'gpu': !(0, runtime_1.exists)(json, 'gpu') ? undefined : json['gpu'],
40
41
  'environmentVariables': !(0, runtime_1.exists)(json, 'environmentVariables') ? undefined : json['environmentVariables'],
41
42
  'localPort': !(0, runtime_1.exists)(json, 'localPort') ? undefined : json['localPort'],
42
43
  };
@@ -54,6 +55,7 @@ function WorkspaceComputeConfigToJSON(value) {
54
55
  'cpu': value.cpu,
55
56
  'memoryGiB': value.memoryGiB,
56
57
  'volumeSizeGiB': value.volumeSizeGiB,
58
+ 'gpu': value.gpu,
57
59
  'environmentVariables': value.environmentVariables,
58
60
  'localPort': value.localPort,
59
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.7",
3
+ "version": "0.12.9",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {