Skip to content

Commit

Permalink
add access_mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuuggoo committed Sep 25, 2024
1 parent 813787d commit 02f24b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion saturn_client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def get_all_users(self, org_id: Optional[str] = None) -> List[str]:
users.extend(page)
return users

def create_shared_folder(self, name: str, access: str, is_external: bool = False, owner_name=None) -> Dict:
def create_shared_folder(self, name: str, access: str, is_external: bool = False, access_mode: str = "ReadWriteMany", owner_name=None) -> Dict:
if owner_name is None:
owner_name = f"{self.primary_org['name']}/{self.current_user['username']}"
url = urljoin(self.url, "api/shared_folders")
Expand All @@ -325,6 +325,7 @@ def create_shared_folder(self, name: str, access: str, is_external: bool = False
"owner_name": owner_name,
"name": name,
"access": access,
"access_mode": access_mode,
"is_external": is_external,
"disk_space": "100Gi",
},
Expand Down

0 comments on commit 02f24b4

Please sign in to comment.