tcp_request_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 CreateTCPRequestRuleAcceptedCode int = 202

CreateTCPRequestRuleAcceptedCode is the HTTP code returned for type CreateTCPRequestRuleAccepted

View Source
const CreateTCPRequestRuleBadRequestCode int = 400

CreateTCPRequestRuleBadRequestCode is the HTTP code returned for type CreateTCPRequestRuleBadRequest

View Source
const CreateTCPRequestRuleConflictCode int = 409

CreateTCPRequestRuleConflictCode is the HTTP code returned for type CreateTCPRequestRuleConflict

View Source
const CreateTCPRequestRuleCreatedCode int = 201

CreateTCPRequestRuleCreatedCode is the HTTP code returned for type CreateTCPRequestRuleCreated

View Source
const DeleteTCPRequestRuleAcceptedCode int = 202

DeleteTCPRequestRuleAcceptedCode is the HTTP code returned for type DeleteTCPRequestRuleAccepted

View Source
const DeleteTCPRequestRuleNoContentCode int = 204

DeleteTCPRequestRuleNoContentCode is the HTTP code returned for type DeleteTCPRequestRuleNoContent

View Source
const DeleteTCPRequestRuleNotFoundCode int = 404

DeleteTCPRequestRuleNotFoundCode is the HTTP code returned for type DeleteTCPRequestRuleNotFound

View Source
const GetTCPRequestRuleNotFoundCode int = 404

GetTCPRequestRuleNotFoundCode is the HTTP code returned for type GetTCPRequestRuleNotFound

View Source
const GetTCPRequestRuleOKCode int = 200

GetTCPRequestRuleOKCode is the HTTP code returned for type GetTCPRequestRuleOK

View Source
const GetTCPRequestRulesOKCode int = 200

GetTCPRequestRulesOKCode is the HTTP code returned for type GetTCPRequestRulesOK

View Source
const ReplaceTCPRequestRuleAcceptedCode int = 202

ReplaceTCPRequestRuleAcceptedCode is the HTTP code returned for type ReplaceTCPRequestRuleAccepted

View Source
const ReplaceTCPRequestRuleBadRequestCode int = 400

ReplaceTCPRequestRuleBadRequestCode is the HTTP code returned for type ReplaceTCPRequestRuleBadRequest

View Source
const ReplaceTCPRequestRuleNotFoundCode int = 404

ReplaceTCPRequestRuleNotFoundCode is the HTTP code returned for type ReplaceTCPRequestRuleNotFound

View Source
const ReplaceTCPRequestRuleOKCode int = 200

ReplaceTCPRequestRuleOKCode is the HTTP code returned for type ReplaceTCPRequestRuleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTCPRequestRule

type CreateTCPRequestRule struct {
	Context *middleware.Context
	Handler CreateTCPRequestRuleHandler
}

CreateTCPRequestRule swagger:route POST /services/haproxy/configuration/tcp_request_rules TCPRequestRule createTcpRequestRule

Add a new TCP Request Rule

Adds a new TCP Request Rule of the specified type in the specified parent.

func NewCreateTCPRequestRule

func NewCreateTCPRequestRule(ctx *middleware.Context, handler CreateTCPRequestRuleHandler) *CreateTCPRequestRule

NewCreateTCPRequestRule creates a new http.Handler for the create TCP request rule operation

func (*CreateTCPRequestRule) ServeHTTP

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

type CreateTCPRequestRuleAccepted

