deevirt_schema/libvirt/enum.py

15 lines
231 B
Python

from enum import Enum
class YesNoEnum(str, Enum):
YES = "yes"
NO = "no"
class OnOffEnum(str, Enum):
ON = "on"
OFF = "off"
class UnitEnum(str, Enum):
KiB = "KiB"
MiB = "MiB"
GiB = "GiB"
TiB = "TiB"