Skip to content

Commit bc6df3f

Browse files
authored
feat(lb): add bool to match subdomains in routes (#1773)
1 parent 5215582 commit bc6df3f

File tree

2 files changed

+127
-119
lines changed

2 files changed

+127
-119
lines changed

packages/clients/src/api/lb/v1/api.gen.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import {
77
validatePathParam,
88
waitForResource,
99
} from '../../../bridge'
10-
import type { Region, WaitForOptions, Zone } from '../../../bridge'
10+
import type {
11+
Region as ScwRegion,
12+
Zone as ScwZone,
13+
WaitForOptions,
14+
} from '../../../bridge'
1115
import {
1216
CERTIFICATE_TRANSIENT_STATUSES,
1317
LB_TRANSIENT_STATUSES,
@@ -228,7 +232,7 @@ const jsonContentHeaders = {
228232
*/
229233
export class ZonedAPI extends ParentAPI {
230234
/** Lists the available zones of the API. */
231-
public static readonly LOCALITIES: Zone[] = [
235+
public static readonly LOCALITIES: ScwZone[] = [
232236
'fr-par-1',
233237
'fr-par-2',
234238
'nl-ams-1',
@@ -1467,7 +1471,11 @@ export class ZonedAPI extends ParentAPI {
14671471
*/
14681472
export class API extends ParentAPI {
14691473
/** Lists the available regions of the API. */
1470-
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']
1474+
public static readonly LOCALITIES: ScwRegion[] = [
1475+
'fr-par',
1476+
'nl-ams',
1477+
'pl-waw',
1478+
]
14711479

14721480
protected pageOfListLbs = (request: Readonly<ListLbsRequest> = {}) =>
14731481
this.client.fetch<ListLbsResponse>(

0 commit comments

Comments
 (0)