@cirrobio/api-client 0.1.18 → 0.1.20

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 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.18 --save
39
+ npm install @cirrobio/api-client@0.1.20 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -14,11 +14,6 @@ import type { CreateResponse, CustomPipelineSettings, FileRequirements, FormSche
14
14
  export interface ArchiveCustomProcessRequest {
15
15
  processId: string;
16
16
  }
17
- export interface AuthorizeCustomProcessRequest {
18
- processId: string;
19
- code: string;
20
- state: string;
21
- }
22
17
  export interface CalculatePipelineCostRequest {
23
18
  processId: string;
24
19
  body: object;
@@ -60,16 +55,6 @@ export declare class ProcessesApi extends runtime.BaseAPI {
60
55
  * Archive custom process
61
56
  */
62
57
  archiveCustomProcess(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
- /**
64
- * Authorizes the GitHub repository connection for the process (only for private repositories)
65
- * Authorize custom process
66
- */
67
- authorizeCustomProcessRaw(requestParameters: AuthorizeCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
- /**
69
- * Authorizes the GitHub repository connection for the process (only for private repositories)
70
- * Authorize custom process
71
- */
72
- authorizeCustomProcess(requestParameters: AuthorizeCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
58
  /**
74
59
  * Retrieves the cost of running the pipeline
75
60
  * Calculate pipeline cost
@@ -128,71 +128,6 @@ var ProcessesApi = /** @class */ (function (_super) {
128
128
  });
129
129
  });
130
130
  };
131
- /**
132
- * Authorizes the GitHub repository connection for the process (only for private repositories)
133
- * Authorize custom process
134
- */
135
- ProcessesApi.prototype.authorizeCustomProcessRaw = function (requestParameters, initOverrides) {
136
- return __awaiter(this, void 0, void 0, function () {
137
- var queryParameters, headerParameters, token, tokenString, response;
138
- return __generator(this, function (_a) {
139
- switch (_a.label) {
140
- case 0:
141
- if (requestParameters.processId === null || requestParameters.processId === undefined) {
142
- throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling authorizeCustomProcess.');
143
- }
144
- if (requestParameters.code === null || requestParameters.code === undefined) {
145
- throw new runtime.RequiredError('code', 'Required parameter requestParameters.code was null or undefined when calling authorizeCustomProcess.');
146
- }
147
- if (requestParameters.state === null || requestParameters.state === undefined) {
148
- throw new runtime.RequiredError('state', 'Required parameter requestParameters.state was null or undefined when calling authorizeCustomProcess.');
149
- }
150
- queryParameters = {};
151
- if (requestParameters.code !== undefined) {
152
- queryParameters['code'] = requestParameters.code;
153
- }
154
- if (requestParameters.state !== undefined) {
155
- queryParameters['state'] = requestParameters.state;
156
- }
157
- headerParameters = {};
158
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
159
- token = this.configuration.accessToken;
160
- return [4 /*yield*/, token("accessToken", [])];
161
- case 1:
162
- tokenString = _a.sent();
163
- if (tokenString) {
164
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
165
- }
166
- _a.label = 2;
167
- case 2: return [4 /*yield*/, this.request({
168
- path: "/processes/{processId}:authorize".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
169
- method: 'PUT',
170
- headers: headerParameters,
171
- query: queryParameters,
172
- }, initOverrides)];
173
- case 3:
174
- response = _a.sent();
175
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
176
- }
177
- });
178
- });
179
- };
180
- /**
181
- * Authorizes the GitHub repository connection for the process (only for private repositories)
182
- * Authorize custom process
183
- */
184
- ProcessesApi.prototype.authorizeCustomProcess = function (requestParameters, initOverrides) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_a) {
187
- switch (_a.label) {
188
- case 0: return [4 /*yield*/, this.authorizeCustomProcessRaw(requestParameters, initOverrides)];
189
- case 1:
190
- _a.sent();
191
- return [2 /*return*/];
192
- }
193
- });
194
- });
195
- };
196
131
  /**
197
132
  * Retrieves the cost of running the pipeline
198
133
  * Calculate pipeline cost
@@ -16,6 +16,9 @@ export interface ApproveAccessRequestRequest {
16
16
  accessRequestId: string;
17
17
  approveProjectAccessRequest: ApproveProjectAccessRequest;
18
18
  }
19
+ export interface ArchiveProjectRequest {
20
+ projectId: string;
21
+ }
19
22
  export interface CreateAccessRequestRequest {
20
23
  projectId: string;
21
24
  createProjectAccessRequest: CreateProjectAccessRequest;
@@ -44,6 +47,9 @@ export interface SetUserProjectRoleOperationRequest {
44
47
  projectId: string;
45
48
  setUserProjectRoleRequest: SetUserProjectRoleRequest;
46
49
  }
50
+ export interface UnarchiveProjectRequest {
51
+ projectId: string;
52
+ }
47
53
  export interface UpdateProjectRequest {
48
54
  projectId: string;
49
55
  projectRequest: ProjectRequest;
@@ -66,6 +72,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
66
72
  * Approve access request
67
73
  */
