Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jul 13, 2015

Towards #952.

Did this for all but Bucket.create (since it also requires a project, built for just a client)

Will continue to remove connection from the Bucket and Batch constructors in forthcoming PR.

dhermes added 11 commits July 13, 2015 12:10
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.

Also adding a temporary Blob._client_or_connection method
to allow switching from an explicit client to an implicit
connection.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.

Also adding a temporary Bucket._client_or_connection method
to allow switching from an explicit client to an implicit
connection.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Also updating all code which calls those methods.

Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Jul 13, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 13, 2015
@tseaver
Copy link
Contributor

tseaver commented Jul 13, 2015

Hmm, before finishing review here, it feels to me like swapping out the connection=None for client=None is premature: shouldn't we establish a client attribute, so that we can fall back to using it? Otherwise we have to revisit all these methods when we do have the client attribute.

@dhermes
Copy link
Contributor Author

dhermes commented Jul 13, 2015

I just wanted to make a bunch of small commits so review was easier for you. I have the client attribute at the ready, it just takes a bit more effort to review (it reaches deep into many parts of the code).

@dhermes
Copy link
Contributor Author

dhermes commented Jul 13, 2015

@tseaver Can we push forward on this? I want to wrap up the client stuff and cut a release ASAP.

@tseaver
Copy link
Contributor

tseaver commented Jul 14, 2015

LGTM

@dhermes
Copy link
Contributor Author

dhermes commented Jul 14, 2015

@tseaver We've got an LGTM here but a few pending commets. Good to merge?

@dhermes
Copy link
Contributor Author

dhermes commented Jul 14, 2015

Oh I'm sorry 8b1ecb2 was in #987. Merging and will rebase that.

dhermes added a commit that referenced this pull request Jul 14, 2015
Replace optional connection with client in storage methods and functions.
@dhermes dhermes merged commit 247899b into googleapis:master Jul 14, 2015
@dhermes dhermes deleted the replace-connection-in-storage branch July 14, 2015 14:54
@dhermes dhermes mentioned this pull request Jul 21, 2015
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.

3 participants