From 23c938801eb782ccd86866cf29b18edf6eb94493 Mon Sep 17 00:00:00 2001 From: Dmitry Plyakin Date: Fri, 10 Sep 2021 19:36:39 +0300 Subject: [PATCH] Add Device resource model --- pyscaleio/__init__.py | 4 ++-- pyscaleio/models.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) 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), + }