Unit¶
-
class
moco_wrapper.models.Unit(moco)¶ Class for handling teams.
When a user is created he always belongs to a team (e.g. development). These can be managed with this model.
-
static
endpoints() → List[moco_wrapper.util.endpoint.endpoint.Endpoint]¶ Returns all endpoints associated with the model
Returns: List of Endpoint objects Return type: moco_wrapper.util.endpoint.Endpoint
-
get(unit_id: int)¶ Get a single team.
Parameters: unit_id (int) – Id of the team Returns: Single team object Return type: moco_wrapper.util.response.ObjectResponse
-
getlist(sort_by: str = None, sort_order: str = 'asc', page: int = 1)¶ Retrieve a list of teams.
Parameters: - sort_by (str) – Sort by field (default
None) - sort_order (str) – asc or desc (default
"asc") - page (int) – page number (default
1)
Returns: List of team objects
Return type: - sort_by (str) – Sort by field (default
-
static