68
74
  approveAccessRequest(requestParameters: ApproveAccessRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
75
+ /**
76
+ * Sets the project status to archived
77
+ * Archive project
78
+ */
79
+ archiveProjectRaw(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
80
+ /**
81
+ * Sets the project status to archived
82
+ * Archive project
83
+ */
84
+ archiveProject(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
69
85
  /**
70
86
  * Creates an access request for the project
71
87
  * Create access request
@@ -166,6 +182,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
166
182
  * Set role
167
183
  */
168
184
  setUserProjectRole(requestParameters: SetUserProjectRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
185
+ /**
186
+ * Sets the project status to active
187
+ * Unarchive project
188
+ */
189
+ unarchiveProjectRaw(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
190
+ /**
191
+ * Sets the project status to active
192
+ * Unarchive project
193
+ */
194
+ unarchiveProject(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
169
195
  /**
170
196
  * Updates a project
171
197
  * Update project
@@ -136,6 +136,59 @@ var ProjectsApi = /** @class */ (function (_super) {
136
136
  });
137
137
  });
138
138
  };
139
+ /**
140
+ * Sets the project status to archived
141
+ * Archive project
142
+ */
143
+ ProjectsApi.prototype.archiveProjectRaw = function (requestParameters, initOverrides) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ var queryParameters, headerParameters, token, tokenString, response;
146
+ return __generator(this, function (_a) {
147
+ switch (_a.label) {
148
+ case 0:
149
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
150
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling archiveProject.');
151
+ }
152
+ queryParameters = {};
153
+ headerParameters = {};
154
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
155
+ token = this.configuration.accessToken;
156
+ return [4 /*yield*/, token("accessToken", [])];
157
+ case 1:
158
+ tokenString = _a.sent();
159
+ if (tokenString) {
160
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
161
+ }
162
+ _a.label = 2;
163
+ case 2: return [4 /*yield*/, this.request({
164
+ path: "/projects/{projectId}:archive".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
165
+ method: 'PUT',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ }, initOverrides)];
169
+ case 3:
170
+ response = _a.sent();
171
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
172
+ }
173
+ });
174
+ });
175
+ };
176
+ /**
177
+ * Sets the project status to archived
178
+ * Archive project
179
+ */
180
+ ProjectsApi.prototype.archiveProject = function (requestParameters, initOverrides) {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ return __generator(this, function (_a) {
183
+ switch (_a.label) {
184
+ case 0: return [4 /*yield*/, this.archiveProjectRaw(requestParameters, initOverrides)];
185
+ case 1:
186
+ _a.sent();
187
+ return [2 /*return*/];
188
+ }
189
+ });
190
+ });
191
+ };
139
192
  /**
140
193
  * Creates an access request for the project
141
194
  * Create access request
@@ -692,6 +745,59 @@ var ProjectsApi = /** @class */ (function (_super) {
692
745
  });
