'Creates a new snapshot.'

@wsgi.response(http_client.OK)
def create(self, req, body):

    if ((body is None) or (not body.get('snapshot')) or (not isinstance(body['snapshot'], dict))):
        raise exc.HTTPUnprocessableEntity()
    if ('display_name' in body['snapshot']):
        body['snapshot']['name'] = body['snapshot'].pop('display_name')
    if ('display_description' in body['snapshot']):
        body['snapshot']['description'] = body['snapshot'].pop('display_description')
    if ('metadata' not in body['snapshot']):
        body['snapshot']['metadata'] = {}
    return _snapshot_v2_to_v1(super(SnapshotsController, self).create(req, body))
