// Code generated by go-swagger; DO NOT EDIT. package admin // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command 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" ) // NewDeleteAdminRunnerParams creates a new DeleteAdminRunnerParams object, // with the default timeout for this client. // // Default values are not hydrated, since defaults are normally applied by the API server side. // // To enforce default values in parameter, use SetDefaults or WithDefaults. func NewDeleteAdminRunnerParams() *DeleteAdminRunnerParams { return &DeleteAdminRunnerParams{ timeout: cr.DefaultTimeout, } } // NewDeleteAdminRunnerParamsWithTimeout creates a new DeleteAdminRunnerParams object // with the ability to set a timeout on a request. func NewDeleteAdminRunnerParamsWithTimeout(timeout time.Duration) *DeleteAdminRunnerParams { return &DeleteAdminRunnerParams{ timeout: timeout, } } // NewDeleteAdminRunnerParamsWithContext creates a new DeleteAdminRunnerParams object // with the ability to set a context for a request. func NewDeleteAdminRunnerParamsWithContext(ctx context.Context) *DeleteAdminRunnerParams { return &DeleteAdminRunnerParams{ Context: ctx, } } // NewDeleteAdminRunnerParamsWithHTTPClient creates a new DeleteAdminRunnerParams object // with the ability to set a custom HTTPClient for a request. func NewDeleteAdminRunnerParamsWithHTTPClient(client *http.Client) *DeleteAdminRunnerParams { return &DeleteAdminRunnerParams{ HTTPClient: client, } } /* DeleteAdminRunnerParams contains all the parameters to send to the API endpoint for the delete admin runner operation. Typically these are written to a http.Request. */ type DeleteAdminRunnerParams struct { /* RunnerID. id of the runner */ RunnerID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the delete admin runner params (not the query body). // // All values with no default are reset to their zero value. func (o *DeleteAdminRunnerParams) WithDefaults() *DeleteAdminRunnerParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the delete admin runner params (not the query body). // // All values with no default are reset to their zero value. func (o *DeleteAdminRunnerParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the delete admin runner params func (o *DeleteAdminRunnerParams) WithTimeout(timeout time.Duration) *DeleteAdminRunnerParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the delete admin runner params func (o *DeleteAdminRunnerParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the delete admin runner params func (o *DeleteAdminRunnerParams) WithContext(ctx context.Context) *DeleteAdminRunnerParams { o.SetContext(ctx) return o } // SetContext adds the context to the delete admin runner params func (o *DeleteAdminRunnerParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the delete admin runner params func (o *DeleteAdminRunnerParams) WithHTTPClient(client *http.Client) *DeleteAdminRunnerParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the delete admin runner params func (o *DeleteAdminRunnerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithRunnerID adds the runnerID to the delete admin runner params func (o *DeleteAdminRunnerParams) WithRunnerID(runnerID string) *DeleteAdminRunnerParams { o.SetRunnerID(runnerID) return o } // SetRunnerID adds the runnerId to the delete admin runner params func (o *DeleteAdminRunnerParams) SetRunnerID(runnerID string) { o.RunnerID = runnerID } // WriteToRequest writes these params to a swagger request func (o *DeleteAdminRunnerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param runner_id if err := r.SetPathParam("runner_id", o.RunnerID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }