@cirrobio/api-client 0.0.3-alpha → 0.0.4-alpha

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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +1 -1
  3. package/dist/apis/MetadataApi.d.ts +29 -0
  4. package/dist/apis/MetadataApi.js +133 -0
  5. package/dist/apis/NotebooksApi.js +6 -6
  6. package/dist/apis/ProcessesApi.d.ts +22 -6
  7. package/dist/apis/ProcessesApi.js +66 -7
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/models/CustomPipelineSettings.d.ts +61 -0
  11. package/dist/models/CustomPipelineSettings.js +60 -0
  12. package/dist/models/Process.d.ts +19 -1
  13. package/dist/models/Process.js +8 -1
  14. package/dist/models/ProcessDetail.d.ts +99 -0
  15. package/dist/models/ProcessDetail.js +85 -0
  16. package/dist/models/ProjectMetrics.d.ts +8 -6
  17. package/dist/models/ProjectMetrics.js +3 -4
  18. package/dist/models/ProjectSettings.d.ts +24 -0
  19. package/dist/models/ProjectSettings.js +8 -0
  20. package/dist/models/ReferenceType.d.ts +20 -0
  21. package/dist/models/ReferenceType.js +9 -0
  22. package/dist/models/Sample.d.ts +39 -0
  23. package/dist/models/Sample.js +53 -0
  24. package/dist/models/index.d.ts +3 -0
  25. package/dist/models/index.js +3 -0
  26. package/package.json +1 -1
  27. package/src/apis/MetadataApi.ts +72 -0
  28. package/src/apis/NotebooksApi.ts +6 -6
  29. package/src/apis/ProcessesApi.ts +63 -8
  30. package/src/apis/index.ts +1 -0
  31. package/src/models/CustomPipelineSettings.ts +105 -0
  32. package/src/models/Process.ts +27 -2
  33. package/src/models/ProcessDetail.ts +177 -0
  34. package/src/models/ProjectMetrics.ts +7 -9
  35. package/src/models/ProjectSettings.ts +32 -0
  36. package/src/models/ReferenceType.ts +27 -0
  37. package/src/models/Sample.ts +75 -0
  38. package/src/models/index.ts +3 -0
