Skip to content

Commit dbe2a09

Browse files
committed
feat: update generated APIs
1 parent 8768d24 commit dbe2a09

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages_generated/rdb/src/v1/api.gen.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import {
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'
1113
import {
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 = {
172174
This API allows you to manage your Managed Databases for PostgreSQL and MySQL.
173175
*/
174176
export 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> = {},

0 commit comments

Comments
 (0)