GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Storage-request] Provide an example of setting the default storage class for a bucket. · Issue #2471 · googleapis/google-cloud-node

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

New issue
Copy link
New issue
Copy link
Closed
Closed
[Storage-request] Provide an example of setting the default storage class for a bucket.#2471
Copy link
Assignees
stephenplusplus
Labels
api: storageIssues related to the Cloud Storage API.

Description

@frankyn
frankyn
opened on Jul 19, 2017
Issue body actions

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
    added
    api: storageIssues related to the Cloud Storage API.
    docs
    on Jul 20, 2017
  2. stephenplusplus commented on Jul 20, 2017

    @stephenplusplus
    stephenplusplus
    on Jul 20, 2017
    Contributor
    More actions

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

  3. frankyn commented on Jul 20, 2017

    @frankyn
    frankyn
    on Jul 20, 2017
    ContributorAuthor
    More actions

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

  4. stephenplusplus
    closed this as completedin #2473on Jul 20, 2017
  5. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  6. sofisl
    added 3 commits that reference this issue on Feb 24, 2026

    chore: doc tag cleanup (#2471)

    47f8cd5

    chore(deps): update dependency sinon to v18 (#2471)

    8c84b47

    chore: lint failures (#2471)

    55522cf
  7. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore(deps): update dependency sinon to v18 (googleapis#2471)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.