@@ -0,0 +1,99 @@
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 { CustomPipelineSettings } from './CustomPipelineSettings';
13
+ import type { Executor } from './Executor';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProcessDetail
18
+ */
19
+ export interface ProcessDetail {
20
+ /**
21
+ * Unique ID of the Process
22
+ * @type {string}
23
+ * @memberof ProcessDetail
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ProcessDetail
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ProcessDetail
36
+ */
37
+ description: string;
38
+ /**
39
+ *
40
+ * @type {Executor}
41
+ * @memberof ProcessDetail
42
+ */
43
+ executor: Executor;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ProcessDetail
48
+ */
49
+ documentationUrl: string;
50
+ /**
51
+ * Description of the files to be uploaded (optional)
52
+ * @type {string}
53
+ * @memberof ProcessDetail
54
+ */
55
+ fileRequirementsMessage?: string;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof ProcessDetail
60
+ */
61
+ childProcessIds: Array<string>;
62
+ /**
63
+ *
64
+ * @type {Array<string>}
65
+ * @memberof ProcessDetail
66
+ */
67
+ parentProcessIds: Array<string>;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof ProcessDetail
72
+ */
73
+ owner: string;
74
+ /**
75
+ *
76
+ * @type {Array<string>}
77
+ * @memberof ProcessDetail
78
+ */
79
+ linkedProjectIds: Array<string>;
80
+ /**
81
+ *
82
+ * @type {CustomPipelineSettings}
83
+ * @memberof ProcessDetail
84
+ */
85
+ customSettings: CustomPipelineSettings;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof ProcessDetail
90
+ */
91
+ isArchived: boolean;
92
+ }
93
+ /**
94
+ * Check if a given object implements the ProcessDetail interface.
95
+ */
96
+ export declare function instanceOfProcessDetail(value: object): boolean;
97
+ export declare function ProcessDetailFromJSON(json: any): ProcessDetail;
98
+ export declare function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetail;
99
+ export declare function ProcessDetailToJSON(value?: ProcessDetail | null): any;
@@ -0,0 +1,85 @@
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.ProcessDetailToJSON = exports.ProcessDetailFromJSONTyped = exports.ProcessDetailFromJSON = exports.instanceOfProcessDetail = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CustomPipelineSettings_1 = require("./CustomPipelineSettings");
19
+ var Executor_1 = require("./Executor");
20
+ /**
21
+ * Check if a given object implements the ProcessDetail interface.
22
+ */
23
+ function instanceOfProcessDetail(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "name" in value;
27
+ isInstance = isInstance && "description" in value;
28
+ isInstance = isInstance && "executor" in value;
29
+ isInstance = isInstance && "documentationUrl" in value;
30
+ isInstance = isInstance && "childProcessIds" in value;
31
+ isInstance = isInstance && "parentProcessIds" in value;
32
+ isInstance = isInstance && "owner" in value;
33
+ isInstance = isInstance && "linkedProjectIds" in value;
34
+ isInstance = isInstance && "customSettings" in value;
35
+ isInstance = isInstance && "isArchived" in value;
36
+ return isInstance;
37
+ }
38
+ exports.instanceOfProcessDetail = instanceOfProcessDetail;
39
+ function ProcessDetailFromJSON(json) {
40
+ return ProcessDetailFromJSONTyped(json, false);
41
+ }
42
+ exports.ProcessDetailFromJSON = ProcessDetailFromJSON;
43
+ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'description': json['description'],
51
+ 'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
52
+ 'documentationUrl': json['documentationUrl'],
53
+ 'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
54
+ 'childProcessIds': json['childProcessIds'],
55
+ 'parentProcessIds': json['parentProcessIds'],
56
+ 'owner': json['owner'],
57
+ 'linkedProjectIds': json['linkedProjectIds'],
58
+ 'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
59
+ 'isArchived': json['isArchived'],
60
+ };
61
+ }
62
+ exports.ProcessDetailFromJSONTyped = ProcessDetailFromJSONTyped;
63
+ function ProcessDetailToJSON(value) {
64
+ if (value === undefined) {
65
+ return undefined;
66
+ }
67
+ if (value === null) {
68
+ return null;
69
+ }
70
+ return {
71
+ 'id': value.id,
72
+ 'name': value.name,
73
+ 'description': value.description,
74
+ 'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
75
+ 'documentationUrl': value.documentationUrl,
76
+ 'fileRequirementsMessage': value.fileRequirementsMessage,
77
+ 'childProcessIds': value.childProcessIds,
78
+ 'parentProcessIds': value.parentProcessIds,
79
+ 'owner': value.owner,
80
+ 'linkedProjectIds': value.linkedProjectIds,
81
+ 'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
82
+ 'isArchived': value.isArchived,
83
+ };
84
+ }
85
+ exports.ProcessDetailToJSON = ProcessDetailToJSON;
@@ -22,19 +22,21 @@ export interface ProjectMetrics {
22
22
  */
23
23
  projectId: string;
24
24
  /**
25
- *
26
- * @type {{ [key: string]: any; }}
25
+ * Costs by service by month
26
+ * @type {{ [key: string]: { [key: string]: number; }; }}
27
27
  * @memberof ProjectMetrics
28
28
  */
29
- costs: {
30
- [key: string]: any;
29
+ costs?: {
30
+ [key: string]: {
31
+ [key: string]: number;
32
+ };
31
33
  };
32
34
  /**
33
- *
35
+ * Storage usage by tier by day
34
36
  * @type {{ [key: string]: any; }}
35
37
  * @memberof ProjectMetrics
36
38
  */
37
- storageMetrics: {
39
+ storageMetrics?: {
38
40
  [key: string]: any;
39
41
  };
40
42
  }
@@ -14,14 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectMetricsToJSON = exports.ProjectMetricsFromJSONTyped = exports.ProjectMetricsFromJSON = exports.instanceOfProjectMetrics = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the ProjectMetrics interface.
19
20
  */
20
21
  function instanceOfProjectMetrics(value) {
21
22
  var isInstance = true;
22
23
  isInstance = isInstance && "projectId" in value;
23
- isInstance = isInstance && "costs" in value;
24
- isInstance = isInstance && "storageMetrics" in value;
25
24
  return isInstance;
26
25
  }
27
26
  exports.instanceOfProjectMetrics = instanceOfProjectMetrics;
@@ -35,8 +34,8 @@ function ProjectMetricsFromJSONTyped(json, ignoreDiscriminator) {
35
34
  }
36
35
  return {
37
36
  'projectId': json['projectId'],
38
- 'costs': json['costs'],
39
- 'storageMetrics': json['storageMetrics'],
37
+ 'costs': !(0, runtime_1.exists)(json, 'costs') ? undefined : json['costs'],
38
+ 'storageMetrics': !(0, runtime_1.exists)(json, 'storageMetrics') ? undefined : json['storageMetrics'],
40
39
  };
41
40
  }
42
41
  exports.ProjectMetricsFromJSONTyped = ProjectMetricsFromJSONTyped;
@@ -82,6 +82,30 @@ export interface ProjectSettings {
82
82
  * @memberof ProjectSettings
83
83
  */
84
84
  serviceConnections?: Array<string>;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof ProjectSettings
89
+ */
90
+ createVpc?: boolean;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ProjectSettings
95
+ */
96
+ vpcId?: string;
97
+ /**
98
+ *
99
+ * @type {Array<string>}
100
+ * @memberof ProjectSettings
101
+ */
102
+ batchSubnets?: Array<string>;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof ProjectSettings
107
+ */
108
+ kmsArn?: string;
85
109
  }
86
110
  /**
87
111
  * Check if a given object implements the ProjectSettings interface.
@@ -44,6 +44,10 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
45
45
  'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
46
46
  'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
47
+ 'createVpc': !(0, runtime_1.exists)(json, 'createVpc') ? undefined : json['createVpc'],
48
+ 'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
49
+ 'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
50
+ 'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
47
51
  };
48
52
  }
49
53
  exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
@@ -66,6 +70,10 @@ function ProjectSettingsToJSON(value) {
66
70
  'maxSpotVCPU': value.maxSpotVCPU,
67
71
  'retentionPolicyDays': value.retentionPolicyDays,
68
72
  'serviceConnections': value.serviceConnections,
73
+ 'createVpc': value.createVpc,
74
+ 'vpcId': value.vpcId,
75
+ 'batchSubnets': value.batchSubnets,
76
+ 'kmsArn': value.kmsArn,
69
77
  };
70
78
  }
71
79
  exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
@@ -21,6 +21,26 @@ export interface ReferenceType {
21
21
  * @memberof ReferenceType
22
22
  */
23
23
  name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReferenceType
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ReferenceType
34
+ */
35
+ directory: string;
36
+ /**
37
+ *
38
+ * @type {Array<{ [key: string]: any; }>}
39
+ * @memberof ReferenceType
40
+ */
41
+ validation: Array<{
42
+ [key: string]: any;
43
+ }>;
24
44
  }
