def METHOD_NAME(api_volume, pvc):
    """
    Return a V1Volume dict object based on the API Volume the client/UI sent.
    api_volume: The API Volume submitted from client/UI
    pvc: The created PVC, whose spec was defined in the api_volume
    """
    check_volume_format(api_volume)
    if pvc is not None:
        # Mount a new PVC. We use the created PVC since the api_volume.newPvc
        # spec might have defined a metadata.generateName. In this case, the
        # name is set after the creation of the PVC
        return {"name": pvc.metadata.name,
                "persistentVolumeClaim": {"claimName": pvc.metadata.name}}
    # User has explicitly asked to use an existing volume source
    v1_volume = {"name": get_volume_name(api_volume)}
    v1_volume.update(api_volume[EXISTING_SOURCE])
    return v1_volume