Skip to content

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

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"});

Activity

  1. stephenplusplus commented on Jul 20, 2017

    @stephenplusplus
    Contributor

    PR sent to add a method "bucket.setStorageClass()"! #2473

  2. frankyn commented on Jul 20, 2017

    @frankyn
    ContributorAuthor

    Thanks @stephenplusplus! I'll follow-up with comments to that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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