Skip to content

Commit e57f227

Browse files
committed
feat: update generated APIs
1 parent 6b3485c commit e57f227

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

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

Lines changed: 2 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

@@ -462,6 +463,7 @@ const marshalContainerScalingOption = (
462463
value: request.concurrentRequestsThreshold,
463464
},
464465
{ param: 'cpu_usage_threshold', value: request.cpuUsageThreshold },
466+
{ param: 'memory_usage_threshold', value: request.memoryUsageThreshold },
465467
]),
466468
})
467469

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

Lines changed: 13 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. */
@@ -474,6 +481,8 @@ export type CreateContainerRequest = {
474481
* requests being processed per container instance.
475482
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
476483
* instance.
484+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
485+
* instance.
477486
*/
478487
scalingOption?: ContainerScalingOption
479488
/** Health check configuration of the container. */
@@ -939,6 +948,8 @@ export type UpdateContainerRequest = {
939948
* requests being processed per container instance.
940949
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
941950
* instance.
951+
* - Memory_usage_threshold: Scale depending on the memory usage of a container
952+
* instance.
942953
*/
943954
scalingOption?: ContainerScalingOption
944955
/** Health check configuration of the container. */

0 commit comments

Comments
 (0)