25
45
  /**
26
46
  * Check if a given object implements the ReferenceType interface.
@@ -20,6 +20,9 @@ exports.ReferenceTypeToJSON = exports.ReferenceTypeFromJSONTyped = exports.Refer
20
20
  function instanceOfReferenceType(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "directory" in value;
25
+ isInstance = isInstance && "validation" in value;
23
26
  return isInstance;
24
27
  }
25
28
  exports.instanceOfReferenceType = instanceOfReferenceType;
@@ -33,6 +36,9 @@ function ReferenceTypeFromJSONTyped(json, ignoreDiscriminator) {
33
36
  }
34
37
  return {
35
38
  'name': json['name'],
39
+ 'description': json['description'],
40
+ 'directory': json['directory'],
41
+ 'validation': json['validation'],
36
42
  };
37
43
  }
38
44
  exports.ReferenceTypeFromJSONTyped = ReferenceTypeFromJSONTyped;
@@ -45,6 +51,9 @@ function ReferenceTypeToJSON(value) {
45
51
  }
46
52
  return {
47
53
  'name': value.name,
54
+ 'description': value.description,
55
+ 'directory': value.directory,
56
+ 'validation': value.validation,
48
57
  };
49
58
  }
50
59
  exports.ReferenceTypeToJSON = ReferenceTypeToJSON;
@@ -0,0 +1,39 @@
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
+ * @interface Sample
16
+ */
17
+ export interface Sample {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Sample
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof Sample
28
+ */
29
+ metadata: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the Sample interface.
35
+ */
36
+ export declare function instanceOfSample(value: object): boolean;
37
+ export declare function SampleFromJSON(json: any): Sample;
38
+ export declare function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sample;
39
+ export declare function SampleToJSON(value?: Sample | null): any;
@@ -0,0 +1,53 @@
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.SampleToJSON = exports.SampleFromJSONTyped = exports.SampleFromJSON = exports.instanceOfSample = void 0;
17
+ /**
18
+ * Check if a given object implements the Sample interface.
19
+ */
20
+ function instanceOfSample(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "metadata" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSample = instanceOfSample;
27
+ function SampleFromJSON(json) {
28
+ return SampleFromJSONTyped(json, false);
29
+ }
30
+ exports.SampleFromJSON = SampleFromJSON;
31
+ function SampleFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'metadata': json['metadata'],
38
+ };
39
+ }
40
+ exports.SampleFromJSONTyped = SampleFromJSONTyped;
41
+ function SampleToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'name': value.name,
50
+ 'metadata': value.metadata,
51
+ };
52
+ }
53
+ exports.SampleToJSON = SampleToJSON;
@@ -5,6 +5,7 @@ export * from './CloudAccount';
5
5
  export * from './Contact';
