github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/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  }