'Updates volume metadata.
If delete is True, metadata items that are not specified in the
`metadata` argument will be deleted.'

@wrap_check_policy
def update_volume_metadata(self, context, volume, metadata, delete=False, meta_type=common.METADATA_TYPES.user):

    db_meta = self._update_volume_metadata(context, volume, metadata, delete, meta_type)
    LOG.info('Update    volume    metadata    completed    successfully.', resource=volume)
    return db_meta
