mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-16 00:56:12 +01:00
34 lines
705 B
Python
34 lines
705 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"
|
|
TOKEN = "token"
|
|
ID = "id"
|
|
|
|
name: NameEnum = Field(
|
|
xml_attribute=True,
|
|
description=textwrap.dedent(
|
|
"""
|
|
Key.
|
|
"""
|
|
),
|
|
)
|
|
|
|
value: str = Field(
|
|
xml_set_text=True,
|
|
description=textwrap.dedent(
|
|
"""
|
|
Value.
|
|
"""
|
|
),
|
|
)
|