func (o *PostHAProxyConfigurationParams) bindSkipVersion(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	value, err := swag.ConvertBool(raw)
	if err != nil {
		return errors.InvalidType("skip_version", "query", "bool", raw)
	}
	o.SkipVersion = &value
	return nil
}
bindSkipVersion binds and validates parameter SkipVersion from query.
package configuration
import (
	"io"
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
func NewPostHAProxyConfigurationParams() PostHAProxyConfigurationParams {
	var (
		forceReloadDefault  = bool(false)
		onlyValidateDefault = bool(false)
		skipReloadDefault   = bool(false)
		skipVersionDefault  = bool(false)
	)
	return PostHAProxyConfigurationParams{
		ForceReload: &forceReloadDefault,
		OnlyValidate: &onlyValidateDefault,
		SkipReload: &skipReloadDefault,
		SkipVersion: &skipVersionDefault,
	}
}
type PostHAProxyConfigurationParams struct {
	HTTPRequest *http.Request `json:"-"`
	XRuntimeActions *string
	Data string
	ForceReload *bool
	OnlyValidate *bool
	SkipReload *bool
	SkipVersion *bool
	Version *int64
}
func (o *PostHAProxyConfigurationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
	var res []error
	o.HTTPRequest = r
	qs := runtime.Values(r.URL.Query())
	if err := o.bindXRuntimeActions(r.Header[http.CanonicalHeaderKey("X-Runtime-Actions")], true, route.Formats); err != nil {
		res = append(res, err)
	}
	if runtime.HasBody(r) {
		defer r.Body.Close()
		var body string
		if err := route.Consumer.Consume(r.Body, &body); err != nil {
			if err == io.EOF {
				res = append(res, errors.Required("data", "body"))
			} else {
				res = append(res, errors.NewParseError("data", "body", "", err))
			}
		} else {
			o.Data = body
		}
	} else {
		res = append(res, errors.Required("data", "body"))
	}
	qForceReload, qhkForceReload, _ := qs.GetOK("force_reload")
	if err := o.bindForceReload(qForceReload, qhkForceReload, route.Formats); err != nil {
		res = append(res, err)
	}
	qOnlyValidate, qhkOnlyValidate, _ := qs.GetOK("only_validate")
	if err := o.bindOnlyValidate(qOnlyValidate, qhkOnlyValidate, route.Formats); err != nil {
		res = append(res, err)
	}
	qSkipReload, qhkSkipReload, _ := qs.GetOK("skip_reload")
	if err := o.bindSkipReload(qSkipReload, qhkSkipReload, route.Formats); err != nil {
		res = append(res, err)
	}
	qSkipVersion, qhkSkipVersion, _ := qs.GetOK("skip_version")
	if err := o.bindSkipVersion(qSkipVersion, qhkSkipVersion, route.Formats); err != nil {
		res = append(res, err)
	}
	qVersion, qhkVersion, _ := qs.GetOK("version")
	if err := o.bindVersion(qVersion, qhkVersion, route.Formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PostHAProxyConfigurationParams) bindXRuntimeActions(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	o.XRuntimeActions = &raw
	return nil
}
func (o *PostHAProxyConfigurationParams) bindForceReload(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	value, err := swag.ConvertBool(raw)
	if err != nil {
		return errors.InvalidType("force_reload", "query", "bool", raw)
	}
	o.ForceReload = &value
	return nil
}
func (o *PostHAProxyConfigurationParams) bindOnlyValidate(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	value, err := swag.ConvertBool(raw)
	if err != nil {
		return errors.InvalidType("only_validate", "query", "bool", raw)
	}
	o.OnlyValidate = &value
	return nil
}
func (o *PostHAProxyConfigurationParams) bindSkipReload(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	value, err := swag.ConvertBool(raw)
	if err != nil {
		return errors.InvalidType("skip_reload", "query", "bool", raw)
	}
	o.SkipReload = &value
	return nil
}