switch ArrayDiskFsType to DiskFsType and add DiskParition type

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-09-30 15:52:04 +09:30
parent 39ac22be70
commit feee94fc56
2 changed files with 15 additions and 7 deletions
+1 -7
View File
@@ -101,7 +101,7 @@ type ArrayDisk {
"""Indicates if the disk should be exported as a network share."""
exportable: Boolean!
"""Indicates the file system detected in partition 1 of the device."""
fsType: ArrayDiskFsType
fsType: DiskFsType
fsColor: ArrayDiskFsColor
fsSize: Long
fsFree: Long
@@ -127,12 +127,6 @@ enum ArrayDiskType {
Cache
}
enum ArrayDiskFsType {
xfs
btrfs
vfat
}
enum ArrayDiskFsColor {
"""Disk is OK and running"""
green_on
@@ -35,6 +35,20 @@ type Disk {
serialNum: String!
interfaceType: DiskInterfaceType!
smartStatus: DiskSmartStatus!
temperature: Long!
partitions: [DiskPartition!]
}
type DiskPartition {
name: String!
fsType: DiskFsType!
size: Long!
}
enum DiskFsType {
xfs
btrfs
vfat
}
enum DiskInterfaceType {