Skip to content

Commit 74398ba

Browse files
committed
feat: update generated APIs
1 parent 966ed42 commit 74398ba

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
@@ -54,6 +54,7 @@ const unmarshalContainerScalingOption = (
5454

5555
return {
5656
concurrentRequestsThreshold: data.concurrent_requests_threshold,
57+
cpuUsageThreshold: data.cpu_usage_threshold,
5758
} as ContainerScalingOption
5859
}
5960

@@ -371,6 +372,7 @@ const marshalContainerScalingOption = (
371372
param: 'concurrent_requests_threshold',
372373
value: request.concurrentRequestsThreshold,
373374
},
375+
{ param: 'cpu_usage_threshold', value: request.cpuUsageThreshold },
374376
]),
375377
})
376378

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,15 @@ export type TriggerStatus =
9797

9898
export interface ContainerScalingOption {
9999
/**
100-
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold' could
101-
* be set.
100+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
101+
* 'cpuUsageThreshold' could be set.
102102
*/
103103
concurrentRequestsThreshold?: number
104+
/**
105+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
106+
* 'cpuUsageThreshold' could be set.
107+
*/
108+
cpuUsageThreshold?: number
104109
}
105110

106111
export interface SecretHashedValue {
@@ -236,6 +241,8 @@ export interface Container {
236241
*
237242
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
238243
* requests being processed per container instance.
244+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
245+
* instance.
239246
*/
240247
scalingOption?: ContainerScalingOption
241248
/** Creation date of the container. */
@@ -433,6 +440,8 @@ export type CreateContainerRequest = {
433440
*
434441
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
435442
* requests being processed per container instance.
443+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
444+
* instance.
436445
*/
437446
scalingOption?: ContainerScalingOption
438447
}
@@ -894,6 +903,8 @@ export type UpdateContainerRequest = {
894903
*
895904
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
896905
* requests being processed per container instance.
906+
* - Cpu_usage_threshold: Scale depending on the CPU usage of a container
907+
* instance.
897908
*/
898909
scalingOption?: ContainerScalingOption
899910
}

0 commit comments

Comments
 (0)