mirror of
https://github.com/unraid/api.git
synced 2026-01-14 12:39:53 -06:00
move disks to own graphql dir/file
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -31,54 +31,4 @@ type Capacity {
|
||||
free: Long
|
||||
used: Long
|
||||
total: Long
|
||||
}
|
||||
|
||||
type Disk {
|
||||
idx: String!
|
||||
name: String!
|
||||
device: String!
|
||||
id: String!
|
||||
size: Int!
|
||||
status: DiskStatus!
|
||||
rotational: Boolean!
|
||||
format: String!
|
||||
temp: Int!
|
||||
numReads: Int!
|
||||
numWrites: Int!
|
||||
numErrors: Int!
|
||||
type: DiskType!
|
||||
color: String!
|
||||
fsStatus: DiskFsStatus!
|
||||
luksState: String!
|
||||
comment: String!
|
||||
exportable: Boolean!
|
||||
fsType: DiskFsType!
|
||||
fsColor: DiskFsColor!
|
||||
fsSize: Int!
|
||||
fsFree: Int!
|
||||
spindownDelay: String!
|
||||
spinupGroup: String!
|
||||
deviceSb: String!
|
||||
idSb: String!
|
||||
sizeSb: Int!
|
||||
}
|
||||
|
||||
enum DiskStatus {
|
||||
DISK_OK
|
||||
}
|
||||
|
||||
enum DiskType {
|
||||
Data
|
||||
}
|
||||
|
||||
enum DiskFsStatus {
|
||||
Mounted
|
||||
}
|
||||
|
||||
enum DiskFsType {
|
||||
xfs
|
||||
}
|
||||
|
||||
enum DiskFsColor {
|
||||
green_on
|
||||
}
|
||||
59
app/graphql/schema/types/disks/disk.graphql
Normal file
59
app/graphql/schema/types/disks/disk.graphql
Normal file
@@ -0,0 +1,59 @@
|
||||
type Query {
|
||||
disk(id: String!): Disk @func(module: "disks/disk/get-disk")
|
||||
disks: [Disk]! @func(module: "get-disks")
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
mountDisk: Disk
|
||||
unmountDisk: Disk
|
||||
}
|
||||
|
||||
type Disk {
|
||||
idx: String!
|
||||
name: String!
|
||||
device: String!
|
||||
id: String!
|
||||
size: Int!
|
||||
status: DiskStatus!
|
||||
rotational: Boolean!
|
||||
format: String!
|
||||
temp: Int!
|
||||
numReads: Int!
|
||||
numWrites: Int!
|
||||
numErrors: Int!
|
||||
type: DiskType!
|
||||
color: String!
|
||||
fsStatus: DiskFsStatus!
|
||||
luksState: String!
|
||||
comment: String!
|
||||
exportable: Boolean!
|
||||
fsType: DiskFsType!
|
||||
fsColor: DiskFsColor!
|
||||
fsSize: Int!
|
||||
fsFree: Int!
|
||||
spindownDelay: String!
|
||||
spinupGroup: String!
|
||||
deviceSb: String!
|
||||
idSb: String!
|
||||
sizeSb: Int!
|
||||
}
|
||||
|
||||
enum DiskStatus {
|
||||
DISK_OK
|
||||
}
|
||||
|
||||
enum DiskType {
|
||||
Data
|
||||
}
|
||||
|
||||
enum DiskFsStatus {
|
||||
Mounted
|
||||
}
|
||||
|
||||
enum DiskFsType {
|
||||
xfs
|
||||
}
|
||||
|
||||
enum DiskFsColor {
|
||||
green_on
|
||||
}
|
||||
Reference in New Issue
Block a user