From d09b450aa4acb6214ff0012a90b2c70ded7a9551 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 15 Apr 2024 14:57:09 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/instance/v1/api.gen.ts | 1 + .../clients/src/api/instance/v1/types.gen.ts | 36 ++++++++++++++----- .../src/api/instance/v1/types.private.gen.ts | 22 +++++++++--- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a/packages/clients/src/api/instance/v1/api.gen.ts b/packages/clients/src/api/instance/v1/api.gen.ts index d3324dadb..37ab4bd7b 100644 --- a/packages/clients/src/api/instance/v1/api.gen.ts +++ b/packages/clients/src/api/instance/v1/api.gen.ts @@ -350,6 +350,7 @@ export class API extends ParentAPI { ? request.tags.join(',') : undefined, ], + ['with_ip', request.withIp], ['without_ip', request.withoutIp], ), }, diff --git a/packages/clients/src/api/instance/v1/types.gen.ts b/packages/clients/src/api/instance/v1/types.gen.ts index 38110e3e2..479e8b065 100644 --- a/packages/clients/src/api/instance/v1/types.gen.ts +++ b/packages/clients/src/api/instance/v1/types.gen.ts @@ -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[] @@ -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 @@ -987,9 +999,12 @@ export type CreateServerRequest = { image: string /** Volumes attached to the server. */ volumes?: Record - /** 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[] @@ -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. */ @@ -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 diff --git a/packages/clients/src/api/instance/v1/types.private.gen.ts b/packages/clients/src/api/instance/v1/types.private.gen.ts index c747e7b22..639795101 100644 --- a/packages/clients/src/api/instance/v1/types.private.gen.ts +++ b/packages/clients/src/api/instance/v1/types.private.gen.ts @@ -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[] @@ -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