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
1 change: 1 addition & 0 deletions packages/clients/src/api/instance/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ export class API extends ParentAPI {
? request.tags.join(',')
: undefined,
],
['with_ip', request.withIp],
['without_ip', request.withoutIp],
),
},
Expand Down
36 changes: 27 additions & 9 deletions packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,17 +408,26 @@ export interface Server {
dynamicIpRequired: boolean
/** True to configure the instance so it uses the new routed IP mode. */
routedIpEnabled: boolean
/** True if IPv6 is enabled. */
enableIpv6: boolean
/**
* @deprecated True if IPv6 is enabled (deprecated and always `False` when
* `routed_ip_enabled` is `True`).
*/
enableIpv6?: boolean
/** Instance host name. */
hostname: string
/** Information about the Instance image. */
image?: Image
/** Defines whether the Instance protection option is activated. */
protected: boolean
/** Private IP address of the Instance. */
/**
* Private IP address of the Instance (deprecated and always `null` when
* `routed_ip_enabled` is `True`).
*/
privateIp?: string
/** Information about the public IP. */
/**
* @deprecated Information about the public IP (deprecated in favor of
* `public_ips`).
*/
publicIp?: ServerIp
/** Information about all the public IPs attached to the server. */
publicIps: ServerIp[]
Expand All @@ -430,7 +439,10 @@ export interface Server {
state: ServerState
/** Instance location. */
location?: ServerLocation
/** Instance IPv6 address. */
/**
* @deprecated Instance IPv6 address (deprecated when `routed_ip_enabled` is
* `True`).
*/
ipv6?: ServerIpv6
/** @deprecated Instance bootscript. */
bootscript?: Bootscript
Expand Down Expand Up @@ -987,9 +999,12 @@ export type CreateServerRequest = {
image: string
/** Volumes attached to the server. */
volumes?: Record<string, VolumeServerTemplate>
/** True if IPv6 is enabled on the server. */
enableIpv6: boolean
/** ID of the reserved IP to attach to the Instance. */
/**
* @deprecated True if IPv6 is enabled on the server (deprecated and always
* `False` when `routed_ip_enabled` is `True`).
*/
enableIpv6?: boolean
/** @deprecated ID of the reserved IP to attach to the Instance. */
publicIp?: string
/** A list of reserved IP IDs to attach to the Instance. */
publicIps?: string[]
Expand Down Expand Up @@ -1581,10 +1596,12 @@ export type ListServersRequest = {
* "server1" but not "foo").
*/
name?: string
/** List Instances by private_ip. */
/** @deprecated List Instances by private_ip. */
privateIp?: string
/** List Instances that are not attached to a public IP. */
withoutIp?: boolean
/** List Instances by IP (both private_ip and public_ip are supported). */
withIp?: string
/** List Instances of this commercial type. */
commercialType?: string
/** List Instances in this state. */
Expand Down Expand Up @@ -2001,6 +2018,7 @@ export type UpdateServerRequest = {
routedIpEnabled?: boolean
/** A list of reserved IP IDs to attach to the Instance. */
publicIps?: string[]
/** @deprecated */
enableIpv6?: boolean
protected?: boolean
securityGroup?: SecurityGroupTemplate
Expand Down
22 changes: 17 additions & 5 deletions packages/clients/src/api/instance/v1/types.private.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,26 @@ export type SetServerRequest = {
* is set to True you cannot set it back to False).
*/
routedIpEnabled?: boolean
/** True if IPv6 is enabled. */
enableIpv6: boolean
/**
* @deprecated True if IPv6 is enabled (deprecated and always `False` when
* `routed_ip_enabled` is `True`).
*/
enableIpv6?: boolean
/** Instance host name. */
hostname: string
/** Provide information on the Instance image. */
image?: Image
/** Instance protection option is activated. */
protected: boolean
/** Instance private IP address. */
/**
* @deprecated Instance private IP address (deprecated and always `null` when
* `routed_ip_enabled` is `True`).
*/
privateIp?: string
/** Information about the public IP. */
/**
* @deprecated Information about the public IP (deprecated in favor of
* `public_ips`).
*/
publicIp?: ServerIp
/** Information about all the public IPs attached to the server. */
publicIps?: ServerIp[]
Expand All @@ -142,7 +151,10 @@ export type SetServerRequest = {
state?: ServerState
/** Instance location. */
location?: ServerLocation
/** Instance IPv6 address. */
/**
* @deprecated Instance IPv6 address (deprecated when `routed_ip_enabled` is
* `True`).
*/
ipv6?: ServerIpv6
/** @deprecated Instance bootscript. */
bootscript?: Bootscript
Expand Down