func (o *OrderVMByFilterParams) 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 {
		o.Body = new(models.VMFilter)
	}

	if err := r.SetBodyParam(o.Body); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *OrderVMByFilterParams) 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 {
		o.Body = new(models.VMFilter)
	}

	if err := r.SetBodyParam(o.Body); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func ( o * OrderVMByFilterParams ) 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 { o . Body = new ( models . VMFilter ) } 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
WriteToRequest writes these params to a swagger request