// WithFilePath returns a copy of u with the file path p overwriting
// the existing file path (if any).
480026
func (u *URI) WithFilePath(p string) *URI {
	copy := *u
	copy.Fragment = cleanPath(p)
	return &copy
}
336907
func (o *CreateUsersWithArrayInputURL) WithBasePath(bp string) *CreateUsersWithArrayInputURL {
	o.SetBasePath(bp)
	return o
}
315317
func (o *GetIDURL) WithBasePath(bp string) *GetIDURL {
	o.SetBasePath(bp)
	return o
}
1124149
func (o *UpdatePetWithFormURL) WithBasePath(bp string) *UpdatePetWithFormURL {
	o.SetBasePath(bp)
	return o
}
1212497
func WithResourcePath(p string) source.Option {
	return func(o *source.Options) {
		if o.Context == nil {
			o.Context = context.Background()
		}
		o.Context = context.WithValue(o.Context, resourcePath{}, p)
	}
}
703930
func (o *PetListURL) WithBasePath(bp string) *PetListURL {
	o.SetBasePath(bp)
	return o
}
406517
func (u *URI) ResolveFilePath(p string) string {
	return cleanPath(path.Join(u.FilePath(), strings.TrimPrefix(p, "/")))
}
242767
func (ps *ParallelState) WithResultPath(resultPath string) *ParallelState {
	ps.ResultPath = resultPath
	return ps
}
739382
func (o *UploadTaskFileParams) WithFile(file runtime.NamedReadCloser) *UploadTaskFileParams {
	o.SetFile(file)
	return o
}
884398
func (o *PetUpdateURL) WithBasePath(bp string) *PetUpdateURL {
	o.SetBasePath(bp)
	return o
}
35074
func (o *CreateUsersWithListInputURL) WithBasePath(bp string) *CreateUsersWithListInputURL {
	o.SetBasePath(bp)
	return o
}
1287422
func (o *GetOrdersForItemURL) WithBasePath(bp string) *GetOrdersForItemURL {
	o.SetBasePath(bp)
	return o
}
448795
func NewFilePath(packagePath string) *File {
	return &File{
		Group: &Group{
			multi: true,
		},
		name:    guessAlias(packagePath),
		path:    packagePath,
		imports: map[string]importdef{},
		hints:   map[string]importdef{},
	}
}
851353
func (o *CreateURL) WithBasePath(bp string) *CreateURL {
	o.SetBasePath(bp)
	return o
}
1207296
func WithFile(name, content string) func(*fakecontext.Fake) error {
	return fakecontext.WithFile(name, content)
}
136863
func (o *ElapseURL) WithBasePath(bp string) *ElapseURL {
	o.SetBasePath(bp)
	return o
}
907446
func MustLoadWithPath(path string, conf interface{}) {
	d := NewWithPath(path)
	d.MustLoad(conf)
}