Skip to content

Conversation

@MiaCY
Copy link
Contributor

@MiaCY MiaCY commented Jul 18, 2023

  • Add 'command' argument to blob._prep_and_do_download, blob._prep_and_do_upload, and other methods called by them:

    • blob._do_upload
    • blob._do_multipart_upload
    • blob._do_resumable_upload
    • blob._initiate_resumable_upload
    • blob._get_upload_arguments
    • _helpers._get_default_headers
  • Add doc string regarding 'command' argument to above methods.

  • Refactor related blob tests accordingly.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/python-storage API. labels Jul 18, 2023
@MiaCY MiaCY self-assigned this Jul 18, 2023
@MiaCY MiaCY added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 19, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 19, 2023
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 19, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 19, 2023
@MiaCY MiaCY added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 19, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 19, 2023
@MiaCY MiaCY marked this pull request as ready for review July 19, 2023 23:58
@MiaCY MiaCY requested review from a team as code owners July 19, 2023 23:58
@andrewsg andrewsg merged commit 627980d into googleapis:tm-metrics Jul 26, 2023
andrewsg pushed a commit that referenced this pull request Sep 18, 2023
…1082)

* Refactor client.download_blob_to_file

* Chore: clean up code

* refactor blob and client unit tests

* lint reformat

* Rename _prep_and_do_download

* Refactor blob.upload_from_file

* Lint reformat

* feature: add 'command' argument to private upload/download interface

* lint reformat

* reduce duplication and edit docstring
cojenco added a commit that referenced this pull request Oct 19, 2023
* Chore: refactor client.download_blob_to_file (#1052)

* Refactor client.download_blob_to_file

* Chore: clean up code

* refactor blob and client unit tests

* lint reformat

* Rename _prep_and_do_download

* Chore: refactor blob.upload_from_file (#1063)

* Refactor client.download_blob_to_file

* Chore: clean up code

* refactor blob and client unit tests

* lint reformat

* Rename _prep_and_do_download

* Refactor blob.upload_from_file

* Lint reformat

* feature: add 'command' argument to private upload/download interface (#1082)

* Refactor client.download_blob_to_file

* Chore: clean up code

* refactor blob and client unit tests

* lint reformat

* Rename _prep_and_do_download

* Refactor blob.upload_from_file

* Lint reformat

* feature: add 'command' argument to private upload/download interface

* lint reformat

* reduce duplication and edit docstring

* feat: add support for custom headers starting with  metadata op

* add custom headers to downloads in client blob modules

* add custom headers to uploads with tests

* update mocks and tests

* test custom headers support tm mpu uploads

* update tm test

* update test

---------

Co-authored-by: MiaCY <[email protected]>
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 googleapis/python-storage API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants