github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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  }