forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quota.go
25 lines (22 loc) · 1.11 KB
/
quota.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
package models
import "encoding/json"
type QuotaFields struct {
GUID string `json:"guid,omitempty"`
Name string `json:"name"`
MemoryLimit int64 `json:"memory_limit"` // in Megabytes
InstanceMemoryLimit int64 `json:"instance_memory_limit"` // in Megabytes
RoutesLimit int `json:"total_routes"`
ServicesLimit int `json:"total_services"`
NonBasicServicesAllowed bool `json:"non_basic_services_allowed"`
AppInstanceLimit int `json:"app_instance_limit"`
}
type QuotaResponse struct {
GUID string `json:"guid,omitempty"`
Name string `json:"name"`
MemoryLimit int64 `json:"memory_limit"` // in Megabytes
InstanceMemoryLimit int64 `json:"instance_memory_limit"` // in Megabytes
RoutesLimit int `json:"total_routes"`
ServicesLimit int `json:"total_services"`
NonBasicServicesAllowed bool `json:"non_basic_services_allowed"`
AppInstanceLimit json.Number `json:"app_instance_limit"`
}