mirror of
https://github.com/unraid/api.git
synced 2026-05-11 18:24:06 -05:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user