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 — Small tweak to bucket names in Cloud Storage API code snippet (readme.md) · Issue #709 · googleapis/google-cloud-node

Small tweak to bucket names in Cloud Storage API code snippet (readme.md) #709

New issue
Copy link
New issue
Copy link
Closed
Closed
Small tweak to bucket names in Cloud Storage API code snippet (readme.md)#709
Copy link
Assignees
stephenplusplus

Description

@macvean
macvean
opened on Jul 8, 2015
Issue body actions

In the following code, there is potential for slight confusion, due to the similarity in bucket names:

// Create a new bucket.
gcs.createBucket('my-new-bucket', function(err, bucket) {});

// Reference an existing bucket.
var bucket = gcs.bucket('my-bucket');

I would suggest updating the snippet to something like:

gcs.createBucket('my-new-bucket', function(err, bucket) {
//do something with your bucket, or deal with the error
});

// Reference an existing bucket.
var bucket = gcs.bucket('an-existing-bucket');

Activity

  1. stephenplusplus
    self-assigned this
    on Jul 8, 2015
  2. stephenplusplus commented on Jul 8, 2015

    @stephenplusplus
    stephenplusplus
    on Jul 8, 2015
    Contributor
    More actions

    👍

  3. stephenplusplus
    closed this as completedin ce560abon Jul 9, 2015
  4. sofisl
    added a commit that references this issue on Nov 10, 2022

    chore(nodejs): update client ref docs link in metadata (#709)

    99c5738
  5. sofisl
    added a commit that references this issue on Nov 17, 2022

    feat: update compute API to revision 20220322 (#710) (#709)

    9cf8e94
  6. sofisl
    added 2 commits that reference this issue on Jan 24, 2023

    chore: release 4.4.0 (#709)

    38c5adc

    chore: release 4.4.0 (#709)

    9c208c5
  7. GautamSharda
    added 3 commits that reference this issue on Jan 14, 2026

    fix(deps): update dependency @google-cloud/logging to v10 (#709)

    d76b9d6

    fix(deps): update dependency @google-cloud/logging to v10 (#709)

    15c0631

    fix(deps): update dependency @google-cloud/logging to v10 (#709)

    eb52cac
  8. sofisl
    added 8 commits that reference this issue on Jan 27, 2026

    feat: add support for Node 14 (#709)

    3144da4

    feat: add support for Node 14 (#709)

    e807591

    feat: add support for Node 14 (#709)

    616b3c3

    feat: add support for Node 14 (#709)

    af6f3ad

    feat: add support for Node 14 (#709)

    bd8329f

    feat: add support for Node 14 (#709)

    2066924

    feat: add support for Node 14 (#709)

    070933d

    feat: add support for Node 14 (#709)

    74fc2a5
  9. GautamSharda
    added a commit that references this issue on Feb 2, 2026

    fix(deps): update dependency @google-cloud/logging to v10 (#709)

    2ae19f8
  10. sofisl
    added a commit that references this issue on Feb 3, 2026

    fix(docs): configuration.copy link (#709)

    1851064
  11. GautamSharda
    added a commit that references this issue on Feb 3, 2026

    fix(deps): update dependency @google-cloud/logging to v10 (#709)

    d115079
  12. sofisl
    added a commit that references this issue on Feb 4, 2026

    migrate code from googleapis/cloud-profiler-nodejs (#7087)

    288deb4
  13. sofisl
    added a commit that references this issue on Feb 26, 2026

    refactor: vendor common-grpc (#709)

    ce7508b
  14. GautamSharda
    added 2 commits that reference this issue on Mar 11, 2026

    build: add Node 12 remove Node 11 (#709)

    b083b7a

    chore(deps): update dependency sinon to v12 (#709)

    412c5db
  15. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore(deps): update dependency sinon to v21 (#709)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

No labels
No labels

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.