@cirrobio/api-client 0.2.15 → 0.2.17
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/.openapi-generator/FILES +2 -0
- package/README.md +1 -1
- package/dist/models/Artifact.d.ts +38 -0
- package/dist/models/Artifact.js +54 -0
- package/dist/models/ArtifactType.d.ts +34 -0
- package/dist/models/ArtifactType.js +49 -0
- package/dist/models/CreateNotebookInstanceRequest.d.ts +6 -0
- package/dist/models/CreateNotebookInstanceRequest.js +2 -0
- package/dist/models/DatasetAssetsManifest.d.ts +7 -0
- package/dist/models/DatasetAssetsManifest.js +3 -0
- package/dist/models/NotebookInstance.d.ts +6 -0
- package/dist/models/NotebookInstance.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/Artifact.ts +82 -0
- package/src/models/ArtifactType.ts +48 -0
- package/src/models/CreateNotebookInstanceRequest.ts +8 -0
- package/src/models/DatasetAssetsManifest.ts +14 -0
- package/src/models/NotebookInstance.ts +9 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -31,6 +31,8 @@ src/models/AgentRegistration.ts
|
|
|
31
31
|
src/models/AgentStatus.ts
|
|
32
32
|
src/models/AllowedDataType.ts
|
|
33
33
|
src/models/ApproveProjectAccessRequest.ts
|
|
34
|
+
src/models/Artifact.ts
|
|
35
|
+
src/models/ArtifactType.ts
|
|
34
36
|
src/models/AuditEvent.ts
|
|
35
37
|
src/models/AuthInfo.ts
|
|
36
38
|
src/models/BillingAccount.ts
|
package/README.md
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
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 { ArtifactType } from './ArtifactType';
|
|
13
|
+
/**
|
|
14
|
+
* A secondary file or resource associated with a dataset
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Artifact
|
|
17
|
+
*/
|
|
18
|
+
export interface Artifact {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ArtifactType}
|
|
22
|
+
* @memberof Artifact
|
|
23
|
+
*/
|
|
24
|
+
type: ArtifactType;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Artifact
|
|
29
|
+
*/
|
|
30
|
+
relativePath: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the Artifact interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfArtifact(value: object): boolean;
|
|
36
|
+
export declare function ArtifactFromJSON(json: any): Artifact;
|
|
37
|
+
export declare function ArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): Artifact;
|
|
38
|
+
export declare function ArtifactToJSON(value?: Artifact | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ArtifactToJSON = exports.ArtifactFromJSONTyped = exports.ArtifactFromJSON = exports.instanceOfArtifact = void 0;
|
|
17
|
+
var ArtifactType_1 = require("./ArtifactType");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Artifact interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfArtifact(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "type" in value;
|
|
24
|
+
isInstance = isInstance && "relativePath" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfArtifact = instanceOfArtifact;
|
|
28
|
+
function ArtifactFromJSON(json) {
|
|
29
|
+
return ArtifactFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ArtifactFromJSON = ArtifactFromJSON;
|
|
32
|
+
function ArtifactFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'type': (0, ArtifactType_1.ArtifactTypeFromJSON)(json['type']),
|
|
38
|
+
'relativePath': json['relativePath'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ArtifactFromJSONTyped = ArtifactFromJSONTyped;
|
|
42
|
+
function ArtifactToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': (0, ArtifactType_1.ArtifactTypeToJSON)(value.type),
|
|
51
|
+
'relativePath': value.relativePath,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ArtifactToJSON = ArtifactToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 ArtifactType {
|
|
18
|
+
Metadata = "METADATA",
|
|
19
|
+
IngestManifest = "INGEST_MANIFEST",
|
|
20
|
+
WorkflowReport = "WORKFLOW_REPORT",
|
|
21
|
+
WorkflowLogs = "WORKFLOW_LOGS",
|
|
22
|
+
WorkflowDebugLogs = "WORKFLOW_DEBUG_LOGS",
|
|
23
|
+
WorkflowDag = "WORKFLOW_DAG",
|
|
24
|
+
WorkflowTimeline = "WORKFLOW_TIMELINE",
|
|
25
|
+
WorkflowTrace = "WORKFLOW_TRACE",
|
|
26
|
+
WorkflowParameters = "WORKFLOW_PARAMETERS",
|
|
27
|
+
WorkflowComputeConfig = "WORKFLOW_COMPUTE_CONFIG",
|
|
28
|
+
WorkflowOptions = "WORKFLOW_OPTIONS",
|
|
29
|
+
SampleSheet = "SAMPLE_SHEET",
|
|
30
|
+
Files = "FILES"
|
|
31
|
+
}
|
|
32
|
+
export declare function ArtifactTypeFromJSON(json: any): ArtifactType;
|
|
33
|
+
export declare function ArtifactTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactType;
|
|
34
|
+
export declare function ArtifactTypeToJSON(value?: ArtifactType | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ArtifactTypeToJSON = exports.ArtifactTypeFromJSONTyped = exports.ArtifactTypeFromJSON = exports.ArtifactType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ArtifactType;
|
|
23
|
+
(function (ArtifactType) {
|
|
24
|
+
ArtifactType["Metadata"] = "METADATA";
|
|
25
|
+
ArtifactType["IngestManifest"] = "INGEST_MANIFEST";
|
|
26
|
+
ArtifactType["WorkflowReport"] = "WORKFLOW_REPORT";
|
|
27
|
+
ArtifactType["WorkflowLogs"] = "WORKFLOW_LOGS";
|
|
28
|
+
ArtifactType["WorkflowDebugLogs"] = "WORKFLOW_DEBUG_LOGS";
|
|
29
|
+
ArtifactType["WorkflowDag"] = "WORKFLOW_DAG";
|
|
30
|
+
ArtifactType["WorkflowTimeline"] = "WORKFLOW_TIMELINE";
|
|
31
|
+
ArtifactType["WorkflowTrace"] = "WORKFLOW_TRACE";
|
|
32
|
+
ArtifactType["WorkflowParameters"] = "WORKFLOW_PARAMETERS";
|
|
33
|
+
ArtifactType["WorkflowComputeConfig"] = "WORKFLOW_COMPUTE_CONFIG";
|
|
34
|
+
ArtifactType["WorkflowOptions"] = "WORKFLOW_OPTIONS";
|
|
35
|
+
ArtifactType["SampleSheet"] = "SAMPLE_SHEET";
|
|
36
|
+
ArtifactType["Files"] = "FILES";
|
|
37
|
+
})(ArtifactType = exports.ArtifactType || (exports.ArtifactType = {}));
|
|
38
|
+
function ArtifactTypeFromJSON(json) {
|
|
39
|
+
return ArtifactTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.ArtifactTypeFromJSON = ArtifactTypeFromJSON;
|
|
42
|
+
function ArtifactTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
exports.ArtifactTypeFromJSONTyped = ArtifactTypeFromJSONTyped;
|
|
46
|
+
function ArtifactTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
exports.ArtifactTypeToJSON = ArtifactTypeToJSON;
|
|
@@ -33,6 +33,12 @@ export interface CreateNotebookInstanceRequest {
|
|
|
33
33
|
* @memberof CreateNotebookInstanceRequest
|
|
34
34
|
*/
|
|
35
35
|
acceleratorTypes: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* List of public git repositories to clone into the notebook instance.
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CreateNotebookInstanceRequest
|
|
40
|
+
*/
|
|
41
|
+
gitRepositories?: Array<string> | null;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {number}
|
|
@@ -39,6 +39,7 @@ function CreateNotebookInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'name': json['name'],
|
|
40
40
|
'instanceType': json['instanceType'],
|
|
41
41
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
42
|
+
'gitRepositories': !(0, runtime_1.exists)(json, 'gitRepositories') ? undefined : json['gitRepositories'],
|
|
42
43
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
43
44
|
'isSharedWithProject': !(0, runtime_1.exists)(json, 'isSharedWithProject') ? undefined : json['isSharedWithProject'],
|
|
44
45
|
};
|
|
@@ -55,6 +56,7 @@ function CreateNotebookInstanceRequestToJSON(value) {
|
|
|
55
56
|
'name': value.name,
|
|
56
57
|
'instanceType': value.instanceType,
|
|
57
58
|
'acceleratorTypes': value.acceleratorTypes,
|
|
59
|
+
'gitRepositories': value.gitRepositories,
|
|
58
60
|
'volumeSizeGB': value.volumeSizeGB,
|
|
59
61
|
'isSharedWithProject': value.isSharedWithProject,
|
|
60
62
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Artifact } from './Artifact';
|
|
12
13
|
import type { DatasetViz } from './DatasetViz';
|
|
13
14
|
import type { FileEntry } from './FileEntry';
|
|
14
15
|
import type { Table } from './Table';
|
|
@@ -48,6 +49,12 @@ export interface DatasetAssetsManifest {
|
|
|
48
49
|
* @memberof DatasetAssetsManifest
|
|
49
50
|
*/
|
|
50
51
|
tables?: Array<Table>;
|
|
52
|
+
/**
|
|
53
|
+
* Artifacts associated with the dataset
|
|
54
|
+
* @type {Array<Artifact>}
|
|
55
|
+
* @memberof DatasetAssetsManifest
|
|
56
|
+
*/
|
|
57
|
+
artifacts?: Array<Artifact>;
|
|
51
58
|
}
|
|
52
59
|
/**
|
|
53
60
|
* Check if a given object implements the DatasetAssetsManifest interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.DatasetAssetsManifestToJSON = exports.DatasetAssetsManifestFromJSONTyped = exports.DatasetAssetsManifestFromJSON = exports.instanceOfDatasetAssetsManifest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var Artifact_1 = require("./Artifact");
|
|
18
19
|
var DatasetViz_1 = require("./DatasetViz");
|
|
19
20
|
var FileEntry_1 = require("./FileEntry");
|
|
20
21
|
var Table_1 = require("./Table");
|
|
@@ -40,6 +41,7 @@ function DatasetAssetsManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'totalFiles': !(0, runtime_1.exists)(json, 'totalFiles') ? undefined : json['totalFiles'],
|
|
41
42
|
'viz': !(0, runtime_1.exists)(json, 'viz') ? undefined : (json['viz'].map(DatasetViz_1.DatasetVizFromJSON)),
|
|
42
43
|
'tables': !(0, runtime_1.exists)(json, 'tables') ? undefined : (json['tables'].map(Table_1.TableFromJSON)),
|
|
44
|
+
'artifacts': !(0, runtime_1.exists)(json, 'artifacts') ? undefined : (json['artifacts'].map(Artifact_1.ArtifactFromJSON)),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
exports.DatasetAssetsManifestFromJSONTyped = DatasetAssetsManifestFromJSONTyped;
|
|
@@ -56,6 +58,7 @@ function DatasetAssetsManifestToJSON(value) {
|
|
|
56
58
|
'totalFiles': value.totalFiles,
|
|
57
59
|
'viz': value.viz === undefined ? undefined : (value.viz.map(DatasetViz_1.DatasetVizToJSON)),
|
|
58
60
|
'tables': value.tables === undefined ? undefined : (value.tables.map(Table_1.TableToJSON)),
|
|
61
|
+
'artifacts': value.artifacts === undefined ? undefined : (value.artifacts.map(Artifact_1.ArtifactToJSON)),
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
exports.DatasetAssetsManifestToJSON = DatasetAssetsManifestToJSON;
|
|
@@ -52,6 +52,12 @@ export interface NotebookInstance {
|
|
|
52
52
|
* @memberof NotebookInstance
|
|
53
53
|
*/
|
|
54
54
|
acceleratorTypes: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof NotebookInstance
|
|
59
|
+
*/
|
|
60
|
+
gitRepositories: Array<string>;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {number}
|
|
@@ -26,6 +26,7 @@ function instanceOfNotebookInstance(value) {
|
|
|
26
26
|
isInstance = isInstance && "statusMessage" in value;
|
|
27
27
|
isInstance = isInstance && "instanceType" in value;
|
|
28
28
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
29
|
+
isInstance = isInstance && "gitRepositories" in value;
|
|
29
30
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
30
31
|
isInstance = isInstance && "isSharedWithProject" in value;
|
|
31
32
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -49,6 +50,7 @@ function NotebookInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'statusMessage': json['statusMessage'],
|
|
50
51
|
'instanceType': json['instanceType'],
|
|
51
52
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
53
|
+
'gitRepositories': json['gitRepositories'],
|
|
52
54
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
53
55
|
'isSharedWithProject': json['isSharedWithProject'],
|
|
54
56
|
'createdBy': json['createdBy'],
|
|
@@ -71,6 +73,7 @@ function NotebookInstanceToJSON(value) {
|
|
|
71
73
|
'statusMessage': value.statusMessage,
|
|
72
74
|
'instanceType': value.instanceType,
|
|
73
75
|
'acceleratorTypes': value.acceleratorTypes,
|
|
76
|
+
'gitRepositories': value.gitRepositories,
|
|
74
77
|
'volumeSizeGB': value.volumeSizeGB,
|
|
75
78
|
'isSharedWithProject': value.isSharedWithProject,
|
|
76
79
|
'createdBy': value.createdBy,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './AgentRegistration';
|
|
|
6
6
|
export * from './AgentStatus';
|
|
7
7
|
export * from './AllowedDataType';
|
|
8
8
|
export * from './ApproveProjectAccessRequest';
|
|
9
|
+
export * from './Artifact';
|
|
10
|
+
export * from './ArtifactType';
|
|
9
11
|
export * from './AuditEvent';
|
|
10
12
|
export * from './AuthInfo';
|
|
11
13
|
export * from './BillingAccount';
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __exportStar(require("./AgentRegistration"), exports);
|
|
|
24
24
|
__exportStar(require("./AgentStatus"), exports);
|
|
25
25
|
__exportStar(require("./AllowedDataType"), exports);
|
|
26
26
|
__exportStar(require("./ApproveProjectAccessRequest"), exports);
|
|
27
|
+
__exportStar(require("./Artifact"), exports);
|
|
28
|
+
__exportStar(require("./ArtifactType"), exports);
|
|
27
29
|
__exportStar(require("./AuditEvent"), exports);
|
|
28
30
|
__exportStar(require("./AuthInfo"), exports);
|
|
29
31
|
__exportStar(require("./BillingAccount"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ArtifactType } from './ArtifactType';
|
|
17
|
+
import {
|
|
18
|
+
ArtifactTypeFromJSON,
|
|
19
|
+
ArtifactTypeFromJSONTyped,
|
|
20
|
+
ArtifactTypeToJSON,
|
|
21
|
+
} from './ArtifactType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A secondary file or resource associated with a dataset
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Artifact
|
|
27
|
+
*/
|
|
28
|
+
export interface Artifact {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ArtifactType}
|
|
32
|
+
* @memberof Artifact
|
|
33
|
+
*/
|
|
34
|
+
type: ArtifactType;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Artifact
|
|
39
|
+
*/
|
|
40
|
+
relativePath: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Artifact interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfArtifact(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "type" in value;
|
|
49
|
+
isInstance = isInstance && "relativePath" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ArtifactFromJSON(json: any): Artifact {
|
|
55
|
+
return ArtifactFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): Artifact {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'type': ArtifactTypeFromJSON(json['type']),
|
|
65
|
+
'relativePath': json['relativePath'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ArtifactToJSON(value?: Artifact | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'type': ArtifactTypeToJSON(value.type),
|
|
79
|
+
'relativePath': value.relativePath,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum ArtifactType {
|
|
21
|
+
Metadata = 'METADATA',
|
|
22
|
+
IngestManifest = 'INGEST_MANIFEST',
|
|
23
|
+
WorkflowReport = 'WORKFLOW_REPORT',
|
|
24
|
+
WorkflowLogs = 'WORKFLOW_LOGS',
|
|
25
|
+
WorkflowDebugLogs = 'WORKFLOW_DEBUG_LOGS',
|
|
26
|
+
WorkflowDag = 'WORKFLOW_DAG',
|
|
27
|
+
WorkflowTimeline = 'WORKFLOW_TIMELINE',
|
|
28
|
+
WorkflowTrace = 'WORKFLOW_TRACE',
|
|
29
|
+
WorkflowParameters = 'WORKFLOW_PARAMETERS',
|
|
30
|
+
WorkflowComputeConfig = 'WORKFLOW_COMPUTE_CONFIG',
|
|
31
|
+
WorkflowOptions = 'WORKFLOW_OPTIONS',
|
|
32
|
+
SampleSheet = 'SAMPLE_SHEET',
|
|
33
|
+
Files = 'FILES'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
export function ArtifactTypeFromJSON(json: any): ArtifactType {
|
|
38
|
+
return ArtifactTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ArtifactTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactType {
|
|
42
|
+
return json as ArtifactType;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ArtifactTypeToJSON(value?: ArtifactType | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -37,6 +37,12 @@ export interface CreateNotebookInstanceRequest {
|
|
|
37
37
|
* @memberof CreateNotebookInstanceRequest
|
|
38
38
|
*/
|
|
39
39
|
acceleratorTypes: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* List of public git repositories to clone into the notebook instance.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CreateNotebookInstanceRequest
|
|
44
|
+
*/
|
|
45
|
+
gitRepositories?: Array<string> | null;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {number}
|
|
@@ -77,6 +83,7 @@ export function CreateNotebookInstanceRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
77
83
|
'name': json['name'],
|
|
78
84
|
'instanceType': json['instanceType'],
|
|
79
85
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
86
|
+
'gitRepositories': !exists(json, 'gitRepositories') ? undefined : json['gitRepositories'],
|
|
80
87
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
81
88
|
'isSharedWithProject': !exists(json, 'isSharedWithProject') ? undefined : json['isSharedWithProject'],
|
|
82
89
|
};
|
|
@@ -94,6 +101,7 @@ export function CreateNotebookInstanceRequestToJSON(value?: CreateNotebookInstan
|
|
|
94
101
|
'name': value.name,
|
|
95
102
|
'instanceType': value.instanceType,
|
|
96
103
|
'acceleratorTypes': value.acceleratorTypes,
|
|
104
|
+
'gitRepositories': value.gitRepositories,
|
|
97
105
|
'volumeSizeGB': value.volumeSizeGB,
|
|
98
106
|
'isSharedWithProject': value.isSharedWithProject,
|
|
99
107
|
};
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Artifact } from './Artifact';
|
|
17
|
+
import {
|
|
18
|
+
ArtifactFromJSON,
|
|
19
|
+
ArtifactFromJSONTyped,
|
|
20
|
+
ArtifactToJSON,
|
|
21
|
+
} from './Artifact';
|
|
16
22
|
import type { DatasetViz } from './DatasetViz';
|
|
17
23
|
import {
|
|
18
24
|
DatasetVizFromJSON,
|
|
@@ -68,6 +74,12 @@ export interface DatasetAssetsManifest {
|
|
|
68
74
|
* @memberof DatasetAssetsManifest
|
|
69
75
|
*/
|
|
70
76
|
tables?: Array<Table>;
|
|
77
|
+
/**
|
|
78
|
+
* Artifacts associated with the dataset
|
|
79
|
+
* @type {Array<Artifact>}
|
|
80
|
+
* @memberof DatasetAssetsManifest
|
|
81
|
+
*/
|
|
82
|
+
artifacts?: Array<Artifact>;
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
/**
|
|
@@ -94,6 +106,7 @@ export function DatasetAssetsManifestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
94
106
|
'totalFiles': !exists(json, 'totalFiles') ? undefined : json['totalFiles'],
|
|
95
107
|
'viz': !exists(json, 'viz') ? undefined : ((json['viz'] as Array<any>).map(DatasetVizFromJSON)),
|
|
96
108
|
'tables': !exists(json, 'tables') ? undefined : ((json['tables'] as Array<any>).map(TableFromJSON)),
|
|
109
|
+
'artifacts': !exists(json, 'artifacts') ? undefined : ((json['artifacts'] as Array<any>).map(ArtifactFromJSON)),
|
|
97
110
|
};
|
|
98
111
|
}
|
|
99
112
|
|
|
@@ -111,6 +124,7 @@ export function DatasetAssetsManifestToJSON(value?: DatasetAssetsManifest | null
|
|
|
111
124
|
'totalFiles': value.totalFiles,
|
|
112
125
|
'viz': value.viz === undefined ? undefined : ((value.viz as Array<any>).map(DatasetVizToJSON)),
|
|
113
126
|
'tables': value.tables === undefined ? undefined : ((value.tables as Array<any>).map(TableToJSON)),
|
|
127
|
+
'artifacts': value.artifacts === undefined ? undefined : ((value.artifacts as Array<any>).map(ArtifactToJSON)),
|
|
114
128
|
};
|
|
115
129
|
}
|
|
116
130
|
|
|
@@ -62,6 +62,12 @@ export interface NotebookInstance {
|
|
|
62
62
|
* @memberof NotebookInstance
|
|
63
63
|
*/
|
|
64
64
|
acceleratorTypes: Array<string>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof NotebookInstance
|
|
69
|
+
*/
|
|
70
|
+
gitRepositories: Array<string>;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {number}
|
|
@@ -105,6 +111,7 @@ export function instanceOfNotebookInstance(value: object): boolean {
|
|
|
105
111
|
isInstance = isInstance && "statusMessage" in value;
|
|
106
112
|
isInstance = isInstance && "instanceType" in value;
|
|
107
113
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
114
|
+
isInstance = isInstance && "gitRepositories" in value;
|
|
108
115
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
109
116
|
isInstance = isInstance && "isSharedWithProject" in value;
|
|
110
117
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -130,6 +137,7 @@ export function NotebookInstanceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
130
137
|
'statusMessage': json['statusMessage'],
|
|
131
138
|
'instanceType': json['instanceType'],
|
|
132
139
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
140
|
+
'gitRepositories': json['gitRepositories'],
|
|
133
141
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
134
142
|
'isSharedWithProject': json['isSharedWithProject'],
|
|
135
143
|
'createdBy': json['createdBy'],
|
|
@@ -153,6 +161,7 @@ export function NotebookInstanceToJSON(value?: NotebookInstance | null): any {
|
|
|
153
161
|
'statusMessage': value.statusMessage,
|
|
154
162
|
'instanceType': value.instanceType,
|
|
155
163
|
'acceleratorTypes': value.acceleratorTypes,
|
|
164
|
+
'gitRepositories': value.gitRepositories,
|
|
156
165
|
'volumeSizeGB': value.volumeSizeGB,
|
|
157
166
|
'isSharedWithProject': value.isSharedWithProject,
|
|
158
167
|
'createdBy': value.createdBy,
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './AgentRegistration';
|
|
|
8
8
|
export * from './AgentStatus';
|
|
9
9
|
export * from './AllowedDataType';
|
|
10
10
|
export * from './ApproveProjectAccessRequest';
|
|
11
|
+
export * from './Artifact';
|
|
12
|
+
export * from './ArtifactType';
|
|
11
13
|
export * from './AuditEvent';
|
|
12
14
|
export * from './AuthInfo';
|
|
13
15
|
export * from './BillingAccount';
|