Skip to content
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

Using 'fields' in Bucket.exists(). #720

Merged
merged 1 commit into from
Mar 13, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Mar 12, 2015

This decouples Bucket.exists() from Connection.get_bucket().

@tseaver This came up when I was to removing Connection.get_bucket(). I opted to just use connection.api_request instead of dealing with the potential cycle caused by importing storage.api anywhere but __init__.

As it turns out (as I mention in #632), this is a way to reduce the response payload for checking existence (unfortunately, the headers still are overwhelmingly verbose).

This decouples Bucket.exists() from Connection.get_bucket().

Relevant to googleapis#632.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 12, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6186059 on dhermes:use-fields-in-bucket-exists into d9e2156 on GoogleCloudPlatform:master.

@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Mar 12, 2015
@tseaver
Copy link
Contributor

tseaver commented Mar 13, 2015

LGTM

dhermes added a commit that referenced this pull request Mar 13, 2015
@dhermes dhermes merged commit ab642a3 into googleapis:master Mar 13, 2015
@dhermes dhermes deleted the use-fields-in-bucket-exists branch March 13, 2015 16:28
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. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants