Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const unmarshalFunction = (data: unknown): Function => {
return {
buildMessage: data.build_message,
cpuLimit: data.cpu_limit,
createdAt: unmarshalDate(data.created_at),
description: data.description,
domainName: data.domain_name,
environmentVariables: data.environment_variables,
Expand All @@ -116,6 +117,7 @@ export const unmarshalFunction = (data: unknown): Function => {
name: data.name,
namespaceId: data.namespace_id,
privacy: data.privacy,
readyAt: unmarshalDate(data.ready_at),
region: data.region,
runtime: data.runtime,
runtimeMessage: data.runtime_message,
Expand All @@ -126,6 +128,7 @@ export const unmarshalFunction = (data: unknown): Function => {
),
status: data.status,
timeout: data.timeout,
updatedAt: unmarshalDate(data.updated_at),
} as Function
}

Expand Down
6 changes: 6 additions & 0 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ export interface Function {
runtimeMessage: string
/** Execution environment of the function. */
sandbox: FunctionSandbox
/** Creation date of the function. */
createdAt?: Date
/** Last update date of the function. */
updatedAt?: Date
/** Last date when the function was successfully deployed and set to ready. */
readyAt?: Date
}

export interface Namespace {
Expand Down