equipment

operation_result

pydantic model ochra.manager.proxy_models.equipment.operation_result.OperationResult

Bases: OperationResult, RestProxyMixin

Represents the outcome of an equipment operation, including its status and any associated data.

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

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Fields:
field cls: str = None

The class name of the data model.

field collection: str = None

The name of the collection where the data model will be stored.

field data_file_name: str = ''

Name of the file containing the result data, including its extension. Leave empty if not applicable.

field data_status: ResultDataStatus = ResultDataStatus.UNAVAILABLE

Current availability status of the result data. Defaults to UNAVAILABLE.

field data_type: str = ''

Type or format of the result data (e.g., “image”, “text”, “json”).

field error: str = ''

Description of the error if the operation failed; empty if successful.

field id: uuid.UUID [Optional]

Unique identifier for the data model instance.

field module_path: str = None

The module path of the data model.

field result_data: Any = None

The data produced by the operation, if any.

field success: bool [Required]

True if the operation completed successfully; otherwise, False.