mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-15 08:36:13 +01:00
43 lines
915 B
Python
43 lines
915 B
Python
|
import textwrap
|
||
|
|
||
|
from ..util.models import * # pylint: disable=wildcard-import,unused-wildcard-import
|
||
|
from .status_data import StatusData
|
||
|
|
||
|
|
||
|
class Status(XmlModel):
|
||
|
XML_TAG = "status"
|
||
|
|
||
|
code: str = Field(
|
||
|
xml_attribute=True,
|
||
|
description=textwrap.dedent(
|
||
|
"""
|
||
|
Status code returned by the server.
|
||
|
"""
|
||
|
),
|
||
|
)
|
||
|
|
||
|
summary: Optional[str] = Field(
|
||
|
description=textwrap.dedent(
|
||
|
"""
|
||
|
Human readable summary.
|
||
|
"""
|
||
|
),
|
||
|
)
|
||
|
|
||
|
details: Optional[str] = Field(
|
||
|
description=textwrap.dedent(
|
||
|
"""
|
||
|
Detailed, human readable information.
|
||
|
"""
|
||
|
),
|
||
|
)
|
||
|
|
||
|
data_list: Optional[List[StatusData]] = Field(
|
||
|
xml_name="data",
|
||
|
description=textwrap.dedent(
|
||
|
"""
|
||
|
Additional machine readable data.
|
||
|
"""
|
||
|
),
|
||
|
)
|