File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/clients/src/api/container/v1beta1 Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ export const marshalCreateContainerRequest = (
264264 request : CreateContainerRequest ,
265265 defaults : DefaultValues ,
266266) : Record < string , unknown > => ( {
267+ cpu_limit : request . cpuLimit ,
267268 description : request . description ,
268269 environment_variables : request . environmentVariables ,
269270 http_option : request . httpOption ?? 'unknown_http_option' ,
@@ -340,6 +341,7 @@ export const marshalUpdateContainerRequest = (
340341 request : UpdateContainerRequest ,
341342 defaults : DefaultValues ,
342343) : Record < string , unknown > => ( {
344+ cpu_limit : request . cpuLimit ,
343345 description : request . description ,
344346 environment_variables : request . environmentVariables ,
345347 http_option : request . httpOption ?? 'unknown_http_option' ,
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export interface Container {
100100 maxScale : number
101101 /** Memory limit of the container in MB. */
102102 memoryLimit : number
103- /** CPU limit of the container. */
103+ /** CPU limit of the container in mvCPU . */
104104 cpuLimit : number
105105 /** Processing time limit for the container. */
106106 timeout ?: string
@@ -415,6 +415,8 @@ export type CreateContainerRequest = {
415415 maxScale ?: number
416416 /** Memory limit of the container in MB. */
417417 memoryLimit ?: number
418+ /** CPU limit of the container in mvCPU. */
419+ cpuLimit ?: number
418420 /** Processing time limit for the container. */
419421 timeout ?: string
420422 /** Privacy setting of the container. */
@@ -460,6 +462,8 @@ export type UpdateContainerRequest = {
460462 maxScale ?: number
461463 /** Memory limit of the container in MB. */
462464 memoryLimit ?: number
465+ /** CPU limit of the container in mvCPU. */
466+ cpuLimit ?: number
463467 /** Processing time limit for the container. */
464468 timeout ?: string
465469 /** Defines whether to redeploy failed containers. */
You can’t perform that action at this time.
0 commit comments