6
6
  export * from './CreateNotebookInstanceRequest';
7
7
  export * from './CreateResponse';
8
+ export * from './CustomPipelineSettings';
8
9
  export * from './CustomerType';
9
10
  export * from './Dataset';
10
11
  export * from './DatasetDetail';
@@ -16,6 +17,7 @@ export * from './LogEntry';
16
17
  export * from './NotebookInstance';
17
18
  export * from './OpenNotebookInstanceResponse';
18
19
  export * from './Process';
20
+ export * from './ProcessDetail';
19
21
  export * from './Project';
20
22
  export * from './ProjectDetail';
21
23
  export * from './ProjectMetrics';
@@ -25,6 +27,7 @@ export * from './ProjectSettings';
25
27
  export * from './ReferenceType';
26
28
  export * from './Region';
27
29
  export * from './RegisterDatasetRequest';
30
+ export * from './Sample';
28
31
  export * from './ServiceConnection';
29
32
  export * from './SetUserProjectRoleRequest';
30
33
  export * from './StopExecutionResponse';
@@ -23,6 +23,7 @@ __exportStar(require("./CloudAccount"), exports);
23
23
  __exportStar(require("./Contact"), exports);
24
24
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
25
25
  __exportStar(require("./CreateResponse"), exports);
26
+ __exportStar(require("./CustomPipelineSettings"), exports);
26
27
  __exportStar(require("./CustomerType"), exports);
27
28
  __exportStar(require("./Dataset"), exports);
28
29
  __exportStar(require("./DatasetDetail"), exports);
@@ -34,6 +35,7 @@ __exportStar(require("./LogEntry"), exports);
34
35
  __exportStar(require("./NotebookInstance"), exports);
35
36
  __exportStar(require("./OpenNotebookInstanceResponse"), exports);
