toloka.client.search_requests.UserRestrictionSearchRequest
| Source code
UserRestrictionSearchRequest( self, scope: Optional[UserRestriction.Scope] = None, user_id: Optional[str] = None, project_id: Optional[str] = None, pool_id: Optional[str] = None, id_lt: Optional[str] = None, id_lte: Optional[str] = None, id_gt: Optional[str] = None, id_gte: Optional[str] = None, created_lt: Optional[datetime] = None, created_lte: Optional[datetime] = None, created_gt: Optional[datetime] = None, created_gte: Optional[datetime] = None)
Parameters for searching Toloker restrictions.
Parameters | Type | Description |
---|---|---|
scope | Optional[UserRestriction.Scope] | The scope of a restriction. Refer to the UserRestriction.Scope page for more information on the available |
user_id | Optional[str] | The Toloker's ID. |
project_id | Optional[str] | The ID of a project with restricted access. |
pool_id | Optional[str] | The ID of a pool with restricted access. |
id_lt | Optional[str] | Restrictions with IDs less than the specified value. |
id_lte | Optional[str] | Restrictions with IDs less than or equal to the specified value. |
id_gt | Optional[str] | Restrictions with IDs greater than the specified value. |
id_gte | Optional[str] | Restrictions with IDs greater than or equal to the specified value. |
created_lt | Optional[datetime] | Restrictions created before the specified date. |
created_lte | Optional[datetime] | Restrictions created before or on the specified date. |
created_gt | Optional[datetime] | Restrictions created after the specified date. |
created_gte | Optional[datetime] | Restrictions created after or on the specified date. |