Skip to content

[Storage-request] Provide an example of setting the default storage class for a bucket. #2471

@frankyn

Description

@frankyn

Hi,

This is a request to provide an example of setting the default storage class for a Storage bucket. The current method for updating the storageClass isn't clear or visible in the documentation. Although, I'm not sure if it makes sense for the Nodejs community to have this documented. I'm open to interpretation!

var gcs = require('@google-cloud/storage')({projectId: "spec-test-ruby-samples"});

var bucket = gcs.bucket("bucketname");

bucket.setMetadata({storageClass: "STORAGE_CLASS"});

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions