toloka.client.user_restriction.PoolUserRestriction
| Source code
PoolUserRestriction( self, *, user_id: Optional[str] = None, private_comment: Optional[str] = None, will_expire: Optional[datetime] = None, id: Optional[str] = None, created: Optional[datetime] = None, pool_id: Optional[str] = None)
A pool restriction.
A Toloker doesn't have access to the pool.
Parameters | Type | Description |
---|---|---|
user_id | Optional[str] | The ID of the Toloker. |
private_comment | Optional[str] | A comment visible to the requester only. |
will_expire | Optional[datetime] | The UTC date and time when the access will be restored by Toloka. If the parameter isn't set, then the restriction is active until you remove it calling the |
id | Optional[str] | The ID of the restriction. |
created | Optional[datetime] | The UTC date and time when the restriction was applied. Read-only field. |
pool_id | Optional[str] | The ID of the pool that is blocked. |
Last updated: August 28, 2023