Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const unmarshalContainerScalingOption = (
return {
concurrentRequestsThreshold: data.concurrent_requests_threshold,
cpuUsageThreshold: data.cpu_usage_threshold,
memoryUsageThreshold: data.memory_usage_threshold,
} as ContainerScalingOption
}

Expand Down Expand Up @@ -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,
Expand All @@ -225,6 +227,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
),
status: data.status,
tags: data.tags,
updatedAt: unmarshalDate(data.updated_at),
} as Namespace
}

Expand Down Expand Up @@ -462,6 +465,7 @@ const marshalContainerScalingOption = (
value: request.concurrentRequestsThreshold,
},
{ param: 'cpu_usage_threshold', value: request.cpuUsageThreshold },
{ param: 'memory_usage_threshold', value: request.memoryUsageThreshold },
]),
})

Expand Down
19 changes: 17 additions & 2 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -156,6 +157,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
),
status: data.status,
tags: data.tags,
updatedAt: unmarshalDate(data.updated_at),
} as Namespace
}

Expand Down
4 changes: 4 additions & 0 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading