Skip to content

Commit b9558a0

Browse files
authored
feat(instance): add ipIds to CreatePrivateNIC request (#744)
1 parent e1bb6ce commit b9558a0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
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
@@ -1703,6 +1703,7 @@ export const marshalCreatePrivateNICRequest = (
17031703
request: CreatePrivateNICRequest,
17041704
defaults: DefaultValues,
17051705
): Record<string, unknown> => ({
1706+
ip_ids: request.ipIds,
17061707
private_network_id: request.privateNetworkId,
17071708
tags: request.tags,
17081709
})

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -888,21 +888,21 @@ export interface VolumeServer {
888888
/** Volume server template. */
889889
export interface VolumeServerTemplate {
890890
/** UUID of the volume. */
891-
id: string
891+
id?: string
892892
/** Force the Instance to boot on this volume. */
893-
boot: boolean
893+
boot?: boolean
894894
/** Name of the volume. */
895-
name: string
895+
name?: string
896896
/** Disk size of the volume, must be a multiple of 512. */
897-
size: number
897+
size?: number
898898
/** Type of the volume. */
899899
volumeType: VolumeVolumeType
900900
/** ID of the snapshot on which this volume will be based. */
901-
baseSnapshot: string
901+
baseSnapshot?: string
902902
/** Organization ID of the volume. */
903-
organization: string
903+
organization?: string
904904
/** Project ID of the volume. */
905-
project: string
905+
project?: string
906906
}
907907

908908
export interface VolumeSummary {
@@ -1678,6 +1678,8 @@ export type CreatePrivateNICRequest = {
16781678
privateNetworkId: string
16791679
/** Private NIC tags. */
16801680
tags?: string[]
1681+
/** Ip_ids defined from IPAM. */
1682+
ipIds?: string[]
16811683
}
16821684

16831685
export type GetPrivateNICRequest = {

0 commit comments

Comments
 (0)