From b70d2f6de489f48ad246db24d6035ba103b39c97 Mon Sep 17 00:00:00 2001 From: Dmitry Plyakin Date: Fri, 10 Sep 2021 19:36:06 +0300 Subject: [PATCH] Add SDS 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 94ff4c9..42f2fff 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 + VTree, Sdc, Volume, Sds ) __all__ = ( ScaleIOSession.__name__, ScaleIOClient.__name__, System.__name__, ProtectionDomain.__name__, StoragePool.__name__, VTree.__name__, Sdc.__name__, - Volume.__name__ + Volume.__name__, Sds.__name__ ) __version__ = "0.1.7" diff --git a/pyscaleio/models.py b/pyscaleio/models.py index bfec90a..cb2854c 100644 --- a/pyscaleio/models.py +++ b/pyscaleio/models.py @@ -388,6 +388,14 @@ def is_connected(self): return self["mdmConnectionState"] == constants.SDC_MDM_STATE_CONNECTED +class Sds(MutableResource): + """SDS resource model.""" + + __scheme__ = { + "name": String(optional=True), + } + + class ExportsInfo(Sequence): """Information about volume exports."""