From dd2985d83f6c959f7bdb756482c16e0c8d842403 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 14 Jun 2024 13:25:24 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/ipam/v1/marshalling.gen.ts | 2 +- packages/clients/src/api/ipam/v1/types.gen.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/clients/src/api/ipam/v1/marshalling.gen.ts b/packages/clients/src/api/ipam/v1/marshalling.gen.ts index 844bfd90b..b28d0f8eb 100644 --- a/packages/clients/src/api/ipam/v1/marshalling.gen.ts +++ b/packages/clients/src/api/ipam/v1/marshalling.gen.ts @@ -76,7 +76,7 @@ export const unmarshalIP = (data: unknown): IP => { region: data.region, resource: data.resource ? unmarshalResource(data.resource) : undefined, reverses: unmarshalArrayOfObject(data.reverses, unmarshalReverse), - source: unmarshalSource(data.source), + source: data.source ? unmarshalSource(data.source) : undefined, tags: data.tags, updatedAt: unmarshalDate(data.updated_at), zone: data.zone, diff --git a/packages/clients/src/api/ipam/v1/types.gen.ts b/packages/clients/src/api/ipam/v1/types.gen.ts index e0aef148a..4608541b4 100644 --- a/packages/clients/src/api/ipam/v1/types.gen.ts +++ b/packages/clients/src/api/ipam/v1/types.gen.ts @@ -86,7 +86,7 @@ export interface IP { /** Date the IP was last modified. */ updatedAt?: Date /** Source pool where the IP was booked in. */ - source: Source + source?: Source /** Resource which the IP is attached to. */ resource?: Resource /** Tags for the IP. */