mirror of
https://github.com/unraid/api.git
synced 2026-01-19 23:19:39 -06:00
add enum for VmState and add comments for info array
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -3,7 +3,9 @@ type Info {
|
||||
}
|
||||
|
||||
enum InfoArrayState {
|
||||
"""Array is started"""
|
||||
started
|
||||
"""Array is stopped"""
|
||||
stopped
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,13 @@ type Vms {
|
||||
domains: [Domain] @func(module: "vms/get-domains", result: "json")
|
||||
}
|
||||
|
||||
enum VmState {
|
||||
"""Machine is stopped"""
|
||||
shut_off
|
||||
"""Machine is running"""
|
||||
running
|
||||
}
|
||||
|
||||
"""A virtual machine"""
|
||||
type Domain {
|
||||
uuid: ID!
|
||||
@@ -16,7 +23,7 @@ type Domain {
|
||||
securityLabel: SecurityLabel
|
||||
"""A friendly name for the vm"""
|
||||
name: String
|
||||
state: String
|
||||
state: VmState
|
||||
memory: Int
|
||||
vcpus: Int
|
||||
cpuTime: Int
|
||||
|
||||
Reference in New Issue
Block a user