From e57f2274c23067eab66484247a546441bc4614f5 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 5 Nov 2024 13:21:32 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/container/v1beta1/marshalling.gen.ts | 2 ++ .../src/api/container/v1beta1/types.gen.ts | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts index ce9921037..9b1aeb3d5 100644 --- a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts @@ -105,6 +105,7 @@ const unmarshalContainerScalingOption = ( return { concurrentRequestsThreshold: data.concurrent_requests_threshold, cpuUsageThreshold: data.cpu_usage_threshold, + memoryUsageThreshold: data.memory_usage_threshold, } as ContainerScalingOption } @@ -462,6 +463,7 @@ const marshalContainerScalingOption = ( value: request.concurrentRequestsThreshold, }, { param: 'cpu_usage_threshold', value: request.cpuUsageThreshold }, + { param: 'memory_usage_threshold', value: request.memoryUsageThreshold }, ]), }) diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index 0d6a0bfe2..ed7fdcb75 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -128,14 +128,19 @@ export interface ContainerHealthCheckSpec { export interface ContainerScalingOption { /** * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold', - * 'cpuUsageThreshold' could be set. + * 'cpuUsageThreshold', 'memoryUsageThreshold' could be set. */ concurrentRequestsThreshold?: number /** * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold', - * 'cpuUsageThreshold' could be set. + * 'cpuUsageThreshold', 'memoryUsageThreshold' could be set. */ cpuUsageThreshold?: number + /** + * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold', + * 'cpuUsageThreshold', 'memoryUsageThreshold' could be set. + */ + memoryUsageThreshold?: number } export interface SecretHashedValue { @@ -273,6 +278,8 @@ export interface Container { * requests being processed per container instance. * - Cpu_usage_threshold: Scale depending on the CPU usage of a container * instance. + * - Memory_usage_threshold: Scale depending on the memory usage of a container + * instance. */ scalingOption?: ContainerScalingOption /** Health check configuration of the container. */ @@ -474,6 +481,8 @@ export type CreateContainerRequest = { * requests being processed per container instance. * - Cpu_usage_threshold: Scale depending on the CPU usage of a container * instance. + * - Memory_usage_threshold: Scale depending on the memory usage of a container + * instance. */ scalingOption?: ContainerScalingOption /** Health check configuration of the container. */ @@ -939,6 +948,8 @@ export type UpdateContainerRequest = { * requests being processed per container instance. * - Cpu_usage_threshold: Scale depending on the CPU usage of a container * instance. + * - Memory_usage_threshold: Scale depending on the memory usage of a container + * instance. */ scalingOption?: ContainerScalingOption /** Health check configuration of the container. */