type CreateTCPRequestRuleAccepted struct {
	/*ID of the requested reload

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

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

CreateTCPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response createTcpRequestRuleAccepted

func NewCreateTCPRequestRuleAccepted

func NewCreateTCPRequestRuleAccepted() *CreateTCPRequestRuleAccepted

NewCreateTCPRequestRuleAccepted creates CreateTCPRequestRuleAccepted with default headers values

func (*CreateTCPRequestRuleAccepted) SetPayload

func (o *CreateTCPRequestRuleAccepted) SetPayload(payload *models.TCPRequestRule)

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

func (*CreateTCPRequestRuleAccepted) SetReloadID

func (o *CreateTCPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*CreateTCPRequestRuleAccepted) WithPayload

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

func (*CreateTCPRequestRuleAccepted) WithReloadID

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

func (*CreateTCPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type CreateTCPRequestRuleBadRequest

type CreateTCPRequestRuleBadRequest struct {
	/*Configuration file version

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

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

CreateTCPRequestRuleBadRequest Bad request

swagger:response createTcpRequestRuleBadRequest

func NewCreateTCPRequestRuleBadRequest

func NewCreateTCPRequestRuleBadRequest() *CreateTCPRequestRuleBadRequest

NewCreateTCPRequestRuleBadRequest creates CreateTCPRequestRuleBadRequest with default headers values

func (*CreateTCPRequestRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateTCPRequestRuleBadRequest) SetPayload

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

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

func (*CreateTCPRequestRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateTCPRequestRuleBadRequest) WithPayload

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

func (*CreateTCPRequestRuleBadRequest) WriteResponse

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

WriteResponse to the client

type CreateTCPRequestRuleConflict

type CreateTCPRequestRuleConflict struct {
	/*Configuration file version

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

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

CreateTCPRequestRuleConflict The specified resource already exists

swagger:response createTcpRequestRuleConflict

func NewCreateTCPRequestRuleConflict

func NewCreateTCPRequestRuleConflict() *CreateTCPRequestRuleConflict

NewCreateTCPRequestRuleConflict creates CreateTCPRequestRuleConflict with default headers values

func (*CreateTCPRequestRuleConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPRequestRuleConflict) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateTCPRequestRuleConflict) SetPayload

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

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

func (*CreateTCPRequestRuleConflict) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateTCPRequestRuleConflict) WithPayload

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

func (*CreateTCPRequestRuleConflict) WriteResponse

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

WriteResponse to the client

type CreateTCPRequestRuleCreated

type CreateTCPRequestRuleCreated struct {

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

CreateTCPRequestRuleCreated TCP Request Rule created

swagger:response createTcpRequestRuleCreated

func NewCreateTCPRequestRuleCreated

func NewCreateTCPRequestRuleCreated() *CreateTCPRequestRuleCreated

NewCreateTCPRequestRuleCreated creates CreateTCPRequestRuleCreated with default headers values

func (*CreateTCPRequestRuleCreated) SetPayload

func (o *CreateTCPRequestRuleCreated) SetPayload(payload *models.TCPRequestRule)

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

func (*CreateTCPRequestRuleCreated) WithPayload

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

func (*CreateTCPRequestRuleCreated) WriteResponse

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

WriteResponse to the client

type CreateTCPRequestRuleDefault

type CreateTCPRequestRuleDefault struct {

	/*Configuration file version

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

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

CreateTCPRequestRuleDefault General Error

swagger:response createTcpRequestRuleDefault

func NewCreateTCPRequestRuleDefault

func NewCreateTCPRequestRuleDefault(code int) *CreateTCPRequestRuleDefault

NewCreateTCPRequestRuleDefault creates CreateTCPRequestRuleDefault with default headers values

func (*CreateTCPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateTCPRequestRuleDefault) SetPayload

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

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

func (*CreateTCPRequestRuleDefault) SetStatusCode

func (o *CreateTCPRequestRuleDefault) SetStatusCode(code int)

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

func (*CreateTCPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateTCPRequestRuleDefault) WithPayload

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

func (*CreateTCPRequestRuleDefault) WithStatusCode

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

func (*CreateTCPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type CreateTCPRequestRuleHandler

type CreateTCPRequestRuleHandler interface {
	Handle(CreateTCPRequestRuleParams, interface{}) middleware.Responder
}

CreateTCPRequestRuleHandler interface for that can handle valid create TCP request rule params

type CreateTCPRequestRuleHandlerFunc

type CreateTCPRequestRuleHandlerFunc func(CreateTCPRequestRuleParams, interface{}) middleware.Responder

CreateTCPRequestRuleHandlerFunc turns a function with the right signature into a create TCP request rule handler

func (CreateTCPRequestRuleHandlerFunc) Handle

func (fn CreateTCPRequestRuleHandlerFunc) Handle(params CreateTCPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateTCPRequestRuleParams

type CreateTCPRequestRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.TCPRequestRule
	/*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
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*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
}

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

swagger:parameters createTCPRequestRule

func NewCreateTCPRequestRuleParams

func NewCreateTCPRequestRuleParams() CreateTCPRequestRuleParams

NewCreateTCPRequestRuleParams creates a new CreateTCPRequestRuleParams object with the default values initialized.

func (*CreateTCPRequestRuleParams) 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 NewCreateTCPRequestRuleParams() beforehand.

type CreateTCPRequestRuleURL

type CreateTCPRequestRuleURL struct {
	ForceReload   *bool
	ParentName    string
	ParentType    string
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

CreateTCPRequestRuleURL generates an URL for the create TCP request rule operation

func (*CreateTCPRequestRuleURL) Build

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

Build a url path and query string

func (*CreateTCPRequestRuleURL) BuildFull

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

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

func (*CreateTCPRequestRuleURL) Must

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

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

func (*CreateTCPRequestRuleURL) SetBasePath

func (o *CreateTCPRequestRuleURL) 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 (*CreateTCPRequestRuleURL) String

func (o *CreateTCPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*CreateTCPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTCPRequestRuleURL) 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 DeleteTCPRequestRule

type DeleteTCPRequestRule struct {
	Context *middleware.Context
	Handler DeleteTCPRequestRuleHandler
}

DeleteTCPRequestRule swagger:route DELETE /services/haproxy/configuration/tcp_request_rules/{id} TCPRequestRule deleteTcpRequestRule

Delete a TCP Request Rule

Deletes a TCP Request Rule configuration by it's ID from the specified parent.

func NewDeleteTCPRequestRule

func NewDeleteTCPRequestRule(ctx *middleware.Context, handler DeleteTCPRequestRuleHandler) *DeleteTCPRequestRule

NewDeleteTCPRequestRule creates a new http.Handler for the delete TCP request rule operation

func (*DeleteTCPRequestRule) ServeHTTP

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

type DeleteTCPRequestRuleAccepted

type DeleteTCPRequestRuleAccepted struct {
	/*ID of the requested reload

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

DeleteTCPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response deleteTcpRequestRuleAccepted

func NewDeleteTCPRequestRuleAccepted

func NewDeleteTCPRequestRuleAccepted() *DeleteTCPRequestRuleAccepted

NewDeleteTCPRequestRuleAccepted creates DeleteTCPRequestRuleAccepted with default headers values

func (*DeleteTCPRequestRuleAccepted) SetReloadID

func (o *DeleteTCPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*DeleteTCPRequestRuleAccepted) WithReloadID

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

func (*DeleteTCPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type DeleteTCPRequestRuleDefault

type DeleteTCPRequestRuleDefault struct {

	/*Configuration file version

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

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

DeleteTCPRequestRuleDefault General Error

swagger:response deleteTcpRequestRuleDefault

func NewDeleteTCPRequestRuleDefault

func NewDeleteTCPRequestRuleDefault(code int) *DeleteTCPRequestRuleDefault

NewDeleteTCPRequestRuleDefault creates DeleteTCPRequestRuleDefault with default headers values

func (*DeleteTCPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteTCPRequestRuleDefault) SetPayload

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

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

func (*DeleteTCPRequestRuleDefault) SetStatusCode

func (o *DeleteTCPRequestRuleDefault) SetStatusCode(code int)

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

func (*DeleteTCPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteTCPRequestRuleDefault) WithPayload

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

func (*DeleteTCPRequestRuleDefault) WithStatusCode

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

func (*DeleteTCPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type DeleteTCPRequestRuleHandler

type DeleteTCPRequestRuleHandler interface {
	Handle(DeleteTCPRequestRuleParams, interface{}) middleware.Responder
}

DeleteTCPRequestRuleHandler interface for that can handle valid delete TCP request rule params

type DeleteTCPRequestRuleHandlerFunc

type DeleteTCPRequestRuleHandlerFunc func(DeleteTCPRequestRuleParams, interface{}) middleware.Responder

DeleteTCPRequestRuleHandlerFunc turns a function with the right signature into a delete TCP request rule handler

func (DeleteTCPRequestRuleHandlerFunc) Handle

func (fn DeleteTCPRequestRuleHandlerFunc) Handle(params DeleteTCPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTCPRequestRuleNoContent

type DeleteTCPRequestRuleNoContent struct {
}

DeleteTCPRequestRuleNoContent TCP Request Rule deleted

swagger:response deleteTcpRequestRuleNoContent

func NewDeleteTCPRequestRuleNoContent

func NewDeleteTCPRequestRuleNoContent() *DeleteTCPRequestRuleNoContent

NewDeleteTCPRequestRuleNoContent creates DeleteTCPRequestRuleNoContent with default headers values

func (*DeleteTCPRequestRuleNoContent) WriteResponse

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

WriteResponse to the client

type DeleteTCPRequestRuleNotFound

type DeleteTCPRequestRuleNotFound struct {
	/*Configuration file version

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

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

DeleteTCPRequestRuleNotFound The specified resource was not found

swagger:response deleteTcpRequestRuleNotFound

func NewDeleteTCPRequestRuleNotFound

func NewDeleteTCPRequestRuleNotFound() *DeleteTCPRequestRuleNotFound

NewDeleteTCPRequestRuleNotFound creates DeleteTCPRequestRuleNotFound with default headers values

func (*DeleteTCPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteTCPRequestRuleNotFound) SetPayload

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

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

func (*DeleteTCPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteTCPRequestRuleNotFound) WithPayload

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

func (*DeleteTCPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type DeleteTCPRequestRuleParams

type DeleteTCPRequestRuleParams struct {

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

	/*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 Request Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*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
}

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

swagger:parameters deleteTCPRequestRule

func NewDeleteTCPRequestRuleParams

func NewDeleteTCPRequestRuleParams() DeleteTCPRequestRuleParams

NewDeleteTCPRequestRuleParams creates a new DeleteTCPRequestRuleParams object with the default values initialized.

func (*DeleteTCPRequestRuleParams) 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 NewDeleteTCPRequestRuleParams() beforehand.

type DeleteTCPRequestRuleURL

type DeleteTCPRequestRuleURL struct {
	ID int64

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

DeleteTCPRequestRuleURL generates an URL for the delete TCP request rule operation

func (*DeleteTCPRequestRuleURL) Build

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

Build a url path and query string

func (*DeleteTCPRequestRuleURL) BuildFull

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

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

func (*DeleteTCPRequestRuleURL) Must

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

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

func (*DeleteTCPRequestRuleURL) SetBasePath

func (o *DeleteTCPRequestRuleURL) 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 (*DeleteTCPRequestRuleURL) String

func (o *DeleteTCPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*DeleteTCPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTCPRequestRuleURL) 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 GetTCPRequestRule

type GetTCPRequestRule struct {
	Context *middleware.Context
	Handler GetTCPRequestRuleHandler
}

GetTCPRequestRule swagger:route GET /services/haproxy/configuration/tcp_request_rules/{id} TCPRequestRule getTcpRequestRule

Return one TCP Request Rule

Returns one TCP Request Rule configuration by it's ID in the specified parent.

func NewGetTCPRequestRule

func NewGetTCPRequestRule(ctx *middleware.Context, handler GetTCPRequestRuleHandler) *GetTCPRequestRule

NewGetTCPRequestRule creates a new http.Handler for the get TCP request rule operation

func (*GetTCPRequestRule) ServeHTTP

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

type GetTCPRequestRuleDefault

type GetTCPRequestRuleDefault struct {

	/*Configuration file version

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

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

GetTCPRequestRuleDefault General Error

swagger:response getTcpRequestRuleDefault

func NewGetTCPRequestRuleDefault

func NewGetTCPRequestRuleDefault(code int) *GetTCPRequestRuleDefault

NewGetTCPRequestRuleDefault creates GetTCPRequestRuleDefault with default headers values

func (*GetTCPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetTCPRequestRuleDefault) SetPayload

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

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

func (*GetTCPRequestRuleDefault) SetStatusCode

func (o *GetTCPRequestRuleDefault) SetStatusCode(code int)

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

func (*GetTCPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetTCPRequestRuleDefault) WithPayload

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

func (*GetTCPRequestRuleDefault) WithStatusCode

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

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

func (*GetTCPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type GetTCPRequestRuleHandler

type GetTCPRequestRuleHandler interface {
	Handle(GetTCPRequestRuleParams, interface{}) middleware.Responder
}

GetTCPRequestRuleHandler interface for that can handle valid get TCP request rule params

type GetTCPRequestRuleHandlerFunc

type GetTCPRequestRuleHandlerFunc func(GetTCPRequestRuleParams, interface{}) middleware.Responder

GetTCPRequestRuleHandlerFunc turns a function with the right signature into a get TCP request rule handler

func (GetTCPRequestRuleHandlerFunc) Handle

func (fn GetTCPRequestRuleHandlerFunc) Handle(params GetTCPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTCPRequestRuleNotFound

type GetTCPRequestRuleNotFound struct {
	/*Configuration file version

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

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

GetTCPRequestRuleNotFound The specified resource was not found

swagger:response getTcpRequestRuleNotFound

func NewGetTCPRequestRuleNotFound

func NewGetTCPRequestRuleNotFound() *GetTCPRequestRuleNotFound

NewGetTCPRequestRuleNotFound creates GetTCPRequestRuleNotFound with default headers values

func (*GetTCPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*GetTCPRequestRuleNotFound) SetPayload

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

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

func (*GetTCPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*GetTCPRequestRuleNotFound) WithPayload

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

func (*GetTCPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type GetTCPRequestRuleOK

type GetTCPRequestRuleOK struct {
	/*Configuration file version

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

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

GetTCPRequestRuleOK Successful operation

swagger:response getTcpRequestRuleOK

func NewGetTCPRequestRuleOK

func NewGetTCPRequestRuleOK() *GetTCPRequestRuleOK

NewGetTCPRequestRuleOK creates GetTCPRequestRuleOK with default headers values

func (*GetTCPRequestRuleOK) SetConfigurationVersion added in v1.2.2

func (o *GetTCPRequestRuleOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetTCPRequestRuleOK) SetPayload

func (o *GetTCPRequestRuleOK) SetPayload(payload *GetTCPRequestRuleOKBody)

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

func (*GetTCPRequestRuleOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetTCPRequestRuleOK) WithPayload

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

func (*GetTCPRequestRuleOK) WriteResponse

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

WriteResponse to the client

type GetTCPRequestRuleOKBody

type GetTCPRequestRuleOKBody struct {

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

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

GetTCPRequestRuleOKBody get TCP request rule o k body swagger:model GetTCPRequestRuleOKBody

func (*GetTCPRequestRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPRequestRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPRequestRuleOKBody) Validate

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

Validate validates this get TCP request rule o k body

type GetTCPRequestRuleParams

type GetTCPRequestRuleParams struct {

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

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

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

swagger:parameters getTCPRequestRule

func NewGetTCPRequestRuleParams

func NewGetTCPRequestRuleParams() GetTCPRequestRuleParams

NewGetTCPRequestRuleParams creates a new GetTCPRequestRuleParams object no default values defined in spec.

func (*GetTCPRequestRuleParams) BindRequest

func (o *GetTCPRequestRuleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetTCPRequestRuleParams() beforehand.

type GetTCPRequestRuleURL

type GetTCPRequestRuleURL struct {
	ID int64

	ParentName    string
	ParentType    string
	TransactionID *string
	// contains filtered or unexported fields
}

GetTCPRequestRuleURL generates an URL for the get TCP request rule operation

func (*GetTCPRequestRuleURL) Build

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

Build a url path and query string

func (*GetTCPRequestRuleURL) BuildFull

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

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

func (*GetTCPRequestRuleURL) Must

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

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

func (*GetTCPRequestRuleURL) SetBasePath

func (o *GetTCPRequestRuleURL) 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 (*GetTCPRequestRuleURL) String

func (o *GetTCPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*GetTCPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTCPRequestRuleURL) WithBasePath

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

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 GetTCPRequestRules

type GetTCPRequestRules struct {
	Context *middleware.Context
	Handler GetTCPRequestRulesHandler
}

GetTCPRequestRules swagger:route GET /services/haproxy/configuration/tcp_request_rules TCPRequestRule getTcpRequestRules

Return an array of all TCP Request Rules

Returns all TCP Request Rules that are configured in specified parent and parent type.

func NewGetTCPRequestRules

func NewGetTCPRequestRules(ctx *middleware.Context, handler GetTCPRequestRulesHandler) *GetTCPRequestRules

NewGetTCPRequestRules creates a new http.Handler for the get TCP request rules operation

func (*GetTCPRequestRules) ServeHTTP

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

type GetTCPRequestRulesDefault

type GetTCPRequestRulesDefault struct {

	/*Configuration file version

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

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

GetTCPRequestRulesDefault General Error

swagger:response getTcpRequestRulesDefault

func NewGetTCPRequestRulesDefault

func NewGetTCPRequestRulesDefault(code int) *GetTCPRequestRulesDefault

NewGetTCPRequestRulesDefault creates GetTCPRequestRulesDefault with default headers values

func (*GetTCPRequestRulesDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTCPRequestRulesDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetTCPRequestRulesDefault) SetPayload

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

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

func (*GetTCPRequestRulesDefault) SetStatusCode

func (o *GetTCPRequestRulesDefault) SetStatusCode(code int)

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

func (*GetTCPRequestRulesDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetTCPRequestRulesDefault) WithPayload

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

func (*GetTCPRequestRulesDefault) WithStatusCode

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

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

func (*GetTCPRequestRulesDefault) WriteResponse

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

WriteResponse to the client

type GetTCPRequestRulesHandler

type GetTCPRequestRulesHandler interface {
	Handle(GetTCPRequestRulesParams, interface{}) middleware.Responder
}

GetTCPRequestRulesHandler interface for that can handle valid get TCP request rules params

type GetTCPRequestRulesHandlerFunc

type GetTCPRequestRulesHandlerFunc func(GetTCPRequestRulesParams, interface{}) middleware.Responder

GetTCPRequestRulesHandlerFunc turns a function with the right signature into a get TCP request rules handler

func (GetTCPRequestRulesHandlerFunc) Handle

func (fn GetTCPRequestRulesHandlerFunc) Handle(params GetTCPRequestRulesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTCPRequestRulesOK

type GetTCPRequestRulesOK struct {
	/*Configuration file version

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

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

GetTCPRequestRulesOK Successful operation

swagger:response getTcpRequestRulesOK

func NewGetTCPRequestRulesOK

func NewGetTCPRequestRulesOK() *GetTCPRequestRulesOK

NewGetTCPRequestRulesOK creates GetTCPRequestRulesOK with default headers values

func (*GetTCPRequestRulesOK) SetConfigurationVersion added in v1.2.2

func (o *GetTCPRequestRulesOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetTCPRequestRulesOK) SetPayload

func (o *GetTCPRequestRulesOK) SetPayload(payload *GetTCPRequestRulesOKBody)

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

func (*GetTCPRequestRulesOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetTCPRequestRulesOK) WithPayload

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

func (*GetTCPRequestRulesOK) WriteResponse

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

WriteResponse to the client

type GetTCPRequestRulesOKBody

type GetTCPRequestRulesOKBody struct {

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

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

GetTCPRequestRulesOKBody get TCP request rules o k body swagger:model GetTCPRequestRulesOKBody

func (*GetTCPRequestRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPRequestRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPRequestRulesOKBody) Validate

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

Validate validates this get TCP request rules o k body

type GetTCPRequestRulesParams

type GetTCPRequestRulesParams struct {

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

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

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

swagger:parameters getTCPRequestRules

func NewGetTCPRequestRulesParams

func NewGetTCPRequestRulesParams() GetTCPRequestRulesParams

NewGetTCPRequestRulesParams creates a new GetTCPRequestRulesParams object no default values defined in spec.

func (*GetTCPRequestRulesParams) 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 NewGetTCPRequestRulesParams() beforehand.

type GetTCPRequestRulesURL

type GetTCPRequestRulesURL struct {
	ParentName    string
	ParentType    string
	TransactionID *string
	// contains filtered or unexported fields
}

GetTCPRequestRulesURL generates an URL for the get TCP request rules operation

func (*GetTCPRequestRulesURL) Build

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

Build a url path and query string

func (*GetTCPRequestRulesURL) BuildFull

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

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

func (*GetTCPRequestRulesURL) Must

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

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

func (*GetTCPRequestRulesURL) SetBasePath

func (o *GetTCPRequestRulesURL) 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 (*GetTCPRequestRulesURL) String

func (o *GetTCPRequestRulesURL) String() string

String returns the string representation of the path with query string

func (*GetTCPRequestRulesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTCPRequestRulesURL) WithBasePath

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

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 ReplaceTCPRequestRule

type ReplaceTCPRequestRule struct {
	Context *middleware.Context
	Handler ReplaceTCPRequestRuleHandler
}

ReplaceTCPRequestRule swagger:route PUT /services/haproxy/configuration/tcp_request_rules/{id} TCPRequestRule replaceTcpRequestRule

Replace a TCP Request Rule

Replaces a TCP Request Rule configuration by it's ID in the specified parent.

func NewReplaceTCPRequestRule

func NewReplaceTCPRequestRule(ctx *middleware.Context, handler ReplaceTCPRequestRuleHandler) *ReplaceTCPRequestRule

NewReplaceTCPRequestRule creates a new http.Handler for the replace TCP request rule operation

func (*ReplaceTCPRequestRule) ServeHTTP

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

type ReplaceTCPRequestRuleAccepted

type ReplaceTCPRequestRuleAccepted struct {
	/*ID of the requested reload

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

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

ReplaceTCPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response replaceTcpRequestRuleAccepted

func NewReplaceTCPRequestRuleAccepted

func NewReplaceTCPRequestRuleAccepted() *ReplaceTCPRequestRuleAccepted

NewReplaceTCPRequestRuleAccepted creates ReplaceTCPRequestRuleAccepted with default headers values

func (*ReplaceTCPRequestRuleAccepted) SetPayload

func (o *ReplaceTCPRequestRuleAccepted) SetPayload(payload *models.TCPRequestRule)

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

func (*ReplaceTCPRequestRuleAccepted) SetReloadID

func (o *ReplaceTCPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*ReplaceTCPRequestRuleAccepted) WithPayload

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

func (*ReplaceTCPRequestRuleAccepted) WithReloadID

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

func (*ReplaceTCPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceTCPRequestRuleBadRequest

type ReplaceTCPRequestRuleBadRequest struct {
	/*Configuration file version

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

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

ReplaceTCPRequestRuleBadRequest Bad request

swagger:response replaceTcpRequestRuleBadRequest

func NewReplaceTCPRequestRuleBadRequest

func NewReplaceTCPRequestRuleBadRequest() *ReplaceTCPRequestRuleBadRequest

NewReplaceTCPRequestRuleBadRequest creates ReplaceTCPRequestRuleBadRequest with default headers values

func (*ReplaceTCPRequestRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceTCPRequestRuleBadRequest) SetPayload

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

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

func (*ReplaceTCPRequestRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceTCPRequestRuleBadRequest) WithPayload

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

func (*ReplaceTCPRequestRuleBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceTCPRequestRuleDefault

type ReplaceTCPRequestRuleDefault struct {

	/*Configuration file version

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

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

ReplaceTCPRequestRuleDefault General Error

swagger:response replaceTcpRequestRuleDefault

func NewReplaceTCPRequestRuleDefault

func NewReplaceTCPRequestRuleDefault(code int) *ReplaceTCPRequestRuleDefault

NewReplaceTCPRequestRuleDefault creates ReplaceTCPRequestRuleDefault with default headers values

func (*ReplaceTCPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceTCPRequestRuleDefault) SetPayload

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

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

func (*ReplaceTCPRequestRuleDefault) SetStatusCode

func (o *ReplaceTCPRequestRuleDefault) SetStatusCode(code int)

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

func (*ReplaceTCPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceTCPRequestRuleDefault) WithPayload

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

func (*ReplaceTCPRequestRuleDefault) WithStatusCode

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

func (*ReplaceTCPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type ReplaceTCPRequestRuleHandler

type ReplaceTCPRequestRuleHandler interface {
	Handle(ReplaceTCPRequestRuleParams, interface{}) middleware.Responder
}

ReplaceTCPRequestRuleHandler interface for that can handle valid replace TCP request rule params

type ReplaceTCPRequestRuleHandlerFunc

type ReplaceTCPRequestRuleHandlerFunc func(ReplaceTCPRequestRuleParams, interface{}) middleware.Responder

ReplaceTCPRequestRuleHandlerFunc turns a function with the right signature into a replace TCP request rule handler

func (ReplaceTCPRequestRuleHandlerFunc) Handle

func (fn ReplaceTCPRequestRuleHandlerFunc) Handle(params ReplaceTCPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ReplaceTCPRequestRuleNotFound

type ReplaceTCPRequestRuleNotFound struct {
	/*Configuration file version

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

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

ReplaceTCPRequestRuleNotFound The specified resource was not found

swagger:response replaceTcpRequestRuleNotFound

func NewReplaceTCPRequestRuleNotFound

func NewReplaceTCPRequestRuleNotFound() *ReplaceTCPRequestRuleNotFound

NewReplaceTCPRequestRuleNotFound creates ReplaceTCPRequestRuleNotFound with default headers values

func (*ReplaceTCPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceTCPRequestRuleNotFound) SetPayload

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

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

func (*ReplaceTCPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceTCPRequestRuleNotFound) WithPayload

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

func (*ReplaceTCPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type ReplaceTCPRequestRuleOK

type ReplaceTCPRequestRuleOK struct {

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

ReplaceTCPRequestRuleOK TCP Request Rule replaced

swagger:response replaceTcpRequestRuleOK

func NewReplaceTCPRequestRuleOK

func NewReplaceTCPRequestRuleOK() *ReplaceTCPRequestRuleOK

NewReplaceTCPRequestRuleOK creates ReplaceTCPRequestRuleOK with default headers values

func (*ReplaceTCPRequestRuleOK) SetPayload

func (o *ReplaceTCPRequestRuleOK) SetPayload(payload *models.TCPRequestRule)

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

func (*ReplaceTCPRequestRuleOK) WithPayload

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

func (*ReplaceTCPRequestRuleOK) WriteResponse

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

WriteResponse to the client

type ReplaceTCPRequestRuleParams

type ReplaceTCPRequestRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.TCPRequestRule
	/*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 Request Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*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
}

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

swagger:parameters replaceTCPRequestRule

func NewReplaceTCPRequestRuleParams

func NewReplaceTCPRequestRuleParams() ReplaceTCPRequestRuleParams

NewReplaceTCPRequestRuleParams creates a new ReplaceTCPRequestRuleParams object with the default values initialized.

func (*ReplaceTCPRequestRuleParams) 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 NewReplaceTCPRequestRuleParams() beforehand.

type ReplaceTCPRequestRuleURL

type ReplaceTCPRequestRuleURL struct {
	ID int64

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

ReplaceTCPRequestRuleURL generates an URL for the replace TCP request rule operation

func (*ReplaceTCPRequestRuleURL) Build

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

Build a url path and query string

func (*ReplaceTCPRequestRuleURL) BuildFull

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

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

func (*ReplaceTCPRequestRuleURL) Must

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

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

func (*ReplaceTCPRequestRuleURL) SetBasePath

func (o *ReplaceTCPRequestRuleURL) 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 (*ReplaceTCPRequestRuleURL) String

func (o *ReplaceTCPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*ReplaceTCPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceTCPRequestRuleURL) 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