@google-cloud/storage v0.4.0
Updating
$ npm install @google-cloud/storage@0.4.0
Features
New Storage Classes!
(googleapis/google-cloud-node#1727, googleapis/google-cloud-node#1728)
This release brings support for several new storage classes:
To leverage any of the new storage classes, you can use the coldline
, multiRegional
and regional
options respectively.
var gcs = require('@google-cloud/storage')({
projectId: 'grape-spaceship-123',
keyFilename: '/path/to/keyfile.json'
});
var metadata = {
location: 'US-CENTRAL1',
multiRegional: true
};
gcs.createBucket('my-bucket', metadata, function(err, bucket) {});