backend.ai icon indicating copy to clipboard operation
backend.ai copied to clipboard

feat: add `shared_vfolders_info` and `update_shared_vfolder` APIs to client-py

Open agatha197 opened this issue 3 years ago • 0 comments

  • Description: To show the shared vfolder info and update the permission, I added the client-py API. shared_vfolders_info shows the information such as folder name, folder id, owner, permission, folder type, shared to, etc. update_shared_vfolder updates permission for the given shared vfolders.

  • Related PR: https://github.com/lablup/backend.ai-control-panel/pull/287


[Questions]

  • I'm not sure which one is better to set as a name, shared vfolders_info / update_vfolder permission and update_shared_vfolder / vfolder_permission_info.

  • To prevent normal users from modifying other people's shared folders, the following options are possible. Which one is the best?

    1. Edit manager
    2. Set as admin-only API
    3. Add logic to determine whether client-py is admin or not

agatha197 avatar Jul 27 '22 08:07 agatha197