def get_entry_type_name()

in dataplex-quickstart-labs/00-resources/scripts/python/business-glossary-import/bg_import/business_glossary_export_v2.py [0:0]


def get_entry_type_name(entry_type: str) -> str:
    """
    Returns the fully qualified entry type name based on the provided entry type.
    Args:
        entry_type (str): The type of the entry. Can be one of "glossary_term", "glossary_category".
    Returns:
        str: The fully qualified entry type name if the entry type is recognized, otherwise an empty string.
    """
    if entry_type == "glossary_term":
        return f"projects/{PROJECT_NUMBER}/locations/global/entryTypes/glossary-term"
    elif entry_type == "glossary_category":
        return f"projects/{PROJECT_NUMBER}/locations/global/entryTypes/glossary-category"
    elif entry_type == "glossary":
        return f"projects/{PROJECT_NUMBER}/locations/global/entryTypes/glossary"
    return ""