Functions class

The FirebaseFunctions service interface.

Signature:

exportdeclareclassFunctions

Properties

PropertyModifiersTypeDescription
appApp

Methods

MethodModifiersDescription
taskQueue(functionName, extensionId)Creates a reference to aTaskQueue for a given function name. The function name can be either:1) A fully qualified function resource name:projects/{project}/locations/{location}/functions/{functionName}2) A partial resource name with location and function name, in which case the runtime project ID is used:locations/{location}/functions/{functionName}3) A partial function name, in which case the runtime project ID and the default location,us-central1, is used:{functionName}

Functions.app

Signature:

readonlyapp:App;

Functions.taskQueue()

Creates a reference to aTaskQueue for a given function name. The function name can be either:

1) A fully qualified function resource name:projects/{project}/locations/{location}/functions/{functionName}

2) A partial resource name with location and function name, in which case the runtime project ID is used:locations/{location}/functions/{functionName}

3) A partial function name, in which case the runtime project ID and the default location,us-central1, is used:{functionName}

Signature:

taskQueue<Args=Record<string,any>>(functionName:string,extensionId?:string):TaskQueue<Args>;

Parameters

ParameterTypeDescription
functionNamestringThe name of the function.
extensionIdstringOptional Firebase extension ID.

Returns:

TaskQueue<Args>

A promise that fulfills with aTaskQueue.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.