admin.storage. Storage
The Cloud Storage service interface.
Do not call this constructor directly. Instead, use
admin.storage().
See Introduction to the Admin Cloud Storage API for further details on how to use the Cloud Storage service in Firebase Admin SDK.
Property
app
non-null admin.app.App
The app associated with the current Storage service instance.
Example
var app = storage.app;
Method
bucket
bucket(name) returns Object
Returns a reference to a Google Cloud Storage bucket. Returned reference can be used to upload and download content from Google Cloud Storage.
Parameter |
|
|---|---|
|
name |
Optional string Optional name of the bucket to be retrieved. If name is not specified, retrieves a reference to the default bucket. |
- Returns
-
non-null ObjectA Bucket object from the @google-cloud/storage library.




