def get(self, ws_id, catalogue_id, vnf_id):
        """Get a specific function

        Gets a specific function information by its id"""

        functions = catalogue_servicesimpl.get_in_catalogue(ws_id, catalogue_id, vnf_id, True)
        return prepare_response(functions)
示例#2
0
    def get(self, ws_id, catalogue_id, service_id):
        """Return a specific Service

        Returns the referenced service from the Project or catalogue"""

        service = catalogue_servicesimpl.get_in_catalogue(ws_id, catalogue_id, service_id, False)
        return prepare_response(service)
示例#3
0
    def get(self, ws_id, catalogue_id, vnf_id):
        """Get a specific function

        Gets a specific function information by its id"""

        functions = catalogue_servicesimpl.get_in_catalogue(
            ws_id, catalogue_id, vnf_id, True)
        return prepare_response(functions)
    def get(self, ws_id, parent_id, service_id):
        """Return a specific Service

        Returns the referenced service from the Project or catalogue"""
        if get_parent(request) is Category.project:
            service = servicesimpl.get_service(ws_id, parent_id, service_id)
            return prepare_response(service)
        if get_parent(request) is Category.catalogue:
            service = catalogue_servicesimpl.get_in_catalogue(ws_id, parent_id, service_id, False)
            return prepare_response(service)
        return prepare_response("not yet implemented")
    def get(self, ws_id, parent_id, service_id):
        """Return a specific Service

        Returns the referenced service from the Project or catalogue"""
        if get_parent(request) is Category.project:
            service = servicesimpl.get_service(ws_id, parent_id, service_id)
            return prepare_response(service)
        if get_parent(request) is Category.catalogue:
            service = catalogue_servicesimpl.get_in_catalogue(
                ws_id, parent_id, service_id, False)
            return prepare_response(service)
        return prepare_response("not yet implemented")
    def get(self, ws_id, parent_id, vnf_id):
        """Get a specific function

        Gets a specific function information by its id"""
        if get_parent(request) is Category.project:
            functions = functionsimpl.get_function_project(ws_id, parent_id, vnf_id)
            return prepare_response(functions)
            # TODO implement for catalog and platform
        if get_parent(request) is Category.catalogue:
            functions = catalogue_servicesimpl.get_in_catalogue(ws_id, parent_id, vnf_id, True)
            return prepare_response(functions)
        # TODO implement for catalog and platform
        return prepare_response("not yet implemented")
示例#7
0
    def get(self, ws_id, parent_id, vnf_id):
        """Get a specific function

        Gets a specific function information by its id"""
        if get_parent(request) is Category.project:
            functions = functionsimpl.get_function_project(
                ws_id, parent_id, vnf_id)
            return prepare_response(functions)
            # TODO implement for catalog and platform
        if get_parent(request) is Category.catalogue:
            functions = catalogue_servicesimpl.get_in_catalogue(
                ws_id, parent_id, vnf_id, True)
            return prepare_response(functions)
        # TODO implement for catalog and platform
        return prepare_response("not yet implemented")