func (o *DeleteStorageMapURL) Build() (*url.URL, error) {
	var _result url.URL
	var _path = "/services/haproxy/storage/maps/{name}"
	name := o.Name
	if name != "" {
		_path = strings.Replace(_path, "{name}", name, -1)
	} else {
		return nil, errors.New("name is required on DeleteStorageMapURL")
	}
	_basePath := o._basePath
	if _basePath == "" {
		_basePath = "/v2"
	}
	_result.Path = golangswaggerpaths.Join(_basePath, _path)
	return &_result, nil
}
Build a url path and query string
package storage
import (
	"errors"
	"net/url"
	golangswaggerpaths "path"
	"strings"
)
type DeleteStorageMapURL struct {
	Name string
	_basePath string
	_ struct{}
}
func (o *DeleteStorageMapURL) WithBasePath(bp string) *DeleteStorageMapURL {
	o.SetBasePath(bp)
	return o
}
func (o *DeleteStorageMapURL) SetBasePath(bp string) {
	o._basePath = bp
}