diff --git a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts index ce9921037..1d77345f1 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 } @@ -209,6 +210,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { } return { + createdAt: unmarshalDate(data.created_at), description: data.description, environmentVariables: data.environment_variables, errorMessage: data.error_message, @@ -225,6 +227,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { ), status: data.status, tags: data.tags, + updatedAt: unmarshalDate(data.updated_at), } as Namespace } @@ -462,6 +465,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..5aa8d617c 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. */ @@ -344,6 +351,10 @@ export interface Namespace { region: Region /** [ALPHA] List of tags applied to the Serverless Container Namespace. */ tags: string[] + /** Creation date of the namespace. */ + createdAt?: Date + /** Last update date of the namespace. */ + updatedAt?: Date } export interface Token { @@ -474,6 +485,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 +952,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. */ diff --git a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts index 07537383d..aed1e5052 100644 --- a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts @@ -140,6 +140,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { } return { + createdAt: unmarshalDate(data.created_at), description: data.description, environmentVariables: data.environment_variables, errorMessage: data.error_message, @@ -156,6 +157,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { ), status: data.status, tags: data.tags, + updatedAt: unmarshalDate(data.updated_at), } as Namespace } diff --git a/packages/clients/src/api/function/v1beta1/types.gen.ts b/packages/clients/src/api/function/v1beta1/types.gen.ts index a86151c16..f628ee517 100644 --- a/packages/clients/src/api/function/v1beta1/types.gen.ts +++ b/packages/clients/src/api/function/v1beta1/types.gen.ts @@ -335,6 +335,10 @@ export interface Namespace { region: Region /** [ALPHA] List of tags applied to the Serverless Function Namespace. */ tags: string[] + /** Creation date of the namespace. */ + createdAt?: Date + /** Last update date of the namespace. */ + updatedAt?: Date } export interface Token {