def snapshot(self, context, instance, name, extra_properties=None):
    if (len(name) > 256):
        raise exc.Invalid
    return dict(id='123', status='ACTIVE', name=name, properties=extra_properties)
def snapshot(self, context, instance, name, extra_properties=None):
    if (len(name) > 256):
        raise exc.Invalid
    return dict(id='123', status='ACTIVE', name=name, properties=extra_properties)