Inherits lsm::_data::IData.

Public Member Functions | |
| def | __init__ |
| def | size_bytes |
| def | __str__ |
Static Public Attributes | |
| list | SUPPORTED_SEARCH_KEYS = ['id', 'system_id'] |
| int | BLOCK_COUNT_NOT_FOUND = 1 |
| int | BLOCK_SIZE_NOT_FOUND = 1 |
| int | TYPE_UNKNOWN = 0 |
| int | TYPE_OTHER = 1 |
| int | TYPE_ATA = 3 |
| int | TYPE_SATA = 4 |
| int | TYPE_SAS = 5 |
| int | TYPE_FC = 6 |
| int | TYPE_SOP = 7 |
| int | TYPE_SCSI = 8 |
| int | TYPE_LUN = 9 |
| int | TYPE_NL_SAS = 51 |
| int | TYPE_HDD = 52 |
| int | TYPE_SSD = 53 |
| int | TYPE_HYBRID = 54 |
| int | STATUS_UNKNOWN = 1 |
| int | STATUS_OK = 1 |
| int | STATUS_OTHER = 1 |
| int | STATUS_PREDICTIVE_FAILURE = 1 |
| int | STATUS_ERROR = 1 |
| int | STATUS_REMOVED = 1 |
| int | STATUS_STARTING = 1 |
| int | STATUS_STOPPING = 1 |
| int | STATUS_STOPPED = 1 |
| int | STATUS_INITIALIZING = 1 |
| int | STATUS_MAINTENANCE_MODE = 1 |
| int | STATUS_SPARE_DISK = 1 |
| int | STATUS_RECONSTRUCT = 1 |
| int | STATUS_FREE = 1 |
Represents a disk.
Definition at line 151 of file _data.py.
| def __init__ | ( | self, | ||
| _id, | ||||
| _name, | ||||
| _disk_type, | ||||
| _block_size, | ||||
| _num_of_blocks, | ||||
| _status, | ||||
| _system_id, | ||||
_plugin_data = None | ||||
| ) |
| def __str__ | ( | self | ) |
int BLOCK_COUNT_NOT_FOUND = 1 [static] |
int BLOCK_SIZE_NOT_FOUND = 1 [static] |
int STATUS_ERROR = 1 [static] |
int STATUS_FREE = 1 [static] |
int STATUS_INITIALIZING = 1 [static] |
int STATUS_MAINTENANCE_MODE = 1 [static] |
int STATUS_OTHER = 1 [static] |
int STATUS_PREDICTIVE_FAILURE = 1 [static] |
int STATUS_RECONSTRUCT = 1 [static] |
int STATUS_REMOVED = 1 [static] |
int STATUS_SPARE_DISK = 1 [static] |
int STATUS_STARTING = 1 [static] |
int STATUS_STOPPED = 1 [static] |
int STATUS_STOPPING = 1 [static] |
int STATUS_UNKNOWN = 1 [static] |
list SUPPORTED_SEARCH_KEYS = ['id', 'system_id'] [static] |
int TYPE_HYBRID = 54 [static] |
int TYPE_NL_SAS = 51 [static] |
int TYPE_OTHER = 1 [static] |
int TYPE_UNKNOWN = 0 [static] |
1.6.1