Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/clients/src/api/instance/v1/content.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {
IpState,
PrivateNICState,
SecurityGroupState,
ServerIpState,
ServerState,
SnapshotState,
TaskStatus,
Expand All @@ -26,6 +27,9 @@ export const SECURITY_GROUP_TRANSIENT_STATUSES: SecurityGroupState[] = [
'syncing',
]

/** Lists transient statutes of the enum {@link ServerIpState}. */
export const SERVER_IP_TRANSIENT_STATUSES: ServerIpState[] = ['pending']

/** Lists transient statutes of the enum {@link ServerState}. */
export const SERVER_TRANSIENT_STATUSES: ServerState[] = ['starting', 'stopping']

Expand Down
1 change: 1 addition & 0 deletions packages/clients/src/api/instance/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export type {
ServerIp,
ServerIpIpFamily,
ServerIpProvisioningMode,
ServerIpState,
ServerIpv6,
ServerLocation,
ServerMaintenance,
Expand Down
2 changes: 2 additions & 0 deletions packages/clients/src/api/instance/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ const unmarshalServerIp = (data: unknown) => {
id: data.id,
netmask: data.netmask,
provisioningMode: data.provisioning_mode,
state: data.state,
tags: data.tags,
} as ServerIp
}
Expand Down Expand Up @@ -1555,6 +1556,7 @@ const marshalServerIp = (
id: request.id,
netmask: request.netmask,
provisioning_mode: request.provisioningMode,
state: request.state,
tags: request.tags,
})

Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ export type ServerIpIpFamily = 'inet' | 'inet6'

export type ServerIpProvisioningMode = 'manual' | 'dhcp' | 'slaac'

export type ServerIpState =
| 'unknown_state'
| 'detached'
| 'attached'
| 'pending'
| 'error'

export type ServerState =
| 'running'
| 'stopped'
Expand Down Expand Up @@ -638,6 +645,7 @@ export interface ServerIp {
provisioningMode: ServerIpProvisioningMode
/** Tags associated with the IP. */
tags: string[]
state: ServerIpState
}

/** Server. ipv6. */
Expand Down