Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateBackend(params *CreateBackendParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateBackendCreated, *CreateBackendAccepted, error)
- func (a *Client) DeleteBackend(params *DeleteBackendParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteBackendAccepted, *DeleteBackendNoContent, error)
- func (a *Client) GetBackend(params *GetBackendParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBackendOK, error)
- func (a *Client) GetBackends(params *GetBackendsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBackendsOK, error)
- func (a *Client) ReplaceBackend(params *ReplaceBackendParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceBackendOK, *ReplaceBackendAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateBackendAccepted
- type CreateBackendBadRequest
- type CreateBackendConflict
- type CreateBackendCreated
- type CreateBackendDefault
- type CreateBackendParams
- func (o *CreateBackendParams) SetContext(ctx context.Context)
- func (o *CreateBackendParams) SetData(data *models.Backend)
- func (o *CreateBackendParams) SetDefaults()
- func (o *CreateBackendParams) SetForceReload(forceReload *bool)
- func (o *CreateBackendParams) SetHTTPClient(client *http.Client)
- func (o *CreateBackendParams) SetTimeout(timeout time.Duration)
- func (o *CreateBackendParams) SetTransactionID(transactionID *string)
- func (o *CreateBackendParams) SetVersion(version *int64)
- func (o *CreateBackendParams) WithContext(ctx context.Context) *CreateBackendParams
- func (o *CreateBackendParams) WithData(data *models.Backend) *CreateBackendParams
- func (o *CreateBackendParams) WithDefaults() *CreateBackendParams
- func (o *CreateBackendParams) WithForceReload(forceReload *bool) *CreateBackendParams
- func (o *CreateBackendParams) WithHTTPClient(client *http.Client) *CreateBackendParams
- func (o *CreateBackendParams) WithTimeout(timeout time.Duration) *CreateBackendParams
- func (o *CreateBackendParams) WithTransactionID(transactionID *string) *CreateBackendParams
- func (o *CreateBackendParams) WithVersion(version *int64) *CreateBackendParams
- func (o *CreateBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateBackendReader
- type DeleteBackendAccepted
- type DeleteBackendDefault
- type DeleteBackendNoContent
- type DeleteBackendNotFound
- type DeleteBackendParams
- func (o *DeleteBackendParams) SetContext(ctx context.Context)
- func (o *DeleteBackendParams) SetDefaults()
- func (o *DeleteBackendParams) SetForceReload(forceReload *bool)
- func (o *DeleteBackendParams) SetHTTPClient(client *http.Client)
- func (o *DeleteBackendParams) SetName(name string)
- func (o *DeleteBackendParams) SetTimeout(timeout time.Duration)
- func (o *DeleteBackendParams) SetTransactionID(transactionID *string)
- func (o *DeleteBackendParams) SetVersion(version *int64)
- func (o *DeleteBackendParams) WithContext(ctx context.Context) *DeleteBackendParams
- func (o *DeleteBackendParams) WithDefaults() *DeleteBackendParams
- func (o *DeleteBackendParams) WithForceReload(forceReload *bool) *DeleteBackendParams
- func (o *DeleteBackendParams) WithHTTPClient(client *http.Client) *DeleteBackendParams
- func (o *DeleteBackendParams) WithName(name string) *DeleteBackendParams
- func (o *DeleteBackendParams) WithTimeout(timeout time.Duration) *DeleteBackendParams
- func (o *DeleteBackendParams) WithTransactionID(transactionID *string) *DeleteBackendParams
- func (o *DeleteBackendParams) WithVersion(version *int64) *DeleteBackendParams
- func (o *DeleteBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteBackendReader
- type GetBackendDefault
- type GetBackendNotFound
- type GetBackendOK
- type GetBackendOKBody
- type GetBackendParams
- func (o *GetBackendParams) SetContext(ctx context.Context)
- func (o *GetBackendParams) SetDefaults()
- func (o *GetBackendParams) SetHTTPClient(client *http.Client)
- func (o *GetBackendParams) SetName(name string)
- func (o *GetBackendParams) SetTimeout(timeout time.Duration)
- func (o *GetBackendParams) SetTransactionID(transactionID *string)
- func (o *GetBackendParams) WithContext(ctx context.Context) *GetBackendParams
- func (o *GetBackendParams) WithDefaults() *GetBackendParams
- func (o *GetBackendParams) WithHTTPClient(client *http.Client) *GetBackendParams
- func (o *GetBackendParams) WithName(name string) *GetBackendParams
- func (o *GetBackendParams) WithTimeout(timeout time.Duration) *GetBackendParams
- func (o *GetBackendParams) WithTransactionID(transactionID *string) *GetBackendParams
- func (o *GetBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBackendReader
- type GetBackendsDefault
- type GetBackendsOK
- type GetBackendsOKBody
- type GetBackendsParams
- func (o *GetBackendsParams) SetContext(ctx context.Context)
- func (o *GetBackendsParams) SetDefaults()
- func (o *GetBackendsParams) SetHTTPClient(client *http.Client)
- func (o *GetBackendsParams) SetTimeout(timeout time.Duration)
- func (o *GetBackendsParams) SetTransactionID(transactionID *string)
- func (o *GetBackendsParams) WithContext(ctx context.Context) *GetBackendsParams
- func (o *GetBackendsParams) WithDefaults() *GetBackendsParams
- func (o *GetBackendsParams) WithHTTPClient(client *http.Client) *GetBackendsParams
- func (o *GetBackendsParams) WithTimeout(timeout time.Duration) *GetBackendsParams
- func (o *GetBackendsParams) WithTransactionID(transactionID *string) *GetBackendsParams
- func (o *GetBackendsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBackendsReader
- type ReplaceBackendAccepted
- type ReplaceBackendBadRequest
- type ReplaceBackendDefault
- type ReplaceBackendNotFound
- type ReplaceBackendOK
- type ReplaceBackendParams
- func NewReplaceBackendParams() *ReplaceBackendParams
- func NewReplaceBackendParamsWithContext(ctx context.Context) *ReplaceBackendParams
- func NewReplaceBackendParamsWithHTTPClient(client *http.Client) *ReplaceBackendParams
- func NewReplaceBackendParamsWithTimeout(timeout time.Duration) *ReplaceBackendParams
- func (o *ReplaceBackendParams) SetContext(ctx context.Context)
- func (o *ReplaceBackendParams) SetData(data *models.Backend)
- func (o *ReplaceBackendParams) SetDefaults()
- func (o *ReplaceBackendParams) SetForceReload(forceReload *bool)
- func (o *ReplaceBackendParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceBackendParams) SetName(name string)
- func (o *ReplaceBackendParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceBackendParams) SetTransactionID(transactionID *string)
- func (o *ReplaceBackendParams) SetVersion(version *int64)
- func (o *ReplaceBackendParams) WithContext(ctx context.Context) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithData(data *models.Backend) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithDefaults() *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithForceReload(forceReload *bool) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithHTTPClient(client *http.Client) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithName(name string) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithTimeout(timeout time.Duration) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithTransactionID(transactionID *string) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WithVersion(version *int64) *ReplaceBackendParams
- func (o *ReplaceBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceBackendReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for backend API
func (*Client) CreateBackend ¶
func (a *Client) CreateBackend(params *CreateBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBackendCreated, *CreateBackendAccepted, error)
CreateBackend adds a backend
Adds a new backend to the configuration file.
func (*Client) DeleteBackend ¶
func (a *Client) DeleteBackend(params *DeleteBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackendAccepted, *DeleteBackendNoContent, error)
DeleteBackend deletes a backend
Deletes a backend from the configuration by it's name.
func (*Client) GetBackend ¶
func (a *Client) GetBackend(params *GetBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendOK, error)
GetBackend returns a backend
Returns one backend configuration by it's name.
func (*Client) GetBackends ¶
func (a *Client) GetBackends(params *GetBackendsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendsOK, error)
GetBackends returns an array of backends
Returns an array of all configured backends.
func (*Client) ReplaceBackend ¶
func (a *Client) ReplaceBackend(params *ReplaceBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceBackendOK, *ReplaceBackendAccepted, error)
ReplaceBackend replaces a backend
Replaces a backend configuration by it's name.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateBackend(params *CreateBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBackendCreated, *CreateBackendAccepted, error) DeleteBackend(params *DeleteBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackendAccepted, *DeleteBackendNoContent, error) GetBackend(params *GetBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendOK, error) GetBackends(params *GetBackendsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendsOK, error) ReplaceBackend(params *ReplaceBackendParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceBackendOK, *ReplaceBackendAccepted, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new backend API client.
type CreateBackendAccepted ¶
type CreateBackendAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Backend }
CreateBackendAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewCreateBackendAccepted ¶
func NewCreateBackendAccepted() *CreateBackendAccepted
NewCreateBackendAccepted creates a CreateBackendAccepted with default headers values
func (*CreateBackendAccepted) Error ¶
func (o *CreateBackendAccepted) Error() string
func (*CreateBackendAccepted) GetPayload ¶
func (o *CreateBackendAccepted) GetPayload() *models.Backend
type CreateBackendBadRequest ¶
type CreateBackendBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateBackendBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateBackendBadRequest ¶
func NewCreateBackendBadRequest() *CreateBackendBadRequest
NewCreateBackendBadRequest creates a CreateBackendBadRequest with default headers values
func (*CreateBackendBadRequest) Error ¶
func (o *CreateBackendBadRequest) Error() string
func (*CreateBackendBadRequest) GetPayload ¶
func (o *CreateBackendBadRequest) GetPayload() *models.Error
type CreateBackendConflict ¶
type CreateBackendConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateBackendConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateBackendConflict ¶
func NewCreateBackendConflict() *CreateBackendConflict
NewCreateBackendConflict creates a CreateBackendConflict with default headers values
func (*CreateBackendConflict) Error ¶
func (o *CreateBackendConflict) Error() string
func (*CreateBackendConflict) GetPayload ¶
func (o *CreateBackendConflict) GetPayload() *models.Error
type CreateBackendCreated ¶
CreateBackendCreated describes a response with status code 201, with default header values.
Backend created
func NewCreateBackendCreated ¶
func NewCreateBackendCreated() *CreateBackendCreated
NewCreateBackendCreated creates a CreateBackendCreated with default headers values
func (*CreateBackendCreated) Error ¶
func (o *CreateBackendCreated) Error() string
func (*CreateBackendCreated) GetPayload ¶
func (o *CreateBackendCreated) GetPayload() *models.Backend
type CreateBackendDefault ¶
type CreateBackendDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateBackendDefault describes a response with status code -1, with default header values.
General Error
func NewCreateBackendDefault ¶
func NewCreateBackendDefault(code int) *CreateBackendDefault
NewCreateBackendDefault creates a CreateBackendDefault with default headers values
func (*CreateBackendDefault) Code ¶
func (o *CreateBackendDefault) Code() int
Code gets the status code for the create backend default response
func (*CreateBackendDefault) Error ¶
func (o *CreateBackendDefault) Error() string
func (*CreateBackendDefault) GetPayload ¶
func (o *CreateBackendDefault) GetPayload() *models.Error
type CreateBackendParams ¶
type CreateBackendParams struct { // Data. Data *models.Backend /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /* Version. Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateBackendParams contains all the parameters to send to the API endpoint
for the create backend operation. Typically these are written to a http.Request.
func NewCreateBackendParams ¶
func NewCreateBackendParams() *CreateBackendParams
NewCreateBackendParams creates a new CreateBackendParams 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 NewCreateBackendParamsWithContext ¶
func NewCreateBackendParamsWithContext(ctx context.Context) *CreateBackendParams
NewCreateBackendParamsWithContext creates a new CreateBackendParams object with the ability to set a context for a request.
func NewCreateBackendParamsWithHTTPClient ¶
func NewCreateBackendParamsWithHTTPClient(client *http.Client) *CreateBackendParams
NewCreateBackendParamsWithHTTPClient creates a new CreateBackendParams object with the ability to set a custom HTTPClient for a request.
func NewCreateBackendParamsWithTimeout ¶
func NewCreateBackendParamsWithTimeout(timeout time.Duration) *CreateBackendParams
NewCreateBackendParamsWithTimeout creates a new CreateBackendParams object with the ability to set a timeout on a request.
func (*CreateBackendParams) SetContext ¶
func (o *CreateBackendParams) SetContext(ctx context.Context)
SetContext adds the context to the create backend params
func (*CreateBackendParams) SetData ¶
func (o *CreateBackendParams) SetData(data *models.Backend)
SetData adds the data to the create backend params
func (*CreateBackendParams) SetDefaults ¶
func (o *CreateBackendParams) SetDefaults()
SetDefaults hydrates default values in the create backend params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackendParams) SetForceReload ¶
func (o *CreateBackendParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create backend params
func (*CreateBackendParams) SetHTTPClient ¶
func (o *CreateBackendParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create backend params
func (*CreateBackendParams) SetTimeout ¶
func (o *CreateBackendParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create backend params
func (*CreateBackendParams) SetTransactionID ¶
func (o *CreateBackendParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create backend params
func (*CreateBackendParams) SetVersion ¶
func (o *CreateBackendParams) SetVersion(version *int64)
SetVersion adds the version to the create backend params
func (*CreateBackendParams) WithContext ¶
func (o *CreateBackendParams) WithContext(ctx context.Context) *CreateBackendParams
WithContext adds the context to the create backend params
func (*CreateBackendParams) WithData ¶
func (o *CreateBackendParams) WithData(data *models.Backend) *CreateBackendParams
WithData adds the data to the create backend params
func (*CreateBackendParams) WithDefaults ¶
func (o *CreateBackendParams) WithDefaults() *CreateBackendParams
WithDefaults hydrates default values in the create backend params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackendParams) WithForceReload ¶
func (o *CreateBackendParams) WithForceReload(forceReload *bool) *CreateBackendParams
WithForceReload adds the forceReload to the create backend params
func (*CreateBackendParams) WithHTTPClient ¶
func (o *CreateBackendParams) WithHTTPClient(client *http.Client) *CreateBackendParams
WithHTTPClient adds the HTTPClient to the create backend params
func (*CreateBackendParams) WithTimeout ¶
func (o *CreateBackendParams) WithTimeout(timeout time.Duration) *CreateBackendParams
WithTimeout adds the timeout to the create backend params
func (*CreateBackendParams) WithTransactionID ¶
func (o *CreateBackendParams) WithTransactionID(transactionID *string) *CreateBackendParams
WithTransactionID adds the transactionID to the create backend params
func (*CreateBackendParams) WithVersion ¶
func (o *CreateBackendParams) WithVersion(version *int64) *CreateBackendParams
WithVersion adds the version to the create backend params
func (*CreateBackendParams) WriteToRequest ¶
func (o *CreateBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateBackendReader ¶
type CreateBackendReader struct {
// contains filtered or unexported fields
}
CreateBackendReader is a Reader for the CreateBackend structure.
func (*CreateBackendReader) ReadResponse ¶
func (o *CreateBackendReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteBackendAccepted ¶
type DeleteBackendAccepted struct { /* ID of the requested reload */ ReloadID string }
DeleteBackendAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewDeleteBackendAccepted ¶
func NewDeleteBackendAccepted() *DeleteBackendAccepted
NewDeleteBackendAccepted creates a DeleteBackendAccepted with default headers values
func (*DeleteBackendAccepted) Error ¶
func (o *DeleteBackendAccepted) Error() string
type DeleteBackendDefault ¶
type DeleteBackendDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteBackendDefault describes a response with status code -1, with default header values.
General Error
func NewDeleteBackendDefault ¶
func NewDeleteBackendDefault(code int) *DeleteBackendDefault
NewDeleteBackendDefault creates a DeleteBackendDefault with default headers values
func (*DeleteBackendDefault) Code ¶
func (o *DeleteBackendDefault) Code() int
Code gets the status code for the delete backend default response
func (*DeleteBackendDefault) Error ¶
func (o *DeleteBackendDefault) Error() string
func (*DeleteBackendDefault) GetPayload ¶
func (o *DeleteBackendDefault) GetPayload() *models.Error
type DeleteBackendNoContent ¶
type DeleteBackendNoContent struct { }
DeleteBackendNoContent describes a response with status code 204, with default header values.
Backend deleted
func NewDeleteBackendNoContent ¶
func NewDeleteBackendNoContent() *DeleteBackendNoContent
NewDeleteBackendNoContent creates a DeleteBackendNoContent with default headers values
func (*DeleteBackendNoContent) Error ¶
func (o *DeleteBackendNoContent) Error() string
type DeleteBackendNotFound ¶
type DeleteBackendNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteBackendNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewDeleteBackendNotFound ¶
func NewDeleteBackendNotFound() *DeleteBackendNotFound
NewDeleteBackendNotFound creates a DeleteBackendNotFound with default headers values
func (*DeleteBackendNotFound) Error ¶
func (o *DeleteBackendNotFound) Error() string
func (*DeleteBackendNotFound) GetPayload ¶
func (o *DeleteBackendNotFound) GetPayload() *models.Error
type DeleteBackendParams ¶
type DeleteBackendParams struct { /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* Name. Backend name */ Name string /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /* Version. Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteBackendParams contains all the parameters to send to the API endpoint
for the delete backend operation. Typically these are written to a http.Request.
func NewDeleteBackendParams ¶
func NewDeleteBackendParams() *DeleteBackendParams
NewDeleteBackendParams creates a new DeleteBackendParams 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 NewDeleteBackendParamsWithContext ¶
func NewDeleteBackendParamsWithContext(ctx context.Context) *DeleteBackendParams
NewDeleteBackendParamsWithContext creates a new DeleteBackendParams object with the ability to set a context for a request.
func NewDeleteBackendParamsWithHTTPClient ¶
func NewDeleteBackendParamsWithHTTPClient(client *http.Client) *DeleteBackendParams
NewDeleteBackendParamsWithHTTPClient creates a new DeleteBackendParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteBackendParamsWithTimeout ¶
func NewDeleteBackendParamsWithTimeout(timeout time.Duration) *DeleteBackendParams
NewDeleteBackendParamsWithTimeout creates a new DeleteBackendParams object with the ability to set a timeout on a request.
func (*DeleteBackendParams) SetContext ¶
func (o *DeleteBackendParams) SetContext(ctx context.Context)
SetContext adds the context to the delete backend params
func (*DeleteBackendParams) SetDefaults ¶
func (o *DeleteBackendParams) SetDefaults()
SetDefaults hydrates default values in the delete backend params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackendParams) SetForceReload ¶
func (o *DeleteBackendParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete backend params
func (*DeleteBackendParams) SetHTTPClient ¶
func (o *DeleteBackendParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete backend params
func (*DeleteBackendParams) SetName ¶
func (o *DeleteBackendParams) SetName(name string)
SetName adds the name to the delete backend params
func (*DeleteBackendParams) SetTimeout ¶
func (o *DeleteBackendParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete backend params
func (*DeleteBackendParams) SetTransactionID ¶
func (o *DeleteBackendParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete backend params
func (*DeleteBackendParams) SetVersion ¶
func (o *DeleteBackendParams) SetVersion(version *int64)
SetVersion adds the version to the delete backend params
func (*DeleteBackendParams) WithContext ¶
func (o *DeleteBackendParams) WithContext(ctx context.Context) *DeleteBackendParams
WithContext adds the context to the delete backend params
func (*DeleteBackendParams) WithDefaults ¶
func (o *DeleteBackendParams) WithDefaults() *DeleteBackendParams
WithDefaults hydrates default values in the delete backend params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackendParams) WithForceReload ¶
func (o *DeleteBackendParams) WithForceReload(forceReload *bool) *DeleteBackendParams
WithForceReload adds the forceReload to the delete backend params
func (*DeleteBackendParams) WithHTTPClient ¶
func (o *DeleteBackendParams) WithHTTPClient(client *http.Client) *DeleteBackendParams
WithHTTPClient adds the HTTPClient to the delete backend params
func (*DeleteBackendParams) WithName ¶
func (o *DeleteBackendParams) WithName(name string) *DeleteBackendParams
WithName adds the name to the delete backend params
func (*DeleteBackendParams) WithTimeout ¶
func (o *DeleteBackendParams) WithTimeout(timeout time.Duration) *DeleteBackendParams
WithTimeout adds the timeout to the delete backend params
func (*DeleteBackendParams) WithTransactionID ¶
func (o *DeleteBackendParams) WithTransactionID(transactionID *string) *DeleteBackendParams
WithTransactionID adds the transactionID to the delete backend params
func (*DeleteBackendParams) WithVersion ¶
func (o *DeleteBackendParams) WithVersion(version *int64) *DeleteBackendParams
WithVersion adds the version to the delete backend params
func (*DeleteBackendParams) WriteToRequest ¶
func (o *DeleteBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteBackendReader ¶
type DeleteBackendReader struct {
// contains filtered or unexported fields
}
DeleteBackendReader is a Reader for the DeleteBackend structure.
func (*DeleteBackendReader) ReadResponse ¶
func (o *DeleteBackendReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBackendDefault ¶
type GetBackendDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetBackendDefault describes a response with status code -1, with default header values.
General Error
func NewGetBackendDefault ¶
func NewGetBackendDefault(code int) *GetBackendDefault
NewGetBackendDefault creates a GetBackendDefault with default headers values
func (*GetBackendDefault) Code ¶
func (o *GetBackendDefault) Code() int
Code gets the status code for the get backend default response
func (*GetBackendDefault) Error ¶
func (o *GetBackendDefault) Error() string
func (*GetBackendDefault) GetPayload ¶
func (o *GetBackendDefault) GetPayload() *models.Error
type GetBackendNotFound ¶
type GetBackendNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetBackendNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewGetBackendNotFound ¶
func NewGetBackendNotFound() *GetBackendNotFound
NewGetBackendNotFound creates a GetBackendNotFound with default headers values
func (*GetBackendNotFound) Error ¶
func (o *GetBackendNotFound) Error() string
func (*GetBackendNotFound) GetPayload ¶
func (o *GetBackendNotFound) GetPayload() *models.Error
type GetBackendOK ¶
type GetBackendOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetBackendOKBody }
GetBackendOK describes a response with status code 200, with default header values.
Successful operation
func NewGetBackendOK ¶
func NewGetBackendOK() *GetBackendOK
NewGetBackendOK creates a GetBackendOK with default headers values
func (*GetBackendOK) Error ¶
func (o *GetBackendOK) Error() string
func (*GetBackendOK) GetPayload ¶
func (o *GetBackendOK) GetPayload() *GetBackendOKBody
type GetBackendOKBody ¶
type GetBackendOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Backend `json:"data,omitempty"` }
GetBackendOKBody get backend o k body swagger:model GetBackendOKBody
func (*GetBackendOKBody) ContextValidate ¶
ContextValidate validate this get backend o k body based on the context it is used
func (*GetBackendOKBody) MarshalBinary ¶
func (o *GetBackendOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendOKBody) UnmarshalBinary ¶
func (o *GetBackendOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendParams ¶
type GetBackendParams struct { /* Name. Backend name */ Name string /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBackendParams contains all the parameters to send to the API endpoint
for the get backend operation. Typically these are written to a http.Request.
func NewGetBackendParams ¶
func NewGetBackendParams() *GetBackendParams
NewGetBackendParams creates a new GetBackendParams 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 NewGetBackendParamsWithContext ¶
func NewGetBackendParamsWithContext(ctx context.Context) *GetBackendParams
NewGetBackendParamsWithContext creates a new GetBackendParams object with the ability to set a context for a request.
func NewGetBackendParamsWithHTTPClient ¶
func NewGetBackendParamsWithHTTPClient(client *http.Client) *GetBackendParams
NewGetBackendParamsWithHTTPClient creates a new GetBackendParams object with the ability to set a custom HTTPClient for a request.
func NewGetBackendParamsWithTimeout ¶
func NewGetBackendParamsWithTimeout(timeout time.Duration) *GetBackendParams
NewGetBackendParamsWithTimeout creates a new GetBackendParams object with the ability to set a timeout on a request.
func (*GetBackendParams) SetContext ¶
func (o *GetBackendParams) SetContext(ctx context.Context)
SetContext adds the context to the get backend params
func (*GetBackendParams) SetDefaults ¶
func (o *GetBackendParams) SetDefaults()
SetDefaults hydrates default values in the get backend params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendParams) SetHTTPClient ¶
func (o *GetBackendParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get backend params
func (*GetBackendParams) SetName ¶
func (o *GetBackendParams) SetName(name string)
SetName adds the name to the get backend params
func (*GetBackendParams) SetTimeout ¶
func (o *GetBackendParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get backend params
func (*GetBackendParams) SetTransactionID ¶
func (o *GetBackendParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get backend params
func (*GetBackendParams) WithContext ¶
func (o *GetBackendParams) WithContext(ctx context.Context) *GetBackendParams
WithContext adds the context to the get backend params
func (*GetBackendParams) WithDefaults ¶
func (o *GetBackendParams) WithDefaults() *GetBackendParams
WithDefaults hydrates default values in the get backend params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendParams) WithHTTPClient ¶
func (o *GetBackendParams) WithHTTPClient(client *http.Client) *GetBackendParams
WithHTTPClient adds the HTTPClient to the get backend params
func (*GetBackendParams) WithName ¶
func (o *GetBackendParams) WithName(name string) *GetBackendParams
WithName adds the name to the get backend params
func (*GetBackendParams) WithTimeout ¶
func (o *GetBackendParams) WithTimeout(timeout time.Duration) *GetBackendParams
WithTimeout adds the timeout to the get backend params
func (*GetBackendParams) WithTransactionID ¶
func (o *GetBackendParams) WithTransactionID(transactionID *string) *GetBackendParams
WithTransactionID adds the transactionID to the get backend params
func (*GetBackendParams) WriteToRequest ¶
func (o *GetBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBackendReader ¶
type GetBackendReader struct {
// contains filtered or unexported fields
}
GetBackendReader is a Reader for the GetBackend structure.
func (*GetBackendReader) ReadResponse ¶
func (o *GetBackendReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBackendsDefault ¶
type GetBackendsDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetBackendsDefault describes a response with status code -1, with default header values.
General Error
func NewGetBackendsDefault ¶
func NewGetBackendsDefault(code int) *GetBackendsDefault
NewGetBackendsDefault creates a GetBackendsDefault with default headers values
func (*GetBackendsDefault) Code ¶
func (o *GetBackendsDefault) Code() int
Code gets the status code for the get backends default response
func (*GetBackendsDefault) Error ¶
func (o *GetBackendsDefault) Error() string
func (*GetBackendsDefault) GetPayload ¶
func (o *GetBackendsDefault) GetPayload() *models.Error
type GetBackendsOK ¶
type GetBackendsOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetBackendsOKBody }
GetBackendsOK describes a response with status code 200, with default header values.
Successful operation
func NewGetBackendsOK ¶
func NewGetBackendsOK() *GetBackendsOK
NewGetBackendsOK creates a GetBackendsOK with default headers values
func (*GetBackendsOK) Error ¶
func (o *GetBackendsOK) Error() string
func (*GetBackendsOK) GetPayload ¶
func (o *GetBackendsOK) GetPayload() *GetBackendsOKBody
type GetBackendsOKBody ¶
type GetBackendsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Backends `json:"data"` }
GetBackendsOKBody get backends o k body swagger:model GetBackendsOKBody
func (*GetBackendsOKBody) ContextValidate ¶
ContextValidate validate this get backends o k body based on the context it is used
func (*GetBackendsOKBody) MarshalBinary ¶
func (o *GetBackendsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendsOKBody) UnmarshalBinary ¶
func (o *GetBackendsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendsParams ¶
type GetBackendsParams struct { /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBackendsParams contains all the parameters to send to the API endpoint
for the get backends operation. Typically these are written to a http.Request.
func NewGetBackendsParams ¶
func NewGetBackendsParams() *GetBackendsParams
NewGetBackendsParams creates a new GetBackendsParams 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 NewGetBackendsParamsWithContext ¶
func NewGetBackendsParamsWithContext(ctx context.Context) *GetBackendsParams
NewGetBackendsParamsWithContext creates a new GetBackendsParams object with the ability to set a context for a request.
func NewGetBackendsParamsWithHTTPClient ¶
func NewGetBackendsParamsWithHTTPClient(client *http.Client) *GetBackendsParams
NewGetBackendsParamsWithHTTPClient creates a new GetBackendsParams object with the ability to set a custom HTTPClient for a request.
func NewGetBackendsParamsWithTimeout ¶
func NewGetBackendsParamsWithTimeout(timeout time.Duration) *GetBackendsParams
NewGetBackendsParamsWithTimeout creates a new GetBackendsParams object with the ability to set a timeout on a request.
func (*GetBackendsParams) SetContext ¶
func (o *GetBackendsParams) SetContext(ctx context.Context)
SetContext adds the context to the get backends params
func (*GetBackendsParams) SetDefaults ¶
func (o *GetBackendsParams) SetDefaults()
SetDefaults hydrates default values in the get backends params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendsParams) SetHTTPClient ¶
func (o *GetBackendsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get backends params
func (*GetBackendsParams) SetTimeout ¶
func (o *GetBackendsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get backends params
func (*GetBackendsParams) SetTransactionID ¶
func (o *GetBackendsParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get backends params
func (*GetBackendsParams) WithContext ¶
func (o *GetBackendsParams) WithContext(ctx context.Context) *GetBackendsParams
WithContext adds the context to the get backends params
func (*GetBackendsParams) WithDefaults ¶
func (o *GetBackendsParams) WithDefaults() *GetBackendsParams
WithDefaults hydrates default values in the get backends params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendsParams) WithHTTPClient ¶
func (o *GetBackendsParams) WithHTTPClient(client *http.Client) *GetBackendsParams
WithHTTPClient adds the HTTPClient to the get backends params
func (*GetBackendsParams) WithTimeout ¶
func (o *GetBackendsParams) WithTimeout(timeout time.Duration) *GetBackendsParams
WithTimeout adds the timeout to the get backends params
func (*GetBackendsParams) WithTransactionID ¶
func (o *GetBackendsParams) WithTransactionID(transactionID *string) *GetBackendsParams
WithTransactionID adds the transactionID to the get backends params
func (*GetBackendsParams) WriteToRequest ¶
func (o *GetBackendsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBackendsReader ¶
type GetBackendsReader struct {
// contains filtered or unexported fields
}
GetBackendsReader is a Reader for the GetBackends structure.
func (*GetBackendsReader) ReadResponse ¶
func (o *GetBackendsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceBackendAccepted ¶
type ReplaceBackendAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Backend }
ReplaceBackendAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewReplaceBackendAccepted ¶
func NewReplaceBackendAccepted() *ReplaceBackendAccepted
NewReplaceBackendAccepted creates a ReplaceBackendAccepted with default headers values
func (*ReplaceBackendAccepted) Error ¶
func (o *ReplaceBackendAccepted) Error() string
func (*ReplaceBackendAccepted) GetPayload ¶
func (o *ReplaceBackendAccepted) GetPayload() *models.Backend
type ReplaceBackendBadRequest ¶
type ReplaceBackendBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceBackendBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceBackendBadRequest ¶
func NewReplaceBackendBadRequest() *ReplaceBackendBadRequest
NewReplaceBackendBadRequest creates a ReplaceBackendBadRequest with default headers values
func (*ReplaceBackendBadRequest) Error ¶
func (o *ReplaceBackendBadRequest) Error() string
func (*ReplaceBackendBadRequest) GetPayload ¶
func (o *ReplaceBackendBadRequest) GetPayload() *models.Error
type ReplaceBackendDefault ¶
type ReplaceBackendDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceBackendDefault describes a response with status code -1, with default header values.
General Error
func NewReplaceBackendDefault ¶
func NewReplaceBackendDefault(code int) *ReplaceBackendDefault
NewReplaceBackendDefault creates a ReplaceBackendDefault with default headers values
func (*ReplaceBackendDefault) Code ¶
func (o *ReplaceBackendDefault) Code() int
Code gets the status code for the replace backend default response
func (*ReplaceBackendDefault) Error ¶
func (o *ReplaceBackendDefault) Error() string
func (*ReplaceBackendDefault) GetPayload ¶
func (o *ReplaceBackendDefault) GetPayload() *models.Error
type ReplaceBackendNotFound ¶
type ReplaceBackendNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceBackendNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewReplaceBackendNotFound ¶
func NewReplaceBackendNotFound() *ReplaceBackendNotFound
NewReplaceBackendNotFound creates a ReplaceBackendNotFound with default headers values
func (*ReplaceBackendNotFound) Error ¶
func (o *ReplaceBackendNotFound) Error() string
func (*ReplaceBackendNotFound) GetPayload ¶
func (o *ReplaceBackendNotFound) GetPayload() *models.Error
type ReplaceBackendOK ¶
ReplaceBackendOK describes a response with status code 200, with default header values.
Backend replaced
func NewReplaceBackendOK ¶
func NewReplaceBackendOK() *ReplaceBackendOK
NewReplaceBackendOK creates a ReplaceBackendOK with default headers values
func (*ReplaceBackendOK) Error ¶
func (o *ReplaceBackendOK) Error() string
func (*ReplaceBackendOK) GetPayload ¶
func (o *ReplaceBackendOK) GetPayload() *models.Backend
type ReplaceBackendParams ¶
type ReplaceBackendParams struct { // Data. Data *models.Backend /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* Name. Backend name */ Name string /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /* Version. Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReplaceBackendParams contains all the parameters to send to the API endpoint
for the replace backend operation. Typically these are written to a http.Request.
func NewReplaceBackendParams ¶
func NewReplaceBackendParams() *ReplaceBackendParams
NewReplaceBackendParams creates a new ReplaceBackendParams 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 NewReplaceBackendParamsWithContext ¶
func NewReplaceBackendParamsWithContext(ctx context.Context) *ReplaceBackendParams
NewReplaceBackendParamsWithContext creates a new ReplaceBackendParams object with the ability to set a context for a request.
func NewReplaceBackendParamsWithHTTPClient ¶
func NewReplaceBackendParamsWithHTTPClient(client *http.Client) *ReplaceBackendParams
NewReplaceBackendParamsWithHTTPClient creates a new ReplaceBackendParams object with the ability to set a custom HTTPClient for a request.
func NewReplaceBackendParamsWithTimeout ¶
func NewReplaceBackendParamsWithTimeout(timeout time.Duration) *ReplaceBackendParams
NewReplaceBackendParamsWithTimeout creates a new ReplaceBackendParams object with the ability to set a timeout on a request.
func (*ReplaceBackendParams) SetContext ¶
func (o *ReplaceBackendParams) SetContext(ctx context.Context)
SetContext adds the context to the replace backend params
func (*ReplaceBackendParams) SetData ¶
func (o *ReplaceBackendParams) SetData(data *models.Backend)
SetData adds the data to the replace backend params
func (*ReplaceBackendParams) SetDefaults ¶
func (o *ReplaceBackendParams) SetDefaults()
SetDefaults hydrates default values in the replace backend params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceBackendParams) SetForceReload ¶
func (o *ReplaceBackendParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace backend params
func (*ReplaceBackendParams) SetHTTPClient ¶
func (o *ReplaceBackendParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace backend params
func (*ReplaceBackendParams) SetName ¶
func (o *ReplaceBackendParams) SetName(name string)
SetName adds the name to the replace backend params
func (*ReplaceBackendParams) SetTimeout ¶
func (o *ReplaceBackendParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace backend params
func (*ReplaceBackendParams) SetTransactionID ¶
func (o *ReplaceBackendParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace backend params
func (*ReplaceBackendParams) SetVersion ¶
func (o *ReplaceBackendParams) SetVersion(version *int64)
SetVersion adds the version to the replace backend params
func (*ReplaceBackendParams) WithContext ¶
func (o *ReplaceBackendParams) WithContext(ctx context.Context) *ReplaceBackendParams
WithContext adds the context to the replace backend params
func (*ReplaceBackendParams) WithData ¶
func (o *ReplaceBackendParams) WithData(data *models.Backend) *ReplaceBackendParams
WithData adds the data to the replace backend params
func (*ReplaceBackendParams) WithDefaults ¶
func (o *ReplaceBackendParams) WithDefaults() *ReplaceBackendParams
WithDefaults hydrates default values in the replace backend params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceBackendParams) WithForceReload ¶
func (o *ReplaceBackendParams) WithForceReload(forceReload *bool) *ReplaceBackendParams
WithForceReload adds the forceReload to the replace backend params
func (*ReplaceBackendParams) WithHTTPClient ¶
func (o *ReplaceBackendParams) WithHTTPClient(client *http.Client) *ReplaceBackendParams
WithHTTPClient adds the HTTPClient to the replace backend params
func (*ReplaceBackendParams) WithName ¶
func (o *ReplaceBackendParams) WithName(name string) *ReplaceBackendParams
WithName adds the name to the replace backend params
func (*ReplaceBackendParams) WithTimeout ¶
func (o *ReplaceBackendParams) WithTimeout(timeout time.Duration) *ReplaceBackendParams
WithTimeout adds the timeout to the replace backend params
func (*ReplaceBackendParams) WithTransactionID ¶
func (o *ReplaceBackendParams) WithTransactionID(transactionID *string) *ReplaceBackendParams
WithTransactionID adds the transactionID to the replace backend params
func (*ReplaceBackendParams) WithVersion ¶
func (o *ReplaceBackendParams) WithVersion(version *int64) *ReplaceBackendParams
WithVersion adds the version to the replace backend params
func (*ReplaceBackendParams) WriteToRequest ¶
func (o *ReplaceBackendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceBackendReader ¶
type ReplaceBackendReader struct {
// contains filtered or unexported fields
}
ReplaceBackendReader is a Reader for the ReplaceBackend structure.
func (*ReplaceBackendReader) ReadResponse ¶
func (o *ReplaceBackendReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.