Skip to content

Commit 4589d10

Browse files
committed
feat: update generated APIs
1 parent db10a69 commit 4589d10

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

packages_generated/cockpit/src/v1/api.gen.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ Deprecated: retention is now managed at the data source level.
381381
}
382382

383383
/**
384-
* Cockpit Regional API.
384+
* Cockpit API.
385385
386-
The Cockpit Regional API allows you to create data sources and tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager.
386+
The Cockpit API allows you to create data sources and Cockpit tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager.
387387
*/
388388
export class RegionalAPI extends ParentAPI {
389389
/** Lists the available regions of the API. */
@@ -801,6 +801,7 @@ If you need to receive alerts for other receivers, you can create additional con
801801
method: 'GET',
802802
path: `/cockpit/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/alerts`,
803803
urlParams: urlParams(
804+
['data_source_id', request.dataSourceId],
804805
['is_enabled', request.isEnabled],
805806
['is_preconfigured', request.isPreconfigured],
806807
[

packages_generated/cockpit/src/v1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ const unmarshalAlert = (data: unknown): Alert => {
294294

295295
return {
296296
annotations: data.annotations,
297+
dataSourceId: data.data_source_id,
297298
duration: data.duration,
298299
enabled: data.enabled,
299300
name: data.name,

packages_generated/cockpit/src/v1/types.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ export interface Alert {
116116
* Contains additional data for preconfigured alerts, such as the rule ID, display name, and description. Only present if the alert is preconfigured.
117117
*/
118118
preconfiguredData?: PreconfiguredAlertData
119+
/**
120+
* ID of the data source containing the alert rule.
121+
*/
122+
dataSourceId: string
119123
}
120124

121125
/**
@@ -964,6 +968,10 @@ export type RegionalApiListAlertsRequest = {
964968
* Valid values to filter on are `inactive`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply.
965969
*/
966970
state?: AlertState
971+
/**
972+
* If omitted, only alerts from the default scaleway data source will be listed.
973+
*/
974+
dataSourceId?: string
967975
}
968976

969977
/**

packages_generated/key_manager/src/v1alpha1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export type {
2828
KeyUsage,
2929
ListKeysRequest,
3030
ListKeysRequestOrderBy,
31+
ListKeysRequestUsage,
3132
ListKeysResponse,
3233
ProtectKeyRequest,
3334
PublicKey,

packages_generated/product_catalog/src/v2alpha1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type {
2323
PublicCatalogProductPropertiesHardwareRAM,
2424
PublicCatalogProductPropertiesHardwareStorage,
2525
PublicCatalogProductPropertiesInstance,
26+
PublicCatalogProductStatus,
2627
PublicCatalogProductUnitOfMeasure,
2728
PublicCatalogProductUnitOfMeasureCountableUnit,
2829
} from './types.gen'

0 commit comments

Comments
 (0)