tcp_response_rule

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateTCPResponseRuleAcceptedCode int = 202

CreateTCPResponseRuleAcceptedCode is the HTTP code returned for type CreateTCPResponseRuleAccepted

View Source
const CreateTCPResponseRuleBadRequestCode int = 400

CreateTCPResponseRuleBadRequestCode is the HTTP code returned for type CreateTCPResponseRuleBadRequest

View Source
const CreateTCPResponseRuleConflictCode int = 409

CreateTCPResponseRuleConflictCode is the HTTP code returned for type CreateTCPResponseRuleConflict

View Source
const CreateTCPResponseRuleCreatedCode int = 201

CreateTCPResponseRuleCreatedCode is the HTTP code returned for type CreateTCPResponseRuleCreated

View Source
const DeleteTCPResponseRuleAcceptedCode int = 202

DeleteTCPResponseRuleAcceptedCode is the HTTP code returned for type DeleteTCPResponseRuleAccepted

View Source
const DeleteTCPResponseRuleNoContentCode int = 204

DeleteTCPResponseRuleNoContentCode is the HTTP code returned for type DeleteTCPResponseRuleNoContent

View Source
const DeleteTCPResponseRuleNotFoundCode int = 404

DeleteTCPResponseRuleNotFoundCode is the HTTP code returned for type DeleteTCPResponseRuleNotFound

View Source
const GetTCPResponseRuleNotFoundCode int = 404

GetTCPResponseRuleNotFoundCode is the HTTP code returned for type GetTCPResponseRuleNotFound

View Source
const GetTCPResponseRuleOKCode int = 200

GetTCPResponseRuleOKCode is the HTTP code returned for type GetTCPResponseRuleOK

View Source
const GetTCPResponseRulesOKCode int = 200

GetTCPResponseRulesOKCode is the HTTP code returned for type GetTCPResponseRulesOK

View Source
const ReplaceTCPResponseRuleAcceptedCode int = 202

ReplaceTCPResponseRuleAcceptedCode is the HTTP code returned for type ReplaceTCPResponseRuleAccepted

View Source
const ReplaceTCPResponseRuleBadRequestCode int = 400

ReplaceTCPResponseRuleBadRequestCode is the HTTP code returned for type ReplaceTCPResponseRuleBadRequest

View Source
const ReplaceTCPResponseRuleNotFoundCode int = 404

ReplaceTCPResponseRuleNotFoundCode is the HTTP code returned for type ReplaceTCPResponseRuleNotFound

View Source
const ReplaceTCPResponseRuleOKCode int = 200

ReplaceTCPResponseRuleOKCode is the HTTP code returned for type ReplaceTCPResponseRuleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTCPResponseRule

type CreateTCPResponseRule struct {
	Context *middleware.Context
	Handler CreateTCPResponseRuleHandler
}

CreateTCPResponseRule swagger:route POST /services/haproxy/configuration/tcp_response_rules TCPResponseRule createTcpResponseRule

Add a new TCP Response Rule

Adds a new TCP Response Rule of the specified type in the specified backend.

func NewCreateTCPResponseRule

func NewCreateTCPResponseRule(ctx *middleware.Context, handler CreateTCPResponseRuleHandler) *CreateTCPResponseRule

NewCreateTCPResponseRule creates a new http.Handler for the create TCP response rule operation

func (*CreateTCPResponseRule) ServeHTTP

func (o *CreateTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateTCPResponseRuleAccepted

type CreateTCPResponseRuleAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

	/*
	  In: Body
	*/
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}

CreateTCPResponseRuleAccepted Configuration change accepted and reload requested

swagger:response createTcpResponseRuleAccepted

func NewCreateTCPResponseRuleAccepted

func NewCreateTCPResponseRuleAccepted() *CreateTCPResponseRuleAccepted

NewCreateTCPResponseRuleAccepted creates CreateTCPResponseRuleAccepted with default headers values

func (*CreateTCPResponseRuleAccepted) SetPayload

func (o *CreateTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)

SetPayload sets the payload to the create Tcp response rule accepted response

func (*CreateTCPResponseRuleAccepted) SetReloadID

