Skip to content

Commit

Permalink
fix(webhosting): rename locality imports (#1758)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Castéran <[email protected]>
  • Loading branch information
scaleway-bot and Codelax authored Jan 30, 2025
1 parent fb7fa97 commit 90cc4c1
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 67 deletions.
50 changes: 41 additions & 9 deletions packages/clients/src/api/webhosting/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 { Region, WaitForOptions } from '../../../bridge'
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge'
import { HOSTING_TRANSIENT_STATUSES } from './content.gen'
import {
marshalDatabaseApiAssignDatabaseUserRequest,
Expand Down Expand Up @@ -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<ControlPanelApiListControlPanelsRequest> = {},
Expand Down Expand Up @@ -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".
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<OfferApiListOffersRequest> = {},
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<WebsiteApiListWebsitesRequest>,
Expand Down
Loading

0 comments on commit 90cc4c1

Please sign in to comment.