func (o *PerformActionV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrActionName := o.ActionName
	qActionName := qrActionName
	if qActionName != "" {
		if err := r.SetQueryParam("action_name", qActionName); err != nil {
			return err
		}
	}
	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 hosts
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
	"github.com/crowdstrike/gofalcon/falcon/models"
)
func NewPerformActionV2Params() *PerformActionV2Params {
	return &PerformActionV2Params{
		timeout: cr.DefaultTimeout,
	}
}
func NewPerformActionV2ParamsWithTimeout(timeout time.Duration) *PerformActionV2Params {
	return &PerformActionV2Params{
		timeout: timeout,
	}
}
func NewPerformActionV2ParamsWithContext(ctx context.Context) *PerformActionV2Params {
	return &PerformActionV2Params{
		Context: ctx,
	}
}
func NewPerformActionV2ParamsWithHTTPClient(client *http.Client) *PerformActionV2Params {
	return &PerformActionV2Params{
		HTTPClient: client,
	}
}
type PerformActionV2Params struct {
	ActionName string
	Body *models.MsaEntityActionRequestV2
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *PerformActionV2Params) WithDefaults() *PerformActionV2Params {
	o.SetDefaults()
	return o
}
func (o *PerformActionV2Params) SetDefaults() {
}
func (o *PerformActionV2Params) WithTimeout(timeout time.Duration) *PerformActionV2Params {
	o.SetTimeout(timeout)
	return o
}
func (o *PerformActionV2Params) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *PerformActionV2Params) WithContext(ctx context.Context) *PerformActionV2Params {
	o.SetContext(ctx)
	return o
}
func (o *PerformActionV2Params) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *PerformActionV2Params) WithHTTPClient(client *http.Client) *PerformActionV2Params {
	o.SetHTTPClient(client)
	return o
}
func (o *PerformActionV2Params) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *PerformActionV2Params) WithActionName(actionName string) *PerformActionV2Params {
	o.SetActionName(actionName)
	return o
}
func (o *PerformActionV2Params) SetActionName(actionName string) {
	o.ActionName = actionName
}
func (o *PerformActionV2Params) WithBody(body *models.MsaEntityActionRequestV2) *PerformActionV2Params {
	o.SetBody(body)
	return o
}
func (o *PerformActionV2Params) SetBody(body *models.MsaEntityActionRequestV2) {
	o.Body = body
}