mirror of
https://github.com/unraid/api.git
synced 2026-05-18 06:29:40 -05:00
add network share descriptions and removed old array
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -34,6 +34,7 @@ type Disk {
|
||||
fsStatus: String
|
||||
luksState: String
|
||||
comment: String
|
||||
"""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: DiskFsType!
|
||||
@@ -52,8 +53,11 @@ enum DiskStatus {
|
||||
}
|
||||
|
||||
enum DiskType {
|
||||
"""Data disk"""
|
||||
Data
|
||||
"""Parity disk"""
|
||||
Parity
|
||||
"""Flash disk"""
|
||||
Flash
|
||||
}
|
||||
|
||||
@@ -62,7 +66,9 @@ enum DiskFsType {
|
||||
}
|
||||
|
||||
enum DiskFsColor {
|
||||
"""Disk is OK and running"""
|
||||
green_on
|
||||
"""Disk is OK and not running"""
|
||||
green_off
|
||||
yellow_on
|
||||
yellow_off
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
type Info {
|
||||
array: InfoArray @func(module: "info/get-array")
|
||||
}
|
||||
|
||||
enum InfoArrayState {
|
||||
"""Array is started"""
|
||||
started
|
||||
"""Array is stopped"""
|
||||
stopped
|
||||
}
|
||||
|
||||
type InfoArray {
|
||||
state: InfoArrayState
|
||||
capacity: InfoArrayCapacity
|
||||
}
|
||||
|
||||
type InfoArrayCapacity {
|
||||
bytes: Capacity
|
||||
disks: Capacity
|
||||
}
|
||||
|
||||
type Capacity {
|
||||
free: Long
|
||||
used: Long
|
||||
total: Long
|
||||
}
|
||||
@@ -1,16 +1,23 @@
|
||||
type Query {
|
||||
"""Network Share"""
|
||||
"""Network Shares"""
|
||||
shares: [Share] @func(module: "get-shares")
|
||||
}
|
||||
|
||||
"""Network Share"""
|
||||
type Share {
|
||||
"""Display name"""
|
||||
name: String
|
||||
"""Free space in bytes"""
|
||||
free: Int
|
||||
"""Total size in bytes"""
|
||||
size: Int
|
||||
"""Disks that're included in this share"""
|
||||
include: [String]
|
||||
"""Disks that're excluded from this share"""
|
||||
exclude: [String]
|
||||
cache: Boolean
|
||||
nameOrig: String
|
||||
"""User comment"""
|
||||
comment: String
|
||||
allocator: String
|
||||
splitLevel: String
|
||||
|
||||
Reference in New Issue
Block a user