Skip to content

Commit d3dca80

Browse files
committed
feat: update generated APIs
1 parent c7ba13c commit d3dca80

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

packages/clients/src/api/container/v1beta1/marshalling.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const unmarshalContainerScalingOption = (
105105
return {
106106
concurrentRequestsThreshold: data.concurrent_requests_threshold,
107107
cpuUsageThreshold: data.cpu_usage_threshold,
108+
memoryUsageThreshold: data.memory_usage_threshold,
108109
} as ContainerScalingOption
109110
}
110111

@@ -209,6 +210,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
209210
}
210211

211212
return {
213+
createdAt: unmarshalDate(data.created_at),
212214
description: data.description,
213215
environmentVariables: data.environment_variables,
214216
errorMessage: data.error_message,
@@ -225,6 +227,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
225227
),
226228
status: data.status,
227229
tags: data.tags,
230+
updatedAt: unmarshalDate(data.updated_at),
228231
} as Namespace
229232
}
230233

@@ -462,6 +465,7 @@ const marshalContainerScalingOption = (
462465
value: request.concurrentRequestsThreshold,
463466
},
464467
{ param: 'cpu_usage_threshold', value: request.cpuUsageThreshold },
468+
{ param: 'memory_usage_threshold', value: request.memoryUsageThreshold },
465469
]),
466470
})
467471

packages/clients/src/api/container/v1beta1/types.gen.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,19 @@ export interface ContainerHealthCheckSpec {
128128
export interface ContainerScalingOption {
129129
/**
130130
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
131-
* 'cpuUsageThreshold' could be set.
131+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
132132
*/
133133
concurrentRequestsThreshold?: number
134134
/**
135135
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
136-
* 'cpuUsageThreshold' could be set.
136+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
137137
*/
138138
cpuUsageThreshold?: number
139+
/**
140+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
141+
* 'cpuUsageThreshold', 'memoryUsageThreshold' could be set.
142+
*/
143+
memoryUsageThreshold?: number
139144
}
140145

141146
export interface SecretHashedValue {
@@ -273,6 +278,8 @@ export interface Container {
273278
* requests being processed per container instance.
274279
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
275280
* instance.
281+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
282+
* instance.
276283
*/
277284
scalingOption?: ContainerScalingOption
278285
/** Health check configuration of the container. */
@@ -344,6 +351,10 @@ export interface Namespace {
344351
region: Region
345352
/** [ALPHA] List of tags applied to the Serverless Container Namespace. */
346353
tags: string[]
354+
/** Creation date of the namespace. */
355+
createdAt?: Date
356+
/** Last update date of the namespace. */
357+
updatedAt?: Date
347358
}
348359

349360
export interface Token {
@@ -474,6 +485,8 @@ export type CreateContainerRequest = {
474485
* requests being processed per container instance.
475486
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
476487
* instance.
488+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
489+
* instance.
477490
*/
478491
scalingOption?: ContainerScalingOption
479492
/** Health check configuration of the container. */
@@ -939,6 +952,8 @@ export type UpdateContainerRequest = {
939952
* requests being processed per container instance.
940953
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
941954
* instance.
955+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
956+
* instance.
942957
*/
943958
scalingOption?: ContainerScalingOption
944959
/** Health check configuration of the container. */

packages/clients/src/api/function/v1beta1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
140140
}
141141

142142
return {
143+
createdAt: unmarshalDate(data.created_at),
143144
description: data.description,
144145
environmentVariables: data.environment_variables,
145146
errorMessage: data.error_message,
@@ -156,6 +157,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
156157
),
157158
status: data.status,
158159
tags: data.tags,
160+
updatedAt: unmarshalDate(data.updated_at),
159161
} as Namespace
160162
}
161163

packages/clients/src/api/function/v1beta1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ export interface Namespace {
335335
region: Region
336336
/** [ALPHA] List of tags applied to the Serverless Function Namespace. */
337337
tags: string[]
338+
/** Creation date of the namespace. */
339+
createdAt?: Date
340+
/** Last update date of the namespace. */
341+
updatedAt?: Date
338342
}
339343

340344
export interface Token {

0 commit comments

Comments
 (0)