-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.go
24 lines (23 loc) · 902 Bytes
/
task.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package abiquo_api
type Task struct {
DTO
JobsExtended struct {
DTO
Collection []struct {
Links []interface{} `json:"links,omitempty"`
ID string `json:"id,omitempty"`
ParentTaskID string `json:"parentTaskId,omitempty"`
Type string `json:"type,omitempty"`
Description string `json:"description,omitempty"`
State string `json:"state,omitempty"`
RollbackState string `json:"rollbackState,omitempty"`
Timestamp int `json:"timestamp,omitempty"`
} `json:"collection,omitempty"`
} `json:"jobsExtended,omitempty"`
TaskID string `json:"taskId,omitempty"`
UserID string `json:"userId,omitempty"`
Type string `json:"type,omitempty"`
OwnerID string `json:"ownerId,omitempty"`
State string `json:"state,omitempty"`
Timestamp int `json:"timestamp,omitempty"`
}