func (si *ServiceInstance) Update(service Service, updateData ServiceInstance, evt *event.Event, requestID string) error {
	err := validateServiceInstanceTeamOwner(updateData)
	if err != nil {
		return err
	}
	conn, err := db.Conn()
	if err != nil {
		return err
	}
	defer conn.Close()
	tags := processTags(updateData.Tags)
	if tags == nil {
		updateData.Tags = si.Tags
	} else {
		updateData.Tags = tags
	}
	actions := []*action.Action{&updateServiceInstance, &notifyUpdateServiceInstance}
	pipeline := action.NewPipeline(actions...)
	return pipeline.Execute(service, *si, updateData, evt, requestID)
}
func (si *ServiceInstance) Update(service Service, updateData ServiceInstance, evt *event.Event, requestID string) error {
	err := validateServiceInstanceTeamOwner(updateData)
	if err != nil {
		return err
	}
	conn, err := db.Conn()
	if err != nil {
		return err
	}
	defer conn.Close()
	tags := processTags(updateData.Tags)
	if tags == nil {
		updateData.Tags = si.Tags
	} else {
		updateData.Tags = tags
	}
	actions := []*action.Action{&updateServiceInstance, &notifyUpdateServiceInstance}
	pipeline := action.NewPipeline(actions...)
	return pipeline.Execute(service, *si, updateData, evt, requestID)
}
func ( si * ServiceInstance ) Update ( service Service , updateData ServiceInstance , evt * event . Event , requestID string ) error { err := validateServiceInstanceTeamOwner ( updateData ) if err != nil { return err } conn , err := db . Conn ( ) if err != nil { return err } defer conn . Close ( ) tags := processTags ( updateData . Tags ) if tags == nil { updateData . Tags = si . Tags } else { updateData . Tags = tags } actions := [ ] * action . Action { & updateServiceInstance , & notifyUpdateServiceInstance } pipeline := action . NewPipeline ( actions ... ) return pipeline . Execute ( service , * si , updateData , evt , requestID ) }
// Update changes informations of the service instance.
Update changes informations of the service instance .