From 6909b68562c19ec08067a7428b3c120e8cbb624b Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 2 Aug 2023 15:35:44 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/lb/v1/marshalling.gen.ts | 6 +- packages/clients/src/api/lb/v1/types.gen.ts | 55 ++++++++++--------- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/packages/clients/src/api/lb/v1/marshalling.gen.ts b/packages/clients/src/api/lb/v1/marshalling.gen.ts index fb0e21d21..5ae4c2bb0 100644 --- a/packages/clients/src/api/lb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/lb/v1/marshalling.gen.ts @@ -469,7 +469,7 @@ const unmarshalPrivateNetworkDHCPConfig = (data: unknown) => { ) } - return {} as PrivateNetworkDHCPConfig + return { ipId: data.ip_id } as PrivateNetworkDHCPConfig } const unmarshalPrivateNetworkIpamConfig = (data: unknown) => { @@ -942,7 +942,9 @@ const marshalHealthCheck = ( const marshalPrivateNetworkDHCPConfig = ( request: PrivateNetworkDHCPConfig, defaults: DefaultValues, -): Record => ({}) +): Record => ({ + ip_id: request.ipId, +}) const marshalPrivateNetworkIpamConfig = ( request: PrivateNetworkIpamConfig, diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index b90cdb592..dde5c3592 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -764,25 +764,25 @@ export interface PrivateNetwork { /** Load Balancer object which is attached to the Private Network. */ lb?: Lb /** - * Object containing an array of a local IP address for the Load Balancer on - * this Private Network. + * @deprecated Object containing an array of a local IP address for the Load + * Balancer on this Private Network. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ staticConfig?: PrivateNetworkStaticConfig /** - * Defines whether to let DHCP assign IP addresses. + * Object containing DHCP-assigned IP addresses. * * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', * 'ipamConfig' could be set. */ dhcpConfig?: PrivateNetworkDHCPConfig /** - * For internal use only. + * @deprecated For internal use only. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ ipamConfig?: PrivateNetworkIpamConfig /** Private Network ID. */ @@ -795,14 +795,19 @@ export interface PrivateNetwork { updatedAt?: Date } -export interface PrivateNetworkDHCPConfig {} +export interface PrivateNetworkDHCPConfig { + ipId: string +} export interface PrivateNetworkIpamConfig {} /** Private network. static config. */ export interface PrivateNetworkStaticConfig { - /** Array of a local IP address for the Load Balancer on this Private Network. */ - ipAddress: string[] + /** + * @deprecated Array of a local IP address for the Load Balancer on this + * Private Network. + */ + ipAddress?: string[] } /** Route. */ @@ -1965,11 +1970,11 @@ export type AttachPrivateNetworkRequest = { /** Private Network ID. */ privateNetworkId: string /** - * Object containing an array of a local IP address for the Load Balancer on - * this Private Network. + * @deprecated Object containing an array of a local IP address for the Load + * Balancer on this Private Network. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ staticConfig?: PrivateNetworkStaticConfig /** @@ -1980,10 +1985,10 @@ export type AttachPrivateNetworkRequest = { */ dhcpConfig?: PrivateNetworkDHCPConfig /** - * For internal use only. + * @deprecated For internal use only. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ ipamConfig?: PrivateNetworkIpamConfig } @@ -2932,11 +2937,11 @@ export type ZonedApiAttachPrivateNetworkRequest = { /** Private Network ID. */ privateNetworkId: string /** - * Object containing an array of a local IP address for the Load Balancer on - * this Private Network. + * @deprecated Object containing an array of a local IP address for the Load + * Balancer on this Private Network. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ staticConfig?: PrivateNetworkStaticConfig /** @@ -2947,10 +2952,10 @@ export type ZonedApiAttachPrivateNetworkRequest = { */ dhcpConfig?: PrivateNetworkDHCPConfig /** - * For internal use only. + * @deprecated For internal use only. * - * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', - * 'ipamConfig' could be set. + * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig', + * 'ipamConfig' could be set. */ ipamConfig?: PrivateNetworkIpamConfig }