From 6df0664a796d5b18325ddae320e7cdca5349f928 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 18 Apr 2023 17:25:10 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/container/v1beta1/marshalling.gen.ts | 2 ++ packages/clients/src/api/container/v1beta1/types.gen.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts index c4d8f3ae2..139ab822a 100644 --- a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts @@ -264,6 +264,7 @@ export const marshalCreateContainerRequest = ( request: CreateContainerRequest, defaults: DefaultValues, ): Record => ({ + cpu_limit: request.cpuLimit, description: request.description, environment_variables: request.environmentVariables, http_option: request.httpOption ?? 'unknown_http_option', @@ -340,6 +341,7 @@ export const marshalUpdateContainerRequest = ( request: UpdateContainerRequest, defaults: DefaultValues, ): Record => ({ + cpu_limit: request.cpuLimit, description: request.description, environment_variables: request.environmentVariables, http_option: request.httpOption ?? 'unknown_http_option', diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index ca943a45d..64c2d8e0c 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -100,7 +100,7 @@ export interface Container { maxScale: number /** Memory limit of the container in MB. */ memoryLimit: number - /** CPU limit of the container. */ + /** CPU limit of the container in mvCPU. */ cpuLimit: number /** Processing time limit for the container. */ timeout?: string @@ -415,6 +415,8 @@ export type CreateContainerRequest = { maxScale?: number /** Memory limit of the container in MB. */ memoryLimit?: number + /** CPU limit of the container in mvCPU. */ + cpuLimit?: number /** Processing time limit for the container. */ timeout?: string /** Privacy setting of the container. */ @@ -460,6 +462,8 @@ export type UpdateContainerRequest = { maxScale?: number /** Memory limit of the container in MB. */ memoryLimit?: number + /** CPU limit of the container in mvCPU. */ + cpuLimit?: number /** Processing time limit for the container. */ timeout?: string /** Defines whether to redeploy failed containers. */