interface Function {
    buildMessage?: string;
    cpuLimit: number;
    createdAt?: Date;
    description?: string;
    domainName: string;
    environmentVariables: Record<string, string>;
    errorMessage?: string;
    handler: string;
    httpOption: FunctionHttpOption;
    id: string;
    maxScale: number;
    memoryLimit: number;
    minScale: number;
    name: string;
    namespaceId: string;
    privacy: FunctionPrivacy;
    readyAt?: Date;
    region: Region;
    runtime: FunctionRuntime;
    runtimeMessage: string;
    sandbox: FunctionSandbox;
    secretEnvironmentVariables: Function.v1beta1.SecretHashedValue[];
    status: FunctionStatus;
    timeout?: string;
    updatedAt?: Date;
}

Properties

buildMessage?: string

Description of the current build step.

cpuLimit: number

CPU limit of the function.

createdAt?: Date

Creation date of the function.

description?: string

Description of the function.

domainName: string

Domain name associated with the function.

environmentVariables: Record<string, string>

Environment variables of the function.

errorMessage?: string

Error message if the function is in "error" state.

handler: string

Handler to use for the function.

httpOption: FunctionHttpOption

Possible values:

  • Redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
  • Enabled: Serve both HTTP and HTTPS traffic.
id: string

UUID of the function.

maxScale: number

Maximum number of instances to scale the function to.

memoryLimit: number

Memory limit of the function in MB.

minScale: number

Minimum number of instances to scale the function to.

name: string

Name of the function.

namespaceId: string

UUID of the namespace the function belongs to.

Privacy setting of the function.

readyAt?: Date

Last date when the function was successfully deployed and set to ready.

region: Region

Region in which the function is deployed.

Runtime of the function.

runtimeMessage: string

Execution environment of the function.

secretEnvironmentVariables: Function.v1beta1.SecretHashedValue[]

Secret environment variables of the function.

Status of the function.

timeout?: string

Request processing time limit for the function.

updatedAt?: Date

Last update date of the function.