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 viafunctions.storage.bucket(). |
| ObjectBuilder | The Google Cloud Storage object builder interface.Access viafunctions.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:
exportdeclarefunctionbucket(bucket?:string):BucketBuilder;Parameters
| Parameter | Type | Description |
|---|---|---|
| bucket | string | Name of the bucket to which this Cloud Function is scoped. |
Returns:
Storage bucket builder interface.
storage.object()
Registers a Cloud Function scoped to the default storage bucket for the project.
Signature:
exportdeclarefunctionobject():ObjectBuilder;Returns:
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.