693
746
  });
694
747
  };
748
+ /**
749
+ * Sets the project status to active
750
+ * Unarchive project
751
+ */
752
+ ProjectsApi.prototype.unarchiveProjectRaw = function (requestParameters, initOverrides) {
753
+ return __awaiter(this, void 0, void 0, function () {
754
+ var queryParameters, headerParameters, token, tokenString, response;
755
+ return __generator(this, function (_a) {
756
+ switch (_a.label) {
757
+ case 0:
758
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
759
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling unarchiveProject.');
760
+ }
761
+ queryParameters = {};
762
+ headerParameters = {};
763
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
764
+ token = this.configuration.accessToken;
765
+ return [4 /*yield*/, token("accessToken", [])];
766
+ case 1:
767
+ tokenString = _a.sent();
768
+ if (tokenString) {
769
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
770
+ }
771
+ _a.label = 2;
772
+ case 2: return [4 /*yield*/, this.request({
773
+ path: "/projects/{projectId}:unarchive".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
774
+ method: 'PUT',
775
+ headers: headerParameters,
776
+ query: queryParameters,
777
+ }, initOverrides)];
778
+ case 3:
779
+ response = _a.sent();
780
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
781
+ }
782
+ });
783
+ });
784
+ };
785
+ /**
786
+ * Sets the project status to active
787
+ * Unarchive project
788
+ */
789
+ ProjectsApi.prototype.unarchiveProject = function (requestParameters, initOverrides) {
790
+ return __awaiter(this, void 0, void 0, function () {
791
+ return __generator(this, function (_a) {
792
+ switch (_a.label) {
793
+ case 0: return [4 /*yield*/, this.unarchiveProjectRaw(requestParameters, initOverrides)];
794
+ case 1:
795
+ _a.sent();
796
+ return [2 /*return*/];
797
+ }
798
+ });
799
+ });
800
+ };
695
801
  /**
696
802
  * Updates a project
697
803
  * Update project
@@ -27,6 +27,12 @@ export interface FeatureFlags {
27
27
  * @memberof FeatureFlags
28
28
  */
29
29
  governanceEnabled: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof FeatureFlags
34
+ */
35
+ projectRequestsEnabled: boolean;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the FeatureFlags interface.
@@ -21,6 +21,7 @@ function instanceOfFeatureFlags(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "sftpEnabled" in value;
23
23
  isInstance = isInstance && "governanceEnabled" in value;
24
+ isInstance = isInstance && "projectRequestsEnabled" in value;
24
25
  return isInstance;
25
26
  }
26
27
  exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
@@ -35,6 +36,7 @@ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'sftpEnabled': json['sftpEnabled'],
37
38
  'governanceEnabled': json['governanceEnabled'],
39
+ 'projectRequestsEnabled': json['projectRequestsEnabled'],
38
40
  };
39
41
  }
40
42
  exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
@@ -48,6 +50,7 @@ function FeatureFlagsToJSON(value) {
48
50
  return {
49
51
  'sftpEnabled': value.sftpEnabled,
50
52
  'governanceEnabled': value.governanceEnabled,
53
+ 'projectRequestsEnabled': value.projectRequestsEnabled,
51
54
  };
52
55
  }
53
56
  exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
