Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webhosting): rename locality imports #1758

Merged
merged 2 commits into from
Jan 30, 2025
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
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
Loading