def run_command()

in healthcare/api-client/v1/dicom/dicom_stores.py [0:0]


def run_command(args):
    """Calls the program using the specified command."""
    if args.project_id is None:
        print(
            "You must specify a project ID or set the "
            '"GOOGLE_CLOUD_PROJECT" environment variable.'
        )
        return

    elif args.command == "create-dicom-store":
        create_dicom_store(
            args.project_id, args.location, args.dataset_id, args.dicom_store_id
        )

    elif args.command == "delete-dicom-store":
        delete_dicom_store(
            args.project_id, args.location, args.dataset_id, args.dicom_store_id
        )

    elif args.command == "get-dicom-store":
        get_dicom_store(
            args.project_id, args.location, args.dataset_id, args.dicom_store_id
        )

    elif args.command == "list-dicom-stores":
        list_dicom_stores(args.project_id, args.location, args.dataset_id)

    elif args.command == "patch-dicom-store":
        patch_dicom_store(
            args.project_id,
            args.location,
            args.dataset_id,
            args.dicom_store_id,
            args.pubsub_topic,
        )

    elif args.command == "export-dicom-store":
        export_dicom_instance(
            args.project_id,
            args.location,
            args.dataset_id,
            args.dicom_store_id,
            args.uri_prefix,
        )

    elif args.command == "import-dicom-store":
        import_dicom_instance(
            args.project_id,
            args.location,
            args.dataset_id,
            args.dicom_store_id,
            args.content_uri,
        )

    elif args.command == "get_iam_policy":
        get_dicom_store_iam_policy(
            args.project_id, args.location, args.dataset_id, args.dicom_store_id
        )

    elif args.command == "set_iam_policy":
        set_dicom_store_iam_policy(
            args.project_id,
            args.location,
            args.dataset_id,
            args.dicom_store_id,
            args.member,
            args.role,
        )