benchling_api_client.models.async_task module

class AsyncTask

Bases: object

__init__(status: AsyncTaskStatus, errors: Union[benchling_api_client.types.Unset, AsyncTaskErrors] = attr_dict['_errors'].default, message: Union[benchling_api_client.types.Unset, str] = attr_dict['_message'].default, response: Union[benchling_api_client.types.Unset, AsyncTaskResponse] = attr_dict['_response'].default) None

Method generated by attrs for class AsyncTask.

property additional_keys: List[str]
additional_properties: Dict[str, Any]
property errors: AsyncTaskErrors

Present only when status is FAILED for a bulk task. Contains information about the individual errors in the bulk task.

classmethod from_dict(src_dict: Dict[str, Any]) benchling_api_client.models.async_task.T
get(key, default=None) Optional[Any]
property message: str

Present only when status is FAILED. Contains information about the error.

property response: AsyncTaskResponse

Present only when status is SUCCEEDED. response can be empty if there is no data to be returned.

property status: AsyncTaskStatus

The current state of the task.

to_dict() Dict[str, Any]