Skip to content
Closed
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
6 changes: 3 additions & 3 deletions packages/clients/src/api/baremetal/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
validatePathParam,
waitForResource,
} from '../../../bridge'
import type { WaitForOptions, Zone } from '../../../bridge'
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
import { SERVER_TRANSIENT_STATUSES } from './content.gen'
import {
marshalAddOptionServerRequest,
Expand Down Expand Up @@ -104,7 +104,7 @@ const jsonContentHeaders = {
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: Zone[] = [
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
Expand Down Expand Up @@ -698,7 +698,7 @@ export class API extends ParentAPI {
/** Elastic Metal - Private Network API. */
export class PrivateNetworkAPI extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: Zone[] = ['fr-par-2']
public static readonly LOCALITIES: ScwZone[] = ['fr-par-2']

/**
* Add a server to a Private Network.
Expand Down
66 changes: 33 additions & 33 deletions packages/clients/src/api/baremetal/v1/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Money, TimeSeries, Zone } from '../../../bridge'
import type { Money, Zone as ScwZone, TimeSeries } from '../../../bridge'

export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error'

Expand Down Expand Up @@ -585,7 +585,7 @@ export interface Server {
/** Boot type of the server. */
bootType: ServerBootType
/** Zone in which is the server located. */
zone: Zone
zone: ScwZone
/** Configuration of the installation. */
install?: ServerInstall
/** Status of server ping. */
Expand All @@ -609,7 +609,7 @@ export interface Setting {

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

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

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

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

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

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

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

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

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

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

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

export type InstallServerRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Server ID to install. */
serverId: string
/** ID of the OS to installation on the server. */
Expand All @@ -769,7 +769,7 @@ export type InstallServerRequest = {

export type ListOSRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Page number. */
page?: number
/** Number of OS per page. */
Expand All @@ -787,7 +787,7 @@ export interface ListOSResponse {

export type ListOffersRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Page number. */
page?: number
/** Number of offers per page. */
Expand All @@ -807,7 +807,7 @@ export interface ListOffersResponse {

export type ListOptionsRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Page number. */
page?: number
/** Number of options per page. */
Expand All @@ -827,7 +827,7 @@ export interface ListOptionsResponse {

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

export type ListServersRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Page number. */
page?: number
/** Number of servers per page. */
Expand Down Expand Up @@ -882,7 +882,7 @@ export interface ListServersResponse {

export type ListSettingsRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Page number. */
page?: number
/** Set the maximum list size. */
Expand All @@ -902,7 +902,7 @@ export interface ListSettingsResponse {

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

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

export type PrivateNetworkApiListServerPrivateNetworksRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** The sort order for the returned Private Networks. */
orderBy?: ListServerPrivateNetworksRequestOrderBy
/** The page number for the returned Private Networks. */
Expand All @@ -939,7 +939,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {

export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** The ID of the server. */
serverId: string
/** The IDs of the Private Networks. */
Expand All @@ -948,7 +948,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {

export type RebootServerRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** ID of the server to reboot. */
serverId: string
/** The type of boot. */
Expand All @@ -961,7 +961,7 @@ export interface SetServerPrivateNetworksResponse {

export type StartBMCAccessRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** ID of the server. */
serverId: string
/** The IP authorized to connect to the server. */
Expand All @@ -970,7 +970,7 @@ export type StartBMCAccessRequest = {

export type StartServerRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** ID of the server to start. */
serverId: string
/** The type of boot. */
Expand All @@ -979,21 +979,21 @@ export type StartServerRequest = {

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

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

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

export type UpdateServerRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** ID of the server to update. */
serverId: string
/** Name of the server (≠hostname), not updated if null. */
Expand All @@ -1020,7 +1020,7 @@ export type UpdateServerRequest = {

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

export type ValidatePartitioningSchemaRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Partitioning schema. */
partitioningSchema?: Schema
/** Offer ID of the server. */
Expand Down
4 changes: 2 additions & 2 deletions packages/clients/src/api/baremetal/v3/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
urlParams,
validatePathParam,
} from '../../../bridge'
import type { Zone } from '../../../bridge'
import type { Zone as ScwZone } from '../../../bridge'
import {
marshalPrivateNetworkApiAddServerPrivateNetworkRequest,
marshalPrivateNetworkApiSetServerPrivateNetworksRequest,
Expand All @@ -31,7 +31,7 @@ const jsonContentHeaders = {
/** Elastic Metal - Private Networks API. */
export class PrivateNetworkAPI extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: Zone[] = [
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
Expand Down
10 changes: 5 additions & 5 deletions packages/clients/src/api/baremetal/v3/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Zone } from '../../../bridge'
import type { Zone as ScwZone } from '../../../bridge'

export type ListServerPrivateNetworksRequestOrderBy =
| 'created_at_asc'
Expand Down Expand Up @@ -44,7 +44,7 @@ export interface ListServerPrivateNetworksResponse {

export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** UUID of the server. */
serverId: string
/** UUID of the Private Network. */
Expand All @@ -55,7 +55,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {

export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** UUID of the server. */
serverId: string
/** UUID of the Private Network. */
Expand All @@ -64,7 +64,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {

export type PrivateNetworkApiListServerPrivateNetworksRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** Sort order for the returned Private Networks. */
orderBy?: ListServerPrivateNetworksRequestOrderBy
/** Page number for the returned Private Networks. */
Expand All @@ -85,7 +85,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {

export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
zone?: ScwZone
/** UUID of the server. */
serverId: string
/**
Expand Down
Loading