2022-12-29 14:29:18 +00:00
|
|
|
"""
|
|
|
|
sa contains SecurityAdvisory dataclass definition
|
|
|
|
"""
|
2022-12-28 16:21:40 +00:00
|
|
|
from dataclasses import dataclass
|
|
|
|
from typing import List
|
|
|
|
|
|
|
|
from .package import Package
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class SecurityAdvisory:
|
|
|
|
"""
|
|
|
|
SecurityAdvisory represents Security advisory deffition extracted
|
|
|
|
from oval or errata
|
|
|
|
"""
|
|
|
|
title: str
|
2022-12-29 14:29:18 +00:00
|
|
|
id: str # pylint: disable=invalid-name
|
2022-12-28 16:21:40 +00:00
|
|
|
packages: List[Package]
|