https://opendal.apache.org/ logo
hey quick question regarding the google
# general
z
hey quick question regarding the google drive service, is there anyway to grab files or drives shared with the account?
x
I’m afraid that we don’t have such api.
So you know how gdrive provide it?
Is it a special folder? Or a dedicated api?
z
im pretty sure its just extra flags in the api fetch request
it seems the gdrive service can view them it just deosnt expose the flags directly
x
Oh, I see. Seems we can expose it as a config?
z
i think so? let me check
ok so it wasnt quite what i remembered for some reason I had it in my head that the query params have already been added just unsued anyway it should be fairly simple to implement all thats needed to do is add a option in Gdriveconfig for shared files and include the includeItemsFromAllDrives query param for list and the supportsAllDrives query param for get https://developers.google.cn/workspace/drive/api/reference/rest/v3/files/get https://developers.google.cn/workspace/drive/api/reference/rest/v3/files/list https://github.com/apache/opendal/blob/main/core/src/services/gdrive/core.rs
im not sure how this would interact with the path_cacher tho
actually i dont see why it shouldnt be enabled by default for get
for list it should probably stay an option
x
This should be ok since the file id itself shares a global namespace
Would you like to help implement this? I think we can add an option that
includes_shared
z
sure will do
should i only do the fetching? or should i update all methods to use this option?
also has there been any work done to allow service accounts to use gdrive? the authentication flow for access tokens with service accounts is very similar to what you guys have done for the oauth refresh_token setup
created a pr for this
2 Views