Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
} from '../../../bridge'
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
import {
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES,
SERVER_TRANSIENT_STATUSES,
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON,
SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON,
} from './content.gen'
import {
marshalCreateServerRequest,
Expand Down Expand Up @@ -235,7 +235,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!SERVER_TRANSIENT_STATUSES_APPLESILICON.includes(res.status),
)),
this.getServer,
request,
options,
Expand Down Expand Up @@ -377,7 +379,7 @@ export class PrivateNetworkAPI extends ParentAPI {
options?.stop ??
(res =>
Promise.resolve(
!SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES.includes(
!SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON.includes(
res.status,
),
)),
Expand Down
6 changes: 4 additions & 2 deletions packages/clients/src/api/baremetal/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
waitForResource,
} from '../../../bridge'
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
import { SERVER_TRANSIENT_STATUSES } from './content.gen'
import { SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_BAREMETAL } from './content.gen'
import {
marshalAddOptionServerRequest,
marshalCreateServerRequest,
Expand Down Expand Up @@ -177,7 +177,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!SERVER_TRANSIENT_STATUSES_BAREMETAL.includes(res.status),
)),
this.getServer,
request,
options,
Expand Down
64 changes: 32 additions & 32 deletions packages/clients/src/api/baremetal/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export interface Setting {
enabled: boolean
}

