mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-15 00:36:11 +01:00
32 lines
663 B
Python
32 lines
663 B
Python
import textwrap
|
|
|
|
from ..util.models import * # pylint: disable=wildcard-import,unused-wildcard-import
|
|
|
|
|
|
class StatusData(XmlModel):
|
|
XML_TAG = "data"
|
|
|
|
class NameEnum(str, Enum):
|
|
SOURCEPROJECT = "sourceproject"
|
|
SOURCEPACKAGE = "sourcepackage"
|
|
TARGETPROJECT = "targetproject"
|
|
TARGETPACKAGE = "targetpackage"
|
|
|
|
name: NameEnum = Field(
|
|
xml_attribute=True,
|
|
description=textwrap.dedent(
|
|
"""
|
|
Key.
|
|
"""
|
|
),
|
|
)
|
|
|
|
value: str = Field(
|
|
xml_set_text=True,
|
|
description=textwrap.dedent(
|
|
"""
|
|
Value.
|
|
"""
|
|
),
|
|
)
|