# This file was auto-generated by Fern from our API Definition.

from .common_properties import CommonProperties
import typing
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2


class Software(CommonProperties):
    name: str
    cpe: typing.Optional[str] = pydantic.Field(default=None)
    """
    Specifies the Common Platform Enumeration
    """

    swid: typing.Optional[str] = None
    languages: typing.Optional[str] = None
    vendor: typing.Optional[str] = None
    version: typing.Optional[str] = None

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
            extra="allow"
        )  # type: ignore # Pydantic v2
    else:

        class Config:
            smart_union = True
            extra = pydantic.Extra.allow
