@@ -461,6 +461,16 @@ def list_users(self, *, include: List[Literal["custom_fields"]] = None, **filter
461461 def pause_user_activity (
462462 self , pk : Union [int , str ], projects : Union [List [int ], List [str ], Literal ["*" ]]
463463 ):
464+ """
465+ Block the team contributor from requesting items from the projects.
466+
467+ :param pk: The email address or user ID of the team contributor.
468+ :type pk: str or int
469+
470+ :param projects: A list of project names or IDs from which the user should be blocked.
471+ The special value "*" means block access to all projects
472+ :type projects: Union[List[int], List[str], Literal["*"]]
473+ """
464474 user = self .controller .work_management .get_user_metadata (pk = pk )
465475 if user .role is not WMUserTypeEnum .Contributor :
466476 raise AppException ("User must have a contributor role to pause activity." )
@@ -474,6 +484,16 @@ def pause_user_activity(
474484 def resume_user_activity (
475485 self , pk : Union [int , str ], projects : Union [List [int ], List [str ], Literal ["*" ]]
476486 ):
487+ """
488+ Resume the team contributor from requesting items from the projects.
489+
490+ :param pk: The email address or user ID of the team contributor.
491+ :type pk: str or int
492+
493+ :param projects: A list of project names or IDs from which the user should be resumed.
494+ The special value "*" means resume access to all projects
495+ :type projects: Union[List[int], List[str], Literal["*"]]
496+ """
477497 user = self .controller .work_management .get_user_metadata (pk = pk )
478498 if user .role is not WMUserTypeEnum .Contributor :
479499 raise AppException ("User must have a contributor role to resume activity." )
0 commit comments