File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
packages_generated/rdb/src/v1 Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 77 validatePathParam ,
88 waitForResource ,
99} from '@scaleway/sdk-client'
10- import type { Region as ScwRegion , 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'
1113import {
1214 DATABASE_BACKUP_TRANSIENT_STATUSES as DATABASE_BACKUP_TRANSIENT_STATUSES_RDB ,
1315 INSTANCE_LOG_TRANSIENT_STATUSES as INSTANCE_LOG_TRANSIENT_STATUSES_RDB ,
@@ -172,12 +174,13 @@ const jsonContentHeaders = {
172174This API allows you to manage your Managed Databases for PostgreSQL and MySQL.
173175 */
174176export class API extends ParentAPI {
175- /** Lists the available regions of the API. */
176- public static readonly LOCALITIES : ScwRegion [ ] = [
177- 'fr-par' ,
178- 'nl-ams' ,
179- 'pl-waw' ,
180- ]
177+ /**
178+ * Locality of this API.
179+ * type ∈ {'zone','region','global','unspecified'}
180+ */
181+ public static readonly LOCALITY : ApiLocality = toApiLocality ( {
182+ regions : [ 'fr-par' , 'nl-ams' , 'pl-waw' ] ,
183+ } )
181184
182185 protected pageOfListDatabaseEngines = (
183186 request : Readonly < ListDatabaseEnginesRequest > = { } ,
You can’t perform that action at this time.
0 commit comments