Source code for ska_sdp_config.operations.resource_management

"""
Resource management operations for SDP Configuration Database.
"""

from ..entity import Allocation, Request, Resource
from .entity_operations import CollectiveEntityOperations


[docs] class ResourceOperations(CollectiveEntityOperations[Resource, Resource.Key]): """Database operations related to resource.""" PREFIX = "/resource" MODEL_CLASS = Resource HAS_STATE = True
[docs] class RequestOperations(CollectiveEntityOperations[Request, Request.Key]): """Database operations related to requests.""" PREFIX = "/request" MODEL_CLASS = Request HAS_STATE = True
[docs] class AllocationOperations( CollectiveEntityOperations[Allocation, Allocation.Key] ): """Database operations related to allocation.""" PREFIX = "/allocation" MODEL_CLASS = Allocation HAS_STATE = True