ocrd_network.models.messages module

class ocrd_network.models.messages.PYResultMessage(*, job_id: str, state: StateEnum, path_to_mets: str | None = None, workspace_id: str | None = None)[source]

Bases: BaseModel

Wraps the parameters required to make a result message request

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

job_id: str
state: StateEnum
path_to_mets: str | None
workspace_id: str | None
class Config[source]

Bases: object

schema_extra = {'example': {'job_id': '123123123', 'path_to_mets': '/path/to/mets.xml', 'state': 'SUCCESS', 'workspace_id': 'c7f25615-fc17-4365-a74d-ad20e1ddbd0e'}}