From 698c7acfd93ac856130e45f8945aa35443e2a7ad Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 14 Mar 2025 08:52:31 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/baremetal/v1/api.gen.ts | 4 +--- packages/clients/src/api/baremetal/v1/marshalling.gen.ts | 2 ++ packages/clients/src/api/baremetal/v1/types.gen.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/clients/src/api/baremetal/v1/api.gen.ts b/packages/clients/src/api/baremetal/v1/api.gen.ts index 08bbc6af3..d4eacd440 100644 --- a/packages/clients/src/api/baremetal/v1/api.gen.ts +++ b/packages/clients/src/api/baremetal/v1/api.gen.ts @@ -8,7 +8,6 @@ import { waitForResource, } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' -import { SERVER_TRANSIENT_STATUSES } from './content.gen' import { marshalAddOptionServerRequest, marshalCreateServerRequest, @@ -176,8 +175,7 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => - Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), + (res => Promise.resolve(!ServerStatus.includes(res.status))), this.getServer, request, options, diff --git a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts index 0e49cde62..827a05d1e 100644 --- a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts +++ b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts @@ -77,6 +77,7 @@ const unmarshalSchemaPartition = (data: unknown): SchemaPartition => { label: data.label, number: data.number, size: data.size, + useAllAvailableSpace: data.use_all_available_space, } as SchemaPartition } @@ -787,6 +788,7 @@ const marshalSchemaPartition = ( label: request.label, number: request.number, size: request.size, + use_all_available_space: request.useAllAvailableSpace, }) const marshalSchemaPool = ( diff --git a/packages/clients/src/api/baremetal/v1/types.gen.ts b/packages/clients/src/api/baremetal/v1/types.gen.ts index 0132e970e..5aaa2b903 100644 --- a/packages/clients/src/api/baremetal/v1/types.gen.ts +++ b/packages/clients/src/api/baremetal/v1/types.gen.ts @@ -112,6 +112,7 @@ export interface SchemaPartition { label: SchemaPartitionLabel number: number size: number + useAllAvailableSpace: boolean } export interface SchemaPool {