@cirrobio/api-client 0.2.2 → 0.2.3
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/models/CreateNotebookInstanceRequest.d.ts +6 -0
- package/dist/models/CreateNotebookInstanceRequest.js +3 -0
- package/dist/models/GovernanceType.d.ts +1 -3
- package/dist/models/GovernanceType.js +0 -2
- package/dist/models/NotebookInstance.d.ts +6 -0
- package/dist/models/NotebookInstance.js +3 -0
- package/package.json +1 -1
- package/src/models/CreateNotebookInstanceRequest.ts +8 -0
- package/src/models/GovernanceType.ts +1 -3
- package/src/models/NotebookInstance.ts +9 -0
package/README.md
CHANGED
|
@@ -39,6 +39,12 @@ export interface CreateNotebookInstanceRequest {
|
|
|
39
39
|
* @memberof CreateNotebookInstanceRequest
|
|
40
40
|
*/
|
|
41
41
|
volumeSizeGB: number;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the notebook is shared with the project
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CreateNotebookInstanceRequest
|
|
46
|
+
*/
|
|
47
|
+
isSharedWithProject?: boolean;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the CreateNotebookInstanceRequest interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateNotebookInstanceRequestToJSON = exports.CreateNotebookInstanceRequestFromJSONTyped = exports.CreateNotebookInstanceRequestFromJSON = exports.instanceOfCreateNotebookInstanceRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CreateNotebookInstanceRequest interface.
|
|
19
20
|
*/
|
|
@@ -39,6 +40,7 @@ function CreateNotebookInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'instanceType': json['instanceType'],
|
|
40
41
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
41
42
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
43
|
+
'isSharedWithProject': !(0, runtime_1.exists)(json, 'isSharedWithProject') ? undefined : json['isSharedWithProject'],
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
exports.CreateNotebookInstanceRequestFromJSONTyped = CreateNotebookInstanceRequestFromJSONTyped;
|
|
@@ -54,6 +56,7 @@ function CreateNotebookInstanceRequestToJSON(value) {
|
|
|
54
56
|
'instanceType': value.instanceType,
|
|
55
57
|
'acceleratorTypes': value.acceleratorTypes,
|
|
56
58
|
'volumeSizeGB': value.volumeSizeGB,
|
|
59
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
exports.CreateNotebookInstanceRequestToJSON = CreateNotebookInstanceRequestToJSON;
|
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
export declare enum GovernanceType {
|
|
18
18
|
Document = "DOCUMENT",
|
|
19
19
|
Agreement = "AGREEMENT",
|
|
20
|
-
Training = "TRAINING"
|
|
21
|
-
Contact = "CONTACT",
|
|
22
|
-
Classification = "CLASSIFICATION"
|
|
20
|
+
Training = "TRAINING"
|
|
23
21
|
}
|
|
24
22
|
export declare function GovernanceTypeFromJSON(json: any): GovernanceType;
|
|
25
23
|
export declare function GovernanceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceType;
|
|
@@ -24,8 +24,6 @@ var GovernanceType;
|
|
|
24
24
|
GovernanceType["Document"] = "DOCUMENT";
|
|
25
25
|
GovernanceType["Agreement"] = "AGREEMENT";
|
|
26
26
|
GovernanceType["Training"] = "TRAINING";
|
|
27
|
-
GovernanceType["Contact"] = "CONTACT";
|
|
28
|
-
GovernanceType["Classification"] = "CLASSIFICATION";
|
|
29
27
|
})(GovernanceType = exports.GovernanceType || (exports.GovernanceType = {}));
|
|
30
28
|
function GovernanceTypeFromJSON(json) {
|
|
31
29
|
return GovernanceTypeFromJSONTyped(json, false);
|
|
@@ -27,6 +27,7 @@ function instanceOfNotebookInstance(value) {
|
|
|
27
27
|
isInstance = isInstance && "instanceType" in value;
|
|
28
28
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
29
29
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
30
|
+
isInstance = isInstance && "isSharedWithProject" in value;
|
|
30
31
|
isInstance = isInstance && "createdBy" in value;
|
|
31
32
|
isInstance = isInstance && "createdAt" in value;
|
|
32
33
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -49,6 +50,7 @@ function NotebookInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'instanceType': json['instanceType'],
|
|
50
51
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
51
52
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
53
|
+
'isSharedWithProject': json['isSharedWithProject'],
|
|
52
54
|
'createdBy': json['createdBy'],
|
|
53
55
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
56
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -70,6 +72,7 @@ function NotebookInstanceToJSON(value) {
|
|
|
70
72
|
'instanceType': value.instanceType,
|
|
71
73
|
'acceleratorTypes': value.acceleratorTypes,
|
|
72
74
|
'volumeSizeGB': value.volumeSizeGB,
|
|
75
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
73
76
|
'createdBy': value.createdBy,
|
|
74
77
|
'createdAt': (value.createdAt.toISOString()),
|
|
75
78
|
'updatedAt': (value.updatedAt.toISOString()),
|
package/package.json
CHANGED
|
@@ -43,6 +43,12 @@ export interface CreateNotebookInstanceRequest {
|
|
|
43
43
|
* @memberof CreateNotebookInstanceRequest
|
|
44
44
|
*/
|
|
45
45
|
volumeSizeGB: number;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the notebook is shared with the project
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CreateNotebookInstanceRequest
|
|
50
|
+
*/
|
|
51
|
+
isSharedWithProject?: boolean;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -72,6 +78,7 @@ export function CreateNotebookInstanceRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
72
78
|
'instanceType': json['instanceType'],
|
|
73
79
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
74
80
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
81
|
+
'isSharedWithProject': !exists(json, 'isSharedWithProject') ? undefined : json['isSharedWithProject'],
|
|
75
82
|
};
|
|
76
83
|
}
|
|
77
84
|
|
|
@@ -88,6 +95,7 @@ export function CreateNotebookInstanceRequestToJSON(value?: CreateNotebookInstan
|
|
|
88
95
|
'instanceType': value.instanceType,
|
|
89
96
|
'acceleratorTypes': value.acceleratorTypes,
|
|
90
97
|
'volumeSizeGB': value.volumeSizeGB,
|
|
98
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
91
99
|
};
|
|
92
100
|
}
|
|
93
101
|
|
|
@@ -68,6 +68,12 @@ export interface NotebookInstance {
|
|
|
68
68
|
* @memberof NotebookInstance
|
|
69
69
|
*/
|
|
70
70
|
volumeSizeGB: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof NotebookInstance
|
|
75
|
+
*/
|
|
76
|
+
isSharedWithProject: boolean;
|
|
71
77
|
/**
|
|
72
78
|
*
|
|
73
79
|
* @type {string}
|
|
@@ -100,6 +106,7 @@ export function instanceOfNotebookInstance(value: object): boolean {
|
|
|
100
106
|
isInstance = isInstance && "instanceType" in value;
|
|
101
107
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
102
108
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
109
|
+
isInstance = isInstance && "isSharedWithProject" in value;
|
|
103
110
|
isInstance = isInstance && "createdBy" in value;
|
|
104
111
|
isInstance = isInstance && "createdAt" in value;
|
|
105
112
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -124,6 +131,7 @@ export function NotebookInstanceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
124
131
|
'instanceType': json['instanceType'],
|
|
125
132
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
126
133
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
134
|
+
'isSharedWithProject': json['isSharedWithProject'],
|
|
127
135
|
'createdBy': json['createdBy'],
|
|
128
136
|
'createdAt': (new Date(json['createdAt'])),
|
|
129
137
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -146,6 +154,7 @@ export function NotebookInstanceToJSON(value?: NotebookInstance | null): any {
|
|
|
146
154
|
'instanceType': value.instanceType,
|
|
147
155
|
'acceleratorTypes': value.acceleratorTypes,
|
|
148
156
|
'volumeSizeGB': value.volumeSizeGB,
|
|
157
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
149
158
|
'createdBy': value.createdBy,
|
|
150
159
|
'createdAt': (value.createdAt.toISOString()),
|
|
151
160
|
'updatedAt': (value.updatedAt.toISOString()),
|