|
7 | 7 | validatePathParam, |
8 | 8 | waitForResource, |
9 | 9 | } from '../../../bridge' |
10 | | -import type { Region, WaitForOptions } from '../../../bridge' |
| 10 | +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' |
11 | 11 | import { HOSTING_TRANSIENT_STATUSES } from './content.gen' |
12 | 12 | import { |
13 | 13 | marshalDatabaseApiAssignDatabaseUserRequest, |
@@ -108,7 +108,11 @@ const jsonContentHeaders = { |
108 | 108 | */ |
109 | 109 | export class ControlPanelAPI extends ParentAPI { |
110 | 110 | /** Lists the available regions of the API. */ |
111 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 111 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 112 | + 'fr-par', |
| 113 | + 'nl-ams', |
| 114 | + 'pl-waw', |
| 115 | + ] |
112 | 116 |
|
113 | 117 | protected pageOfListControlPanels = ( |
114 | 118 | request: Readonly<ControlPanelApiListControlPanelsRequest> = {}, |
@@ -148,7 +152,11 @@ export class ControlPanelAPI extends ParentAPI { |
148 | 152 | */ |
149 | 153 | export class DatabaseAPI extends ParentAPI { |
150 | 154 | /** Lists the available regions of the API. */ |
151 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 155 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 156 | + 'fr-par', |
| 157 | + 'nl-ams', |
| 158 | + 'pl-waw', |
| 159 | + ] |
152 | 160 |
|
153 | 161 | /** |
154 | 162 | * "Create a new database within your hosting plan". |
@@ -396,7 +404,11 @@ export class DatabaseAPI extends ParentAPI { |
396 | 404 | */ |
397 | 405 | export class DnsAPI extends ParentAPI { |
398 | 406 | /** Lists the available regions of the API. */ |
399 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 407 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 408 | + 'fr-par', |
| 409 | + 'nl-ams', |
| 410 | + 'pl-waw', |
| 411 | + ] |
400 | 412 |
|
401 | 413 | /** |
402 | 414 | * Get DNS records. Get the set of DNS records of a specified domain |
@@ -468,7 +480,11 @@ export class DnsAPI extends ParentAPI { |
468 | 480 | */ |
469 | 481 | export class OfferAPI extends ParentAPI { |
470 | 482 | /** Lists the available regions of the API. */ |
471 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 483 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 484 | + 'fr-par', |
| 485 | + 'nl-ams', |
| 486 | + 'pl-waw', |
| 487 | + ] |
472 | 488 |
|
473 | 489 | protected pageOfListOffers = ( |
474 | 490 | request: Readonly<OfferApiListOffersRequest> = {}, |
@@ -509,7 +525,11 @@ export class OfferAPI extends ParentAPI { |
509 | 525 | */ |
510 | 526 | export class HostingAPI extends ParentAPI { |
511 | 527 | /** Lists the available regions of the API. */ |
512 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 528 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 529 | + 'fr-par', |
| 530 | + 'nl-ams', |
| 531 | + 'pl-waw', |
| 532 | + ] |
513 | 533 |
|
514 | 534 | /** |
515 | 535 | * Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer |
@@ -705,7 +725,11 @@ export class HostingAPI extends ParentAPI { |
705 | 725 | */ |
706 | 726 | export class FtpAccountAPI extends ParentAPI { |
707 | 727 | /** Lists the available regions of the API. */ |
708 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 728 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 729 | + 'fr-par', |
| 730 | + 'nl-ams', |
| 731 | + 'pl-waw', |
| 732 | + ] |
709 | 733 |
|
710 | 734 | /** |
711 | 735 | * Create a new FTP account within your hosting plan.. Create a new FTP |
@@ -807,7 +831,11 @@ export class FtpAccountAPI extends ParentAPI { |
807 | 831 | */ |
808 | 832 | export class MailAccountAPI extends ParentAPI { |
809 | 833 | /** Lists the available regions of the API. */ |
810 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 834 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 835 | + 'fr-par', |
| 836 | + 'nl-ams', |
| 837 | + 'pl-waw', |
| 838 | + ] |
811 | 839 |
|
812 | 840 | /** |
813 | 841 | * Create a new mail account within your hosting plan.. Create a new mail |
@@ -924,7 +952,11 @@ export class MailAccountAPI extends ParentAPI { |
924 | 952 | */ |
925 | 953 | export class WebsiteAPI extends ParentAPI { |
926 | 954 | /** Lists the available regions of the API. */ |
927 | | - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] |
| 955 | + public static readonly LOCALITIES: ScwRegion[] = [ |
| 956 | + 'fr-par', |
| 957 | + 'nl-ams', |
| 958 | + 'pl-waw', |
| 959 | + ] |
928 | 960 |
|
929 | 961 | protected pageOfListWebsites = ( |
930 | 962 | request: Readonly<WebsiteApiListWebsitesRequest>, |
|
0 commit comments