func (o *FrontEnrollAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Body != nil {
		if err := r.SetBodyParam(o.Body); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package frontend_service
import (
	"net/http"
	"time"
	"golang.org/x/net/context"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/pydio/cells-sdk-go/models"
)
func NewFrontEnrollAuthParams() *FrontEnrollAuthParams {
	var ()
	return &FrontEnrollAuthParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewFrontEnrollAuthParamsWithTimeout(timeout time.Duration) *FrontEnrollAuthParams {
	var ()
	return &FrontEnrollAuthParams{
		timeout: timeout,
	}
}
func NewFrontEnrollAuthParamsWithContext(ctx context.Context) *FrontEnrollAuthParams {
	var ()
	return &FrontEnrollAuthParams{
		Context: ctx,
	}
}
func NewFrontEnrollAuthParamsWithHTTPClient(client *http.Client) *FrontEnrollAuthParams {
	var ()
	return &FrontEnrollAuthParams{
		HTTPClient: client,
	}
}
type FrontEnrollAuthParams struct {
	Body *models.RestFrontEnrollAuthRequest
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *FrontEnrollAuthParams) WithTimeout(timeout time.Duration) *FrontEnrollAuthParams {
	o.SetTimeout(timeout)
	return o
}
func (o *FrontEnrollAuthParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *FrontEnrollAuthParams) WithContext(ctx context.Context) *FrontEnrollAuthParams {
	o.SetContext(ctx)
	return o
}
func (o *FrontEnrollAuthParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *FrontEnrollAuthParams) WithHTTPClient(client *http.Client) *FrontEnrollAuthParams {
	o.SetHTTPClient(client)
	return o
}
func (o *FrontEnrollAuthParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *FrontEnrollAuthParams) WithBody(body *models.RestFrontEnrollAuthRequest) *FrontEnrollAuthParams {
	o.SetBody(body)
	return o
}
func (o *FrontEnrollAuthParams) SetBody(body *models.RestFrontEnrollAuthRequest) {
	o.Body = body
}