Skip to content

Commit

Permalink
Add Device resource model
Browse files Browse the repository at this point in the history
  • Loading branch information
dplyakin committed Sep 10, 2021
1 parent b70d2f6 commit 23c9388
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, 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"
Expand Down
8 changes: 8 additions & 0 deletions pyscaleio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

0 comments on commit 23c9388

Please sign in to comment.