From e03354d2c1154bb4124bc8d342f88c083c63ff93 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 6 Mar 2024 15:13:13 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/webhosting/v1alpha1/marshalling.gen.ts | 2 ++ packages/clients/src/api/webhosting/v1alpha1/types.gen.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/packages/clients/src/api/webhosting/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/webhosting/v1alpha1/marshalling.gen.ts index e78948fdf..f763d6a6c 100644 --- a/packages/clients/src/api/webhosting/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/webhosting/v1alpha1/marshalling.gen.ts @@ -78,6 +78,7 @@ export const unmarshalHosting = (data: unknown): Hosting => { platformHostname: data.platform_hostname, platformNumber: data.platform_number, projectId: data.project_id, + protected: data.protected, region: data.region, status: data.status, tags: data.tags, @@ -269,5 +270,6 @@ export const marshalUpdateHostingRequest = ( email: request.email, offer_id: request.offerId, option_ids: request.optionIds, + protected: request.protected, tags: request.tags, }) diff --git a/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts b/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts index 37a7531de..db0401d96 100644 --- a/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1alpha1/types.gen.ts @@ -157,6 +157,8 @@ export interface Hosting { ipv4: string /** IPv6 address of the hosting's host server. */ ipv6: string + /** Whether the hosting is protected or not. */ + protected: boolean /** Region where the Web Hosting plan is hosted. */ region: Region } @@ -392,4 +394,6 @@ export type UpdateHostingRequest = { optionIds?: string[] /** ID of the new offer for the Web Hosting plan. */ offerId?: string + /** Whether the hosting is protected or not. */ + protected?: boolean }