You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1015 B
33 lines
1015 B
package models
|
|
|
|
import "time"
|
|
|
|
type CreateVMResponse struct {
|
|
Task CreateTask `json:"task"`
|
|
VMIds []int `json:"vm_ids"`
|
|
RequestID string `json:"request_id"`
|
|
}
|
|
|
|
type CreateTask struct {
|
|
Error string `json:"error"`
|
|
Snapshot string `json:"snapshot"`
|
|
ParentID int `json:"parent_id"`
|
|
Status string `json:"status"`
|
|
Created time.Time `json:"created"`
|
|
Progress string `json:"progress"`
|
|
Command string `json:"command"`
|
|
Finished time.Time `json:"finished"`
|
|
Type string `json:"type"`
|
|
TimeoutAt time.Time `json:"timeout_at"`
|
|
InitiatorID int `json:"initiator_id"`
|
|
RequestID string `json:"request_id"`
|
|
Started time.Time `json:"started"`
|
|
VMID int `json:"vm_id"`
|
|
NodeID int `json:"node_id"`
|
|
HasChildren bool `json:"has_children"`
|
|
Initiator Initiator `json:"initiator"`
|
|
Node TaskNode `json:"node"`
|
|
Cluster Cluster `json:"cluster"`
|
|
VM VM `json:"vm"`
|
|
}
|