def get_existing_analyzer_ids()

in function_app/src/components/content_understanding_client.py [0:0]


def get_existing_analyzer_ids(cu_client: AzureContentUnderstandingClient) -> list[str]:
    """
    Gets a list of existing Content Understanding analyzer IDs.

    :param cu_client: A Content Understanding client.
    :type cu_client: AzureContentUnderstandingClient
    :return: A list of existing Content Understanding analyzer IDs.
    :rtype: list[str]
    """
    existing_cu_analyzer_ids = [
        analyzer["analyzerId"]
        for analyzer in cu_client.get_all_analyzers().get("value", [])
    ]
    return existing_cu_analyzer_ids