@cirrobio/api-client 0.1.21 → 0.1.23

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.
@@ -4,6 +4,7 @@ README.md
4
4
  package.json
5
5
  src/apis/AuditApi.ts
6
6
  src/apis/BillingApi.ts
7
+ src/apis/ComputeEnvironmentApi.ts
7
8
  src/apis/DashboardsApi.ts
8
9
  src/apis/DatasetsApi.ts
9
10
  src/apis/ExecutionApi.ts
@@ -20,6 +21,8 @@ src/apis/index.ts
20
21
  src/index.ts
21
22
  src/models/AWSCredentials.ts
22
23
  src/models/AccessType.ts
24
+ src/models/Agent.ts
25
+ src/models/AgentStatus.ts
23
26
  src/models/AllowedDataType.ts
24
27
  src/models/ApproveProjectAccessRequest.ts
25
28
  src/models/AuditEvent.ts
@@ -31,6 +34,7 @@ src/models/BudgetPeriod.ts
31
34
  src/models/CloudAccount.ts
32
35
  src/models/CloudAccountType.ts
33
36
  src/models/ColumnDefinition.ts
37
+ src/models/ComputeEnvironmentConfiguration.ts
34
38
  src/models/Contact.ts
35
39
  src/models/CreateNotebookInstanceRequest.ts
36
40
  src/models/CreateProjectAccessRequest.ts
@@ -44,6 +48,7 @@ src/models/Dataset.ts
44
48
  src/models/DatasetAssetsManifest.ts
45
49
  src/models/DatasetDetail.ts
46
50
  src/models/DatasetViz.ts
51
+ src/models/EnvironmentType.ts
47
52
  src/models/ErrorMessage.ts
48
53
  src/models/Executor.ts
49
54
  src/models/FeatureFlags.ts
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.1.21 --save
39
+ npm install @cirrobio/api-client@0.1.23 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,31 @@
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 * as runtime from '../runtime';
13
+ import type { ComputeEnvironmentConfiguration } from '../models/index';
14
+ export interface GetComputeEnvironmentsRequest {
15
+ projectId: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class ComputeEnvironmentApi extends runtime.BaseAPI {
21
+ /**
22
+ * Get a list of compute environments for a project
23
+ * Get compute environments
24
+ */
25
+ getComputeEnvironmentsRaw(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ComputeEnvironmentConfiguration>>>;
26
+ /**
27
+ * Get a list of compute environments for a project
28
+ * Get compute environments
29
+ */
30
+ getComputeEnvironments(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ComputeEnvironmentConfiguration>>;
31
+ }
@@ -0,0 +1,135 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.ComputeEnvironmentApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var ComputeEnvironmentApi = /** @class */ (function (_super) {
74
+ __extends(ComputeEnvironmentApi, _super);
75
+ function ComputeEnvironmentApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get a list of compute environments for a project
80
+ * Get compute environments
81
+ */
82
+ ComputeEnvironmentApi.prototype.getComputeEnvironmentsRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, token, tokenString, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
89
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getComputeEnvironments.');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
+ token = this.configuration.accessToken;
95
+ return [4 /*yield*/, token("accessToken", [])];
96
+ case 1:
97
+ tokenString = _a.sent();
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
+ }
101
+ _a.label = 2;
102
+ case 2: return [4 /*yield*/, this.request({
103
+ path: "/projects/{projectId}/compute-environments".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
104
+ method: 'GET',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ }, initOverrides)];
108
+ case 3:
109
+ response = _a.sent();
110
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ComputeEnvironmentConfigurationFromJSON); })];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ * Get a list of compute environments for a project
117
+ * Get compute environments
118
+ */
119
+ ComputeEnvironmentApi.prototype.getComputeEnvironments = function (requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ var response;
122
+ return __generator(this, function (_a) {
123
+ switch (_a.label) {
124
+ case 0: return [4 /*yield*/, this.getComputeEnvironmentsRaw(requestParameters, initOverrides)];
125
+ case 1:
126
+ response = _a.sent();
127
+ return [4 /*yield*/, response.value()];
128
+ case 2: return [2 /*return*/, _a.sent()];
129
+ }
130
+ });
131
+ });
132
+ };
133
+ return ComputeEnvironmentApi;
134
+ }(runtime.BaseAPI));
135
+ exports.ComputeEnvironmentApi = ComputeEnvironmentApi;
@@ -1,5 +1,6 @@
1
1
  export * from './AuditApi';
