Skip to content

Commit a78167d

Browse files
committed
fix: generated client
1 parent 600dce4 commit a78167d

File tree

4 files changed

+1255
-55
lines changed

4 files changed

+1255
-55
lines changed

scripts/filter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function filterOpenapi(openapi: OpenAPIV3_1.Document): OpenAPIV3_1.Document {
4040
"createProjectIpAccessList",
4141
"deleteProjectIpAccessList",
4242
"listOrganizationProjects",
43+
"listAlerts",
4344
];
4445

4546
const filteredPaths = {};

src/common/atlas/apiClient.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ export class ApiClient {
239239
}
240240
}
241241

242+
async listAlerts(options: FetchOptions<operations["listAlerts"]>) {
243+
const { data, error, response } = await this.client.GET("/api/atlas/v2/groups/{groupId}/alerts", options);
244+
if (error) {
245+
throw ApiClientError.fromError(response, error);
246+
}
247+
return data;
248+
}
249+
242250
async listClusters(options: FetchOptions<operations["listClusters"]>) {
243251
const { data, error, response } = await this.client.GET("/api/atlas/v2/groups/{groupId}/clusters", options);
244252
if (error) {
@@ -270,7 +278,6 @@ export class ApiClient {
270278
"/api/atlas/v2/groups/{groupId}/clusters/{clusterName}",
271279
options
272280
);
273-
274281
if (error) {
275282
throw ApiClientError.fromError(response, error);
276283
}
@@ -365,13 +372,5 @@ export class ApiClient {
365372
return data;
366373
}
367374

368-
async listAlerts(options: FetchOptions<operations["listAlerts"]>) {
369-
const { data, error, response } = await this.client.GET("/api/atlas/v2/groups/{groupId}/alerts", options);
370-
if (error) {
371-
throw ApiClientError.fromError(response, error);
372-
}
373-
return data;
374-
}
375-
376375
// DO NOT EDIT. This is auto-generated code.
377376
}

0 commit comments

Comments
 (0)