-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
35 lines (30 loc) · 819 Bytes
/
model.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
package main
type OrgResponse struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
PrevUrl string `json:"prev_url"`
NextUrl int `json:"next_url"`
Resources []Organization `json:"resources"`
}
type Application struct {
ID string `json:"id"`
Name string `json:"name"`
BackupIconUrl string `json:"buildpack_icon_url"`
}
type ServiceInstance struct {
ID string `json:"id"`
Name string `json:"name"`
ServiceIconUrl string `json:"service_icon_url"`
}
type Space struct {
ID string `json:"id"`
Name string `json:"name"`
Applications []Application `json:"applications"`
ServiceInstances []ServiceInstance `json:"service_instances"`
}
type Organization struct {
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Spaces []Space `json:"spaces"`
}