forked from OctopusDeploy/go-octopusdeploy
/
common_models.go
37 lines (34 loc) · 1.18 KB
/
common_models.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
25
26
27
28
29
30
31
32
33
34
35
36
37
package octopusdeploy
type PagedResults struct {
ItemType string `json:"ItemType"`
TotalResults int `json:"TotalResults"`
NumberOfPages int `json:"NumberOfPages"`
LastPageNumber int `json:"LastPageNumber"`
ItemsPerPage int `json:"ItemsPerPage"`
IsStale bool `json:"IsStale"`
Links Links `json:"Links"`
}
type Links struct {
Self string `json:"Self"`
Template string `json:"Template"`
PageAll string `json:"Page.All"`
PageCurrent string `json:"Page.Current"`
PageLast string `json:"Page.Last"`
PageNext string `json:"Page.Next"`
}
type User struct {
ID string `json:"Id"`
Username string `json:"Username"`
DisplayName string `json:"DisplayName"`
IsActive bool `json:"IsActive"`
IsService bool `json:"IsService"`
EmailAddress string `json:"EmailAddress"`
CanPasswordBeEdited bool `json:"CanPasswordBeEdited"`
IsRequestor bool `json:"IsRequestor"`
Links struct {
Self string `json:"Self"`
Permissions string `json:"Permissions"`
APIKeys string `json:"ApiKeys"`
Avatar string `json:"Avatar"`
} `json:"Links"`
}