func (o *FindVmsByDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	valuesDeployment := o.Deployment

	joinedDeployment := swag.JoinByFormat(valuesDeployment, "multi")
	// query array param deployment
	if err := r.SetQueryParam("deployment", joinedDeployment...); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *FindVmsByDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	valuesDeployment := o.Deployment

	joinedDeployment := swag.JoinByFormat(valuesDeployment, "multi")
	
	if err := r.SetQueryParam("deployment", joinedDeployment...); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func ( o * FindVmsByDeploymentParams ) WriteToRequest ( r runtime . ClientRequest , reg strfmt . Registry ) error { if err := r . SetTimeout ( o . timeout ) ; err != nil { return err } var res [ ] error valuesDeployment := o . Deployment joinedDeployment := swag . JoinByFormat ( valuesDeployment , " " ) // query array param deployment if err := r . SetQueryParam ( " " , joinedDeployment ... ) ; 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