mirror of
https://github.com/unraid/api.git
synced 2026-05-07 23:51:40 -05:00
switch ArrayDiskFsType to DiskFsType and add DiskParition type
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -101,7 +101,7 @@ type ArrayDisk {
|
|||||||
"""Indicates if the disk should be exported as a network share."""
|
"""Indicates if the disk should be exported as a network share."""
|
||||||
exportable: Boolean!
|
exportable: Boolean!
|
||||||
"""Indicates the file system detected in partition 1 of the device."""
|
"""Indicates the file system detected in partition 1 of the device."""
|
||||||
fsType: ArrayDiskFsType
|
fsType: DiskFsType
|
||||||
fsColor: ArrayDiskFsColor
|
fsColor: ArrayDiskFsColor
|
||||||
fsSize: Long
|
fsSize: Long
|
||||||
fsFree: Long
|
fsFree: Long
|
||||||
@@ -127,12 +127,6 @@ enum ArrayDiskType {
|
|||||||
Cache
|
Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ArrayDiskFsType {
|
|
||||||
xfs
|
|
||||||
btrfs
|
|
||||||
vfat
|
|
||||||
}
|
|
||||||
|
|
||||||
enum ArrayDiskFsColor {
|
enum ArrayDiskFsColor {
|
||||||
"""Disk is OK and running"""
|
"""Disk is OK and running"""
|
||||||
green_on
|
green_on
|
||||||
|
|||||||
@@ -35,6 +35,20 @@ type Disk {
|
|||||||
serialNum: String!
|
serialNum: String!
|
||||||
interfaceType: DiskInterfaceType!
|
interfaceType: DiskInterfaceType!
|
||||||
smartStatus: DiskSmartStatus!
|
smartStatus: DiskSmartStatus!
|
||||||
|
temperature: Long!
|
||||||
|
partitions: [DiskPartition!]
|
||||||
|
}
|
||||||
|
|
||||||
|
type DiskPartition {
|
||||||
|
name: String!
|
||||||
|
fsType: DiskFsType!
|
||||||
|
size: Long!
|
||||||
|
}
|
||||||
|
|
||||||
|
enum DiskFsType {
|
||||||
|
xfs
|
||||||
|
btrfs
|
||||||
|
vfat
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DiskInterfaceType {
|
enum DiskInterfaceType {
|
||||||
|
|||||||
Reference in New Issue
Block a user