This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-18 17:13:13 +00:00
|
|
|
from typing import Callable, Iterable, Tuple
|
|
|
|
from ereuse_devicehub.resources.action import schemas
|
|
|
|
from teal.resource import Resource
|
|
|
|
from ereuse_devicehub.resources.allocate.views import AllocateView, DeAllocateView
|
|
|
|
|
|
|
|
|
|
|
|
class AssignedDef(Resource):
|
|
|
|
VIEW = AllocateView
|
|
|
|
SCHEMA = schemas.Allocate
|
|
|
|
|
|
|
|
|
2020-11-18 18:00:43 +00:00
|
|
|
class EndAssignedDef(Resource):
|
|
|
|
VIEW = DeAllocateView
|
|
|
|
SCHEMA = schemas.Deallocate
|