Storage: Expose preconditions via the google-cloud-storage API #4490
Labels
api: storage
Issues related to the Cloud Storage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
It would be very useful if google-cloud-storage exposed a way to set preconditions on upload. I am currently hacking around this by replacing
google.cloud.storage.blob. _MULTIPART_URL_TEMPLATE
andgoogle.cloud.storage.blob._RESUMABLE_URL_TEMPLATE
with versions that have the precondition I require, e.g.Luckily I am only uploading blobs that I do not want to exist beforehand. It would be great if there were a way to programmatically do this, but I could not find anything after pouring over the documentation and source code.
I hope you'll implement this in a future version.
Thanks for your time!
The text was updated successfully, but these errors were encountered: