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    
Size: Mime:
from typing import Optional

from tdw_catalog.utils import MetadataFieldType
import tdw_catalog.metadata_template.field as field


class Field(field.MetadataTemplateField[str]):
    """
    An alternative unique identifier for this :class:`.Dataset`\\ , for integrating with external systems

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

    def __init__(self, key: str, default_value: Optional[str],
                 optional: Optional[bool]) -> None:
        super().__init__(key, default_value, optional)

    def serialize(self) -> dict:
        res = super().serialize()
        res["default_value"] = self.default_value
        res["field_type"] = MetadataFieldType.FT_ALIAS
        return res