Skip to content

Commit b97c8cb

Browse files
authored
feat(lb): display ipam_id for pn attachment in doc (#1350)
1 parent b5292da commit b97c8cb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ export const marshalAttachPrivateNetworkRequest = (
864864
request: AttachPrivateNetworkRequest,
865865
defaults: DefaultValues,
866866
): Record<string, unknown> => ({
867+
ipam_ids: request.ipamIds,
867868
...resolveOneOf([
868869
{
869870
param: 'static_config',
@@ -1464,6 +1465,7 @@ export const marshalZonedApiAttachPrivateNetworkRequest = (
14641465
request: ZonedApiAttachPrivateNetworkRequest,
14651466
defaults: DefaultValues,
14661467
): Record<string, unknown> => ({
1468+
ipam_ids: request.ipamIds,
14671469
...resolveOneOf([
14681470
{
14691471
param: 'static_config',

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,14 @@ export type AttachPrivateNetworkRequest = {
794794
* 'ipamConfig' could be set.
795795
*/
796796
ipamConfig?: PrivateNetworkIpamConfig
797+
/**
798+
* IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this
799+
* Private Network. In the future, it will be possible to specify multiple IPs
800+
* in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is
801+
* expected. When null, a new private IP address is created for the Load
802+
* Balancer on this Private Network.
803+
*/
804+
ipamIds?: string[]
797805
}
798806

799807
/** Add an ACL to a Load Balancer frontend. */
@@ -2018,6 +2026,14 @@ export type ZonedApiAttachPrivateNetworkRequest = {
20182026
* 'ipamConfig' could be set.
20192027
*/
20202028
ipamConfig?: PrivateNetworkIpamConfig
2029+
/**
2030+
* IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this
2031+
* Private Network. In the future, it will be possible to specify multiple IPs
2032+
* in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is
2033+
* expected. When null, a new private IP address is created for the Load
2034+
* Balancer on this Private Network.
2035+
*/
2036+
ipamIds?: string[]
20212037
}
20222038

20232039
/** Add an ACL to a Load Balancer frontend. */

0 commit comments

Comments
 (0)