storage namespace

Functions

Function Description
bucket(bucket) Registers a Cloud Function scoped to a specific storage bucket.
object() Registers a Cloud Function scoped to the default storage bucket for the project.

Classes

Class Description
BucketBuilder The Google Cloud Storage bucket builder interface.Access via functions.storage.bucket().
ObjectBuilder The Google Cloud Storage object builder interface.Access via functions.storage.object().

Interfaces

Interface Description
ObjectMetadata Interface representing a Google Google Cloud Storage object metadata object.

storage.bucket()

Registers a Cloud Function scoped to a specific storage bucket.

Signature:

export declare function bucket(bucket?: string): BucketBuilder;

Parameters

Parameter Type Description
bucket string Name of the bucket to which this Cloud Function is scoped.

Returns:

BucketBuilder

Storage bucket builder interface.

storage.object()

Registers a Cloud Function scoped to the default storage bucket for the project.

Signature:

export declare function object(): ObjectBuilder;

Returns:

ObjectBuilder

Storage object builder interface.