|
7 | 7 | validatePathParam, |
8 | 8 | waitForResource, |
9 | 9 | } from '@scaleway/sdk-client' |
10 | | -import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client' |
| 10 | +import type { WaitForOptions } from '@scaleway/sdk-client' |
| 11 | +import type { ApiLocality } from '../types/locality' |
| 12 | +import { toApiLocality } from '../types/locality' |
11 | 13 | import { |
12 | 14 | SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON, |
13 | 15 | SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON, |
@@ -73,8 +75,13 @@ const jsonContentHeaders = { |
73 | 75 | This API allows you to manage your Apple silicon machines. |
74 | 76 | */ |
75 | 77 | export class API extends ParentAPI { |
76 | | - /** Lists the available zones of the API. */ |
77 | | - public static readonly LOCALITIES: ScwZone[] = ['fr-par-3'] |
| 78 | + /** |
| 79 | + * Locality of this API. |
| 80 | + * type ∈ {'zone','region','global','unspecified'} |
| 81 | + */ |
| 82 | + public static readonly LOCALITY: ApiLocality = toApiLocality({ |
| 83 | + zones: ['fr-par-3'], |
| 84 | + }) |
78 | 85 |
|
79 | 86 | /** |
80 | 87 | * List server types. List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`. |
@@ -332,8 +339,13 @@ export class API extends ParentAPI { |
332 | 339 | * Apple silicon - Private Networks API. |
333 | 340 | */ |
334 | 341 | export class PrivateNetworkAPI extends ParentAPI { |
335 | | - /** Lists the available zones of the API. */ |
336 | | - public static readonly LOCALITIES: ScwZone[] = ['fr-par-1', 'fr-par-3'] |
| 342 | + /** |
| 343 | + * Locality of this API. |
| 344 | + * type ∈ {'zone','region','global','unspecified'} |
| 345 | + */ |
| 346 | + public static readonly LOCALITY: ApiLocality = toApiLocality({ |
| 347 | + zones: ['fr-par-1', 'fr-par-3'], |
| 348 | + }) |
337 | 349 |
|
338 | 350 | getServerPrivateNetwork = ( |
339 | 351 | request: Readonly<PrivateNetworkApiGetServerPrivateNetworkRequest>, |
|
0 commit comments