// WithBasePath sets the base path for this url builder, only required when it's different from the
// base path specified in the swagger spec.
// When the value of the base path is an empty string
966737
func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL {
	o.SetBasePath(bp)
	return o
}
912083
func (o *GetHelloURL) WithBasePath(bp string) *GetHelloURL {
	o.SetBasePath(bp)
	return o
}
190309
func (o *DeleteOrderURL) WithBasePath(bp string) *DeleteOrderURL {
	o.SetBasePath(bp)
	return o
}
419454
func (c *Config) WithBaseURL(rawurl string) *Config {
	baseURL, _ := url.Parse(rawurl)
	c.BaseURL = baseURL
	return c
}
1370353
func (o *GetPrefilterURL) WithBasePath(bp string) *GetPrefilterURL {
	o.SetBasePath(bp)
	return o
}
1274623
func (o *GetDebuginfoURL) WithBasePath(bp string) *GetDebuginfoURL {
	o.SetBasePath(bp)
	return o
}
703930
func (o *PetListURL) WithBasePath(bp string) *PetListURL {
	o.SetBasePath(bp)
	return o
}
1364192
func (o *GetMetricsURL) WithBasePath(bp string) *GetMetricsURL {
	o.SetBasePath(bp)
	return o
}
1127703
func (o *DeleteTaskURL) WithBasePath(bp string) *DeleteTaskURL {
	o.SetBasePath(bp)
	return o
}
697466
func WithBaseDir(path string) Option {
	return Option{func(e *embedder) { e.baseDir = path }}
}
414059
func (o *GetIdentityIDURL) WithBasePath(bp string) *GetIdentityIDURL {
	o.SetBasePath(bp)
	return o
}
591541
func PathWithinBase(fullPath, basePath string) bool {
	rel, err := filepath.Rel(basePath, fullPath)
	if err != nil {
		return false
	}
	if StartsWithBackstep(rel) {
		// Needed to escape the base path
		return false
	}
	return true
}
366149
func (o *AddPetURL) WithBasePath(bp string) *AddPetURL {
	o.SetBasePath(bp)
	return o
}
536847
func (o *OrderCreateURL) WithBasePath(bp string) *OrderCreateURL {
	o.SetBasePath(bp)
	return o
}
315317
func (o *GetIDURL) WithBasePath(bp string) *GetIDURL {
	o.SetBasePath(bp)
	return o
}
404378
func (o *UploadTaskFileURL) WithBasePath(bp string) *UploadTaskFileURL {
	o.SetBasePath(bp)
	return o
}
315038
func (o *DeleteServiceIDURL) WithBasePath(bp string) *DeleteServiceIDURL {
	o.SetBasePath(bp)
	return o
}