Skip to content

Commit a771c89

Browse files
feat(serverless): add timestamps to function resources (#1538)
Co-authored-by: Laure-di <[email protected]>
1 parent 427cfdd commit a771c89

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const unmarshalFunction = (data: unknown): Function => {
103103
return {
104104
buildMessage: data.build_message,
105105
cpuLimit: data.cpu_limit,
106+
createdAt: unmarshalDate(data.created_at),
106107
description: data.description,
107108
domainName: data.domain_name,
108109
environmentVariables: data.environment_variables,
@@ -116,6 +117,7 @@ export const unmarshalFunction = (data: unknown): Function => {
116117
name: data.name,
117118
namespaceId: data.namespace_id,
118119
privacy: data.privacy,
120+
readyAt: unmarshalDate(data.ready_at),
119121
region: data.region,
120122
runtime: data.runtime,
121123
runtimeMessage: data.runtime_message,
@@ -126,6 +128,7 @@ export const unmarshalFunction = (data: unknown): Function => {
126128
),
127129
status: data.status,
128130
timeout: data.timeout,
131+
updatedAt: unmarshalDate(data.updated_at),
129132
} as Function
130133
}
131134

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ export interface Function {
300300
runtimeMessage: string
301301
/** Execution environment of the function. */
302302
sandbox: FunctionSandbox
303+
/** Creation date of the function. */
304+
createdAt?: Date
305+
/** Last update date of the function. */
306+
updatedAt?: Date
307+
/** Last date when the function was successfully deployed and set to ready. */
308+
readyAt?: Date
303309
}
304310

305311
export interface Namespace {

0 commit comments

Comments
 (0)