Skip to content

Commit f7600f2

Browse files
authored
chore(cockpit): remove reset cockpit grafana (#1002)
1 parent bf3982a commit f7600f2

File tree

4 files changed

+0
-35
lines changed

4 files changed

+0
-35
lines changed

packages/clients/src/api/cockpit/v1beta1/api.gen.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
marshalDeleteGrafanaUserRequest,
2121
marshalDisableManagedAlertsRequest,
2222
marshalEnableManagedAlertsRequest,
23-
marshalResetCockpitGrafanaRequest,
2423
marshalResetGrafanaUserPasswordRequest,
2524
marshalSelectPlanRequest,
2625
marshalTriggerTestAlertRequest,
@@ -73,7 +72,6 @@ import type {
7372
ListPlansResponse,
7473
ListTokensRequest,
7574
ListTokensResponse,
76-
ResetCockpitGrafanaRequest,
7775
ResetGrafanaUserPasswordRequest,
7876
SelectPlanRequest,
7977
SelectPlanResponse,
@@ -194,25 +192,6 @@ export class API extends ParentAPI {
194192
unmarshalCockpit,
195193
)
196194

197-
/**
198-
* Reset your Cockpit's Grafana associated with the specified Project ID.
199-
*
200-
* @param request - The request {@link ResetCockpitGrafanaRequest}
201-
* @returns A Promise of Cockpit
202-
*/
203-
resetCockpitGrafana = (request: Readonly<ResetCockpitGrafanaRequest> = {}) =>
204-
this.client.fetch<Cockpit>(
205-
{
206-
body: JSON.stringify(
207-
marshalResetCockpitGrafanaRequest(request, this.client.settings),
208-
),
209-
headers: jsonContentHeaders,
210-
method: 'POST',
211-
path: `/cockpit/v1beta1/reset-grafana`,
212-
},
213-
unmarshalCockpit,
214-
)
215-
216195
/**
217196
* Create a datasource for the specified Project ID and the given type.
218197
*

packages/clients/src/api/cockpit/v1beta1/index.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export type {
4747
ListTokensResponse,
4848
Plan,
4949
PlanName,
50-
ResetCockpitGrafanaRequest,
5150
ResetGrafanaUserPasswordRequest,
5251
SelectPlanRequest,
5352
SelectPlanResponse,

packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import type {
3535
ListPlansResponse,
3636
ListTokensResponse,
3737
Plan,
38-
ResetCockpitGrafanaRequest,
3938
ResetGrafanaUserPasswordRequest,
4039
SelectPlanRequest,
4140
SelectPlanResponse,
@@ -462,13 +461,6 @@ export const marshalEnableManagedAlertsRequest = (
462461
project_id: request.projectId ?? defaults.defaultProjectId,
463462
})
464463

465-
export const marshalResetCockpitGrafanaRequest = (
466-
request: ResetCockpitGrafanaRequest,
467-
defaults: DefaultValues,
468-
): Record<string, unknown> => ({
469-
project_id: request.projectId ?? defaults.defaultProjectId,
470-
})
471-
472464
export const marshalResetGrafanaUserPasswordRequest = (
473465
request: ResetGrafanaUserPasswordRequest,
474466
defaults: DefaultValues,

packages/clients/src/api/cockpit/v1beta1/types.gen.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,6 @@ export interface ListTokensResponse {
426426
tokens: Token[]
427427
}
428428

429-
export type ResetCockpitGrafanaRequest = {
430-
/** ID of the Project the Cockpit belongs to. */
431-
projectId?: string
432-
}
433-
434429
/** Request to reset a Grafana user's password. */
435430
export type ResetGrafanaUserPasswordRequest = {
436431
/** ID of the Grafana user. */

0 commit comments

Comments
 (0)