Skip to content

Commit 8dfe2bc

Browse files
authored
feat(instance): deprecate use of NATed IP in instance api documentation (#1410)
1 parent 9603844 commit 8dfe2bc

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,11 @@ export interface Server {
407407
creationDate?: Date
408408
/** True if a dynamic IPv4 is required. */
409409
dynamicIpRequired: boolean
410-
/** True to configure the instance so it uses the new routed IP mode. */
411-
routedIpEnabled: boolean
410+
/**
411+
* @deprecated True to configure the instance so it uses the routed IP mode.
412+
* Use of `routed_ip_enabled` as `False` is deprecated.
413+
*/
414+
routedIpEnabled?: boolean
412415
/**
413416
* @deprecated True if IPv6 is enabled (deprecated and always `False` when
414417
* `routed_ip_enabled` is `True`).
@@ -865,7 +868,10 @@ export type CreateIpRequest = {
865868
tags?: string[]
866869
/** UUID of the Instance you want to attach the IP to. */
867870
server?: string
868-
/** IP type to reserve (either 'nat', 'routed_ipv4' or 'routed_ipv6'). */
871+
/**
872+
* IP type to reserve (either 'routed_ipv4' or 'routed_ipv6', use of 'nat' is
873+
* deprecated).
874+
*/
869875
type?: IpType
870876
}
871877

@@ -1012,7 +1018,10 @@ export type CreateServerRequest = {
10121018
name?: string
10131019
/** Define if a dynamic IPv4 is required for the Instance. */
10141020
dynamicIpRequired?: boolean
1015-
/** If true, configure the Instance so it uses the new routed IP mode. */
1021+
/**
1022+
* @deprecated If true, configure the Instance so it uses the new routed IP
1023+
* mode.
1024+
*/
10161025
routedIpEnabled?: boolean
10171026
/** Define the Instance commercial type (i.e. GP1-S). */
10181027
commercialType: string
@@ -1459,8 +1468,8 @@ export type ListIpsRequest = {
14591468
/** A positive integer to choose the page to return. */
14601469
page?: number
14611470
/**
1462-
* Filter on the IP Mobility IP type (whose value should be either 'nat',
1463-
* 'routed_ipv4' or 'routed_ipv6').
1471+
* Filter on the IP Mobility IP type (whose value should be either
1472+
* 'routed_ipv4', 'routed_ipv6' or 'nat').
14641473
*/
14651474
type?: string
14661475
}
@@ -2035,8 +2044,8 @@ export type UpdateServerRequest = {
20352044
bootscript?: string
20362045
dynamicIpRequired?: boolean
20372046
/**
2038-
* True to configure the instance so it uses the new routed IP mode (once this
2039-
* is set to True you cannot set it back to False).
2047+
* @deprecated True to configure the instance so it uses the new routed IP
2048+
* mode (once this is set to True you cannot set it back to False).
20402049
*/
20412050
routedIpEnabled?: boolean
20422051
/** A list of reserved IP IDs to attach to the Instance. */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ export type SetServerRequest = {
118118
/** True if a dynamic IPv4 is required. */
119119
dynamicIpRequired: boolean
120120
/**
121-
* True to configure the instance so it uses the new routed IP mode (once this
122-
* is set to True you cannot set it back to False).
121+
* @deprecated True to configure the instance so it uses the new routed IP
122+
* mode (once this is set to True you cannot set it back to False).
123123
*/
124124
routedIpEnabled?: boolean
125125
/**

0 commit comments

Comments
 (0)