Add support for the Drive resource as described in the Google Drive API Reference [1].
[1] https://developers.google.com/drive/api/v2/reference/drives
dvratil |
Add support for the Drive resource as described in the Google Drive API Reference [1].
[1] https://developers.google.com/drive/api/v2/reference/drives
Test units have been added for the Drive resource operations. An example is included which demonstrates fetching, modifying, hiding Drives.
No Linters Available |
No Unit Test Coverage |
Buildable 12879 | |
Build 12897: arc lint + arc unit |
In this revision I would like to also include deprecation notices/warnings on the Teamdrive resource, as it is officially deprecated by Google. What is the correct way to do this?
To deprecate an entire class, change its the export macro to KGAPIDRIVE_DEPRECATED_EXPORT. If you want to deprecate just a particular method but not the whole class, prefix its definition with KGAPIDRIVE_DEPRECATED.
I added KGAPIDRIVE_DEPRECATED_EXPORT to the create/delete/modify/fetch jobs and afterwards all tests and the teamdrive example show warnings. Is that correct? Or should I delete tests/examples?
Fixing previous edit mistakes (not sure what happened, still trying to understand arc).
It's fine to leave it in and ignore the warnings - I think there's some way to disable deprecation warnings internally, but I can't find it now.
@barchiesi This commit broke the kio-gdrive build (CanCreateTeamDrives no longer existing).
Could you push a fix for that? Thanks!