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 ereuse_devicehub.resources.action import schemas
|
|
|
|
from teal.resource import Resource
|
2020-11-21 12:17:23 +00:00
|
|
|
from ereuse_devicehub.resources.allocate.views import AllocateView, DeallocateView
|
2020-11-18 17:13:13 +00:00
|
|
|
|
|
|
|
|
2020-11-21 12:17:23 +00:00
|
|
|
class AllocateDef(Resource):
|
2020-11-18 17:13:13 +00:00
|
|
|
VIEW = AllocateView
|
|
|
|
SCHEMA = schemas.Allocate
|
2020-11-21 12:17:23 +00:00
|
|
|
AUTH = True
|
2020-11-18 17:13:13 +00:00
|
|
|
|
2020-11-21 12:17:23 +00:00
|
|
|
class DeallocateDef(Resource):
|
|
|
|
VIEW = DeallocateView
|
|
|
|
SCHEMA = schemas.Deallocate
|
|
|
|
AUTH = True
|