File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
packages/clients/src/api/instance/v1 Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type {
5
5
IpState ,
6
6
PrivateNICState ,
7
7
SecurityGroupState ,
8
+ ServerIpState ,
8
9
ServerState ,
9
10
SnapshotState ,
10
11
TaskStatus ,
@@ -26,6 +27,9 @@ export const SECURITY_GROUP_TRANSIENT_STATUSES: SecurityGroupState[] = [
26
27
'syncing' ,
27
28
]
28
29
30
+ /** Lists transient statutes of the enum {@link ServerIpState}. */
31
+ export const SERVER_IP_TRANSIENT_STATUSES : ServerIpState [ ] = [ 'pending' ]
32
+
29
33
/** Lists transient statutes of the enum {@link ServerState}. */
30
34
export const SERVER_TRANSIENT_STATUSES : ServerState [ ] = [ 'starting' , 'stopping' ]
31
35
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ export type {
124
124
ServerIp ,
125
125
ServerIpIpFamily ,
126
126
ServerIpProvisioningMode ,
127
+ ServerIpState ,
127
128
ServerIpv6 ,
128
129
ServerLocation ,
129
130
ServerMaintenance ,
Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ const unmarshalServerIp = (data: unknown) => {
320
320
id : data . id ,
321
321
netmask : data . netmask ,
322
322
provisioningMode : data . provisioning_mode ,
323
+ state : data . state ,
323
324
tags : data . tags ,
324
325
} as ServerIp
325
326
}
@@ -1555,6 +1556,7 @@ const marshalServerIp = (
1555
1556
id : request . id ,
1556
1557
netmask : request . netmask ,
1557
1558
provisioning_mode : request . provisioningMode ,
1559
+ state : request . state ,
1558
1560
tags : request . tags ,
1559
1561
} )
1560
1562
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ export type ServerIpIpFamily = 'inet' | 'inet6'
52
52
53
53
export type ServerIpProvisioningMode = 'manual' | 'dhcp' | 'slaac'
54
54
55
+ export type ServerIpState =
56
+ | 'unknown_state'
57
+ | 'detached'
58
+ | 'attached'
59
+ | 'pending'
60
+ | 'error'
61
+
55
62
export type ServerState =
56
63
| 'running'
57
64
| 'stopped'
@@ -638,6 +645,7 @@ export interface ServerIp {
638
645
provisioningMode : ServerIpProvisioningMode
639
646
/** Tags associated with the IP. */
640
647
tags : string [ ]
648
+ state : ServerIpState
641
649
}
642
650
643
651
/** Server. ipv6. */
You can’t perform that action at this time.
0 commit comments