@@ -1970,6 +1970,22 @@ def get_suites(self, project_id: int, offset: Optional[int] = None, limit: Optio
19701970 """
19711971 return self .s .get (endpoint = f"get_suites/{ project_id } " , params = self ._opt ({"offset" : offset , "limit" : limit }))
19721972
1973+ def get_suites_bulk (self , project_id : int , ** kwargs ) -> list [dict ]:
1974+ """
1975+ Return a list of test suites for a project with pagination.
1976+
1977+ :param project_id:
1978+ The ID of the project
1979+ :param kwargs:
1980+ :key offset: int
1981+ Where to start counting the suites from (the offset)
1982+ :key limit: int
1983+ The number of suites the response should return
1984+ :return: List of test suites
1985+ :returns: list[dict]
1986+ """
1987+ return _bulk_api_method (self .get_suites , "suites" , project_id , ** kwargs )
1988+
19731989 def add_suite (self , project_id : int , name : str , ** kwargs ) -> dict :
19741990 """
19751991 Creates a new test suite.
@@ -2143,6 +2159,23 @@ def get_users(
21432159 params = self ._opt ({"offset" : offset , "limit" : limit }),
21442160 )
21452161
2162+ def get_users_bulk (self , project_id : Optional [int ] = None , ** kwargs ) -> list [dict ]:
2163+ """
2164+ Return a list of users with pagination.
2165+
2166+ :param project_id:
2167+ The ID of the project for which you would like to retrieve user information.
2168+ (Required for non-administrators. Requires TestRail 6.6 or later.)
2169+ :param kwargs:
2170+ :key offset: int
2171+ Where to start counting the users from (the offset)
2172+ :key limit: int
2173+ The number of users the response should return
2174+ :return: List of users
2175+ :returns: list[dict]
2176+ """
2177+ return _bulk_api_method (self .get_users , "users" , project_id , ** kwargs )
2178+
21462179
21472180class SharedSteps (_MetaCategory ):
21482181 """https://www.gurock.com/testrail/docs/api/reference/api-shared-steps."""
0 commit comments