def create(self, data):
        db_obj = objects.registry.Component()
        db_obj.uuid = str(uuid.uuid4())
        db_obj.update(data)
        db_obj.user_id = self.context.user
        db_obj.project_id = self.context.tenant
        db_obj.create(self.context)
        return db_obj
Create a new resource.
dataset/ETHPy150Open openstack/solum/solum/api/handlers/component_handler.py/ComponentHandler.create