From 93e44da0ac5129a0f32ca86736f731d01b362ced Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 21 Feb 2023 13:49:48 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/rdb/v1/index.gen.ts | 1 + packages/clients/src/api/rdb/v1/marshalling.gen.ts | 1 + packages/clients/src/api/rdb/v1/types.gen.ts | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/packages/clients/src/api/rdb/v1/index.gen.ts b/packages/clients/src/api/rdb/v1/index.gen.ts index c816836ca..c6151f0e4 100644 --- a/packages/clients/src/api/rdb/v1/index.gen.ts +++ b/packages/clients/src/api/rdb/v1/index.gen.ts @@ -97,6 +97,7 @@ export type { Maintenance, MaintenanceStatus, NodeType, + NodeTypeGeneration, NodeTypeStock, NodeTypeVolumeConstraintSizes, NodeTypeVolumeType, diff --git a/packages/clients/src/api/rdb/v1/marshalling.gen.ts b/packages/clients/src/api/rdb/v1/marshalling.gen.ts index 654012e1d..b88a4017f 100644 --- a/packages/clients/src/api/rdb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/rdb/v1/marshalling.gen.ts @@ -485,6 +485,7 @@ const unmarshalNodeType = (data: unknown) => { beta: data.beta, description: data.description, disabled: data.disabled, + generation: data.generation, isBssdCompatible: data.is_bssd_compatible, isHaRequired: data.is_ha_required, memory: data.memory, diff --git a/packages/clients/src/api/rdb/v1/types.gen.ts b/packages/clients/src/api/rdb/v1/types.gen.ts index 679de1240..1cd6f7141 100644 --- a/packages/clients/src/api/rdb/v1/types.gen.ts +++ b/packages/clients/src/api/rdb/v1/types.gen.ts @@ -86,6 +86,11 @@ export type ListUsersRequestOrderBy = export type MaintenanceStatus = 'unknown' | 'pending' | 'done' | 'canceled' +export type NodeTypeGeneration = + | 'unknown_generation' + | 'generation_v1' + | 'generation_v2' + export type NodeTypeStock = | 'unknown' | 'low_stock' @@ -567,6 +572,8 @@ export interface NodeType { availableVolumeTypes: NodeTypeVolumeType[] /** The Node Type can be used only with high availability option */ isHaRequired: boolean + /** Generation associated the NodeType offer */ + generation: NodeTypeGeneration /** Region the Node Type is in */ region: Region }