File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 55from typing import Optional , Iterator
66from requests_toolbelt .sessions import BaseUrlSession
77
8- from codeocean .components import Ownership , SortOrder , SearchFilter
8+ from codeocean .components import Ownership , SortOrder , SearchFilter , Permissions
99from codeocean .computation import Computation
1010from codeocean .data_asset import DataAssetAttachParams , DataAssetAttachResults
1111from codeocean .enum import StrEnum
@@ -92,6 +92,12 @@ def list_computations(self, capsule_id: str) -> list[Computation]:
9292
9393 return [Computation .from_dict (c ) for c in res .json ()]
9494
95+ def update_permissions (self , capsule_id : str , permissions : Permissions ):
96+ self .client .post (
97+ f"capsules/{ capsule_id } /permissions" ,
98+ json = permissions .to_dict (),
99+ )
100+
95101 def attach_data_assets (
96102 self ,
97103 capsule_id : str ,
You can’t perform that action at this time.
0 commit comments