| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| expected_cw = [((), expected_called_kwargs)] | ||
| self.assertEqual(_FakeConnection._called_with, expected_cw) | ||
|
|
||
| def test_create_w_user_project(self): |
There was a problem hiding this comment.
Most part of these tests had already been moved into client_test.py in this PR. Some will be moved with the current one
Sorry, something went wrong.
| http = _make_requests_session([_make_json_response(data)]) | ||
| client._http_internal = http | ||
|
|
||
| bucket = client.create_bucket(bucket_name, requester_pays=True) |
There was a problem hiding this comment.
Arg is now deprecated
Sorry, something went wrong.
| project=project, | ||
| location=location, | ||
| predefined_acl=predefined_acl, | ||
| predefined_default_object_acl=predefined_default_object_acl, |
There was a problem hiding this comment.
Deleting old implementation and mirroring to Client.create_bucket()
Sorry, something went wrong.
…google-cloud-python into deprecate_create_bucket
|
Are there any code samples (here or in https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/storage) that still use these methods? If so, we should wait to deprecate until those are updated. Also, we should make sure every API request you can make on Bucket can also be done from Client. It'll make for a much clearer developer story when Bucket can be treated as a dumb resource object. |
Sorry, something went wrong.
|
@tswast, yeah, I've checked python-docs-samples and didn't find any mentions of bucket.create() and requester_pays arg, only client.create_bucket().
Well, I'm following the design doc for now, pushing piece by piece, as it's a lot of changes. If we need to mirror calls from Client() to Bucket(), maybe we should try to play around with getattr() and just make one redirecting function? |
Sorry, something went wrong.
In my opinion, piece-by-piece as you're currently doing will make it easiest for others to contribute / onboard new teammembers. |
Sorry, something went wrong.
|
Friendly ping. This PR is waiting for review |
Sorry, something went wrong.
|
Please reopen in the new repo, thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Towards #7762
Completing steps 1, 2 and 3 from the design doc: