add enum for VmState and add comments for info array

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-07-04 16:26:12 +09:30
parent 24425810ba
commit 79ab6f5439
2 changed files with 10 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ type Info {
}
enum InfoArrayState {
"""Array is started"""
started
"""Array is stopped"""
stopped
}

View File

@@ -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