Skip to content

How do I create a Nearline bucket in gcloud.storage ? #779

Description

@jgeewax

Is there a storage class parameter? Do we have an example of changing it?

https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.17.0/storage?method=createBucket seems to have a DRA example, but not a nearline example.

This is one of those things that is unlikely to change all that frequently... can we maybe have an enum-like thing for the storage classes to avoid typos?

Activity

  1. added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Aug 3, 2015
  2. stephenplusplus commented on Aug 3, 2015

    @stephenplusplus
    Contributor

    Related: #723 (edit: had a wrong reference)

    To do this now, it would look like:

    gcs.createBucket('new-bucket', { storageClass: 'NEARLINE' }, callback);

    We could special-case the property and allow 'nearline' and 'DRA'/'dra' that we'll expand to 'NEARLINE' and 'DURABLE_REDUCED_AVAILABILITY'?

  3. jgeewax commented on Aug 3, 2015

    @jgeewax
    ContributorAuthor

    What about:

    gcs.createBucket('new-bucket', {storageClass: gcs.Nearline}, cb);

    ?

  4. stephenplusplus commented on Aug 3, 2015

    @stephenplusplus
    Contributor

    Sure, but I hope you don't mind if I lowercase nearline.

  5. jgeewax commented on Aug 3, 2015

    @jgeewax
    ContributorAuthor

    Sure, what do you think @callmehiphop ?

  6. callmehiphop commented on Aug 3, 2015

    @callmehiphop
    Contributor

    That looks good to me
    On Aug 3, 2015 9:52 AM, "JJ Geewax" [email protected] wrote:

    Sure, what do you think @callmehiphop https://github.com/callmehiphop ?

    —
    Reply to this email directly or view it on GitHub
    #779 (comment)
    .

  7. self-assigned this
    on Aug 7, 2015
  8. added a commit that references this issue on Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions