11from enum import Enum
22
3+ from typing import List
4+
5+ from box_sdk_gen .internal .base_object import BaseObject
6+
37from typing import Optional
48
59from box_sdk_gen .schemas .v2025_r0 .doc_gen_job_base_v2025_r0 import (
@@ -29,6 +33,19 @@ class DocGenJobV2025R0StatusField(str, Enum):
2933 PENDING = 'pending'
3034
3135
36+ class DocGenJobV2025R0FailuresField (BaseObject ):
37+ def __init__ (self , errors : List [str ], warnings : List [str ], ** kwargs ):
38+ """
39+ :param errors: A list of errors that occurred during document generation.
40+ :type errors: List[str]
41+ :param warnings: A list of warnings that occurred during document generation.
42+ :type warnings: List[str]
43+ """
44+ super ().__init__ (** kwargs )
45+ self .errors = errors
46+ self .warnings = warnings
47+
48+
3249class DocGenJobV2025R0 (DocGenJobBaseV2025R0 ):
3350 _discriminator = 'type' , {'docgen_job' }
3451
@@ -43,6 +60,7 @@ def __init__(
4360 * ,
4461 output_file : Optional [FileReferenceV2025R0 ] = None ,
4562 output_file_version : Optional [FileVersionBaseV2025R0 ] = None ,
63+ failures : Optional [DocGenJobV2025R0FailuresField ] = None ,
4664 type : DocGenJobBaseV2025R0TypeField = DocGenJobBaseV2025R0TypeField .DOCGEN_JOB ,
4765 ** kwargs
4866 ):
@@ -53,6 +71,8 @@ def __init__(
5371 :type output_type: str
5472 :param id: The unique identifier that represent a Box Doc Gen job.
5573 :type id: str
74+ :param failures: Errors and warnings that occurred during document generation., defaults to None
75+ :type failures: Optional[DocGenJobV2025R0FailuresField], optional
5676 :param type: The value will always be `docgen_job`., defaults to DocGenJobBaseV2025R0TypeField.DOCGEN_JOB
5777 :type type: DocGenJobBaseV2025R0TypeField, optional
5878 """
@@ -64,3 +84,4 @@ def __init__(
6484 self .output_type = output_type
6585 self .output_file = output_file
6686 self .output_file_version = output_file_version
87+ self .failures = failures
0 commit comments