github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/resources/service_instance_usage_summary_resource.go (about) 1 package resources 2 3 import ( 4 "code.cloudfoundry.org/jsonry" 5 ) 6 7 type ServiceInstanceUsageSummaryList struct { 8 UsageSummary []ServiceInstanceUsageSummary `jsonry:"usage_summary"` 9 } 10 11 func (s *ServiceInstanceUsageSummaryList) UnmarshalJSON(data []byte) error { 12 return jsonry.Unmarshal(data, s) 13 } 14 15 type ServiceInstanceUsageSummary struct { 16 SpaceGUID string `jsonry:"space.guid""` 17 BoundAppCount int `jsonry:"bound_app_count"` 18 } 19 20 func (s *ServiceInstanceUsageSummary) UnmarshalJSON(data []byte) error { 21 return jsonry.Unmarshal(data, s) 22 }