Skip to content
Merged
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
12 changes: 12 additions & 0 deletions packages/clients/src/api/cockpit/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ const jsonContentHeaders = {
* This API allows to manage Cockpits.
*/
export class API extends ParentAPI {
/**
* Activate a cockpit associated with the given project ID.
*
* @param request - The request {@link ActivateCockpitRequest}
* @returns A Promise of Cockpit
*/
activateCockpit = (request: Readonly<ActivateCockpitRequest> = {}) =>
this.client.fetch<Cockpit>(
{
Expand Down Expand Up @@ -120,6 +126,12 @@ export class API extends ParentAPI {
options,
)

/**
* Deactivate a cockpit associated with the given project ID.
*
* @param request - The request {@link DeactivateCockpitRequest}
* @returns A Promise of Cockpit
*/
deactivateCockpit = (request: Readonly<DeactivateCockpitRequest> = {}) =>
this.client.fetch<Cockpit>(
{
Expand Down