github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/resources/service_offering_resource.go (about)

     1  package resources
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/types"
     5  	"code.cloudfoundry.org/jsonry"
     6  )
     7  
     8  type ServiceOffering struct {
     9  	// GUID is a unique service offering identifier.
    10  	GUID string `json:"guid"`
    11  	// Name is the name of the service offering.
    12  	Name string `json:"name"`
    13  	// Description of the service offering
    14  	Description string `json:"description"`
    15  	// DocumentationURL of the service offering
    16  	DocumentationURL string `json:"documentation_url"`
    17  	// Tags are used by apps to identify service instances.
    18  	Tags types.OptionalStringSlice `jsonry:"tags"`
    19  	// ServiceBrokerGUID is the guid of the service broker
    20  	ServiceBrokerGUID string `jsonry:"relationships.service_broker.data.guid"`
    21  	// ServiceBrokerName is the name of the service broker
    22  	ServiceBrokerName string `json:"-"`
    23  	// Shareable if the offering support service instance sharing
    24  	AllowsInstanceSharing bool `json:"shareable"`
    25  
    26  	Metadata *Metadata `json:"metadata"`
    27  }
    28  
    29  func (s *ServiceOffering) UnmarshalJSON(data []byte) error {
    30  	return jsonry.Unmarshal(data, s)
    31  }