app/server/restful_api/data/v1/endpoints/memory.py
from .__general_data_v1 import GeneralEndpointDataV1
class MemoryEndpoint(GeneralEndpointDataV1):
def _get(self) -> bool:
return True
@classmethod
def get_paths(cls):
return [
"/memory"
]
@classmethod
def get_name(cls):
return "memory entity"
@classmethod
def _get_parent(cls):
from ...data_api_versions_endpoint import DataApiVersionsEndpoint
return DataApiVersionsEndpoint
@classmethod
def _get_children(cls):
from .memory_free import MemoryFreeEndpoint
from .memory_total import MemoryTotalEndpoint
from .memory_used import MemoryUsedEndpoint
return [
("/free", MemoryFreeEndpoint),
("/total", MemoryTotalEndpoint),
("/used", MemoryUsedEndpoint)
]
@classmethod
def _get_mandatory_parameters(cls):
return []