allow PATCH
requests in ResumableUpload.initiate / constructor
#388
Labels
api: storage
Issues related to the googleapis/google-resumable-media-python API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
I'd love to be able to use this package to replace files in Google Drive using the following API: https://developers.google.com/drive/api/reference/rest/v3/files/update
Notably, this requires a PATCH request instead of a POST request.
Describe the solution you'd like
Either the ResumableUpload constructor or initiate should accept an optional "method" argument to use PATCH instead of POST.
Describe alternatives you've considered
I was able to get this to work with the following code sample, but note that it monkeypatches a private API to work.
Additional context
It's somewhat surprising not to see this package mentioned in https://developers.google.com/drive/api/guides/manage-uploads#resumable It'd be great to get some code samples there.
The text was updated successfully, but these errors were encountered: