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 Object A Bucket object from the @google-cloud/storage library.