Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "78a8dc0", "specHash": "576cd17", "version": "10.9.0" }
{ "engineHash": "4de40e1", "specHash": "e0ffc4a", "version": "10.9.0" }
8 changes: 8 additions & 0 deletions box_sdk_gen/schemas/v2025_r0/doc_gen_job_full_v2025_r0.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
DocGenJobV2025R0StatusField,
)

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import (
DocGenJobV2025R0FailuresField,
)

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import DocGenJobV2025R0

from box_sdk_gen.schemas.v2025_r0.user_base_v2025_r0 import UserBaseV2025R0
Expand Down Expand Up @@ -49,6 +53,7 @@ def __init__(
created_at: Optional[str] = None,
output_file: Optional[FileReferenceV2025R0] = None,
output_file_version: Optional[FileVersionBaseV2025R0] = None,
failures: Optional[DocGenJobV2025R0FailuresField] = None,
type: DocGenJobBaseV2025R0TypeField = DocGenJobBaseV2025R0TypeField.DOCGEN_JOB,
**kwargs
):
Expand All @@ -63,6 +68,8 @@ def __init__(
:type id: str
:param created_at: Time of job creation., defaults to None
:type created_at: Optional[str], optional
:param failures: Errors and warnings that occurred during document generation., defaults to None
:type failures: Optional[DocGenJobV2025R0FailuresField], optional
:param type: The value will always be `docgen_job`., defaults to DocGenJobBaseV2025R0TypeField.DOCGEN_JOB
:type type: DocGenJobBaseV2025R0TypeField, optional
"""
Expand All @@ -75,6 +82,7 @@ def __init__(
id=id,
output_file=output_file,
output_file_version=output_file_version,
failures=failures,
type=type,
**kwargs
)
Expand Down
21 changes: 21 additions & 0 deletions box_sdk_gen/schemas/v2025_r0/doc_gen_job_v2025_r0.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from enum import Enum

from typing import List

from box_sdk_gen.internal.base_object import BaseObject

from typing import Optional

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_base_v2025_r0 import (
Expand Down Expand Up @@ -29,6 +33,19 @@ class DocGenJobV2025R0StatusField(str, Enum):
PENDING = 'pending'


class DocGenJobV2025R0FailuresField(BaseObject):
def __init__(self, errors: List[str], warnings: List[str], **kwargs):
"""
:param errors: A list of errors that occurred during document generation.
:type errors: List[str]
:param warnings: A list of warnings that occurred during document generation.
:type warnings: List[str]
"""
super().__init__(**kwargs)
self.errors = errors
self.warnings = warnings


class DocGenJobV2025R0(DocGenJobBaseV2025R0):
_discriminator = 'type', {'docgen_job'}

Expand All @@ -43,6 +60,7 @@ def __init__(
*,
output_file: Optional[FileReferenceV2025R0] = None,
output_file_version: Optional[FileVersionBaseV2025R0] = None,
failures: Optional[DocGenJobV2025R0FailuresField] = None,
type: DocGenJobBaseV2025R0TypeField = DocGenJobBaseV2025R0TypeField.DOCGEN_JOB,
**kwargs
):
Expand All @@ -53,6 +71,8 @@ def __init__(
:type output_type: str
:param id: The unique identifier that represent a Box Doc Gen job.
:type id: str
:param failures: Errors and warnings that occurred during document generation., defaults to None
:type failures: Optional[DocGenJobV2025R0FailuresField], optional
:param type: The value will always be `docgen_job`., defaults to DocGenJobBaseV2025R0TypeField.DOCGEN_JOB
:type type: DocGenJobBaseV2025R0TypeField, optional
"""
Expand All @@ -64,3 +84,4 @@ def __init__(
self.output_type = output_type
self.output_file = output_file
self.output_file_version = output_file_version
self.failures = failures
Loading