export type AddOptionServerRequest = {
export interface AddOptionServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
Expand Down Expand Up @@ -641,7 +641,7 @@ export interface BMCAccess {
expiresAt?: Date
}

export type CreateServerRequest = {
export interface CreateServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Offer ID of the new server. */
Expand Down Expand Up @@ -675,7 +675,7 @@ export type CreateServerRequest = {
optionIds?: string[]
}

export type DeleteOptionServerRequest = {
export interface DeleteOptionServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
Expand All @@ -684,21 +684,21 @@ export type DeleteOptionServerRequest = {
optionId: string
}

export type DeleteServerRequest = {
export interface DeleteServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server to delete. */
serverId: string
}

export type GetBMCAccessRequest = {
export interface GetBMCAccessRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
serverId: string
}

export type GetDefaultPartitioningSchemaRequest = {
export interface GetDefaultPartitioningSchemaRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the offer. */
Expand All @@ -707,28 +707,28 @@ export type GetDefaultPartitioningSchemaRequest = {
osId: string
}

export type GetOSRequest = {
export interface GetOSRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the OS. */
osId: string
}

export type GetOfferRequest = {
export interface GetOfferRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the researched Offer. */
offerId: string
}

export type GetOptionRequest = {
export interface GetOptionRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the option. */
optionId: string
}

export type GetServerMetricsRequest = {
export interface GetServerMetricsRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Server ID to get the metrics. */
Expand All @@ -740,14 +740,14 @@ export interface GetServerMetricsResponse {
pings?: TimeSeries
}

export type GetServerRequest = {
export interface GetServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
serverId: string
}

export type InstallServerRequest = {
export interface InstallServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Server ID to install. */
Expand All @@ -770,7 +770,7 @@ export type InstallServerRequest = {
partitioningSchema?: Schema
}

export type ListOSRequest = {
export interface ListOSRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Page number. */
Expand All @@ -788,7 +788,7 @@ export interface ListOSResponse {
os: OS[]
}

export type ListOffersRequest = {
export interface ListOffersRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Page number. */
Expand All @@ -808,7 +808,7 @@ export interface ListOffersResponse {
offers: Offer[]
}

export type ListOptionsRequest = {
export interface ListOptionsRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Page number. */
Expand All @@ -828,7 +828,7 @@ export interface ListOptionsResponse {
options: Option[]
}

export type ListServerEventsRequest = {
export interface ListServerEventsRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server events searched. */
Expand All @@ -853,7 +853,7 @@ export interface ListServerPrivateNetworksResponse {
totalCount: number
}

export type ListServersRequest = {
export interface ListServersRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Page number. */
Expand Down Expand Up @@ -883,7 +883,7 @@ export interface ListServersResponse {
servers: Server[]
}

export type ListSettingsRequest = {
export interface ListSettingsRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Page number. */
Expand All @@ -903,14 +903,14 @@ export interface ListSettingsResponse {
settings: Setting[]
}

export type MigrateServerToMonthlyOfferRequest = {
export interface MigrateServerToMonthlyOfferRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
serverId: string
}

export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
export interface PrivateNetworkApiAddServerPrivateNetworkRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** The ID of the server. */
Expand All @@ -919,7 +919,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
privateNetworkId: string
}

export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** The ID of the server. */
Expand All @@ -928,7 +928,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
privateNetworkId: string
}

export type PrivateNetworkApiListServerPrivateNetworksRequest = {
export interface PrivateNetworkApiListServerPrivateNetworksRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** The sort order for the returned Private Networks. */
Expand All @@ -947,7 +947,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
projectId?: string
}

export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
export interface PrivateNetworkApiSetServerPrivateNetworksRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** The ID of the server. */
Expand All @@ -956,7 +956,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
privateNetworkIds: string[]
}

export type RebootServerRequest = {
export interface RebootServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server to reboot. */
Expand All @@ -969,7 +969,7 @@ export interface SetServerPrivateNetworksResponse {
serverPrivateNetworks: ServerPrivateNetwork[]
}

export type StartBMCAccessRequest = {
export interface StartBMCAccessRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
Expand All @@ -978,7 +978,7 @@ export type StartBMCAccessRequest = {
ip: string
}

export type StartServerRequest = {
export interface StartServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server to start. */
Expand All @@ -987,21 +987,21 @@ export type StartServerRequest = {
bootType?: ServerBootType
}

export type StopBMCAccessRequest = {
export interface StopBMCAccessRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
serverId: string
}

export type StopServerRequest = {
export interface StopServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server to stop. */
serverId: string
}

export type UpdateIPRequest = {
export interface UpdateIPRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server. */
Expand All @@ -1012,7 +1012,7 @@ export type UpdateIPRequest = {
reverse?: string
}

export type UpdateServerRequest = {
export interface UpdateServerRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the server to update. */
Expand All @@ -1028,7 +1028,7 @@ export type UpdateServerRequest = {
tags?: string[]
}

export type UpdateSettingRequest = {
export interface UpdateSettingRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** ID of the setting. */
Expand All @@ -1037,7 +1037,7 @@ export type UpdateSettingRequest = {
enabled?: boolean
}

export type ValidatePartitioningSchemaRequest = {
export interface ValidatePartitioningSchemaRequest {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: ScwZone
/** Partitioning schema. */
Expand Down
12 changes: 8 additions & 4 deletions packages/clients/src/api/block/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
} from '../../../bridge'
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
import {
SNAPSHOT_TRANSIENT_STATUSES,
VOLUME_TRANSIENT_STATUSES,
SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK,
VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK,
} from './content.gen'
import {
marshalCreateSnapshotRequest,
Expand Down Expand Up @@ -184,7 +184,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!VOLUME_TRANSIENT_STATUSES_BLOCK.includes(res.status),
)),
this.getVolume,
request,
options,
Expand Down Expand Up @@ -290,7 +292,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!SNAPSHOT_TRANSIENT_STATUSES_BLOCK.includes(res.status),
)),
this.getSnapshot,
request,
options,
Expand Down
12 changes: 8 additions & 4 deletions packages/clients/src/api/block/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
} from '../../../bridge'
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
import {
SNAPSHOT_TRANSIENT_STATUSES,
VOLUME_TRANSIENT_STATUSES,
SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK,
VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK,
} from './content.gen'
import {
marshalCreateSnapshotRequest,
Expand Down Expand Up @@ -186,7 +186,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!VOLUME_TRANSIENT_STATUSES_BLOCK.includes(res.status),
)),
this.getVolume,
request,
options,
Expand Down Expand Up @@ -292,7 +294,9 @@ export class API extends ParentAPI {
waitForResource(
options?.stop ??
(res =>
Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
Promise.resolve(
!SNAPSHOT_TRANSIENT_STATUSES_BLOCK.includes(res.status),
)),
this.getSnapshot,
request,
options,
Expand Down
Loading
Loading