diff --git a/packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts b/packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts index fcffecd30..ce47bad75 100644 --- a/packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts @@ -380,6 +380,7 @@ export const marshalCreateDatasourceRequest = ( request: CreateDatasourceRequest, defaults: DefaultValues, ): Record => ({ + is_default: request.isDefault, name: request.name, project_id: request.projectId ?? defaults.defaultProjectId, type: request.type, diff --git a/packages/clients/src/api/cockpit/v1beta1/types.gen.ts b/packages/clients/src/api/cockpit/v1beta1/types.gen.ts index 478d4ac07..7d467e1fc 100644 --- a/packages/clients/src/api/cockpit/v1beta1/types.gen.ts +++ b/packages/clients/src/api/cockpit/v1beta1/types.gen.ts @@ -209,6 +209,8 @@ export type CreateDatasourceRequest = { name: string /** Datasource type. */ type?: DatasourceType + /** Specifies that the returned output is the default datasource per type. */ + isDefault: boolean } /** Request to create a Grafana user. */