-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Replace connection in bucket constructor. #987
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
Merged
dhermes
merged 2 commits into
googleapis:master
from
dhermes:replace-connection-in-bucket
Jul 20, 2015
Merged
Replace connection in bucket constructor. #987
dhermes
merged 2 commits into
googleapis:master
from
dhermes:replace-connection-in-bucket
Jul 20, 2015
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jul 13, 2015
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952. Introduced temporary hack to allow system-tests to continue passing. Implicit environment has still not been completely removed.
8b1ecb2
to
017346a
Compare
@@ -205,6 +205,6 @@ def get_items_from_response(self, response): | |||
""" | |||
for item in response.get('items', []): | |||
name = item.get('name') | |||
bucket = Bucket(name) | |||
bucket = Bucket(None, name) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@tseaver Any remaining issues? |
@@ -78,7 +78,7 @@ def set_default_bucket(bucket=None): | |||
bucket_name = os.getenv(_BUCKET_ENV_VAR_NAME) | |||
|
|||
if bucket_name is not None: | |||
bucket = Bucket(bucket_name) | |||
bucket = Bucket(None, name=bucket_name) | |||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
We can merge this one to get to the next. |
dhermes
added a commit
that referenced
this pull request
Jul 20, 2015
Replace connection in bucket constructor.
parthea
pushed a commit
that referenced
this pull request
Sep 22, 2023
gcf-owl-bot bot
added a commit
that referenced
this pull request
Mar 13, 2025
Source-Link: googleapis/googleapis@2753fe1 Source-Link: googleapis/googleapis-gen@8472eeb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6Ijg0NzJlZWJhYTIxMDNjYjFlMjc4NmViMTFlMzQ2NGRkNWVhNzQyMjMifQ==
vchudnov-g
pushed a commit
that referenced
this pull request
Mar 14, 2025
…250302 (#987) (#13656) - [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@2753fe1 Source-Link: googleapis/googleapis-gen@8472eeb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6Ijg0NzJlZWJhYTIxMDNjYjFlMjc4NmViMTFlMzQ2NGRkNWVhNzQyMjMifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Has #984 as diffbase.
Also updating storage.Batch to accept a client.
Introduced temporary hack to allow system-tests to continue passing. Implicit environment has still not been completely removed.