2
2
  export * from './BillingApi';
3
+ export * from './ComputeEnvironmentApi';
3
4
  export * from './DashboardsApi';
4
5
  export * from './DatasetsApi';
5
6
  export * from './ExecutionApi';
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AuditApi"), exports);
20
20
  __exportStar(require("./BillingApi"), exports);
21
+ __exportStar(require("./ComputeEnvironmentApi"), exports);
21
22
  __exportStar(require("./DashboardsApi"), exports);
22
23
  __exportStar(require("./DatasetsApi"), exports);
23
24
  __exportStar(require("./ExecutionApi"), exports);
@@ -0,0 +1,50 @@
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 { AgentStatus } from './AgentStatus';
13
+ /**
14
+ * Details of the agent
15
+ * @export
16
+ * @interface Agent
17
+ */
18
+ export interface Agent {
19
+ /**
20
+ * The unique ID of the agent
21
+ * @type {string}
22
+ * @memberof Agent
23
+ */
24
+ id?: string;
25
+ /**
26
+ * The display name of the agent
27
+ * @type {string}
28
+ * @memberof Agent
29
+ */
30
+ name?: string;
31
+ /**
32
+ *
33
+ * @type {any}
34
+ * @memberof Agent
35
+ */
36
+ tags?: any;
37
+ /**
38
+ *
39
+ * @type {AgentStatus}
40
+ * @memberof Agent
41
+ */
42
+ status: AgentStatus;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Agent interface.
46
+ */
47
+ export declare function instanceOfAgent(value: object): boolean;
48
+ export declare function AgentFromJSON(json: any): Agent;
49
+ export declare function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Agent;
50
+ export declare function AgentToJSON(value?: Agent | 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.AgentToJSON = exports.AgentFromJSONTyped = exports.AgentFromJSON = exports.instanceOfAgent = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var AgentStatus_1 = require("./AgentStatus");
19
+ /**
20
+ * Check if a given object implements the Agent interface.
21
+ */
22
+ function instanceOfAgent(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "status" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfAgent = instanceOfAgent;
28
+ function AgentFromJSON(json) {
29
+ return AgentFromJSONTyped(json, false);
30
+ }
31
+ exports.AgentFromJSON = AgentFromJSON;
32
+ function AgentFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
39
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
40
+ 'status': (0, AgentStatus_1.AgentStatusFromJSON)(json['status']),
41
+ };
42
+ }
43
+ exports.AgentFromJSONTyped = AgentFromJSONTyped;
44
+ function AgentToJSON(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
+ 'tags': value.tags,
55
+ 'status': (0, AgentStatus_1.AgentStatusToJSON)(value.status),
56
+ };
57
+ }
58
+ exports.AgentToJSON = AgentToJSON;
@@ -0,0 +1,23 @@
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
+ * The status of the agent
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum AgentStatus {
18
+ Online = "ONLINE",
19
+ Offline = "OFFLINE"
20
+ }
21
+ export declare function AgentStatusFromJSON(json: any): AgentStatus;
22
+ export declare function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentStatus;
23
+ export declare function AgentStatusToJSON(value?: AgentStatus | null): any;
@@ -0,0 +1,38 @@
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.AgentStatusToJSON = exports.AgentStatusFromJSONTyped = exports.AgentStatusFromJSON = exports.AgentStatus = void 0;
17
+ /**
18
+ * The status of the agent
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var AgentStatus;
23
+ (function (AgentStatus) {
24
+ AgentStatus["Online"] = "ONLINE";
25
+ AgentStatus["Offline"] = "OFFLINE";
26
+ })(AgentStatus = exports.AgentStatus || (exports.AgentStatus = {}));
27
+ function AgentStatusFromJSON(json) {
28
+ return AgentStatusFromJSONTyped(json, false);
29
+ }
30
+ exports.AgentStatusFromJSON = AgentStatusFromJSON;
31
+ function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.AgentStatusFromJSONTyped = AgentStatusFromJSONTyped;
35
+ function AgentStatusToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.AgentStatusToJSON = AgentStatusToJSON;
@@ -0,0 +1,75 @@
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 { Agent } from './Agent';
13
+ import type { EnvironmentType } from './EnvironmentType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ComputeEnvironmentConfiguration
18
+ */
19
+ export interface ComputeEnvironmentConfiguration {
20
+ /**
21
+ * The unique ID of the environment
22
+ * @type {string}
23
+ * @memberof ComputeEnvironmentConfiguration
24
+ */
25
+ id?: string;
26
+ /**
27
+ * The display name of the environment
28
+ * @type {string}
29
+ * @memberof ComputeEnvironmentConfiguration
30
+ */
31
+ name?: string;
32
+ /**
33
+ *
34
+ * @type {any}
35
+ * @memberof ComputeEnvironmentConfiguration
36
+ */
37
+ properties?: any;
38
+ /**
39
+ *
40
+ * @type {EnvironmentType}
41
+ * @memberof ComputeEnvironmentConfiguration
42
+ */
43
+ environmentType: EnvironmentType;
44
+ /**
45
+ * The agent associated with this environment (if applicable)
46
+ * @type {Agent}
47
+ * @memberof ComputeEnvironmentConfiguration
48
+ */
49
+ agent?: Agent | null;
50
+ /**
51
+ * The user who created the environment
52
+ * @type {string}
53
+ * @memberof ComputeEnvironmentConfiguration
54
+ */
55
+ createdBy?: string;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof ComputeEnvironmentConfiguration
60
+ */
61
+ createdAt: Date;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof ComputeEnvironmentConfiguration
66
+ */
67
+ updatedAt: Date;
68
+ }
69
+ /**
70
+ * Check if a given object implements the ComputeEnvironmentConfiguration interface.
71
+ */
72
+ export declare function instanceOfComputeEnvironmentConfiguration(value: object): boolean;
73
+ export declare function ComputeEnvironmentConfigurationFromJSON(json: any): ComputeEnvironmentConfiguration;
74
+ export declare function ComputeEnvironmentConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComputeEnvironmentConfiguration;
75
+ export declare function ComputeEnvironmentConfigurationToJSON(value?: ComputeEnvironmentConfiguration | null): any;
@@ -0,0 +1,69 @@
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.ComputeEnvironmentConfigurationToJSON = exports.ComputeEnvironmentConfigurationFromJSONTyped = exports.ComputeEnvironmentConfigurationFromJSON = exports.instanceOfComputeEnvironmentConfiguration = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Agent_1 = require("./Agent");
19
+ var EnvironmentType_1 = require("./EnvironmentType");
20
+ /**
21
+ * Check if a given object implements the ComputeEnvironmentConfiguration interface.
22
+ */
23
+ function instanceOfComputeEnvironmentConfiguration(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "environmentType" in value;
26
+ isInstance = isInstance && "createdAt" in value;
27
+ isInstance = isInstance && "updatedAt" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfComputeEnvironmentConfiguration = instanceOfComputeEnvironmentConfiguration;
31
+ function ComputeEnvironmentConfigurationFromJSON(json) {
32
+ return ComputeEnvironmentConfigurationFromJSONTyped(json, false);
33
+ }
34
+ exports.ComputeEnvironmentConfigurationFromJSON = ComputeEnvironmentConfigurationFromJSON;
35
+ function ComputeEnvironmentConfigurationFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
41
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
42
+ 'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : json['properties'],
43
+ 'environmentType': (0, EnvironmentType_1.EnvironmentTypeFromJSON)(json['environmentType']),
44
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : (0, Agent_1.AgentFromJSON)(json['agent']),
45
+ 'createdBy': !(0, runtime_1.exists)(json, 'createdBy') ? undefined : json['createdBy'],
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ exports.ComputeEnvironmentConfigurationFromJSONTyped = ComputeEnvironmentConfigurationFromJSONTyped;
51
+ function ComputeEnvironmentConfigurationToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+ 'id': value.id,
60
+ 'name': value.name,
61
+ 'properties': value.properties,
62
+ 'environmentType': (0, EnvironmentType_1.EnvironmentTypeToJSON)(value.environmentType),
63
+ 'agent': (0, Agent_1.AgentToJSON)(value.agent),
64
+ 'createdBy': value.createdBy,
65
+ 'createdAt': (value.createdAt.toISOString()),
66
+ 'updatedAt': (value.updatedAt.toISOString()),
67
+ };
68
+ }
69
+ exports.ComputeEnvironmentConfigurationToJSON = ComputeEnvironmentConfigurationToJSON;
@@ -0,0 +1,25 @@
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
+ * The type of compute environment
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum EnvironmentType {
18
+ None = "NONE",
19
+ LocalAgent = "LOCAL_AGENT",
20
+ AwsBatch = "AWS_BATCH",
21
+ AwsOmics = "AWS_OMICS"
22
+ }
23
+ export declare function EnvironmentTypeFromJSON(json: any): EnvironmentType;
24
+ export declare function EnvironmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnvironmentType;
25
+ export declare function EnvironmentTypeToJSON(value?: EnvironmentType | null): any;
@@ -0,0 +1,40 @@
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.EnvironmentTypeToJSON = exports.EnvironmentTypeFromJSONTyped = exports.EnvironmentTypeFromJSON = exports.EnvironmentType = void 0;
17
+ /**
18
+ * The type of compute environment
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var EnvironmentType;
23
+ (function (EnvironmentType) {
24
+ EnvironmentType["None"] = "NONE";
25
+ EnvironmentType["LocalAgent"] = "LOCAL_AGENT";
26
+ EnvironmentType["AwsBatch"] = "AWS_BATCH";
27
+ EnvironmentType["AwsOmics"] = "AWS_OMICS";
28
+ })(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
29
+ function EnvironmentTypeFromJSON(json) {
30
+ return EnvironmentTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.EnvironmentTypeFromJSON = EnvironmentTypeFromJSON;
33
+ function EnvironmentTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.EnvironmentTypeFromJSONTyped = EnvironmentTypeFromJSONTyped;
37
+ function EnvironmentTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.EnvironmentTypeToJSON = EnvironmentTypeToJSON;
@@ -59,6 +59,12 @@ export interface RunAnalysisRequest {
59
59
  * @memberof RunAnalysisRequest
60
60
  */
