Skip to content

Commit 822b30e

Browse files
authored
feat(lb): add support for nl-ams-3 (#742)
1 parent 2e604ff commit 822b30e

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class API extends ParentAPI {
417417
* @param request - The request {@link CreateIpRequest}
418418
* @returns A Promise of Ip
419419
*/
420-
createIp = (request: Readonly<CreateIpRequest>) =>
420+
createIp = (request: Readonly<CreateIpRequest> = {}) =>
421421
this.client.fetch<Ip>(
422422
{
423423
body: JSON.stringify(
@@ -947,6 +947,12 @@ export class API extends ParentAPI {
947947
unmarshalListBackendStatsResponse,
948948
)
949949

950+
/**
951+
* List backend server statistics.
952+
*
953+
* @param request - The request {@link ListBackendStatsRequest}
954+
* @returns A Promise of ListBackendStatsResponse
955+
*/
950956
listBackendStats = (request: Readonly<ListBackendStatsRequest>) =>
951957
enrichForPagination(
952958
'backendServersStats',
@@ -1490,6 +1496,7 @@ export class ZonedAPI extends ParentAPI {
14901496
'fr-par-2',
14911497
'nl-ams-1',
14921498
'nl-ams-2',
1499+
'nl-ams-3',
14931500
'pl-waw-1',
14941501
'pl-waw-2',
14951502
]
@@ -1699,7 +1706,7 @@ export class ZonedAPI extends ParentAPI {
16991706
* @param request - The request {@link ZonedApiCreateIpRequest}
17001707
* @returns A Promise of Ip
17011708
*/
1702-
createIp = (request: Readonly<ZonedApiCreateIpRequest>) =>
1709+
createIp = (request: Readonly<ZonedApiCreateIpRequest> = {}) =>
17031710
this.client.fetch<Ip>(
17041711
{
17051712
body: JSON.stringify(

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,6 @@ export const marshalCreateIpRequest = (
11051105
request: CreateIpRequest,
11061106
defaults: DefaultValues,
11071107
): Record<string, unknown> => ({
1108-
is_ipv6: request.isIpv6,
11091108
reverse: request.reverse,
11101109
...resolveOneOf([
11111110
{
@@ -1128,7 +1127,6 @@ export const marshalCreateLbRequest = (
11281127
assign_flexible_ip: request.assignFlexibleIp,
11291128
description: request.description,
11301129
ip_id: request.ipId,
1131-
ip_ids: request.ipIds,
11321130
name: request.name || randomName('lb'),
11331131
ssl_compatibility_level:
11341132
request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
@@ -1497,7 +1495,6 @@ export const marshalZonedApiCreateIpRequest = (
14971495
request: ZonedApiCreateIpRequest,
14981496
defaults: DefaultValues,
14991497
): Record<string, unknown> => ({
1500-
is_ipv6: request.isIpv6,
15011498
reverse: request.reverse,
15021499
...resolveOneOf([
15031500
{
@@ -1520,7 +1517,6 @@ export const marshalZonedApiCreateLbRequest = (
15201517
assign_flexible_ip: request.assignFlexibleIp,
15211518
description: request.description,
15221519
ip_id: request.ipId,
1523-
ip_ids: request.ipIds,
15241520
name: request.name || randomName('lb'),
15251521
ssl_compatibility_level:
15261522
request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export interface AclActionRedirect {
176176
* `git`) will replace the request's original scheme. This can be useful to
177177
* implement HTTP to HTTPS redirects. Valid placeholders that can be used in a
178178
* `location` redirect to preserve parts of the original request in the
179-
* redirection URL are {{ host }}, {{ query }}, {{ path }} and {{ scheme }}.
179+
* redirection URL are {{host}}, {{query}}, {{path}} and {{scheme}}.
180180
*/
181181
target: string
182182
/**
@@ -949,8 +949,6 @@ export type CreateLbRequest = {
949949
* value is `false` (do not assign).
950950
*/
951951
assignFlexibleIp?: boolean
952-
/** List of IP IDs to attach to the Load Balancer. */
953-
ipIds?: string[]
954952
/** List of tags for the Load Balancer. */
955953
tags?: string[]
956954
/**
@@ -1082,8 +1080,6 @@ export type CreateIpRequest = {
10821080
projectId?: string
10831081
/** Reverse DNS (domain name) for the IP address. */
10841082
reverse?: string
1085-
/** If true, creates a Flexible IP with an ipv6 address. */
1086-
isIpv6: boolean
10871083
}
10881084

10891085
export type GetIpRequest = {
@@ -2058,8 +2054,6 @@ export type ZonedApiCreateLbRequest = {
20582054
* value is `false` (do not assign).
20592055
*/
20602056
assignFlexibleIp?: boolean
2061-
/** List of IP IDs to attach to the Load Balancer. */
2062-
ipIds?: string[]
20632057
/** List of tags for the Load Balancer. */
20642058
tags?: string[]
20652059
/**
@@ -2173,8 +2167,6 @@ export type ZonedApiCreateIpRequest = {
21732167
projectId?: string
21742168
/** Reverse DNS (domain name) for the IP address. */
21752169
reverse?: string
2176-
/** If true, creates a Flexible IP with an ipv6 address. */
2177-
isIpv6: boolean
21782170
}
21792171

21802172
export type ZonedApiGetIpRequest = {

0 commit comments

Comments
 (0)