add comments to vm type and add info/array state enum and field

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-07-01 13:11:35 +09:30
parent 0238a3340a
commit 66fd12cb0e
2 changed files with 11 additions and 0 deletions
@@ -2,7 +2,13 @@ type Info {
array: InfoArray @func(module: "info/get-array", result:"json")
}
enum InfoArrayState {
started
stopped
}
type InfoArray {
state: InfoArrayState
capacity: InfoArrayCapacity
}
+5
View File
@@ -1,11 +1,16 @@
"""A virtual machine"""
type Vm {
uuid: ID!
"""Operating system type"""
osType: String
"""If the vm should auto-start when the server boots"""
autostart: Boolean
"""Max memory in bytes"""
maxMemory: Int
schedulerType: String
schedulerParameters: SchedulerParameters
securityLabel: SecurityLabel
"""A friendly name for the vm"""
name: String
state: String
memory: Int