func (o *DeleteProjectURL) Must(u *url.URL, err error) *url.URL {
	if err != nil {
		panic(err)
	}
	if u == nil {
		panic("url can't be nil")
	}
	return u
}
Must is a helper function to panic when the url builder returns an error
package operations
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
)
type DeleteProjectURL struct {
	ProjectID string
	_basePath string
	_ struct{}
}
func (o *DeleteProjectURL) WithBasePath(bp string) *DeleteProjectURL {
	o.SetBasePath(bp)
	return o
}
func (o *DeleteProjectURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *DeleteProjectURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/projects/{projectId}"
	projectID := o.ProjectID
	if projectID != "" {
		_path = strings.Replace(_path, "{projectId}", projectID, -1)
	} else {
		return nil, errors.New("projectId is required on DeleteProjectURL")
	}
	_basePath := o._basePath
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	return &_result, nil
}