This is the documentation for ToiStorageDeviceStorageInfo.
Information about the storage device itself. Use toi.statics.ToiStorageDeviceStorageInfo.create(<id>, <serialNumber>, <isInternal>, <isConnected>, <isSpinning>, <isOverheated>, <partitions>, <capacity>, <freeCapacity>, <temperature>, <isApproved>) to create an instance of ToiStorageDeviceStorageInfo. The following parameters in the create method are optional: <isApproved>. For the optional members that have default values, the values are: ; if they are not set from the portal, they will have the default value.
import "ToiStorageDeviceStorageInfo.idl";
Public Attributes | |
| attribute ToiStorageDevice::TToiStorageDeviceId | id |
| attribute string | serialNumber |
| attribute boolean | isInternal |
| attribute boolean | isConnected |
| attribute boolean | isSpinning |
| attribute boolean | isOverheated |
| attribute ToiStorageDevice::TToiPartitionIdSequence | partitions |
| attribute long long | capacity |
| attribute long long | freeCapacity |
| attribute long | temperature |
| attribute boolean | isApproved |
| attribute long long ToiStorageDeviceStorageInfo::capacity |
Total disk space on storage device.
| attribute long long ToiStorageDeviceStorageInfo::freeCapacity |
Not partitioned disk space on storage device.
Internal identifier of the storage device. Not persistent between reboots.
| attribute boolean ToiStorageDeviceStorageInfo::isApproved |
| attribute boolean ToiStorageDeviceStorageInfo::isConnected |
True if the device is currently connected. A disconnected device will throw an exception when calling any of its methods.
| attribute boolean ToiStorageDeviceStorageInfo::isInternal |
True if the device is an internal storage device.
| attribute boolean ToiStorageDeviceStorageInfo::isOverheated |
True if the storage device is overheated.
| attribute boolean ToiStorageDeviceStorageInfo::isSpinning |
True if the storage device is spinning.
Partitions on this storage device.
| attribute string ToiStorageDeviceStorageInfo::serialNumber |
Persistent storage identification.
| attribute long ToiStorageDeviceStorageInfo::temperature |
Current storage temperature, 0 if SMART support is unavailable