61
61
  notificationEmails: Array<string>;
62
+ /**
63
+ * The compute environment where to run the workflow, if not specified, it will run in AWS
64
+ * @type {string}
65
+ * @memberof RunAnalysisRequest
66
+ */
67
+ computeEnvironmentId?: string | null;
62
68
  }
63
69
  /**
64
70
  * Check if a given object implements the RunAnalysisRequest interface.
@@ -44,6 +44,7 @@ function RunAnalysisRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'resumeDatasetId': !(0, runtime_1.exists)(json, 'resumeDatasetId') ? undefined : json['resumeDatasetId'],
45
45
  'params': json['params'],
46
46
  'notificationEmails': json['notificationEmails'],
47
+ 'computeEnvironmentId': !(0, runtime_1.exists)(json, 'computeEnvironmentId') ? undefined : json['computeEnvironmentId'],
47
48
  };
48
49
  }
49
50
  exports.RunAnalysisRequestFromJSONTyped = RunAnalysisRequestFromJSONTyped;
@@ -62,6 +63,7 @@ function RunAnalysisRequestToJSON(value) {
62
63
  'resumeDatasetId': value.resumeDatasetId,
63
64
  'params': value.params,
64
65
  'notificationEmails': value.notificationEmails,
66
+ 'computeEnvironmentId': value.computeEnvironmentId,
65
67
  };
66
68
  }
67
69
  exports.RunAnalysisRequestToJSON = RunAnalysisRequestToJSON;
@@ -23,7 +23,8 @@ export declare enum Status {
23
23
  Deleting = "DELETING",
24
24
  Suspended = "SUSPENDED",
25
25
  Delete = "DELETE",
26
- Failed = "FAILED"
26
+ Failed = "FAILED",
27
+ Unknown = "UNKNOWN"
27
28
  }
28
29
  export declare function StatusFromJSON(json: any): Status;
29
30
  export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
@@ -30,6 +30,7 @@ var Status;
30
30
  Status["Suspended"] = "SUSPENDED";
31
31
  Status["Delete"] = "DELETE";
32
32
  Status["Failed"] = "FAILED";
33
+ Status["Unknown"] = "UNKNOWN";
33
34
  })(Status = exports.Status || (exports.Status = {}));
34
35
  function StatusFromJSON(json) {
35
36
  return StatusFromJSONTyped(json, false);
@@ -1,5 +1,7 @@
1
1
  export * from './AWSCredentials';
2
2
  export * from './AccessType';
3
+ export * from './Agent';
4
+ export * from './AgentStatus';
3
5
  export * from './AllowedDataType';
4
6
  export * from './ApproveProjectAccessRequest';
5
7
  export * from './AuditEvent';
@@ -11,6 +13,7 @@ export * from './BudgetPeriod';
11
13
  export * from './CloudAccount';
12
14
  export * from './CloudAccountType';
13
15
  export * from './ColumnDefinition';
16
+ export * from './ComputeEnvironmentConfiguration';
14
17
  export * from './Contact';
15
18
  export * from './CreateNotebookInstanceRequest';
16
19
  export * from './CreateProjectAccessRequest';
@@ -24,6 +27,7 @@ export * from './Dataset';
24
27
  export * from './DatasetAssetsManifest';
25
28
  export * from './DatasetDetail';
26
29
  export * from './DatasetViz';
30
+ export * from './EnvironmentType';
27
31
  export * from './ErrorMessage';
28
32
  export * from './Executor';
29
33
  export * from './FeatureFlags';
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AWSCredentials"), exports);
20
20
  __exportStar(require("./AccessType"), exports);
21
+ __exportStar(require("./Agent"), exports);
22
+ __exportStar(require("./AgentStatus"), exports);
21
23
  __exportStar(require("./AllowedDataType"), exports);
22
24
  __exportStar(require("./ApproveProjectAccessRequest"), exports);
23
25
  __exportStar(require("./AuditEvent"), exports);
@@ -29,6 +31,7 @@ __exportStar(require("./BudgetPeriod"), exports);
29
31
  __exportStar(require("./CloudAccount"), exports);
30
32
  __exportStar(require("./CloudAccountType"), exports);
31
33
  __exportStar(require("./ColumnDefinition"), exports);
34
+ __exportStar(require("./ComputeEnvironmentConfiguration"), exports);
32
35
  __exportStar(require("./Contact"), exports);
33
36
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
34
37
  __exportStar(require("./CreateProjectAccessRequest"), exports);
@@ -42,6 +45,7 @@ __exportStar(require("./Dataset"), exports);
42
45
  __exportStar(require("./DatasetAssetsManifest"), exports);
43
46
  __exportStar(require("./DatasetDetail"), exports);
44
47
  __exportStar(require("./DatasetViz"), exports);
48
+ __exportStar(require("./EnvironmentType"), exports);
45
49
  __exportStar(require("./ErrorMessage"), exports);
46
50
  __exportStar(require("./Executor"), exports);
47
51
  __exportStar(require("./FeatureFlags"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -0,0 +1,74 @@
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
+ ComputeEnvironmentConfiguration,
19
+ } from '../models/index';
20
+ import {
21
+ ComputeEnvironmentConfigurationFromJSON,
22
+ ComputeEnvironmentConfigurationToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface GetComputeEnvironmentsRequest {
26
+ projectId: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class ComputeEnvironmentApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ * Get a list of compute environments for a project
36
+ * Get compute environments
37
+ */
38
+ async getComputeEnvironmentsRaw(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ComputeEnvironmentConfiguration>>> {
39
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
40
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getComputeEnvironments.');
41
+ }
42
+
43
+ const queryParameters: any = {};
44
+
45
+ const headerParameters: runtime.HTTPHeaders = {};
46
+
47
+ if (this.configuration && this.configuration.accessToken) {
48
+ const token = this.configuration.accessToken;
49
+ const tokenString = await token("accessToken", []);
50
+
51
+ if (tokenString) {
52
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
53
+ }
54
+ }
55
+ const response = await this.request({
56
+ path: `/projects/{projectId}/compute-environments`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
57
+ method: 'GET',
58
+ headers: headerParameters,
59
+ query: queryParameters,
60
+ }, initOverrides);
61
+
62
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ComputeEnvironmentConfigurationFromJSON));
63
+ }
64
+
65
+ /**
66
+ * Get a list of compute environments for a project
67
+ * Get compute environments
68
+ */
69
+ async getComputeEnvironments(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ComputeEnvironmentConfiguration>> {
70
+ const response = await this.getComputeEnvironmentsRaw(requestParameters, initOverrides);
71
+ return await response.value();
72
+ }
73
+
74
+ }
package/src/apis/index.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AuditApi';
4
4
  export * from './BillingApi';
