googleapis / python-storage

Apache License 2.0
440 stars 151 forks source link

copy_blob: Allow setting object metadata #1359

Open remko opened 20 hours ago

remko commented 20 hours ago

The JSON API copy operation allows providing object metadata on copy. This avoids having to do multiple operations on an object to set metadata such as content-type, cache-control, ... on a copied object.

This is currently not exposed in the Python SDK on copy_blob (copy_blob never sends a body in its request). Could this be exposed?

cojenco commented 8 hours ago

Thanks for the feature request. I will work with the team to have this prioritized.