Skip to content

bucket location is not supported #1575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
basvandenbroek opened this issue Mar 5, 2016 · 3 comments
Closed

bucket location is not supported #1575

basvandenbroek opened this issue Mar 5, 2016 · 3 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@basvandenbroek
Copy link

Setting the location when creating a new bucket doesn't work:

#!/usr/bin/env python3
from gcloud import storage    
client = storage.Client(project='foo')
bucket = Bucket(client=client, name="bar")
bucket.location = "EU"
bucket.create()

The bucket is always created with the default US location .
Patching the properties before creating the bucket doesn't work either:

bucket._patch_property('LocationConstraint', "EU")

@tseaver
Copy link
Contributor

tseaver commented Mar 7, 2016

Thanks for the report! I checked, and none of the user-settable properties were being passed through to the 'bucket.create' API. #1579 should address the issue.

@dhermes
Copy link
Contributor

dhermes commented Mar 8, 2016

D'oh! Nice find @tseaver

@dhermes
Copy link
Contributor

dhermes commented Mar 8, 2016

Thanks for filing @SebastianCodes too!

@dhermes dhermes added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: storage Issues related to the Cloud Storage API. labels Mar 8, 2016
parthea pushed a commit that referenced this issue Jul 6, 2023
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
parthea pushed a commit that referenced this issue Oct 21, 2023
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
parthea pushed a commit that referenced this issue Oct 21, 2023
* automl initial commit

* lint

* fix import groupings

* add requirements.txt

* address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants
@tseaver @dhermes @basvandenbroek and others