storage namespace

Functions

FunctionDescription
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

ClassDescription
BucketBuilderThe Google Cloud Storage bucket builder interface.Access viafunctions.storage.bucket().
ObjectBuilderThe Google Cloud Storage object builder interface.Access viafunctions.storage.object().

Interfaces

InterfaceDescription
ObjectMetadataInterface representing a Google Google Cloud Storage object metadata object.

storage.bucket()

Registers a Cloud Function scoped to a specific storage bucket.

Signature:

exportdeclarefunctionbucket(bucket?:string):BucketBuilder;

Parameters

ParameterTypeDescription
bucketstringName 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:

exportdeclarefunctionobject():ObjectBuilder;

Returns:

ObjectBuilder

Storage object builder interface.

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 2023-04-24 UTC.