Skip to content

Commit

Permalink
Add SDS resource model
Browse files Browse the repository at this point in the history
  • Loading branch information
dplyakin committed Sep 10, 2021
1 parent e91ab7e commit b70d2f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyscaleio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions pyscaleio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit b70d2f6

Please sign in to comment.