Methods

region

region(region) returns functions.FunctionBuilder

Configures the regions to which to deploy and run a function.

Parameter

region

string

String containing multiple region parameters. For a list of valid values, see Cloud Functions locations.

Returns

non-null functions.FunctionBuilder Functions builder interface.

runWith

runWith(runtimeOptions) returns functions.FunctionBuilder

Configures memory allocation and timeout for a function.

Parameter

runtimeOptions

Object

Object with two optional fields:

  1. timeoutSeconds: timeout for the function in seconds.
  2. memory: amount of memory to allocate to the function. Valid values are: '128MB', '256MB', '512MB', '1GB', and '2GB'.

Value must not be null.

Returns

non-null functions.FunctionBuilder Functions builder interface.