Source code for azure.cognitiveservices.formrecognizer.models.form_document_report_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class FormDocumentReport(Model): """FormDocumentReport. :param document_name: Reference to the data that the report is for. :type document_name: str :param pages: Total number of pages trained on. :type pages: int :param errors: List of errors per page. :type errors: list[str] :param status: Status of the training operation. Possible values include: 'success', 'partialSuccess', 'failure' :type status: str or ~azure.cognitiveservices.formrecognizer.models.enum """ _attribute_map = { 'document_name': {'key': 'documentName', 'type': 'str'}, 'pages': {'key': 'pages', 'type': 'int'}, 'errors': {'key': 'errors', 'type': '[str]'}, 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, *, document_name: str=None, pages: int=None, errors=None, status=None, **kwargs) -> None: super(FormDocumentReport, self).__init__(**kwargs) self.document_name = document_name self.pages = pages self.errors = errors self.status = status