code.cloudfoundry.org/cli@v7.1.0+incompatible/cf/models/quota.go (about)

     1  package models
     2  
     3  import "encoding/json"
     4  
     5  type QuotaFields struct {
     6  	GUID                    string      `json:"guid,omitempty"`
     7  	Name                    string      `json:"name"`
     8  	MemoryLimit             int64       `json:"memory_limit"`          // in Megabytes
     9  	InstanceMemoryLimit     int64       `json:"instance_memory_limit"` // in Megabytes
    10  	RoutesLimit             int         `json:"total_routes"`
    11  	ServicesLimit           int         `json:"total_services"`
    12  	NonBasicServicesAllowed bool        `json:"non_basic_services_allowed"`
    13  	AppInstanceLimit        int         `json:"app_instance_limit"`
    14  	ReservedRoutePorts      json.Number `json:"total_reserved_route_ports,omitempty"`
    15  }
    16  
    17  type QuotaResponse struct {
    18  	GUID                    string      `json:"guid,omitempty"`
    19  	Name                    string      `json:"name"`
    20  	MemoryLimit             int64       `json:"memory_limit"`          // in Megabytes
    21  	InstanceMemoryLimit     int64       `json:"instance_memory_limit"` // in Megabytes
    22  	RoutesLimit             int         `json:"total_routes"`
    23  	ServicesLimit           int         `json:"total_services"`
    24  	NonBasicServicesAllowed bool        `json:"non_basic_services_allowed"`
    25  	AppInstanceLimit        json.Number `json:"app_instance_limit"`
    26  	ReservedRoutePorts      json.Number `json:"total_reserved_route_ports"`
    27  }