FileRole
What it is
- A thin wrapper class around
naas_abi.ontologies.modules.NexusPlatformOntology.FileRole. - Intended as an extension point to implement custom action logic via the
actions()method.
Public API
class FileRole(_FileRole)- Subclasses the ontology-provided
FileRole. actions(self)- Placeholder method for action logic.
- Currently does nothing (
pass).
- Subclasses the ontology-provided
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.FileRole(imported as_FileRole)
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.FileRole import FileRole
class MyFileRole(FileRole):
def actions(self):
# implement your logic here
return "ok"
role = MyFileRole()
print(role.actions())
Caveats
actions()is not implemented in this class; calling it will returnNoneunless overridden.