func (o *DeleteConsulURL) String() string {
	return o.Must(o.Build()).String()
}
String returns the string representation of the path with query string
package service_discovery
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
)
type DeleteConsulURL struct {
	ID string
	_basePath string
	_ struct{}
}
func (o *DeleteConsulURL) WithBasePath(bp string) *DeleteConsulURL {
	o.SetBasePath(bp)
	return o
}
func (o *DeleteConsulURL) SetBasePath(bp string) {
	o._basePath = bp
}
func (o *DeleteConsulURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/service_discovery/consul/{id}"
	id := o.ID
	if id != "" {
		_path = strings.Replace(_path, "{id}", id, -1)
	} else {
		return nil, errors.New("id is required on DeleteConsulURL")
	}
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	return &_result, nil
}
func (o *DeleteConsulURL) Must(u *url.URL, err error) *url.URL {
	if err != nil {
		panic(err)
	}
	if u == nil {
		panic("url can't be nil")
	}
	return u
}