Skip to content

chore(cockpit): remove reset cockpit grafana #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions packages/clients/src/api/cockpit/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
marshalDeleteGrafanaUserRequest,
marshalDisableManagedAlertsRequest,
marshalEnableManagedAlertsRequest,
marshalResetCockpitGrafanaRequest,
marshalResetGrafanaUserPasswordRequest,
marshalSelectPlanRequest,
marshalTriggerTestAlertRequest,
Expand Down Expand Up @@ -73,7 +72,6 @@ import type {
ListPlansResponse,
ListTokensRequest,
ListTokensResponse,
ResetCockpitGrafanaRequest,
ResetGrafanaUserPasswordRequest,
SelectPlanRequest,
SelectPlanResponse,
Expand Down Expand Up @@ -194,25 +192,6 @@ export class API extends ParentAPI {
unmarshalCockpit,
)

/**
* Reset your Cockpit's Grafana associated with the specified Project ID.
*
* @param request - The request {@link ResetCockpitGrafanaRequest}
* @returns A Promise of Cockpit
*/
resetCockpitGrafana = (request: Readonly<ResetCockpitGrafanaRequest> = {}) =>
this.client.fetch<Cockpit>(
{
body: JSON.stringify(
marshalResetCockpitGrafanaRequest(request, this.client.settings),
),
headers: jsonContentHeaders,
method: 'POST',
path: `/cockpit/v1beta1/reset-grafana`,
},
unmarshalCockpit,
)

/**
* Create a datasource for the specified Project ID and the given type.
*
Expand Down
1 change: 0 additions & 1 deletion packages/clients/src/api/cockpit/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export type {
ListTokensResponse,
Plan,
PlanName,
ResetCockpitGrafanaRequest,
ResetGrafanaUserPasswordRequest,
SelectPlanRequest,
SelectPlanResponse,
Expand Down
8 changes: 0 additions & 8 deletions packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import type {
ListPlansResponse,
ListTokensResponse,
Plan,
ResetCockpitGrafanaRequest,
ResetGrafanaUserPasswordRequest,
SelectPlanRequest,
SelectPlanResponse,
Expand Down Expand Up @@ -462,13 +461,6 @@ export const marshalEnableManagedAlertsRequest = (
project_id: request.projectId ?? defaults.defaultProjectId,
})

export const marshalResetCockpitGrafanaRequest = (
request: ResetCockpitGrafanaRequest,
defaults: DefaultValues,
): Record<string, unknown> => ({
project_id: request.projectId ?? defaults.defaultProjectId,
})

export const marshalResetGrafanaUserPasswordRequest = (
request: ResetGrafanaUserPasswordRequest,
defaults: DefaultValues,
Expand Down
5 changes: 0 additions & 5 deletions packages/clients/src/api/cockpit/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,6 @@ export interface ListTokensResponse {
tokens: Token[]
}

export type ResetCockpitGrafanaRequest = {
/** ID of the Project the Cockpit belongs to. */
projectId?: string
}

/** Request to reset a Grafana user's password. */
export type ResetGrafanaUserPasswordRequest = {
/** ID of the Grafana user. */
Expand Down