Skip to content

Commit b71a504

Browse files
authored
feat(instance): adapt pnic creation to ipam workflow (#1307)
1 parent 82c290c commit b71a504

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,7 @@ export const marshalCreatePrivateNICRequest = (
17551755
defaults: DefaultValues,
17561756
): Record<string, unknown> => ({
17571757
ip_ids: request.ipIds,
1758+
ipam_ip_ids: request.ipamIpIds,
17581759
private_network_id: request.privateNetworkId,
17591760
tags: request.tags,
17601761
})

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,13 @@ export type CreatePrivateNICRequest = {
912912
privateNetworkId: string
913913
/** Private NIC tags. */
914914
tags?: string[]
915-
/** Ip_ids defined from IPAM. */
915+
/** @deprecated Ip_ids defined from IPAM. */
916916
ipIds?: string[]
917+
/**
918+
* UUID of IPAM ips, to be attached to the instance in the requested private
919+
* network.
920+
*/
921+
ipamIpIds?: string[]
917922
}
918923

919924
export interface CreatePrivateNICResponse {

0 commit comments

Comments
 (0)