@cirrobio/api-client 0.11.0 → 0.11.2
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/apis/ExecutionApi.d.ts +15 -1
- package/dist/apis/ExecutionApi.js +40 -0
- package/dist/apis/WorkspacesApi.d.ts +11 -1
- package/dist/apis/WorkspacesApi.js +34 -0
- package/dist/esm/apis/ExecutionApi.d.ts +15 -1
- package/dist/esm/apis/ExecutionApi.js +41 -1
- package/dist/esm/apis/WorkspacesApi.d.ts +11 -1
- package/dist/esm/apis/WorkspacesApi.js +35 -1
- package/dist/esm/models/CostResponse.d.ts +51 -0
- package/dist/esm/models/CostResponse.js +51 -0
- package/dist/esm/models/FeatureFlags.d.ts +6 -0
- package/dist/esm/models/FeatureFlags.js +3 -0
- package/dist/esm/models/GroupCost.d.ts +37 -0
- package/dist/esm/models/GroupCost.js +45 -0
- package/dist/esm/models/TaskCost.d.ts +49 -0
- package/dist/esm/models/TaskCost.js +52 -0
- package/dist/esm/models/WorkspaceEnvironment.d.ts +62 -0
- package/dist/esm/models/WorkspaceEnvironment.js +59 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CostResponse.d.ts +51 -0
- package/dist/models/CostResponse.js +58 -0
- package/dist/models/FeatureFlags.d.ts +6 -0
- package/dist/models/FeatureFlags.js +3 -0
- package/dist/models/GroupCost.d.ts +37 -0
- package/dist/models/GroupCost.js +52 -0
- package/dist/models/TaskCost.d.ts +49 -0
- package/dist/models/TaskCost.js +59 -0
- package/dist/models/WorkspaceEnvironment.d.ts +62 -0
- package/dist/models/WorkspaceEnvironment.js +66 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
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 { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkspaceEnvironment
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkspaceEnvironment {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WorkspaceEnvironment
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WorkspaceEnvironment
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WorkspaceEnvironment
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WorkspaceEnvironment
|
|
41
|
+
*/
|
|
42
|
+
category: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {WorkspaceComputeConfig}
|
|
46
|
+
* @memberof WorkspaceEnvironment
|
|
47
|
+
*/
|
|
48
|
+
defaultComputeConfig: WorkspaceComputeConfig;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WorkspaceEnvironment
|
|
53
|
+
*/
|
|
54
|
+
owner: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the WorkspaceEnvironment interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfWorkspaceEnvironment(value: object): boolean;
|
|
60
|
+
export declare function WorkspaceEnvironmentFromJSON(json: any): WorkspaceEnvironment;
|
|
61
|
+
export declare function WorkspaceEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceEnvironment;
|
|
62
|
+
export declare function WorkspaceEnvironmentToJSON(value?: WorkspaceEnvironment | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WorkspaceEnvironment interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWorkspaceEnvironment(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "id" in value;
|
|
21
|
+
isInstance = isInstance && "name" in value;
|
|
22
|
+
isInstance = isInstance && "description" in value;
|
|
23
|
+
isInstance = isInstance && "category" in value;
|
|
24
|
+
isInstance = isInstance && "defaultComputeConfig" in value;
|
|
25
|
+
isInstance = isInstance && "owner" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
export function WorkspaceEnvironmentFromJSON(json) {
|
|
29
|
+
return WorkspaceEnvironmentFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'description': json['description'],
|
|
39
|
+
'category': json['category'],
|
|
40
|
+
'defaultComputeConfig': WorkspaceComputeConfigFromJSON(json['defaultComputeConfig']),
|
|
41
|
+
'owner': json['owner'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function WorkspaceEnvironmentToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value.id,
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'description': value.description,
|
|
55
|
+
'category': value.category,
|
|
56
|
+
'defaultComputeConfig': WorkspaceComputeConfigToJSON(value.defaultComputeConfig),
|
|
57
|
+
'owner': value.owner,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from './ComputeEnvironmentConfiguration';
|
|
|
22
22
|
export * from './ComputeEnvironmentConfigurationInput';
|
|
23
23
|
export * from './Contact';
|
|
24
24
|
export * from './ContactInput';
|
|
25
|
+
export * from './CostResponse';
|
|
25
26
|
export * from './CreateNotebookInstanceRequest';
|
|
26
27
|
export * from './CreateProjectAccessRequest';
|
|
27
28
|
export * from './CreateReferenceRequest';
|
|
@@ -69,6 +70,7 @@ export * from './GovernanceRequirement';
|
|
|
69
70
|
export * from './GovernanceScope';
|
|
70
71
|
export * from './GovernanceTrainingVerification';
|
|
71
72
|
export * from './GovernanceType';
|
|
73
|
+
export * from './GroupCost';
|
|
72
74
|
export * from './ImportDataRequest';
|
|
73
75
|
export * from './InviteUserRequest';
|
|
74
76
|
export * from './InviteUserResponse';
|
|
@@ -135,6 +137,7 @@ export * from './SystemInfoResponse';
|
|
|
135
137
|
export * from './Table';
|
|
136
138
|
export * from './Tag';
|
|
137
139
|
export * from './Task';
|
|
140
|
+
export * from './TaskCost';
|
|
138
141
|
export * from './TenantInfo';
|
|
139
142
|
export * from './UpdateDatasetRequest';
|
|
140
143
|
export * from './UpdateUserRequest';
|
|
@@ -149,5 +152,6 @@ export * from './ValidateFileRequirementsRequest';
|
|
|
149
152
|
export * from './Workspace';
|
|
150
153
|
export * from './WorkspaceComputeConfig';
|
|
151
154
|
export * from './WorkspaceConnectionResponse';
|
|
155
|
+
export * from './WorkspaceEnvironment';
|
|
152
156
|
export * from './WorkspaceInput';
|
|
153
157
|
export * from './WorkspaceSession';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export * from './ComputeEnvironmentConfiguration';
|
|
|
24
24
|
export * from './ComputeEnvironmentConfigurationInput';
|
|
25
25
|
export * from './Contact';
|
|
26
26
|
export * from './ContactInput';
|
|
27
|
+
export * from './CostResponse';
|
|
27
28
|
export * from './CreateNotebookInstanceRequest';
|
|
28
29
|
export * from './CreateProjectAccessRequest';
|
|
29
30
|
export * from './CreateReferenceRequest';
|
|
@@ -71,6 +72,7 @@ export * from './GovernanceRequirement';
|
|
|
71
72
|
export * from './GovernanceScope';
|
|
72
73
|
export * from './GovernanceTrainingVerification';
|
|
73
74
|
export * from './GovernanceType';
|
|
75
|
+
export * from './GroupCost';
|
|
74
76
|
export * from './ImportDataRequest';
|
|
75
77
|
export * from './InviteUserRequest';
|
|
76
78
|
export * from './InviteUserResponse';
|
|
@@ -137,6 +139,7 @@ export * from './SystemInfoResponse';
|
|
|
137
139
|
export * from './Table';
|
|
138
140
|
export * from './Tag';
|
|
139
141
|
export * from './Task';
|
|
142
|
+
export * from './TaskCost';
|
|
140
143
|
export * from './TenantInfo';
|
|
141
144
|
export * from './UpdateDatasetRequest';
|
|
142
145
|
export * from './UpdateUserRequest';
|
|
@@ -151,5 +154,6 @@ export * from './ValidateFileRequirementsRequest';
|
|
|
151
154
|
export * from './Workspace';
|
|
152
155
|
export * from './WorkspaceComputeConfig';
|
|
153
156
|
export * from './WorkspaceConnectionResponse';
|
|
157
|
+
export * from './WorkspaceEnvironment';
|
|
154
158
|
export * from './WorkspaceInput';
|
|
155
159
|
export * from './WorkspaceSession';
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { GroupCost } from './GroupCost';
|
|
13
|
+
import type { TaskCost } from './TaskCost';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CostResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CostResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Total cost
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CostResponse
|
|
24
|
+
*/
|
|
25
|
+
totalCost?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Costs grouped by the task status
|
|
28
|
+
* @type {Array<GroupCost>}
|
|
29
|
+
* @memberof CostResponse
|
|
30
|
+
*/
|
|
31
|
+
groups?: Array<GroupCost>;
|
|
32
|
+
/**
|
|
33
|
+
* Costs for each workflow task
|
|
34
|
+
* @type {Array<TaskCost>}
|
|
35
|
+
* @memberof CostResponse
|
|
36
|
+
*/
|
|
37
|
+
tasks?: Array<TaskCost>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this is an estimated cost
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof CostResponse
|
|
42
|
+
*/
|
|
43
|
+
isEstimate?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CostResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCostResponse(value: object): boolean;
|
|
49
|
+
export declare function CostResponseFromJSON(json: any): CostResponse;
|
|
50
|
+
export declare function CostResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CostResponse;
|
|
51
|
+
export declare function CostResponseToJSON(value?: CostResponse | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.CostResponseToJSON = exports.CostResponseFromJSONTyped = exports.CostResponseFromJSON = exports.instanceOfCostResponse = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const GroupCost_1 = require("./GroupCost");
|
|
19
|
+
const TaskCost_1 = require("./TaskCost");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CostResponse interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCostResponse(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfCostResponse = instanceOfCostResponse;
|
|
28
|
+
function CostResponseFromJSON(json) {
|
|
29
|
+
return CostResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.CostResponseFromJSON = CostResponseFromJSON;
|
|
32
|
+
function CostResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'totalCost': !(0, runtime_1.exists)(json, 'totalCost') ? undefined : json['totalCost'],
|
|
38
|
+
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : (json['groups'].map(GroupCost_1.GroupCostFromJSON)),
|
|
39
|
+
'tasks': !(0, runtime_1.exists)(json, 'tasks') ? undefined : (json['tasks'].map(TaskCost_1.TaskCostFromJSON)),
|
|
40
|
+
'isEstimate': !(0, runtime_1.exists)(json, 'isEstimate') ? undefined : json['isEstimate'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.CostResponseFromJSONTyped = CostResponseFromJSONTyped;
|
|
44
|
+
function CostResponseToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'totalCost': value.totalCost,
|
|
53
|
+
'groups': value.groups === undefined ? undefined : (value.groups.map(GroupCost_1.GroupCostToJSON)),
|
|
54
|
+
'tasks': value.tasks === undefined ? undefined : (value.tasks.map(TaskCost_1.TaskCostToJSON)),
|
|
55
|
+
'isEstimate': value.isEstimate,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.CostResponseToJSON = CostResponseToJSON;
|
|
@@ -33,6 +33,12 @@ export interface FeatureFlags {
|
|
|
33
33
|
* @memberof FeatureFlags
|
|
34
34
|
*/
|
|
35
35
|
projectRequestsEnabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof FeatureFlags
|
|
40
|
+
*/
|
|
41
|
+
workspacesEnabled: boolean;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the FeatureFlags interface.
|
|
@@ -22,6 +22,7 @@ function instanceOfFeatureFlags(value) {
|
|
|
22
22
|
isInstance = isInstance && "sftpEnabled" in value;
|
|
23
23
|
isInstance = isInstance && "governanceEnabled" in value;
|
|
24
24
|
isInstance = isInstance && "projectRequestsEnabled" in value;
|
|
25
|
+
isInstance = isInstance && "workspacesEnabled" in value;
|
|
25
26
|
return isInstance;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
|
|
@@ -37,6 +38,7 @@ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'sftpEnabled': json['sftpEnabled'],
|
|
38
39
|
'governanceEnabled': json['governanceEnabled'],
|
|
39
40
|
'projectRequestsEnabled': json['projectRequestsEnabled'],
|
|
41
|
+
'workspacesEnabled': json['workspacesEnabled'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
|
|
@@ -51,6 +53,7 @@ function FeatureFlagsToJSON(value) {
|
|
|
51
53
|
'sftpEnabled': value.sftpEnabled,
|
|
52
54
|
'governanceEnabled': value.governanceEnabled,
|
|
53
55
|
'projectRequestsEnabled': value.projectRequestsEnabled,
|
|
56
|
+
'workspacesEnabled': value.workspacesEnabled,
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 GroupCost
|
|
16
|
+
*/
|
|
17
|
+
export interface GroupCost {
|
|
18
|
+
/**
|
|
19
|
+
* Task status group
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GroupCost
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Cost
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GroupCost
|
|
28
|
+
*/
|
|
29
|
+
cost?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GroupCost interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGroupCost(value: object): boolean;
|
|
35
|
+
export declare function GroupCostFromJSON(json: any): GroupCost;
|
|
36
|
+
export declare function GroupCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupCost;
|
|
37
|
+
export declare function GroupCostToJSON(value?: GroupCost | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.GroupCostToJSON = exports.GroupCostFromJSONTyped = exports.GroupCostFromJSON = exports.instanceOfGroupCost = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the GroupCost interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfGroupCost(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfGroupCost = instanceOfGroupCost;
|
|
26
|
+
function GroupCostFromJSON(json) {
|
|
27
|
+
return GroupCostFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.GroupCostFromJSON = GroupCostFromJSON;
|
|
30
|
+
function GroupCostFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
36
|
+
'cost': !(0, runtime_1.exists)(json, 'cost') ? undefined : json['cost'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.GroupCostFromJSONTyped = GroupCostFromJSONTyped;
|
|
40
|
+
function GroupCostToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value.name,
|
|
49
|
+
'cost': value.cost,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.GroupCostToJSON = GroupCostToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 TaskCost
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskCost {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TaskCost
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TaskCost
|
|
28
|
+
*/
|
|
29
|
+
taskId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TaskCost
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TaskCost
|
|
40
|
+
*/
|
|
41
|
+
cost: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the TaskCost interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfTaskCost(value: object): boolean;
|
|
47
|
+
export declare function TaskCostFromJSON(json: any): TaskCost;
|
|
48
|
+
export declare function TaskCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskCost;
|
|
49
|
+
export declare function TaskCostToJSON(value?: TaskCost | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.TaskCostToJSON = exports.TaskCostFromJSONTyped = exports.TaskCostFromJSON = exports.instanceOfTaskCost = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the TaskCost interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfTaskCost(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "taskId" in value;
|
|
24
|
+
isInstance = isInstance && "status" in value;
|
|
25
|
+
isInstance = isInstance && "cost" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfTaskCost = instanceOfTaskCost;
|
|
29
|
+
function TaskCostFromJSON(json) {
|
|
30
|
+
return TaskCostFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.TaskCostFromJSON = TaskCostFromJSON;
|
|
33
|
+
function TaskCostFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'taskId': json['taskId'],
|
|
40
|
+
'status': json['status'],
|
|
41
|
+
'cost': json['cost'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.TaskCostFromJSONTyped = TaskCostFromJSONTyped;
|
|
45
|
+
function TaskCostToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'taskId': value.taskId,
|
|
55
|
+
'status': value.status,
|
|
56
|
+
'cost': value.cost,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.TaskCostToJSON = TaskCostToJSON;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkspaceEnvironment
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkspaceEnvironment {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WorkspaceEnvironment
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WorkspaceEnvironment
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WorkspaceEnvironment
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WorkspaceEnvironment
|
|
41
|
+
*/
|
|
42
|
+
category: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {WorkspaceComputeConfig}
|
|
46
|
+
* @memberof WorkspaceEnvironment
|
|
47
|
+
*/
|
|
48
|
+
defaultComputeConfig: WorkspaceComputeConfig;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WorkspaceEnvironment
|
|
53
|
+
*/
|
|
54
|
+
owner: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the WorkspaceEnvironment interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfWorkspaceEnvironment(value: object): boolean;
|
|
60
|
+
export declare function WorkspaceEnvironmentFromJSON(json: any): WorkspaceEnvironment;
|
|
61
|
+
export declare function WorkspaceEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceEnvironment;
|
|
62
|
+
export declare function WorkspaceEnvironmentToJSON(value?: WorkspaceEnvironment | null): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.WorkspaceEnvironmentToJSON = exports.WorkspaceEnvironmentFromJSONTyped = exports.WorkspaceEnvironmentFromJSON = exports.instanceOfWorkspaceEnvironment = void 0;
|
|
17
|
+
const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the WorkspaceEnvironment interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfWorkspaceEnvironment(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "category" in value;
|
|
27
|
+
isInstance = isInstance && "defaultComputeConfig" in value;
|
|
28
|
+
isInstance = isInstance && "owner" in value;
|
|
29
|
+
return isInstance;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfWorkspaceEnvironment = instanceOfWorkspaceEnvironment;
|
|
32
|
+
function WorkspaceEnvironmentFromJSON(json) {
|
|
33
|
+
return WorkspaceEnvironmentFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.WorkspaceEnvironmentFromJSON = WorkspaceEnvironmentFromJSON;
|
|
36
|
+
function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if ((json === undefined) || (json === null)) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'],
|
|
44
|
+
'category': json['category'],
|
|
45
|
+
'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['defaultComputeConfig']),
|
|
46
|
+
'owner': json['owner'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.WorkspaceEnvironmentFromJSONTyped = WorkspaceEnvironmentFromJSONTyped;
|
|
50
|
+
function WorkspaceEnvironmentToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'name': value.name,
|
|
60
|
+
'description': value.description,
|
|
61
|
+
'category': value.category,
|
|
62
|
+
'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.defaultComputeConfig),
|
|
63
|
+
'owner': value.owner,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.WorkspaceEnvironmentToJSON = WorkspaceEnvironmentToJSON;
|