36
37
  __exportStar(require("./Process"), exports);
38
+ __exportStar(require("./ProcessDetail"), exports);
37
39
  __exportStar(require("./Project"), exports);
38
40
  __exportStar(require("./ProjectDetail"), exports);
39
41
  __exportStar(require("./ProjectMetrics"), exports);
@@ -43,6 +45,7 @@ __exportStar(require("./ProjectSettings"), exports);
43
45
  __exportStar(require("./ReferenceType"), exports);
44
46
  __exportStar(require("./Region"), exports);
45
47
  __exportStar(require("./RegisterDatasetRequest"), exports);
48
+ __exportStar(require("./Sample"), exports);
46
49
  __exportStar(require("./ServiceConnection"), exports);
47
50
  __exportStar(require("./SetUserProjectRoleRequest"), exports);
48
51
  __exportStar(require("./StopExecutionResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.3-alpha",
3
+ "version": "0.0.4-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -0,0 +1,72 @@
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
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Sample,
19
+ } from '../models/index';
20
+ import {
21
+ SampleFromJSON,
22
+ SampleToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface GetProjectSamplesRequest {
26
+ projectId: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class MetadataApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ * Get project samples
36
+ */
37
+ async getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>> {
38
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
39
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectSamples.');
40
+ }
41
+
42
+ const queryParameters: any = {};
43
+
44
+ const headerParameters: runtime.HTTPHeaders = {};
45
+
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = await token("accessToken", []);
49
+
50
+ if (tokenString) {
51
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
+ }
53
+ }
54
+ const response = await this.request({
55
+ path: `/projects/{projectId}/metadata/samples`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SampleFromJSON));
62
+ }
63
+
64
+ /**
65
+ * Get project samples
66
+ */
67
+ async getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>> {
68
+ const response = await this.getProjectSamplesRaw(requestParameters, initOverrides);
69
+ return await response.value();
70
+ }
71
+
72
+ }
@@ -91,7 +91,7 @@ export class NotebooksApi extends runtime.BaseAPI {
91
91
  }
92
92
  }
93
93
  const response = await this.request({
94
- path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
94
+ path: `/projects/{projectId}/notebook-instances`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
95
95
  method: 'POST',
96
96
  headers: headerParameters,
97
97
  query: queryParameters,
@@ -132,7 +132,7 @@ export class NotebooksApi extends runtime.BaseAPI {
132
132
  }
133
133
  }
134
134
  const response = await this.request({
135
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
135
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
136
136
  method: 'DELETE',
137
137
  headers: headerParameters,
138
138
  query: queryParameters,
@@ -171,7 +171,7 @@ export class NotebooksApi extends runtime.BaseAPI {
171
171
  }
172
172
  }
173
173
  const response = await this.request({
174
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:generate-url`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
174
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:generate-url`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
175
175
  method: 'GET',
176
176
  headers: headerParameters,
177
177
  query: queryParameters,
@@ -211,7 +211,7 @@ export class NotebooksApi extends runtime.BaseAPI {
211
211
  }
212
212
  }
213
213
  const response = await this.request({
214
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:status`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
214
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:status`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
215
215
  method: 'GET',
216
216
  headers: headerParameters,
217
217
  query: queryParameters,
@@ -251,7 +251,7 @@ export class NotebooksApi extends runtime.BaseAPI {
251
251
  }
252
252
  }
253
253
  const response = await this.request({
254
- path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
254
+ path: `/projects/{projectId}/notebook-instances`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
255
255
  method: 'GET',
256
256
  headers: headerParameters,
257
257
  query: queryParameters,
@@ -291,7 +291,7 @@ export class NotebooksApi extends runtime.BaseAPI {
291
291
  }
292
292
  }
293
293
  const response = await this.request({
294
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:stop`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
294
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:stop`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
295
295
  method: 'POST',
296
296
  headers: headerParameters,
297
297
  query: queryParameters,