5
+ export * from './ComputeEnvironmentApi';
5
6
  export * from './DashboardsApi';
6
7
  export * from './DatasetsApi';
7
8
  export * from './ExecutionApi';
@@ -0,0 +1,97 @@
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 { AgentStatus } from './AgentStatus';
17
+ import {
18
+ AgentStatusFromJSON,
19
+ AgentStatusFromJSONTyped,
20
+ AgentStatusToJSON,
21
+ } from './AgentStatus';
22
+
23
+ /**
24
+ * Details of the agent
25
+ * @export
26
+ * @interface Agent
27
+ */
28
+ export interface Agent {
29
+ /**
30
+ * The unique ID of the agent
31
+ * @type {string}
32
+ * @memberof Agent
33
+ */
34
+ id?: string;
35
+ /**
36
+ * The display name of the agent
37
+ * @type {string}
38
+ * @memberof Agent
39
+ */
40
+ name?: string;
41
+ /**
42
+ *
43
+ * @type {any}
44
+ * @memberof Agent
45
+ */
46
+ tags?: any;
47
+ /**
48
+ *
49
+ * @type {AgentStatus}
50
+ * @memberof Agent
51
+ */
52
+ status: AgentStatus;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the Agent interface.
57
+ */
58
+ export function instanceOfAgent(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "status" in value;
61
+
62
+ return isInstance;
63
+ }
64
+
65
+ export function AgentFromJSON(json: any): Agent {
66
+ return AgentFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Agent {
70
+ if ((json === undefined) || (json === null)) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'id': !exists(json, 'id') ? undefined : json['id'],
76
+ 'name': !exists(json, 'name') ? undefined : json['name'],
77
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
78
+ 'status': AgentStatusFromJSON(json['status']),
79
+ };
80
+ }
81
+
82
+ export function AgentToJSON(value?: Agent | null): any {
83
+ if (value === undefined) {
84
+ return undefined;
85
+ }
86
+ if (value === null) {
87
+ return null;
88
+ }
89
+ return {
90
+
91
+ 'id': value.id,
92
+ 'name': value.name,
93
+ 'tags': value.tags,
94
+ 'status': AgentStatusToJSON(value.status),
95
+ };
96
+ }
97
+
@@ -0,0 +1,37 @@
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
+ * The status of the agent
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum AgentStatus {
21
+ Online = 'ONLINE',
22
+ Offline = 'OFFLINE'
23
+ }
24
+
25
+
26
+ export function AgentStatusFromJSON(json: any): AgentStatus {
27
+ return AgentStatusFromJSONTyped(json, false);
28
+ }
29
+
30
+ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentStatus {
31
+ return json as AgentStatus;
32
+ }
33
+
34
+ export function AgentStatusToJSON(value?: AgentStatus | null): any {
35
+ return value as any;
36
+ }
37
+
@@ -0,0 +1,137 @@
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 { Agent } from './Agent';
17
+ import {
18
+ AgentFromJSON,
19
+ AgentFromJSONTyped,
20
+ AgentToJSON,
21
+ } from './Agent';
22
+ import type { EnvironmentType } from './EnvironmentType';
23
+ import {
24
+ EnvironmentTypeFromJSON,
25
+ EnvironmentTypeFromJSONTyped,
26
+ EnvironmentTypeToJSON,
27
+ } from './EnvironmentType';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface ComputeEnvironmentConfiguration
33
+ */
34
+ export interface ComputeEnvironmentConfiguration {
35
+ /**
36
+ * The unique ID of the environment
37
+ * @type {string}
38
+ * @memberof ComputeEnvironmentConfiguration
39
+ */
40
+ id?: string;
41
+ /**
42
+ * The display name of the environment
43
+ * @type {string}
44
+ * @memberof ComputeEnvironmentConfiguration
45
+ */
46
+ name?: string;
47
+ /**
48
+ *
49
+ * @type {any}
50
+ * @memberof ComputeEnvironmentConfiguration
51
+ */
52
+ properties?: any;
53
+ /**
54
+ *
55
+ * @type {EnvironmentType}
56
+ * @memberof ComputeEnvironmentConfiguration
57
+ */
58
+ environmentType: EnvironmentType;
59
+ /**
60
+ * The agent associated with this environment (if applicable)
61
+ * @type {Agent}
62
+ * @memberof ComputeEnvironmentConfiguration
63
+ */
64
+ agent?: Agent | null;
65
+ /**
66
+ * The user who created the environment
67
+ * @type {string}
68
+ * @memberof ComputeEnvironmentConfiguration
69
+ */
70
+ createdBy?: string;
71
+ /**
72
+ *
73
+ * @type {Date}
74
+ * @memberof ComputeEnvironmentConfiguration
75
+ */
76
+ createdAt: Date;
77
+ /**
78
+ *
79
+ * @type {Date}
80
+ * @memberof ComputeEnvironmentConfiguration
81
+ */
82
+ updatedAt: Date;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the ComputeEnvironmentConfiguration interface.
87
+ */
88
+ export function instanceOfComputeEnvironmentConfiguration(value: object): boolean {
89
+ let isInstance = true;
90
+ isInstance = isInstance && "environmentType" in value;
91
+ isInstance = isInstance && "createdAt" in value;
92
+ isInstance = isInstance && "updatedAt" in value;
93
+
94
+ return isInstance;
95
+ }
96
+
97
+ export function ComputeEnvironmentConfigurationFromJSON(json: any): ComputeEnvironmentConfiguration {
98
+ return ComputeEnvironmentConfigurationFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function ComputeEnvironmentConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComputeEnvironmentConfiguration {
102
+ if ((json === undefined) || (json === null)) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'id': !exists(json, 'id') ? undefined : json['id'],
108
+ 'name': !exists(json, 'name') ? undefined : json['name'],
109
+ 'properties': !exists(json, 'properties') ? undefined : json['properties'],
110
+ 'environmentType': EnvironmentTypeFromJSON(json['environmentType']),
111
+ 'agent': !exists(json, 'agent') ? undefined : AgentFromJSON(json['agent']),
112
+ 'createdBy': !exists(json, 'createdBy') ? undefined : json['createdBy'],
113
+ 'createdAt': (new Date(json['createdAt'])),
114
+ 'updatedAt': (new Date(json['updatedAt'])),
115
+ };
116
+ }
117
+
118
+ export function ComputeEnvironmentConfigurationToJSON(value?: ComputeEnvironmentConfiguration | null): any {
119
+ if (value === undefined) {
120
+ return undefined;
121
+ }
122
+ if (value === null) {
123
+ return null;
124
+ }
125
+ return {
126
+
127
+ 'id': value.id,
128
+ 'name': value.name,
129
+ 'properties': value.properties,
130
+ 'environmentType': EnvironmentTypeToJSON(value.environmentType),
131
+ 'agent': AgentToJSON(value.agent),
132
+ 'createdBy': value.createdBy,
133
+ 'createdAt': (value.createdAt.toISOString()),
134
+ 'updatedAt': (value.updatedAt.toISOString()),
135
+ };
136
+ }
137
+
@@ -0,0 +1,39 @@
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
+ * The type of compute environment
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum EnvironmentType {
21
+ None = 'NONE',
22
+ LocalAgent = 'LOCAL_AGENT',
23
+ AwsBatch = 'AWS_BATCH',
24
+ AwsOmics = 'AWS_OMICS'
25
+ }
26
+
27
+
28
+ export function EnvironmentTypeFromJSON(json: any): EnvironmentType {
29
+ return EnvironmentTypeFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function EnvironmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnvironmentType {
33
+ return json as EnvironmentType;
34
+ }
35
+
36
+ export function EnvironmentTypeToJSON(value?: EnvironmentType | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- *
17
+ *
18
18
  * @export
19
19
  * @interface RunAnalysisRequest
20
20
  */
@@ -61,6 +61,12 @@ export interface RunAnalysisRequest {
61
61
  * @memberof RunAnalysisRequest
62
62
  */
63
63
  notificationEmails: Array<string>;
64
+ /**
65
+ * The compute environment where to run the workflow, if not specified, it will run in AWS
66
+ * @type {string}
67
+ * @memberof RunAnalysisRequest
68
+ */
69
+ computeEnvironmentId?: string | null;
64
70
  }
65
71
 
66
72
  /**
@@ -86,7 +92,7 @@ export function RunAnalysisRequestFromJSONTyped(json: any, ignoreDiscriminator:
86
92
  return json;
87
93
  }
88
94
  return {
89
-
95
+
90
96
  'name': json['name'],
91
97
  'description': !exists(json, 'description') ? undefined : json['description'],
92
98
  'processId': json['processId'],
@@ -94,6 +100,7 @@ export function RunAnalysisRequestFromJSONTyped(json: any, ignoreDiscriminator:
94
100
  'resumeDatasetId': !exists(json, 'resumeDatasetId') ? undefined : json['resumeDatasetId'],
95
101
  'params': json['params'],
96
102
  'notificationEmails': json['notificationEmails'],
103
+ 'computeEnvironmentId': !exists(json, 'computeEnvironmentId') ? undefined : json['computeEnvironmentId'],
97
104
  };
98
105
  }
99
106
 
@@ -105,7 +112,7 @@ export function RunAnalysisRequestToJSON(value?: RunAnalysisRequest | null): any
105
112
  return null;
106
113
  }
107
114
  return {
108
-
115
+
109
116
  'name': value.name,
110
117
  'description': value.description,
111
118
  'processId': value.processId,
@@ -113,6 +120,7 @@ export function RunAnalysisRequestToJSON(value?: RunAnalysisRequest | null): any
113
120
  'resumeDatasetId': value.resumeDatasetId,
114
121
  'params': value.params,
115
122
  'notificationEmails': value.notificationEmails,
123
+ 'computeEnvironmentId': value.computeEnvironmentId,
116
124
  };
117
125
  }
118
126
 
@@ -26,7 +26,8 @@ export enum Status {
26
26
  Deleting = 'DELETING',
27
27
  Suspended = 'SUSPENDED',
28
28
  Delete = 'DELETE',
29
- Failed = 'FAILED'
29
+ Failed = 'FAILED',
30
+ Unknown = 'UNKNOWN'
30
31
  }
31
32
 
32
33
 
@@ -2,6 +2,8 @@
2
2
  /* eslint-disable */
3
3
  export * from './AWSCredentials';
4
4
  export * from './AccessType';
5
+ export * from './Agent';
6
+ export * from './AgentStatus';
5
7
  export * from './AllowedDataType';
6
8
  export * from './ApproveProjectAccessRequest';
7
9
  export * from './AuditEvent';
@@ -13,6 +15,7 @@ export * from './BudgetPeriod';
13
15
  export * from './CloudAccount';
14
16
  export * from './CloudAccountType';
15
17
  export * from './ColumnDefinition';
18
+ export * from './ComputeEnvironmentConfiguration';
16
19
  export * from './Contact';
17
20
  export * from './CreateNotebookInstanceRequest';
18
21
  export * from './CreateProjectAccessRequest';
@@ -26,6 +29,7 @@ export * from './Dataset';
26
29
  export * from './DatasetAssetsManifest';
27
30
  export * from './DatasetDetail';
28
31
  export * from './DatasetViz';
32
+ export * from './EnvironmentType';
29
33
  export * from './ErrorMessage';
30
34
  export * from './Executor';
31
35
  export * from './FeatureFlags';