def glossary_argument_parser()

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


def glossary_argument_parser(parser: argparse.Namespace) -> None:
    """
    Parses the arguments related to the glossary.
    
    Args: 
    parser: argparse.ArgumentParser().
    """
    parser.add_argument(
      "--project",
      help="ID of Google Cloud Project containing the destination glossary.",
      metavar="<project_id>",
      type=str,
      required=True,
  )
    parser.add_argument(
        "--group",
        help=(
            "Identifier of an existing Entry Group where the target glossary is"
            " located."
        ),
        metavar="<entry_group_id>",
        type=str,
        required=True,
    )
    parser.add_argument(
        "--glossary",
        help=(
            "Identifier of the destination glossary to which data will be"
            " imported."
        ),
        metavar="<glossary_id>",
        type=str,
        required=True,
    )
    parser.add_argument(
        "--location",
        help="Location code where the glossary resource exists.",
        metavar="<location_code>",
        type=str,
        required=True,
    )