From d8c2aea50c3f9863fc8b7570e277b656b6a9891c Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 19 Jun 2025 14:21:44 +0000 Subject: [PATCH] feat: update generated APIs --- packages_generated/rdb/src/v1/api.gen.ts | 1 + packages_generated/rdb/src/v1/marshalling.gen.ts | 1 + packages_generated/rdb/src/v1/types.gen.ts | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/packages_generated/rdb/src/v1/api.gen.ts b/packages_generated/rdb/src/v1/api.gen.ts index cf6bfd086..594c42b9f 100644 --- a/packages_generated/rdb/src/v1/api.gen.ts +++ b/packages_generated/rdb/src/v1/api.gen.ts @@ -425,6 +425,7 @@ export class API extends ParentAPI { method: 'GET', path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`, urlParams: urlParams( + ['has_maintenances', request.hasMaintenances], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], diff --git a/packages_generated/rdb/src/v1/marshalling.gen.ts b/packages_generated/rdb/src/v1/marshalling.gen.ts index b0dd3b909..dd8895fcf 100644 --- a/packages_generated/rdb/src/v1/marshalling.gen.ts +++ b/packages_generated/rdb/src/v1/marshalling.gen.ts @@ -171,6 +171,7 @@ export const unmarshalMaintenance = (data: unknown): Maintenance => { return { closedAt: unmarshalDate(data.closed_at), forcedAt: unmarshalDate(data.forced_at), + isApplicable: data.is_applicable, reason: data.reason, startsAt: unmarshalDate(data.starts_at), status: data.status, diff --git a/packages_generated/rdb/src/v1/types.gen.ts b/packages_generated/rdb/src/v1/types.gen.ts index 36950f61c..86b013539 100644 --- a/packages_generated/rdb/src/v1/types.gen.ts +++ b/packages_generated/rdb/src/v1/types.gen.ts @@ -390,6 +390,10 @@ export interface Maintenance { * Time when Scaleway-side maintenance will be applied. */ forcedAt?: Date + /** + * Indicate if the maintenance can be applied by the user. + */ + isApplicable: boolean } export interface ReadReplica { @@ -1642,6 +1646,10 @@ export type ListInstancesRequest = { * Project ID to list the Database Instance of. */ projectId?: string + /** + * Filter to only list instances with a scheduled maintenance. + */ + hasMaintenances?: boolean page?: number pageSize?: number }