Skip to content

Commit ef7cc53

Browse files
committed
feat: update generated APIs
1 parent 88a43d8 commit ef7cc53

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const unmarshalContainer = (data: unknown): Container => {
7979

8080
return {
8181
cpuLimit: data.cpu_limit,
82+
createdAt: unmarshalDate(data.created_at),
8283
description: data.description,
8384
domainName: data.domain_name,
8485
environmentVariables: data.environment_variables,
@@ -95,6 +96,7 @@ export const unmarshalContainer = (data: unknown): Container => {
9596
port: data.port,
9697
privacy: data.privacy,
9798
protocol: data.protocol,
99+
readyAt: unmarshalDate(data.ready_at),
98100
region: data.region,
99101
registryImage: data.registry_image,
100102
sandbox: data.sandbox,
@@ -107,6 +109,7 @@ export const unmarshalContainer = (data: unknown): Container => {
107109
),
108110
status: data.status,
109111
timeout: data.timeout,
112+
updatedAt: unmarshalDate(data.updated_at),
110113
} as Container
111114
}
112115

@@ -167,6 +170,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
167170
unmarshalSecretHashedValue,
168171
),
169172
status: data.status,
173+
tags: data.tags,
170174
} as Namespace
171175
}
172176

@@ -443,6 +447,7 @@ export const marshalCreateNamespaceRequest = (
443447
marshalSecret(elt, defaults),
444448
)
445449
: undefined,
450+
tags: request.tags,
446451
})
447452

448453
export const marshalCreateTokenRequest = (
@@ -581,6 +586,7 @@ export const marshalUpdateNamespaceRequest = (
581586
marshalSecret(elt, defaults),
582587
)
583588
: undefined,
589+
tags: request.tags,
584590
})
585591

586592
const marshalUpdateTriggerRequestSqsClientConfig = (

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ export interface Container {
238238
* requests being processed per container instance.
239239
*/
240240
scalingOption?: ContainerScalingOption
241+
/** Creation date of the container. */
242+
createdAt?: Date
243+
/** Last update date of the container. */
244+
updatedAt?: Date
245+
/** Last date when the container was successfully deployed and set to ready. */
246+
readyAt?: Date
241247
/** Region in which the container will be deployed. */
242248
region: Region
243249
}
@@ -297,6 +303,8 @@ export interface Namespace {
297303
secretEnvironmentVariables: SecretHashedValue[]
298304
/** Region in which the namespace will be created. */
299305
region: Region
306+
/** [ALPHA] List of tags applied to the Serverless Container Namespace. */
307+
tags: string[]
300308
}
301309

302310
export interface Token {
@@ -473,6 +481,8 @@ export type CreateNamespaceRequest = {
473481
description?: string
474482
/** Secret environment variables of the namespace to create. */
475483
secretEnvironmentVariables?: Secret[]
484+
/** [ALPHA] Tags of the Serverless Container Namespace. */
485+
tags?: string[]
476486
}
477487

478488
export type CreateTokenRequest = {
@@ -920,6 +930,8 @@ export type UpdateNamespaceRequest = {
920930
description?: string
921931
/** Secret environment variables of the namespace to update. */
922932
secretEnvironmentVariables?: Secret[]
933+
/** [ALPHA] Tags of the Serverless Container Namespace. */
934+
tags?: string[]
923935
}
924936

925937
export type UpdateTriggerRequest = {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
152152
unmarshalSecretHashedValue,
153153
),
154154
status: data.status,
155+
tags: data.tags,
155156
} as Namespace
156157
}
157158

@@ -470,6 +471,7 @@ export const marshalCreateNamespaceRequest = (
470471
marshalSecret(elt, defaults),
471472
)
472473
: undefined,
474+
tags: request.tags,
473475
})
474476

475477
export const marshalCreateTokenRequest = (
@@ -600,6 +602,7 @@ export const marshalUpdateNamespaceRequest = (
600602
marshalSecret(elt, defaults),
601603
)
602604
: undefined,
605+
tags: request.tags,
603606
})
604607

605608
const marshalUpdateTriggerRequestSqsClientConfig = (

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ export interface Namespace {
327327
secretEnvironmentVariables: SecretHashedValue[]
328328
/** Region in which the namespace is located. */
329329
region: Region
330+
/** [ALPHA] List of tags applied to the Serverless Function Namespace. */
331+
tags: string[]
330332
}
331333

332334
export interface Token {
@@ -483,6 +485,8 @@ export type CreateNamespaceRequest = {
483485
description?: string
484486
/** Secret environment variables of the namespace. */
485487
secretEnvironmentVariables?: Secret[]
488+
/** [ALPHA] Tags of the Serverless Function Namespace. */
489+
tags?: string[]
486490
}
487491

488492
export type CreateTokenRequest = {
@@ -956,6 +960,8 @@ export type UpdateNamespaceRequest = {
956960
description?: string
957961
/** Secret environment variables of the namespace. */
958962
secretEnvironmentVariables?: Secret[]
963+
/** [ALPHA] Tags of the Serverless Function Namespace. */
964+
tags?: string[]
959965
}
960966

961967
export type UpdateTriggerRequest = {

0 commit comments

Comments
 (0)