From 08b6a0d11976661ff04f8d38076d79b811a0d184 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 5 Jul 2023 14:30:52 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/instance/v1/marshalling.gen.ts | 1 + .../clients/src/api/instance/v1/types.private.gen.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/packages/clients/src/api/instance/v1/marshalling.gen.ts b/packages/clients/src/api/instance/v1/marshalling.gen.ts index e02096834..d1aa6e984 100644 --- a/packages/clients/src/api/instance/v1/marshalling.gen.ts +++ b/packages/clients/src/api/instance/v1/marshalling.gen.ts @@ -2101,6 +2101,7 @@ export const marshalUpdateServerRequest = ( ): Record => ({ boot_type: request.bootType, bootscript: request.bootscript, + commercial_type: request.commercialType, dynamic_ip_required: request.dynamicIpRequired, enable_ipv6: request.enableIpv6, name: request.name, 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 958b45301..f9b1c76bd 100644 --- a/packages/clients/src/api/instance/v1/types.private.gen.ts +++ b/packages/clients/src/api/instance/v1/types.private.gen.ts @@ -203,6 +203,18 @@ export type UpdateServerRequest = { placementGroup?: string | null /** Instance private NICs. */ privateNics?: PrivateNIC[] + /** + * Set the commercial_type for this Instance. Warning: This field has some + * restrictions: + * + * - Cannot be changed if the Instance is not in `stopped` state. + * - Cannot be changed if the Instance is in a placement group. + * - Local storage requirements of the target commercial_types must be fulfilled + * (i.e. if an Instance has 80GB of local storage, it can be changed into a + * GP1-XS, which has a maximum of 150GB, but it cannot be changed into a + * DEV1-S, which has only 20GB). + */ + commercialType?: string } export type SetImageRequest = {