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 — Google cloud storage class and location · Issue #1285 · googleapis/google-cloud-java

Google cloud storage class and location #1285

New issue
Copy link
New issue
Copy link
Closed
Closed
Google cloud storage class and location#1285
Copy link
Assignees
pditommaso
Labels
api: storageIssues related to the Cloud Storage API.

Description

@pditommaso
pditommaso
opened on Sep 26, 2016
Issue body actions

Is there any example showing how to set the storage class and location of a bucket with the Google storage API ?

Activity

  1. mziccard
    added
    api: storageIssues related to the Cloud Storage API.
    on Sep 27, 2016
  2. mziccard commented on Sep 27, 2016

    @mziccard
    mziccard
    on Sep 27, 2016
    Contributor
    More actions

    We have a number of examples showing how to create a bucket in google-cloud-examples. Examples are not showing all possible configurations that you can set though. However, if you look at the javadoc, you'll see that BucketInfo.Builder exposes two setters: storageClass and location.

    You can create a bucket with location and storage class:

    Storage storage = optionsBuilder.build().service();
    BucketInfo bucketInfo = BucketInfo.builder("nearline-eu-bucket")
        .location("eu")
        .storageClass("NEARLINE") // default is "STANDARD"
        .build();
    Bucket bucket = storage.create(bucketInfo);

    Hope this helps!

  3. pditommaso commented on Sep 27, 2016

    @pditommaso
    pditommaso
    on Sep 27, 2016
    Author
    More actions

    Great. Thanks!

  4. pditommaso
    closed this as completedon Sep 27, 2016
  5. JustinBeckwith
    assigned
    pditommaso
    on Feb 1, 2021
  6. github-actions
    added 2 commits that reference this issue on Aug 9, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 (#…

    fe40190

    chore(main): release 3.5.0 (#1305)

    974924f
  7. github-actions
    added a commit that references this issue on Oct 6, 2022

    chore(main): release 2.3.17 (#1285)

    aa01c79
  8. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    8d59629
  9. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.131.3-alpha (#1285)

    3b60638
  10. chingor13
    added a commit that references this issue on Jan 22, 2026

    build(deps): update dependency org.apache.maven.plugins:maven-surefir…

    1849e0b
  11. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    6035e8d
  12. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.11.4 (googleapis#1285)

    0402902
  13. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(main): release 0.127.7-SNAPSHOT (#1285)

    24ae322
  14. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(main): release 0.127.7-SNAPSHOT (#1285)

    8af8591
  15. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.120.17 (#1285)

    c581e7e

    chore(main): release 1.120.17 (#1285)

    959843e
  16. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    26386f3

    chore(main): release 2.9.0 (googleapis#1275)

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

Metadata

Metadata

Assignees

  • @pditommaso
    pditommaso

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.