Unable to move files or folders to the thrash with the google drive client
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start in generated/google-apis-drive_v3/lib/google/apis/drive_v3/service.rb at the update_file method referenced in the issue, and compare its available query parameters with the Drive v3 trash documentation. Verify the expected update request and confirm that the resulting call moves a file or folder to the trash.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Using the google drive v3 client, I want to move a file or folder to the trash.
The general documentation states that this should be possible via a query parameter thrashed=true in the update_file endpoint.
However, the ruby client does not offer a query parameter for the update file method (or maybe I do not understand how to add it):
Describe the solution you'd like
I want to use the update_file method, with e.g. service.update_file("my-folder-id", supports_all_drives: true, thrashed: true, options: { retries: 3 }) or similar.
Describe alternatives you've considered
I tried to construct the query manually, by using service.send(:create_simple_command, ...) etc.
However, thrashing the file still did not work. Even though when using get_file with fields = 'capabilities, it returns true for canThrash
- Dominant language
- Ruby
- Stars
- 2.9k
- Forks
- 888
- Avg merge
- 8m
- Merged PRs (30d)
- 242
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/google-api-ruby-client
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
googleapis/google-api-ruby-client#28001 · 5 reactions ·
Maintainers usually reply within 1 day
-
googleapis/google-api-ruby-client#27757 · 1 assignee ·
Maintainers usually reply within 1 day
-
googleapis/google-api-ruby-client#27758 · 1 assignee ·
Maintainers usually reply within 1 day
-
googleapis/google-api-ruby-client#27759 · 1 assignee ·
Maintainers usually reply within 1 day
-
api: storage type: feature request
Difficulty 3/5 1-2 days Newbie friendliness 55/100
googleapis/google-api-ruby-client#27339 ·
Maintainers usually reply within 1 day
All issues in googleapis/google-api-ruby-client
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
TheOdinProject/curriculum#31423 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oxidize-rb/rb-sys#807 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day