diff --git a/packages/clients/src/api/webhosting/v1/api.gen.ts b/packages/clients/src/api/webhosting/v1/api.gen.ts index 9b75cb5d5..01438b567 100644 --- a/packages/clients/src/api/webhosting/v1/api.gen.ts +++ b/packages/clients/src/api/webhosting/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { HOSTING_TRANSIENT_STATUSES } from './content.gen' import { marshalDatabaseApiAssignDatabaseUserRequest, @@ -108,7 +108,11 @@ const jsonContentHeaders = { */ export class ControlPanelAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListControlPanels = ( request: Readonly = {}, @@ -148,7 +152,11 @@ export class ControlPanelAPI extends ParentAPI { */ export class DatabaseAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * "Create a new database within your hosting plan". @@ -396,7 +404,11 @@ export class DatabaseAPI extends ParentAPI { */ export class DnsAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Get DNS records. Get the set of DNS records of a specified domain @@ -468,7 +480,11 @@ export class DnsAPI extends ParentAPI { */ export class OfferAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListOffers = ( request: Readonly = {}, @@ -509,7 +525,11 @@ export class OfferAPI extends ParentAPI { */ export class HostingAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer @@ -705,7 +725,11 @@ export class HostingAPI extends ParentAPI { */ export class FtpAccountAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Create a new FTP account within your hosting plan.. Create a new FTP @@ -807,7 +831,11 @@ export class FtpAccountAPI extends ParentAPI { */ export class MailAccountAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Create a new mail account within your hosting plan.. Create a new mail @@ -924,7 +952,11 @@ export class MailAccountAPI extends ParentAPI { */ export class WebsiteAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListWebsites = ( request: Readonly, diff --git a/packages/clients/src/api/webhosting/v1/types.gen.ts b/packages/clients/src/api/webhosting/v1/types.gen.ts index 293bed21e..c0703c62b 100644 --- a/packages/clients/src/api/webhosting/v1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1/types.gen.ts @@ -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, Region } from '../../../bridge' +import type { Money, Region as ScwRegion } from '../../../bridge' import type { LanguageCode as StdLanguageCode } from '../../std/types.gen' export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid' @@ -271,7 +271,7 @@ export interface HostingSummary { /** Name of the active offer for the Web Hosting plan. */ offerName: string /** Region where the Web Hosting plan is hosted. */ - region: Region + region: ScwRegion } export interface MailAccount { @@ -300,7 +300,7 @@ export type ControlPanelApiListControlPanelsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number (must be a positive integer). */ page?: number /** @@ -315,7 +315,7 @@ export type DatabaseApiAssignDatabaseUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database to be assigned. */ @@ -329,7 +329,7 @@ export type DatabaseApiChangeDatabaseUserPasswordRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the user to update. */ @@ -343,7 +343,7 @@ export type DatabaseApiCreateDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan where the database will be created. */ hostingId: string /** Name of the database to be created. */ @@ -367,7 +367,7 @@ export type DatabaseApiCreateDatabaseUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the user to create. */ @@ -381,7 +381,7 @@ export type DatabaseApiDeleteDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database to delete. */ @@ -393,7 +393,7 @@ export type DatabaseApiDeleteDatabaseUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database user to delete. */ @@ -405,7 +405,7 @@ export type DatabaseApiGetDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database. */ @@ -417,7 +417,7 @@ export type DatabaseApiGetDatabaseUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database user to retrieve details. */ @@ -429,7 +429,7 @@ export type DatabaseApiListDatabaseUsersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Page number (must be a positive integer). */ @@ -448,7 +448,7 @@ export type DatabaseApiListDatabasesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Page number (must be a positive integer). */ @@ -467,7 +467,7 @@ export type DatabaseApiUnassignDatabaseUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Name of the database to be unassigned. */ @@ -481,7 +481,7 @@ export type DnsApiCheckUserOwnsDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain for which ownership is to be verified. */ domain: string /** ID of the project currently in use. */ @@ -493,7 +493,7 @@ export type DnsApiGetDomainDnsRecordsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain associated with the DNS records. */ domain: string } @@ -503,7 +503,7 @@ export type DnsApiSyncDomainDnsRecordsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain for which the DNS records will be synchronized. */ domain: string /** Whether or not to synchronize the web records. */ @@ -530,7 +530,7 @@ export type FtpAccountApiChangeFtpAccountPasswordRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Username of the FTP account. */ @@ -544,7 +544,7 @@ export type FtpAccountApiCreateFtpAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Username for the new FTP account. */ @@ -560,7 +560,7 @@ export type FtpAccountApiListFtpAccountsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Page number (must be a positive integer). */ @@ -581,7 +581,7 @@ export type FtpAccountApiRemoveFtpAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Username of the FTP account to be deleted. */ @@ -616,7 +616,7 @@ export interface Hosting { /** Details of the hosting user. */ user?: HostingUser /** Region where the Web Hosting plan is hosted. */ - region: Region + region: ScwRegion } export type HostingApiCreateHostingRequest = { @@ -624,7 +624,7 @@ export type HostingApiCreateHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the selected offer for the Web Hosting plan. */ offerId: string /** ID of the Scaleway Project in which to create the Web Hosting plan. */ @@ -659,7 +659,7 @@ export type HostingApiCreateSessionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -669,7 +669,7 @@ export type HostingApiDeleteHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -679,7 +679,7 @@ export type HostingApiGetHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -689,7 +689,7 @@ export type HostingApiGetResourceSummaryRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -699,7 +699,7 @@ export type HostingApiListHostingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * Page number to return, from the paginated results (must be a positive * integer). @@ -749,7 +749,7 @@ export type HostingApiResetHostingPasswordRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting. */ hostingId: string } @@ -759,7 +759,7 @@ export type HostingApiUpdateHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string /** New contact email for the Web Hosting plan. */ @@ -835,7 +835,7 @@ export type MailAccountApiChangeMailAccountPasswordRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Domain part of the mail account address. */ @@ -851,7 +851,7 @@ export type MailAccountApiCreateMailAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Domain part of the mail account address. */ @@ -867,7 +867,7 @@ export type MailAccountApiListMailAccountsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Page number (must be a positive integer). */ @@ -888,7 +888,7 @@ export type MailAccountApiRemoveMailAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Domain part of the mail account address. */ @@ -902,7 +902,7 @@ export type OfferApiListOffersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number (must be a positive integer). */ page?: number /** @@ -944,7 +944,7 @@ export type WebsiteApiListWebsitesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting plan. */ hostingId: string /** Page number (must be a positive integer). */ diff --git a/packages/clients/src/api/webhosting/v1alpha1/api.gen.ts b/packages/clients/src/api/webhosting/v1alpha1/api.gen.ts index ff7894f3e..b6f9ebb4d 100644 --- a/packages/clients/src/api/webhosting/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/webhosting/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { HOSTING_TRANSIENT_STATUSES } from './content.gen' import { marshalCheckUserOwnsDomainRequest, @@ -67,7 +67,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par', 'nl-ams'] /** * Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer @@ -343,7 +343,11 @@ export class API extends ParentAPI { */ export class ClassicMailAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Create a new mailbox within your hosting plan.. Create a new mailbox within diff --git a/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts b/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts index 5a168de9e..61e2af21d 100644 --- a/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts @@ -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, Region } from '../../../bridge' +import type { Money, Region as ScwRegion } from '../../../bridge' import type { LanguageCode as StdLanguageCode } from '../../std/types.gen' export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid' @@ -175,7 +175,7 @@ export interface Hosting { */ oneTimePassword: string /** Region where the Web Hosting plan is hosted. */ - region: Region + region: ScwRegion } export interface Mailbox { @@ -212,7 +212,7 @@ export type CheckUserOwnsDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain for which ownership is to be verified. */ domain: string /** ID of the project currently in use. */ @@ -229,7 +229,7 @@ export type ClassicMailApiCreateMailboxRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Online hosting ID. */ onlineId: number /** The email address of the mailbox. */ @@ -243,7 +243,7 @@ export type ClassicMailApiDeleteMailboxRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Online hosting ID. */ onlineId: number /** The ID of the mailbox to delete. */ @@ -255,7 +255,7 @@ export type ClassicMailApiGetMailboxRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Online hosting ID. */ onlineId: number /** The ID of the mailbox to get. */ @@ -267,7 +267,7 @@ export type ClassicMailApiListMailboxesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Online hosting ID. */ onlineId: number /** Page number (must be a positive integer). */ @@ -286,7 +286,7 @@ export type ClassicMailApiUpdateMailboxRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Online hosting ID. */ onlineId: number /** The ID of the mailbox to update. */ @@ -300,7 +300,7 @@ export type CreateHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the selected offer for the Web Hosting plan. */ offerId: string /** ID of the Scaleway Project in which to create the Web Hosting plan. */ @@ -330,7 +330,7 @@ export type CreateSessionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -340,7 +340,7 @@ export type DeleteHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -359,7 +359,7 @@ export type GetDomainDnsRecordsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain associated with the DNS records. */ domain: string } @@ -369,7 +369,7 @@ export type GetHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -379,7 +379,7 @@ export type ListControlPanelsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * Page number to return, from the paginated results (must be a positive * integer). @@ -404,7 +404,7 @@ export type ListHostingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * Page number to return, from the paginated results (must be a positive * integer). @@ -468,7 +468,7 @@ export type ListOffersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Sort order of offers in the response. */ orderBy?: ListOffersRequestOrderBy /** @@ -500,7 +500,7 @@ export type ResetHostingPasswordRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the hosting. */ hostingId: string } @@ -515,7 +515,7 @@ export type RestoreHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string } @@ -530,7 +530,7 @@ export type UpdateHostingRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hosting ID. */ hostingId: string /** New contact email for the Web Hosting plan. */