Your IP : 216.73.216.11


Current Path : /usr/lib/python3.9/site-packages/leapp/workflows/api/
Upload File :
Current File : //usr/lib/python3.9/site-packages/leapp/workflows/api/__init__.py

class WorkflowAPI(object):
    produces = ()
    consumes = ()
    apis = ()

    def __init__(self):
        pass

    @classmethod
    def serialize(cls):
        return {
            'name': cls.__name__,
            'module': cls.__module__,
            'consumes': [model.__name__ for model in cls.consumes],
            'produces': [model.__name__ for model in cls.produces],
            'apis': [api.__name__ for api in cls.apis]
        }