func (o *CreateTCPResponseRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the create Tcp response rule accepted response

func (*CreateTCPResponseRuleAccepted) WithPayload

WithPayload adds the payload to the create Tcp response rule accepted response

func (*CreateTCPResponseRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the create Tcp response rule accepted response

func (*CreateTCPResponseRuleAccepted) WriteResponse

func (o *CreateTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTCPResponseRuleBadRequest

type CreateTCPResponseRuleBadRequest struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CreateTCPResponseRuleBadRequest Bad request

swagger:response createTcpResponseRuleBadRequest

func NewCreateTCPResponseRuleBadRequest

func NewCreateTCPResponseRuleBadRequest() *CreateTCPResponseRuleBadRequest

NewCreateTCPResponseRuleBadRequest creates CreateTCPResponseRuleBadRequest with default headers values

func (*CreateTCPResponseRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create Tcp response rule bad request response

func (*CreateTCPResponseRuleBadRequest) SetPayload

func (o *CreateTCPResponseRuleBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the create Tcp response rule bad request response

func (*CreateTCPResponseRuleBadRequest) WithConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleBadRequest

WithConfigurationVersion adds the configurationVersion to the create Tcp response rule bad request response

func (*CreateTCPResponseRuleBadRequest) WithPayload

WithPayload adds the payload to the create Tcp response rule bad request response

func (*CreateTCPResponseRuleBadRequest) WriteResponse

func (o *CreateTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTCPResponseRuleConflict

type CreateTCPResponseRuleConflict struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CreateTCPResponseRuleConflict The specified resource already exists

swagger:response createTcpResponseRuleConflict

func NewCreateTCPResponseRuleConflict

func NewCreateTCPResponseRuleConflict() *CreateTCPResponseRuleConflict

NewCreateTCPResponseRuleConflict creates CreateTCPResponseRuleConflict with default headers values

func (*CreateTCPResponseRuleConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleConflict) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create Tcp response rule conflict response

func (*CreateTCPResponseRuleConflict) SetPayload

func (o *CreateTCPResponseRuleConflict) SetPayload(payload *models.Error)

SetPayload sets the payload to the create Tcp response rule conflict response

func (*CreateTCPResponseRuleConflict) WithConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleConflict

WithConfigurationVersion adds the configurationVersion to the create Tcp response rule conflict response

func (*CreateTCPResponseRuleConflict) WithPayload

WithPayload adds the payload to the create Tcp response rule conflict response

func (*CreateTCPResponseRuleConflict) WriteResponse

func (o *CreateTCPResponseRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTCPResponseRuleCreated

type CreateTCPResponseRuleCreated struct {

	/*
	  In: Body
	*/
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}

CreateTCPResponseRuleCreated TCP Response Rule created

swagger:response createTcpResponseRuleCreated

func NewCreateTCPResponseRuleCreated

func NewCreateTCPResponseRuleCreated() *CreateTCPResponseRuleCreated

NewCreateTCPResponseRuleCreated creates CreateTCPResponseRuleCreated with default headers values

func (*CreateTCPResponseRuleCreated) SetPayload

func (o *CreateTCPResponseRuleCreated) SetPayload(payload *models.TCPResponseRule)

SetPayload sets the payload to the create Tcp response rule created response

func (*CreateTCPResponseRuleCreated) WithPayload

WithPayload adds the payload to the create Tcp response rule created response

func (*CreateTCPResponseRuleCreated) WriteResponse

func (o *CreateTCPResponseRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTCPResponseRuleDefault

type CreateTCPResponseRuleDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateTCPResponseRuleDefault General Error

swagger:response createTcpResponseRuleDefault

func NewCreateTCPResponseRuleDefault

func NewCreateTCPResponseRuleDefault(code int) *CreateTCPResponseRuleDefault

NewCreateTCPResponseRuleDefault creates CreateTCPResponseRuleDefault with default headers values

func (*CreateTCPResponseRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) SetPayload

func (o *CreateTCPResponseRuleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) SetStatusCode

func (o *CreateTCPResponseRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) WithConfigurationVersion added in v1.2.2

func (o *CreateTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateTCPResponseRuleDefault

WithConfigurationVersion adds the configurationVersion to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) WithPayload

WithPayload adds the payload to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) WithStatusCode

WithStatusCode adds the status to the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) WriteResponse

func (o *CreateTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateTCPResponseRuleHandler

type CreateTCPResponseRuleHandler interface {
	Handle(CreateTCPResponseRuleParams, interface{}) middleware.Responder
}

CreateTCPResponseRuleHandler interface for that can handle valid create TCP response rule params

type CreateTCPResponseRuleHandlerFunc

type CreateTCPResponseRuleHandlerFunc func(CreateTCPResponseRuleParams, interface{}) middleware.Responder

CreateTCPResponseRuleHandlerFunc turns a function with the right signature into a create TCP response rule handler

func (CreateTCPResponseRuleHandlerFunc) Handle

func (fn CreateTCPResponseRuleHandlerFunc) Handle(params CreateTCPResponseRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateTCPResponseRuleParams

type CreateTCPResponseRuleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Parent backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*
	  Required: true
	  In: body
	*/
	Data *models.TCPResponseRule
	/*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.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

CreateTCPResponseRuleParams contains all the bound params for the create TCP response rule operation typically these are obtained from a http.Request

swagger:parameters createTCPResponseRule

func NewCreateTCPResponseRuleParams

func NewCreateTCPResponseRuleParams() CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParams creates a new CreateTCPResponseRuleParams object with the default values initialized.

func (*CreateTCPResponseRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateTCPResponseRuleParams() beforehand.

type CreateTCPResponseRuleURL

type CreateTCPResponseRuleURL struct {
	Backend       string
	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

CreateTCPResponseRuleURL generates an URL for the create TCP response rule operation

func (*CreateTCPResponseRuleURL) Build

func (o *CreateTCPResponseRuleURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateTCPResponseRuleURL) BuildFull

func (o *CreateTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateTCPResponseRuleURL) Must

func (o *CreateTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateTCPResponseRuleURL) SetBasePath

func (o *CreateTCPResponseRuleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateTCPResponseRuleURL) String

func (o *CreateTCPResponseRuleURL) String() string

String returns the string representation of the path with query string

func (*CreateTCPResponseRuleURL) StringFull

func (o *CreateTCPResponseRuleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateTCPResponseRuleURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteTCPResponseRule

type DeleteTCPResponseRule struct {
	Context *middleware.Context
	Handler DeleteTCPResponseRuleHandler
}

DeleteTCPResponseRule swagger:route DELETE /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule deleteTcpResponseRule

Delete a TCP Response Rule

Deletes a TCP Response Rule configuration by it's ID from the specified backend.

func NewDeleteTCPResponseRule

func NewDeleteTCPResponseRule(ctx *middleware.Context, handler DeleteTCPResponseRuleHandler) *DeleteTCPResponseRule

NewDeleteTCPResponseRule creates a new http.Handler for the delete TCP response rule operation

func (*DeleteTCPResponseRule) ServeHTTP

func (o *DeleteTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteTCPResponseRuleAccepted

type DeleteTCPResponseRuleAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`
}

DeleteTCPResponseRuleAccepted Configuration change accepted and reload requested

swagger:response deleteTcpResponseRuleAccepted

func NewDeleteTCPResponseRuleAccepted

func NewDeleteTCPResponseRuleAccepted() *DeleteTCPResponseRuleAccepted

NewDeleteTCPResponseRuleAccepted creates DeleteTCPResponseRuleAccepted with default headers values

func (*DeleteTCPResponseRuleAccepted) SetReloadID

func (o *DeleteTCPResponseRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the delete Tcp response rule accepted response

func (*DeleteTCPResponseRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the delete Tcp response rule accepted response

func (*DeleteTCPResponseRuleAccepted) WriteResponse

func (o *DeleteTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTCPResponseRuleDefault

type DeleteTCPResponseRuleDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteTCPResponseRuleDefault General Error

swagger:response deleteTcpResponseRuleDefault

func NewDeleteTCPResponseRuleDefault

func NewDeleteTCPResponseRuleDefault(code int) *DeleteTCPResponseRuleDefault

NewDeleteTCPResponseRuleDefault creates DeleteTCPResponseRuleDefault with default headers values

func (*DeleteTCPResponseRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) SetPayload

func (o *DeleteTCPResponseRuleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) SetStatusCode

func (o *DeleteTCPResponseRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) WithConfigurationVersion added in v1.2.2

func (o *DeleteTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleDefault

WithConfigurationVersion adds the configurationVersion to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) WithPayload

WithPayload adds the payload to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) WithStatusCode

WithStatusCode adds the status to the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) WriteResponse

func (o *DeleteTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTCPResponseRuleHandler

type DeleteTCPResponseRuleHandler interface {
	Handle(DeleteTCPResponseRuleParams, interface{}) middleware.Responder
}

DeleteTCPResponseRuleHandler interface for that can handle valid delete TCP response rule params

type DeleteTCPResponseRuleHandlerFunc

type DeleteTCPResponseRuleHandlerFunc func(DeleteTCPResponseRuleParams, interface{}) middleware.Responder

DeleteTCPResponseRuleHandlerFunc turns a function with the right signature into a delete TCP response rule handler

func (DeleteTCPResponseRuleHandlerFunc) Handle

func (fn DeleteTCPResponseRuleHandlerFunc) Handle(params DeleteTCPResponseRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTCPResponseRuleNoContent

type DeleteTCPResponseRuleNoContent struct {
}

DeleteTCPResponseRuleNoContent TCP Response Rule deleted

swagger:response deleteTcpResponseRuleNoContent

func NewDeleteTCPResponseRuleNoContent

func NewDeleteTCPResponseRuleNoContent() *DeleteTCPResponseRuleNoContent

NewDeleteTCPResponseRuleNoContent creates DeleteTCPResponseRuleNoContent with default headers values

func (*DeleteTCPResponseRuleNoContent) WriteResponse

func (o *DeleteTCPResponseRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTCPResponseRuleNotFound

type DeleteTCPResponseRuleNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

DeleteTCPResponseRuleNotFound The specified resource was not found

swagger:response deleteTcpResponseRuleNotFound

func NewDeleteTCPResponseRuleNotFound

func NewDeleteTCPResponseRuleNotFound() *DeleteTCPResponseRuleNotFound

NewDeleteTCPResponseRuleNotFound creates DeleteTCPResponseRuleNotFound with default headers values

func (*DeleteTCPResponseRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete Tcp response rule not found response

func (*DeleteTCPResponseRuleNotFound) SetPayload

func (o *DeleteTCPResponseRuleNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete Tcp response rule not found response

func (*DeleteTCPResponseRuleNotFound) WithConfigurationVersion added in v1.2.2

func (o *DeleteTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteTCPResponseRuleNotFound

WithConfigurationVersion adds the configurationVersion to the delete Tcp response rule not found response

func (*DeleteTCPResponseRuleNotFound) WithPayload

WithPayload adds the payload to the delete Tcp response rule not found response

func (*DeleteTCPResponseRuleNotFound) WriteResponse

func (o *DeleteTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTCPResponseRuleParams

type DeleteTCPResponseRuleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Parent backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*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.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*TCP Response Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

DeleteTCPResponseRuleParams contains all the bound params for the delete TCP response rule operation typically these are obtained from a http.Request

swagger:parameters deleteTCPResponseRule

func NewDeleteTCPResponseRuleParams

func NewDeleteTCPResponseRuleParams() DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParams creates a new DeleteTCPResponseRuleParams object with the default values initialized.

func (*DeleteTCPResponseRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteTCPResponseRuleParams() beforehand.

type DeleteTCPResponseRuleURL

type DeleteTCPResponseRuleURL struct {
	ID int64

	Backend       string
	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

DeleteTCPResponseRuleURL generates an URL for the delete TCP response rule operation

func (*DeleteTCPResponseRuleURL) Build

func (o *DeleteTCPResponseRuleURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteTCPResponseRuleURL) BuildFull

func (o *DeleteTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteTCPResponseRuleURL) Must

func (o *DeleteTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteTCPResponseRuleURL) SetBasePath

func (o *DeleteTCPResponseRuleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteTCPResponseRuleURL) String

func (o *DeleteTCPResponseRuleURL) String() string

String returns the string representation of the path with query string

func (*DeleteTCPResponseRuleURL) StringFull

func (o *DeleteTCPResponseRuleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteTCPResponseRuleURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTCPResponseRule

type GetTCPResponseRule struct {
	Context *middleware.Context
	Handler GetTCPResponseRuleHandler
}

GetTCPResponseRule swagger:route GET /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule getTcpResponseRule

Return one TCP Response Rule

Returns one TCP Response Rule configuration by it's ID in the specified backend.

func NewGetTCPResponseRule

func NewGetTCPResponseRule(ctx *middleware.Context, handler GetTCPResponseRuleHandler) *GetTCPResponseRule

NewGetTCPResponseRule creates a new http.Handler for the get TCP response rule operation

func (*GetTCPResponseRule) ServeHTTP

func (o *GetTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTCPResponseRuleDefault

type GetTCPResponseRuleDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTCPResponseRuleDefault General Error

swagger:response getTcpResponseRuleDefault

func NewGetTCPResponseRuleDefault

func NewGetTCPResponseRuleDefault(code int) *GetTCPResponseRuleDefault

NewGetTCPResponseRuleDefault creates GetTCPResponseRuleDefault with default headers values

func (*GetTCPResponseRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) SetPayload

func (o *GetTCPResponseRuleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) SetStatusCode

func (o *GetTCPResponseRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) WithConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleDefault

WithConfigurationVersion adds the configurationVersion to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) WithPayload

WithPayload adds the payload to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) WithStatusCode

func (o *GetTCPResponseRuleDefault) WithStatusCode(code int) *GetTCPResponseRuleDefault

WithStatusCode adds the status to the get TCP response rule default response

func (*GetTCPResponseRuleDefault) WriteResponse

func (o *GetTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTCPResponseRuleHandler

type GetTCPResponseRuleHandler interface {
	Handle(GetTCPResponseRuleParams, interface{}) middleware.Responder
}

GetTCPResponseRuleHandler interface for that can handle valid get TCP response rule params

type GetTCPResponseRuleHandlerFunc

type GetTCPResponseRuleHandlerFunc func(GetTCPResponseRuleParams, interface{}) middleware.Responder

GetTCPResponseRuleHandlerFunc turns a function with the right signature into a get TCP response rule handler

func (GetTCPResponseRuleHandlerFunc) Handle

func (fn GetTCPResponseRuleHandlerFunc) Handle(params GetTCPResponseRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTCPResponseRuleNotFound

type GetTCPResponseRuleNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetTCPResponseRuleNotFound The specified resource was not found

swagger:response getTcpResponseRuleNotFound

func NewGetTCPResponseRuleNotFound

func NewGetTCPResponseRuleNotFound() *GetTCPResponseRuleNotFound

NewGetTCPResponseRuleNotFound creates GetTCPResponseRuleNotFound with default headers values

func (*GetTCPResponseRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get Tcp response rule not found response

func (*GetTCPResponseRuleNotFound) SetPayload

func (o *GetTCPResponseRuleNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get Tcp response rule not found response

func (*GetTCPResponseRuleNotFound) WithConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleNotFound

WithConfigurationVersion adds the configurationVersion to the get Tcp response rule not found response

func (*GetTCPResponseRuleNotFound) WithPayload

WithPayload adds the payload to the get Tcp response rule not found response

func (*GetTCPResponseRuleNotFound) WriteResponse

func (o *GetTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTCPResponseRuleOK

type GetTCPResponseRuleOK struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *GetTCPResponseRuleOKBody `json:"body,omitempty"`
}

GetTCPResponseRuleOK Successful operation

swagger:response getTcpResponseRuleOK

func NewGetTCPResponseRuleOK

func NewGetTCPResponseRuleOK() *GetTCPResponseRuleOK

NewGetTCPResponseRuleOK creates GetTCPResponseRuleOK with default headers values

func (*GetTCPResponseRuleOK) SetConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get Tcp response rule o k response

func (*GetTCPResponseRuleOK) SetPayload

func (o *GetTCPResponseRuleOK) SetPayload(payload *GetTCPResponseRuleOKBody)

SetPayload sets the payload to the get Tcp response rule o k response

func (*GetTCPResponseRuleOK) WithConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRuleOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRuleOK

WithConfigurationVersion adds the configurationVersion to the get Tcp response rule o k response

func (*GetTCPResponseRuleOK) WithPayload

WithPayload adds the payload to the get Tcp response rule o k response

func (*GetTCPResponseRuleOK) WriteResponse

func (o *GetTCPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTCPResponseRuleOKBody

type GetTCPResponseRuleOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.TCPResponseRule `json:"data,omitempty"`
}

GetTCPResponseRuleOKBody get TCP response rule o k body swagger:model GetTCPResponseRuleOKBody

func (*GetTCPResponseRuleOKBody) MarshalBinary

func (o *GetTCPResponseRuleOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetTCPResponseRuleOKBody) UnmarshalBinary

func (o *GetTCPResponseRuleOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetTCPResponseRuleOKBody) Validate

func (o *GetTCPResponseRuleOKBody) Validate(formats strfmt.Registry) error

Validate validates this get TCP response rule o k body

type GetTCPResponseRuleParams

type GetTCPResponseRuleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Parent backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*TCP Response Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
}

GetTCPResponseRuleParams contains all the bound params for the get TCP response rule operation typically these are obtained from a http.Request

swagger:parameters getTCPResponseRule

func NewGetTCPResponseRuleParams

func NewGetTCPResponseRuleParams() GetTCPResponseRuleParams

NewGetTCPResponseRuleParams creates a new GetTCPResponseRuleParams object no default values defined in spec.

func (*GetTCPResponseRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTCPResponseRuleParams() beforehand.

type GetTCPResponseRuleURL

type GetTCPResponseRuleURL struct {
	ID int64

	Backend       string
	TransactionID *string
	// contains filtered or unexported fields
}

GetTCPResponseRuleURL generates an URL for the get TCP response rule operation

func (*GetTCPResponseRuleURL) Build

func (o *GetTCPResponseRuleURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTCPResponseRuleURL) BuildFull

func (o *GetTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTCPResponseRuleURL) Must

func (o *GetTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTCPResponseRuleURL) SetBasePath

func (o *GetTCPResponseRuleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTCPResponseRuleURL) String

func (o *GetTCPResponseRuleURL) String() string

String returns the string representation of the path with query string

func (*GetTCPResponseRuleURL) StringFull

func (o *GetTCPResponseRuleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTCPResponseRuleURL) WithBasePath

func (o *GetTCPResponseRuleURL) WithBasePath(bp string) *GetTCPResponseRuleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTCPResponseRules

type GetTCPResponseRules struct {
	Context *middleware.Context
	Handler GetTCPResponseRulesHandler
}

GetTCPResponseRules swagger:route GET /services/haproxy/configuration/tcp_response_rules TCPResponseRule getTcpResponseRules

Return an array of all TCP Response Rules

Returns all TCP Response Rules that are configured in specified backend.

func NewGetTCPResponseRules

func NewGetTCPResponseRules(ctx *middleware.Context, handler GetTCPResponseRulesHandler) *GetTCPResponseRules

NewGetTCPResponseRules creates a new http.Handler for the get TCP response rules operation

func (*GetTCPResponseRules) ServeHTTP

func (o *GetTCPResponseRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTCPResponseRulesDefault

type GetTCPResponseRulesDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTCPResponseRulesDefault General Error

swagger:response getTcpResponseRulesDefault

func NewGetTCPResponseRulesDefault

func NewGetTCPResponseRulesDefault(code int) *GetTCPResponseRulesDefault

NewGetTCPResponseRulesDefault creates GetTCPResponseRulesDefault with default headers values

func (*GetTCPResponseRulesDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRulesDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) SetPayload

func (o *GetTCPResponseRulesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) SetStatusCode

func (o *GetTCPResponseRulesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) WithConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesDefault

WithConfigurationVersion adds the configurationVersion to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) WithPayload

WithPayload adds the payload to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) WithStatusCode

WithStatusCode adds the status to the get TCP response rules default response

func (*GetTCPResponseRulesDefault) WriteResponse

func (o *GetTCPResponseRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTCPResponseRulesHandler

type GetTCPResponseRulesHandler interface {
	Handle(GetTCPResponseRulesParams, interface{}) middleware.Responder
}

GetTCPResponseRulesHandler interface for that can handle valid get TCP response rules params

type GetTCPResponseRulesHandlerFunc

type GetTCPResponseRulesHandlerFunc func(GetTCPResponseRulesParams, interface{}) middleware.Responder

GetTCPResponseRulesHandlerFunc turns a function with the right signature into a get TCP response rules handler

func (GetTCPResponseRulesHandlerFunc) Handle

func (fn GetTCPResponseRulesHandlerFunc) Handle(params GetTCPResponseRulesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTCPResponseRulesOK

type GetTCPResponseRulesOK struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *GetTCPResponseRulesOKBody `json:"body,omitempty"`
}

GetTCPResponseRulesOK Successful operation

swagger:response getTcpResponseRulesOK

func NewGetTCPResponseRulesOK

func NewGetTCPResponseRulesOK() *GetTCPResponseRulesOK

NewGetTCPResponseRulesOK creates GetTCPResponseRulesOK with default headers values

func (*GetTCPResponseRulesOK) SetConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRulesOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get Tcp response rules o k response

func (*GetTCPResponseRulesOK) SetPayload

func (o *GetTCPResponseRulesOK) SetPayload(payload *GetTCPResponseRulesOKBody)

SetPayload sets the payload to the get Tcp response rules o k response

func (*GetTCPResponseRulesOK) WithConfigurationVersion added in v1.2.2

func (o *GetTCPResponseRulesOK) WithConfigurationVersion(configurationVersion int64) *GetTCPResponseRulesOK

WithConfigurationVersion adds the configurationVersion to the get Tcp response rules o k response

func (*GetTCPResponseRulesOK) WithPayload

WithPayload adds the payload to the get Tcp response rules o k response

func (*GetTCPResponseRulesOK) WriteResponse

func (o *GetTCPResponseRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTCPResponseRulesOKBody

type GetTCPResponseRulesOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.TCPResponseRules `json:"data"`
}

GetTCPResponseRulesOKBody get TCP response rules o k body swagger:model GetTCPResponseRulesOKBody

func (*GetTCPResponseRulesOKBody) MarshalBinary

func (o *GetTCPResponseRulesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetTCPResponseRulesOKBody) UnmarshalBinary

func (o *GetTCPResponseRulesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetTCPResponseRulesOKBody) Validate

func (o *GetTCPResponseRulesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get TCP response rules o k body

type GetTCPResponseRulesParams

type GetTCPResponseRulesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Parent backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
}

GetTCPResponseRulesParams contains all the bound params for the get TCP response rules operation typically these are obtained from a http.Request

swagger:parameters getTCPResponseRules

func NewGetTCPResponseRulesParams

func NewGetTCPResponseRulesParams() GetTCPResponseRulesParams

NewGetTCPResponseRulesParams creates a new GetTCPResponseRulesParams object no default values defined in spec.

func (*GetTCPResponseRulesParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTCPResponseRulesParams() beforehand.

type GetTCPResponseRulesURL

type GetTCPResponseRulesURL struct {
	Backend       string
	TransactionID *string
	// contains filtered or unexported fields
}

GetTCPResponseRulesURL generates an URL for the get TCP response rules operation

func (*GetTCPResponseRulesURL) Build

func (o *GetTCPResponseRulesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTCPResponseRulesURL) BuildFull

func (o *GetTCPResponseRulesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTCPResponseRulesURL) Must

func (o *GetTCPResponseRulesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTCPResponseRulesURL) SetBasePath

func (o *GetTCPResponseRulesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTCPResponseRulesURL) String

func (o *GetTCPResponseRulesURL) String() string

String returns the string representation of the path with query string

func (*GetTCPResponseRulesURL) StringFull

func (o *GetTCPResponseRulesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTCPResponseRulesURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ReplaceTCPResponseRule

type ReplaceTCPResponseRule struct {
	Context *middleware.Context
	Handler ReplaceTCPResponseRuleHandler
}

ReplaceTCPResponseRule swagger:route PUT /services/haproxy/configuration/tcp_response_rules/{id} TCPResponseRule replaceTcpResponseRule

Replace a TCP Response Rule

Replaces a TCP Response Rule configuration by it's ID in the specified backend.

func NewReplaceTCPResponseRule

func NewReplaceTCPResponseRule(ctx *middleware.Context, handler ReplaceTCPResponseRuleHandler) *ReplaceTCPResponseRule

NewReplaceTCPResponseRule creates a new http.Handler for the replace TCP response rule operation

func (*ReplaceTCPResponseRule) ServeHTTP

func (o *ReplaceTCPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ReplaceTCPResponseRuleAccepted

type ReplaceTCPResponseRuleAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

	/*
	  In: Body
	*/
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}

ReplaceTCPResponseRuleAccepted Configuration change accepted and reload requested

swagger:response replaceTcpResponseRuleAccepted

func NewReplaceTCPResponseRuleAccepted

func NewReplaceTCPResponseRuleAccepted() *ReplaceTCPResponseRuleAccepted

NewReplaceTCPResponseRuleAccepted creates ReplaceTCPResponseRuleAccepted with default headers values

func (*ReplaceTCPResponseRuleAccepted) SetPayload

func (o *ReplaceTCPResponseRuleAccepted) SetPayload(payload *models.TCPResponseRule)

SetPayload sets the payload to the replace Tcp response rule accepted response

func (*ReplaceTCPResponseRuleAccepted) SetReloadID

func (o *ReplaceTCPResponseRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace Tcp response rule accepted response

func (*ReplaceTCPResponseRuleAccepted) WithPayload

WithPayload adds the payload to the replace Tcp response rule accepted response

func (*ReplaceTCPResponseRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the replace Tcp response rule accepted response

func (*ReplaceTCPResponseRuleAccepted) WriteResponse

func (o *ReplaceTCPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReplaceTCPResponseRuleBadRequest

type ReplaceTCPResponseRuleBadRequest struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

ReplaceTCPResponseRuleBadRequest Bad request

swagger:response replaceTcpResponseRuleBadRequest

func NewReplaceTCPResponseRuleBadRequest

func NewReplaceTCPResponseRuleBadRequest() *ReplaceTCPResponseRuleBadRequest

NewReplaceTCPResponseRuleBadRequest creates ReplaceTCPResponseRuleBadRequest with default headers values

func (*ReplaceTCPResponseRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace Tcp response rule bad request response

func (*ReplaceTCPResponseRuleBadRequest) SetPayload

func (o *ReplaceTCPResponseRuleBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the replace Tcp response rule bad request response

func (*ReplaceTCPResponseRuleBadRequest) WithConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleBadRequest

WithConfigurationVersion adds the configurationVersion to the replace Tcp response rule bad request response

func (*ReplaceTCPResponseRuleBadRequest) WithPayload

WithPayload adds the payload to the replace Tcp response rule bad request response

func (*ReplaceTCPResponseRuleBadRequest) WriteResponse

func (o *ReplaceTCPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReplaceTCPResponseRuleDefault

type ReplaceTCPResponseRuleDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ReplaceTCPResponseRuleDefault General Error

swagger:response replaceTcpResponseRuleDefault

func NewReplaceTCPResponseRuleDefault

func NewReplaceTCPResponseRuleDefault(code int) *ReplaceTCPResponseRuleDefault

NewReplaceTCPResponseRuleDefault creates ReplaceTCPResponseRuleDefault with default headers values

func (*ReplaceTCPResponseRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) SetPayload

func (o *ReplaceTCPResponseRuleDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) SetStatusCode

func (o *ReplaceTCPResponseRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) WithConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleDefault

WithConfigurationVersion adds the configurationVersion to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) WithPayload

WithPayload adds the payload to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) WithStatusCode

WithStatusCode adds the status to the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) WriteResponse

func (o *ReplaceTCPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReplaceTCPResponseRuleHandler

type ReplaceTCPResponseRuleHandler interface {
	Handle(ReplaceTCPResponseRuleParams, interface{}) middleware.Responder
}

ReplaceTCPResponseRuleHandler interface for that can handle valid replace TCP response rule params

type ReplaceTCPResponseRuleHandlerFunc

type ReplaceTCPResponseRuleHandlerFunc func(ReplaceTCPResponseRuleParams, interface{}) middleware.Responder

ReplaceTCPResponseRuleHandlerFunc turns a function with the right signature into a replace TCP response rule handler

func (ReplaceTCPResponseRuleHandlerFunc) Handle

Handle executing the request and returning a response

type ReplaceTCPResponseRuleNotFound

type ReplaceTCPResponseRuleNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

ReplaceTCPResponseRuleNotFound The specified resource was not found

swagger:response replaceTcpResponseRuleNotFound

func NewReplaceTCPResponseRuleNotFound

func NewReplaceTCPResponseRuleNotFound() *ReplaceTCPResponseRuleNotFound

NewReplaceTCPResponseRuleNotFound creates ReplaceTCPResponseRuleNotFound with default headers values

func (*ReplaceTCPResponseRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace Tcp response rule not found response

func (*ReplaceTCPResponseRuleNotFound) SetPayload

func (o *ReplaceTCPResponseRuleNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the replace Tcp response rule not found response

func (*ReplaceTCPResponseRuleNotFound) WithConfigurationVersion added in v1.2.2

func (o *ReplaceTCPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPResponseRuleNotFound

WithConfigurationVersion adds the configurationVersion to the replace Tcp response rule not found response

func (*ReplaceTCPResponseRuleNotFound) WithPayload

WithPayload adds the payload to the replace Tcp response rule not found response

func (*ReplaceTCPResponseRuleNotFound) WriteResponse

func (o *ReplaceTCPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReplaceTCPResponseRuleOK

type ReplaceTCPResponseRuleOK struct {

	/*
	  In: Body
	*/
	Payload *models.TCPResponseRule `json:"body,omitempty"`
}

ReplaceTCPResponseRuleOK TCP Response Rule replaced

swagger:response replaceTcpResponseRuleOK

func NewReplaceTCPResponseRuleOK

func NewReplaceTCPResponseRuleOK() *ReplaceTCPResponseRuleOK

NewReplaceTCPResponseRuleOK creates ReplaceTCPResponseRuleOK with default headers values

func (*ReplaceTCPResponseRuleOK) SetPayload

func (o *ReplaceTCPResponseRuleOK) SetPayload(payload *models.TCPResponseRule)

SetPayload sets the payload to the replace Tcp response rule o k response

func (*ReplaceTCPResponseRuleOK) WithPayload

WithPayload adds the payload to the replace Tcp response rule o k response

func (*ReplaceTCPResponseRuleOK) WriteResponse

func (o *ReplaceTCPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReplaceTCPResponseRuleParams

type ReplaceTCPResponseRuleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Parent backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*
	  Required: true
	  In: body
	*/
	Data *models.TCPResponseRule
	/*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.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*TCP Response Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

ReplaceTCPResponseRuleParams contains all the bound params for the replace TCP response rule operation typically these are obtained from a http.Request

swagger:parameters replaceTCPResponseRule

func NewReplaceTCPResponseRuleParams

func NewReplaceTCPResponseRuleParams() ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParams creates a new ReplaceTCPResponseRuleParams object with the default values initialized.

func (*ReplaceTCPResponseRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewReplaceTCPResponseRuleParams() beforehand.

type ReplaceTCPResponseRuleURL

type ReplaceTCPResponseRuleURL struct {
	ID int64

	Backend       string
	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

ReplaceTCPResponseRuleURL generates an URL for the replace TCP response rule operation

func (*ReplaceTCPResponseRuleURL) Build

func (o *ReplaceTCPResponseRuleURL) Build() (*url.URL, error)

Build a url path and query string

func (*ReplaceTCPResponseRuleURL) BuildFull

func (o *ReplaceTCPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ReplaceTCPResponseRuleURL) Must

func (o *ReplaceTCPResponseRuleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ReplaceTCPResponseRuleURL) SetBasePath

func (o *ReplaceTCPResponseRuleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ReplaceTCPResponseRuleURL) String

func (o *ReplaceTCPResponseRuleURL) String() string

String returns the string representation of the path with query string

func (*ReplaceTCPResponseRuleURL) StringFull

func (o *ReplaceTCPResponseRuleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ReplaceTCPResponseRuleURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL