Skip to content

Commit 895328f

Browse files
authored
feat(instance): add ipam_id to ServerIp and Ip (#1068)
1 parent d944d17 commit 895328f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ const unmarshalServerIp = (data: unknown): ServerIp => {
311311
family: data.family,
312312
gateway: data.gateway,
313313
id: data.id,
314+
ipamId: data.ipam_id,
314315
netmask: data.netmask,
315316
provisioningMode: data.provisioning_mode,
316317
state: data.state,
@@ -476,6 +477,7 @@ const unmarshalIp = (data: unknown): Ip => {
476477
return {
477478
address: data.address,
478479
id: data.id,
480+
ipamId: data.ipam_id,
479481
organization: data.organization,
480482
prefix: data.prefix,
481483
project: data.project,
@@ -2206,6 +2208,7 @@ const marshalServerIp = (
22062208
family: request.family,
22072209
gateway: request.gateway,
22082210
id: request.id,
2211+
ipam_id: request.ipamId,
22092212
netmask: request.netmask,
22102213
provisioning_mode: request.provisioningMode,
22112214
state: request.state,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ export interface ServerIp {
304304
/** Tags associated with the IP. */
305305
tags: string[]
306306
state: ServerIpState
307+
/** The ip_id of an IPAM ip if the ip is created from IPAM, null if not. */
308+
ipamId: string
307309
}
308310

309311
export interface ServerIpv6 {
@@ -486,6 +488,7 @@ export interface Ip {
486488
type: IpType
487489
state: IpState
488490
prefix: string
491+
ipamId: string
489492
/** Zone to target. If none is passed will use default zone from the config. */
490493
zone: Zone
491494
}

0 commit comments

Comments
 (0)