storage namespace
Stay organized with collections
Save and categorize content based on your preferences.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-24 UTC.
[null,null,["Last updated 2023-04-24 UTC."],[],[],null,["Functions\n\nClasses\n\nInterfaces\n\nstorage.bucket()\n\nRegisters a Cloud Function scoped to a specific storage bucket.\n\n**Signature:** \n\n export declare function bucket(bucket?: string): BucketBuilder;\n\nParameters\n\n**Returns:**\n\n[BucketBuilder](./firebase-functions.storage.bucketbuilder.md#storagebucketbuilder_class)\n\nStorage bucket builder interface.\n\nstorage.object()\n\nRegisters a Cloud Function scoped to the default storage bucket for the project.\n\n**Signature:** \n\n export declare function object(): ObjectBuilder;\n\n**Returns:**\n\n[ObjectBuilder](./firebase-functions.storage.objectbuilder.md#storageobjectbuilder_class)\n\nStorage object builder interface."]]