Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
tdw-catalog / tdw_catalog / metadata / contract_owner.py
Size: Mime:
from typing import Optional
from tdw_catalog.team import Team

import tdw_catalog.metadata.organization_team as organization_team
import tdw_catalog.metadata.field as field


class Field(
        field.RecommendedMetadataField[Team],
        organization_team.Field,
):
    """
    Team or department that owns the data license

    Attributes
    ----------
    None
    """

    def __init__(self, key: str, value: Optional[Team]) -> None:
        super().__init__(key, value)

    def serialize(self) -> dict:
        res = super().serialize()
        res["recommended_type"] = "contractOwner"
        return res