app/server/restful_api/data/v1/endpoints/disks.py
from .root__general_child import RootGeneralChildEndpoint
from ....general.endpoint import Endpoint
class DisksEndpoint(RootGeneralChildEndpoint):
@classmethod
def get_paths(cls):
return [
"/disks"
]
@classmethod
def get_name(cls):
return "disk entities"
@classmethod
def _get_component_type(cls) -> str:
return "disk"
@classmethod
def _get_children_endpoint_type(cls) -> Endpoint:
from .disks_disk import DisksDiskEndpoint
return DisksDiskEndpoint