@@ -15,6 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum ProjectRole {
18
+ Owner = "OWNER",
18
19
  Admin = "ADMIN",
19
20
  Contributor = "CONTRIBUTOR",
20
21
  Collaborator = "COLLABORATOR",
@@ -21,6 +21,7 @@ exports.ProjectRoleToJSON = exports.ProjectRoleFromJSONTyped = exports.ProjectRo
21
21
  */
22
22
  var ProjectRole;
23
23
  (function (ProjectRole) {
24
+ ProjectRole["Owner"] = "OWNER";
24
25
  ProjectRole["Admin"] = "ADMIN";
25
26
  ProjectRole["Contributor"] = "CONTRIBUTOR";
26
27
  ProjectRole["Collaborator"] = "COLLABORATOR";
@@ -65,11 +65,17 @@ export interface ProjectSettings {
65
65
  */
66
66
  maxF1VCPU?: number;
67
67
  /**
68
- * Service quota limit for SPOT instances
68
+ * Service quota limit for Spot instances
69
69
  * @type {number}
70
70
  * @memberof ProjectSettings
71
71
  */
72
72
  maxSpotVCPU?: number;
73
+ /**
74
+ * Service quota limit for GPU Spot instances
75
+ * @type {number}
76
+ * @memberof ProjectSettings
77
+ */
78
+ maxGPUVCPU?: number;
73
79
  /**
74
80
  * Days to keep deleted datasets before being permanently erased
75
81
  * @type {number}
@@ -44,6 +44,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'enableSftp': !(0, runtime_1.exists)(json, 'enableSftp') ? undefined : json['enableSftp'],
45
45
  'maxF1VCPU': !(0, runtime_1.exists)(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
46
46
  'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
47
+ 'maxGPUVCPU': !(0, runtime_1.exists)(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
47
48
  'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
48
49
  'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
49
50
  'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
@@ -71,6 +72,7 @@ function ProjectSettingsToJSON(value) {
71
72
  'enableSftp': value.enableSftp,
72
73
  'maxF1VCPU': value.maxF1VCPU,
73
74
  'maxSpotVCPU': value.maxSpotVCPU,
75
+ 'maxGPUVCPU': value.maxGPUVCPU,
74
76
  'retentionPolicyDays': value.retentionPolicyDays,
75
77
  'serviceConnections': value.serviceConnections,
76
78
  'vpcId': value.vpcId,
@@ -36,6 +36,12 @@ export interface SystemInfoResponse {
36
36
  * @memberof SystemInfoResponse
37
37
  */
38
38
  liveEndpoint: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof SystemInfoResponse
43
+ */
44
+ agentEndpoint: string;
39
45
  /**
40
46
  *
41
47
  * @type {string}
@@ -25,6 +25,7 @@ function instanceOfSystemInfoResponse(value) {
25
25
  isInstance = isInstance && "resourcesBucket" in value;
26
26
  isInstance = isInstance && "referencesBucket" in value;
27
27
  isInstance = isInstance && "liveEndpoint" in value;
28
+ isInstance = isInstance && "agentEndpoint" in value;
28
29
  isInstance = isInstance && "region" in value;
29
30
  isInstance = isInstance && "systemMessage" in value;
30
31
  isInstance = isInstance && "maintenanceModeEnabled" in value;
@@ -48,6 +49,7 @@ function SystemInfoResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'resourcesBucket': json['resourcesBucket'],
49
50
  'referencesBucket': json['referencesBucket'],
50
51
  'liveEndpoint': json['liveEndpoint'],
52
+ 'agentEndpoint': json['agentEndpoint'],
51
53
  'region': json['region'],
52
54
  'systemMessage': json['systemMessage'],
53
55
  'maintenanceModeEnabled': json['maintenanceModeEnabled'],
@@ -70,6 +72,7 @@ function SystemInfoResponseToJSON(value) {
70
72
  'resourcesBucket': value.resourcesBucket,
71
73
  'referencesBucket': value.referencesBucket,
72
74
  'liveEndpoint': value.liveEndpoint,
75
+ 'agentEndpoint': value.agentEndpoint,
73
76
  'region': value.region,
74
77
  'systemMessage': value.systemMessage,
75
78
  'maintenanceModeEnabled': value.maintenanceModeEnabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -53,12 +53,6 @@ export interface ArchiveCustomProcessRequest {
53
53
  processId: string;
54
54
  }
55
55
 
56
- export interface AuthorizeCustomProcessRequest {
57
- processId: string;
58
- code: string;
59
- state: string;
60
- }
61
-
62
56
  export interface CalculatePipelineCostRequest {
63
57
  processId: string;
64
58
  body: object;
@@ -138,61 +132,6 @@ export class ProcessesApi extends runtime.BaseAPI {
138
132
  await this.archiveCustomProcessRaw(requestParameters, initOverrides);
139
133
  }
140
134
 
141
- /**
142
- * Authorizes the GitHub repository connection for the process (only for private repositories)
143
- * Authorize custom process
144
- */
145
- async authorizeCustomProcessRaw(requestParameters: AuthorizeCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
146
- if (requestParameters.processId === null || requestParameters.processId === undefined) {
147
- throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling authorizeCustomProcess.');
148
- }
149
-
150
- if (requestParameters.code === null || requestParameters.code === undefined) {
151
- throw new runtime.RequiredError('code','Required parameter requestParameters.code was null or undefined when calling authorizeCustomProcess.');
152
- }
153
-
154
- if (requestParameters.state === null || requestParameters.state === undefined) {
155
- throw new runtime.RequiredError('state','Required parameter requestParameters.state was null or undefined when calling authorizeCustomProcess.');
156
- }
157
-
158
- const queryParameters: any = {};
159
-
160
- if (requestParameters.code !== undefined) {
161
- queryParameters['code'] = requestParameters.code;
162
- }
163
-
164
- if (requestParameters.state !== undefined) {
165
- queryParameters['state'] = requestParameters.state;
166
- }
167
-
168
- const headerParameters: runtime.HTTPHeaders = {};
169
-
170
- if (this.configuration && this.configuration.accessToken) {
171
- const token = this.configuration.accessToken;
172
- const tokenString = await token("accessToken", []);
173
-
174
- if (tokenString) {
175
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
176
- }
177
- }
178
- const response = await this.request({
179
- path: `/processes/{processId}:authorize`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
180
- method: 'PUT',
181
- headers: headerParameters,
182
- query: queryParameters,
183
- }, initOverrides);
184
-
185
- return new runtime.VoidApiResponse(response);
186
- }
187
-
188
- /**
189
- * Authorizes the GitHub repository connection for the process (only for private repositories)
190
- * Authorize custom process
191
- */
192
- async authorizeCustomProcess(requestParameters: AuthorizeCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
193
- await this.authorizeCustomProcessRaw(requestParameters, initOverrides);
194
- }
195
-
196
135
  /**
197
136
  * Retrieves the cost of running the pipeline
198
137
  * Calculate pipeline cost
@@ -55,6 +55,10 @@ export interface ApproveAccessRequestRequest {
55
55
  approveProjectAccessRequest: ApproveProjectAccessRequest;
56
56
  }
57
57
 
58
+ export interface ArchiveProjectRequest {
59
+ projectId: string;
60
+ }
61
+
58
62
  export interface CreateAccessRequestRequest {
59
63
  projectId: string;
60
64
  createProjectAccessRequest: CreateProjectAccessRequest;
@@ -91,6 +95,10 @@ export interface SetUserProjectRoleOperationRequest {
91
95
  setUserProjectRoleRequest: SetUserProjectRoleRequest;
92
96
  }
93
97
 
98
+ export interface UnarchiveProjectRequest {
99
+ projectId: string;
100
+ }
101
+
94
102
  export interface UpdateProjectRequest {
95
103
  projectId: string;
96
104
  projectRequest: ProjectRequest;
@@ -156,6 +164,45 @@ export class ProjectsApi extends runtime.BaseAPI {
156
164
  await this.approveAccessRequestRaw(requestParameters, initOverrides);
157
165
  }
158
166
 
167
+ /**
168
+ * Sets the project status to archived
169
+ * Archive project
170
+ */
171
+ async archiveProjectRaw(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
172
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
173
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling archiveProject.');
174
+ }
175
+
176
+ const queryParameters: any = {};
177
+
178
+ const headerParameters: runtime.HTTPHeaders = {};
179
+
180
+ if (this.configuration && this.configuration.accessToken) {
181
+ const token = this.configuration.accessToken;
182
+ const tokenString = await token("accessToken", []);
183
+
184
+ if (tokenString) {
185
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
186
+ }
187
+ }
188
+ const response = await this.request({
189
+ path: `/projects/{projectId}:archive`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
190
+ method: 'PUT',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ }, initOverrides);
194
+
195
+ return new runtime.VoidApiResponse(response);
196
+ }
197
+
198
+ /**
199
+ * Sets the project status to archived
200
+ * Archive project
201
+ */
202
+ async archiveProject(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
203
+ await this.archiveProjectRaw(requestParameters, initOverrides);
204
+ }
205
+
159
206
  /**
160
207
  * Creates an access request for the project
161
208
  * Create access request
@@ -570,6 +617,45 @@ export class ProjectsApi extends runtime.BaseAPI {
570
617
  await this.setUserProjectRoleRaw(requestParameters, initOverrides);
571
618
  }
572
619
 
620
+ /**
621
+ * Sets the project status to active
622
+ * Unarchive project
623
+ */
624
+ async unarchiveProjectRaw(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
625
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
626
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling unarchiveProject.');
627
+ }
628
+
629
+ const queryParameters: any = {};
630
+
631
+ const headerParameters: runtime.HTTPHeaders = {};
632
+
633
+ if (this.configuration && this.configuration.accessToken) {
634
+ const token = this.configuration.accessToken;
635
+ const tokenString = await token("accessToken", []);
636
+
637
+ if (tokenString) {
638
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
639
+ }
640
+ }
641
+ const response = await this.request({
642
+ path: `/projects/{projectId}:unarchive`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
643
+ method: 'PUT',
644
+ headers: headerParameters,
645
+ query: queryParameters,
646
+ }, initOverrides);
647
+
648
+ return new runtime.VoidApiResponse(response);
649
+ }
650
+
651
+ /**
652
+ * Sets the project status to active
653
+ * Unarchive project
654
+ */
655
+ async unarchiveProject(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
656
+ await this.unarchiveProjectRaw(requestParameters, initOverrides);
657
+ }
658
+
573
659
  /**
574
660
  * Updates a project
575
661
  * Update project
@@ -31,6 +31,12 @@ export interface FeatureFlags {
31
31
  * @memberof FeatureFlags
32
32
  */
33
33
  governanceEnabled: boolean;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof FeatureFlags
38
+ */
39
+ projectRequestsEnabled: boolean;
34
40
  }
35
41
 
36
42
  /**
@@ -40,6 +46,7 @@ export function instanceOfFeatureFlags(value: object): boolean {
40
46
  let isInstance = true;
41
47
  isInstance = isInstance && "sftpEnabled" in value;
42
48
  isInstance = isInstance && "governanceEnabled" in value;
49
+ isInstance = isInstance && "projectRequestsEnabled" in value;
43
50
 
44
51
  return isInstance;
45
52
  }
@@ -56,6 +63,7 @@ export function FeatureFlagsFromJSONTyped(json: any, ignoreDiscriminator: boolea
56
63
 
57
64
  'sftpEnabled': json['sftpEnabled'],
58
65
  'governanceEnabled': json['governanceEnabled'],
66
+ 'projectRequestsEnabled': json['projectRequestsEnabled'],
59
67
  };
60
68
  }
61
69
 
@@ -70,6 +78,7 @@ export function FeatureFlagsToJSON(value?: FeatureFlags | null): any {
70
78
 
71
79
  'sftpEnabled': value.sftpEnabled,
72
80
  'governanceEnabled': value.governanceEnabled,
81
+ 'projectRequestsEnabled': value.projectRequestsEnabled,
73
82
  };
74
83
  }
75
84
 
@@ -18,6 +18,7 @@
18
18
  * @enum {string}
19
19
  */
20
20
  export enum ProjectRole {
21
+ Owner = 'OWNER',
21
22
  Admin = 'ADMIN',
22
23
  Contributor = 'CONTRIBUTOR',
23
24
  Collaborator = 'COLLABORATOR',
@@ -75,11 +75,17 @@ export interface ProjectSettings {
75
75
  */
76
76
  maxF1VCPU?: number;
77
77
  /**
78
- * Service quota limit for SPOT instances
78
+ * Service quota limit for Spot instances
79
79
  * @type {number}
80
80
  * @memberof ProjectSettings
81
81
  */
82
82
  maxSpotVCPU?: number;
83
+ /**
84
+ * Service quota limit for GPU Spot instances
85
+ * @type {number}
86
+ * @memberof ProjectSettings
87
+ */
88
+ maxGPUVCPU?: number;
83
89
  /**
84
90
  * Days to keep deleted datasets before being permanently erased
85
91
  * @type {number}
@@ -154,6 +160,7 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
154
160
  'enableSftp': !exists(json, 'enableSftp') ? undefined : json['enableSftp'],
155
161
  'maxF1VCPU': !exists(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
156
162
  'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
163
+ 'maxGPUVCPU': !exists(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
157
164
  'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
158
165
  'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
159
166
  'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
@@ -182,6 +189,7 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
182
189
  'enableSftp': value.enableSftp,
183
190
  'maxF1VCPU': value.maxF1VCPU,
184
191
  'maxSpotVCPU': value.maxSpotVCPU,
192
+ 'maxGPUVCPU': value.maxGPUVCPU,
185
193
  'retentionPolicyDays': value.retentionPolicyDays,
186
194
  'serviceConnections': value.serviceConnections,
187
195
  'vpcId': value.vpcId,
@@ -56,6 +56,12 @@ export interface SystemInfoResponse {
56
56
  * @memberof SystemInfoResponse
57
57
  */
58
58
  liveEndpoint: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof SystemInfoResponse
63
+ */
64
+ agentEndpoint: string;
59
65
  /**
60
66
  *
61
67
  * @type {string}
@@ -114,6 +120,7 @@ export function instanceOfSystemInfoResponse(value: object): boolean {
114
120
  isInstance = isInstance && "resourcesBucket" in value;
115
121
  isInstance = isInstance && "referencesBucket" in value;
116
122
  isInstance = isInstance && "liveEndpoint" in value;
123
+ isInstance = isInstance && "agentEndpoint" in value;
117
124
  isInstance = isInstance && "region" in value;
118
125
  isInstance = isInstance && "systemMessage" in value;
119
126
  isInstance = isInstance && "maintenanceModeEnabled" in value;
@@ -139,6 +146,7 @@ export function SystemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator:
139
146
  'resourcesBucket': json['resourcesBucket'],
140
147
  'referencesBucket': json['referencesBucket'],
141
148
  'liveEndpoint': json['liveEndpoint'],
149
+ 'agentEndpoint': json['agentEndpoint'],
142
150
  'region': json['region'],
143
151
  'systemMessage': json['systemMessage'],
144
152
  'maintenanceModeEnabled': json['maintenanceModeEnabled'],
@@ -162,6 +170,7 @@ export function SystemInfoResponseToJSON(value?: SystemInfoResponse | null): any
162
170
  'resourcesBucket': value.resourcesBucket,
163
171
  'referencesBucket': value.referencesBucket,
164
172
  'liveEndpoint': value.liveEndpoint,
173
+ 'agentEndpoint': value.agentEndpoint,
165
174
  'region': value.region,
166
175
  'systemMessage': value.systemMessage,
167
176
  'maintenanceModeEnabled': value.maintenanceModeEnabled,