diff --git a/pyscaleio/__init__.py b/pyscaleio/__init__.py index 42f2fff..556c612 100644 --- a/pyscaleio/__init__.py +++ b/pyscaleio/__init__.py @@ -3,14 +3,14 @@ from .manager import ScaleIOClientsManager from .models import ( System, ProtectionDomain, StoragePool, - VTree, Sdc, Volume, Sds + VTree, Sdc, Volume, Sds, Device ) __all__ = ( ScaleIOSession.__name__, ScaleIOClient.__name__, System.__name__, ProtectionDomain.__name__, StoragePool.__name__, VTree.__name__, Sdc.__name__, - Volume.__name__, Sds.__name__ + Volume.__name__, Sds.__name__, Device.__name__ ) __version__ = "0.1.7" diff --git a/pyscaleio/models.py b/pyscaleio/models.py index cb2854c..d8b18ae 100644 --- a/pyscaleio/models.py +++ b/pyscaleio/models.py @@ -622,3 +622,11 @@ def delete(self, mode=constants.VOLUME_REMOVE_ONLY_ME): """ return super(Volume, self).delete({"removeMode": mode}) + + +class Device(MutableResource): + """Device resource model.""" + + __scheme__ = { + "name": String(optional=True), + }