Skip to content

Commit 9c86af7

Browse files
authored
feat(cockpit): add is_product filter to list datasource (#992)
1 parent 1bc0f71 commit 9c86af7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export class API extends ParentAPI {
240240
method: 'GET',
241241
path: `/cockpit/v1beta1/datasources`,
242242
urlParams: urlParams(
243+
['is_managed_by_scaleway', request.isManagedByScaleway],
243244
['order_by', request.orderBy],
244245
['page', request.page],
245246
[

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export const unmarshalDatasource = (data: unknown): Datasource => {
7777

7878
return {
7979
id: data.id,
80+
isManagedByScaleway: data.is_managed_by_scaleway,
8081
name: data.name,
8182
projectId: data.project_id,
8283
type: data.type,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ export interface Datasource {
119119
url: string
120120
/** Datasource type. */
121121
type: DatasourceType
122+
/**
123+
* Specifies that the datasource receives data from Scaleway products and is
124+
* managed by Scaleway.
125+
*/
126+
isManagedByScaleway: boolean
122127
}
123128

124129
/** Grafana dashboard. */
@@ -336,6 +341,8 @@ export type ListDatasourcesRequest = {
336341
projectId?: string
337342
/** Filter by datasource types. */
338343
types?: DatasourceType[]
344+
/** Filter by managed datasources. */
345+
isManagedByScaleway?: boolean
339346
}
340347

341348
export interface ListDatasourcesResponse {

0 commit comments

Comments
 (0)