github.com/sleungcy-sap/cli@v7.1.0+incompatible/resources/service_offering_resource.go (about)

     1  package resources
     2  
     3  import (
     4  	"code.cloudfoundry.org/jsonry"
     5  )
     6  
     7  type ServiceOffering struct {
     8  	// GUID is a unique service offering identifier.
     9  	GUID string `json:"guid"`
    10  	// Name is the name of the service offering.
    11  	Name string `json:"name"`
    12  	// Description of the service offering
    13  	Description string `json:"description"`
    14  	// ServiceBrokerGUID is the guid of the service broker
    15  	ServiceBrokerGUID string `jsonry:"relationships.service_broker.data.guid"`
    16  	// ServiceBrokerName is the name of the service broker
    17  	ServiceBrokerName string `json:"-"`
    18  
    19  	Metadata *Metadata `json:"metadata"`
    20  }
    21  
    22  func (s *ServiceOffering) UnmarshalJSON(data []byte) error {
    23  	return jsonry.Unmarshal(data, s)
    24  }