Skip to content

Commit 698c7ac

Browse files
committed
feat: update generated APIs
1 parent 3508637 commit 698c7ac

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/clients/src/api/baremetal/v1/api.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
waitForResource,
99
} from '../../../bridge'
1010
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
11-
import { SERVER_TRANSIENT_STATUSES } from './content.gen'
1211
import {
1312
marshalAddOptionServerRequest,
1413
marshalCreateServerRequest,
@@ -176,8 +175,7 @@ export class API extends ParentAPI {
176175
) =>
177176
waitForResource(
178177
options?.stop ??
179-
(res =>
180-
Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
178+
(res => Promise.resolve(!ServerStatus.includes(res.status))),
181179
this.getServer,
182180
request,
183181
options,

packages/clients/src/api/baremetal/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const unmarshalSchemaPartition = (data: unknown): SchemaPartition => {
7777
label: data.label,
7878
number: data.number,
7979
size: data.size,
80+
useAllAvailableSpace: data.use_all_available_space,
8081
} as SchemaPartition
8182
}
8283

@@ -787,6 +788,7 @@ const marshalSchemaPartition = (
787788
label: request.label,
788789
number: request.number,
789790
size: request.size,
791+
use_all_available_space: request.useAllAvailableSpace,
790792
})
791793

792794
const marshalSchemaPool = (

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export interface SchemaPartition {
112112
label: SchemaPartitionLabel
113113
number: number
114114
size: number
115+
useAllAvailableSpace: boolean
115116
}
116117

117118
export interface SchemaPool {

0 commit comments

Comments
 (0)