Documentation ¶
Index ¶
- Constants
- type CreateTCPRequestRule
- type CreateTCPRequestRuleAccepted
- func (o *CreateTCPRequestRuleAccepted) SetPayload(payload *models.TCPRequestRule)
- func (o *CreateTCPRequestRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateTCPRequestRuleAccepted) WithPayload(payload *models.TCPRequestRule) *CreateTCPRequestRuleAccepted
- func (o *CreateTCPRequestRuleAccepted) WithReloadID(reloadID string) *CreateTCPRequestRuleAccepted
- func (o *CreateTCPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPRequestRuleBadRequest
- func (o *CreateTCPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPRequestRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateTCPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateTCPRequestRuleBadRequest
- func (o *CreateTCPRequestRuleBadRequest) WithPayload(payload *models.Error) *CreateTCPRequestRuleBadRequest
- func (o *CreateTCPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPRequestRuleConflict
- func (o *CreateTCPRequestRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPRequestRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateTCPRequestRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateTCPRequestRuleConflict
- func (o *CreateTCPRequestRuleConflict) WithPayload(payload *models.Error) *CreateTCPRequestRuleConflict
- func (o *CreateTCPRequestRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPRequestRuleCreated
- type CreateTCPRequestRuleDefault
- func (o *CreateTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateTCPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateTCPRequestRuleDefault) SetStatusCode(code int)
- func (o *CreateTCPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateTCPRequestRuleDefault
- func (o *CreateTCPRequestRuleDefault) WithPayload(payload *models.Error) *CreateTCPRequestRuleDefault
- func (o *CreateTCPRequestRuleDefault) WithStatusCode(code int) *CreateTCPRequestRuleDefault
- func (o *CreateTCPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateTCPRequestRuleHandler
- type CreateTCPRequestRuleHandlerFunc
- type CreateTCPRequestRuleParams
- type CreateTCPRequestRuleURL
- func (o *CreateTCPRequestRuleURL) Build() (*url.URL, error)
- func (o *CreateTCPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateTCPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateTCPRequestRuleURL) SetBasePath(bp string)
- func (o *CreateTCPRequestRuleURL) String() string
- func (o *CreateTCPRequestRuleURL) StringFull(scheme, host string) string
- func (o *CreateTCPRequestRuleURL) WithBasePath(bp string) *CreateTCPRequestRuleURL
- type DeleteTCPRequestRule
- type DeleteTCPRequestRuleAccepted
- type DeleteTCPRequestRuleDefault
- func (o *DeleteTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteTCPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteTCPRequestRuleDefault) SetStatusCode(code int)
- func (o *DeleteTCPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteTCPRequestRuleDefault
- func (o *DeleteTCPRequestRuleDefault) WithPayload(payload *models.Error) *DeleteTCPRequestRuleDefault
- func (o *DeleteTCPRequestRuleDefault) WithStatusCode(code int) *DeleteTCPRequestRuleDefault
- func (o *DeleteTCPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTCPRequestRuleHandler
- type DeleteTCPRequestRuleHandlerFunc
- type DeleteTCPRequestRuleNoContent
- type DeleteTCPRequestRuleNotFound
- func (o *DeleteTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteTCPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteTCPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteTCPRequestRuleNotFound
- func (o *DeleteTCPRequestRuleNotFound) WithPayload(payload *models.Error) *DeleteTCPRequestRuleNotFound
- func (o *DeleteTCPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteTCPRequestRuleParams
- type DeleteTCPRequestRuleURL
- func (o *DeleteTCPRequestRuleURL) Build() (*url.URL, error)
- func (o *DeleteTCPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTCPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTCPRequestRuleURL) SetBasePath(bp string)
- func (o *DeleteTCPRequestRuleURL) String() string
- func (o *DeleteTCPRequestRuleURL) StringFull(scheme, host string) string
- func (o *DeleteTCPRequestRuleURL) WithBasePath(bp string) *DeleteTCPRequestRuleURL
- type GetTCPRequestRule
- type GetTCPRequestRuleDefault
- func (o *GetTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *GetTCPRequestRuleDefault) SetStatusCode(code int)
- func (o *GetTCPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPRequestRuleDefault
- func (o *GetTCPRequestRuleDefault) WithPayload(payload *models.Error) *GetTCPRequestRuleDefault
- func (o *GetTCPRequestRuleDefault) WithStatusCode(code int) *GetTCPRequestRuleDefault
- func (o *GetTCPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPRequestRuleHandler
- type GetTCPRequestRuleHandlerFunc
- type GetTCPRequestRuleNotFound
- func (o *GetTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetTCPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetTCPRequestRuleNotFound
- func (o *GetTCPRequestRuleNotFound) WithPayload(payload *models.Error) *GetTCPRequestRuleNotFound
- func (o *GetTCPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPRequestRuleOK
- func (o *GetTCPRequestRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPRequestRuleOK) SetPayload(payload *GetTCPRequestRuleOKBody)
- func (o *GetTCPRequestRuleOK) WithConfigurationVersion(configurationVersion int64) *GetTCPRequestRuleOK
- func (o *GetTCPRequestRuleOK) WithPayload(payload *GetTCPRequestRuleOKBody) *GetTCPRequestRuleOK
- func (o *GetTCPRequestRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPRequestRuleOKBody
- type GetTCPRequestRuleParams
- type GetTCPRequestRuleURL
- func (o *GetTCPRequestRuleURL) Build() (*url.URL, error)
- func (o *GetTCPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTCPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTCPRequestRuleURL) SetBasePath(bp string)
- func (o *GetTCPRequestRuleURL) String() string
- func (o *GetTCPRequestRuleURL) StringFull(scheme, host string) string
- func (o *GetTCPRequestRuleURL) WithBasePath(bp string) *GetTCPRequestRuleURL
- type GetTCPRequestRules
- type GetTCPRequestRulesDefault
- func (o *GetTCPRequestRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPRequestRulesDefault) SetPayload(payload *models.Error)
- func (o *GetTCPRequestRulesDefault) SetStatusCode(code int)
- func (o *GetTCPRequestRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetTCPRequestRulesDefault
- func (o *GetTCPRequestRulesDefault) WithPayload(payload *models.Error) *GetTCPRequestRulesDefault
- func (o *GetTCPRequestRulesDefault) WithStatusCode(code int) *GetTCPRequestRulesDefault
- func (o *GetTCPRequestRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPRequestRulesHandler
- type GetTCPRequestRulesHandlerFunc
- type GetTCPRequestRulesOK
- func (o *GetTCPRequestRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetTCPRequestRulesOK) SetPayload(payload *GetTCPRequestRulesOKBody)
- func (o *GetTCPRequestRulesOK) WithConfigurationVersion(configurationVersion int64) *GetTCPRequestRulesOK
- func (o *GetTCPRequestRulesOK) WithPayload(payload *GetTCPRequestRulesOKBody) *GetTCPRequestRulesOK
- func (o *GetTCPRequestRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetTCPRequestRulesOKBody
- type GetTCPRequestRulesParams
- type GetTCPRequestRulesURL
- func (o *GetTCPRequestRulesURL) Build() (*url.URL, error)
- func (o *GetTCPRequestRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTCPRequestRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTCPRequestRulesURL) SetBasePath(bp string)
- func (o *GetTCPRequestRulesURL) String() string
- func (o *GetTCPRequestRulesURL) StringFull(scheme, host string) string
- func (o *GetTCPRequestRulesURL) WithBasePath(bp string) *GetTCPRequestRulesURL
- type ReplaceTCPRequestRule
- type ReplaceTCPRequestRuleAccepted
- func (o *ReplaceTCPRequestRuleAccepted) SetPayload(payload *models.TCPRequestRule)
- func (o *ReplaceTCPRequestRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceTCPRequestRuleAccepted) WithPayload(payload *models.TCPRequestRule) *ReplaceTCPRequestRuleAccepted
- func (o *ReplaceTCPRequestRuleAccepted) WithReloadID(reloadID string) *ReplaceTCPRequestRuleAccepted
- func (o *ReplaceTCPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPRequestRuleBadRequest
- func (o *ReplaceTCPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPRequestRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceTCPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPRequestRuleBadRequest
- func (o *ReplaceTCPRequestRuleBadRequest) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleBadRequest
- func (o *ReplaceTCPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPRequestRuleDefault
- func (o *ReplaceTCPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceTCPRequestRuleDefault) SetStatusCode(code int)
- func (o *ReplaceTCPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPRequestRuleDefault
- func (o *ReplaceTCPRequestRuleDefault) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleDefault
- func (o *ReplaceTCPRequestRuleDefault) WithStatusCode(code int) *ReplaceTCPRequestRuleDefault
- func (o *ReplaceTCPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPRequestRuleHandler
- type ReplaceTCPRequestRuleHandlerFunc
- type ReplaceTCPRequestRuleNotFound
- func (o *ReplaceTCPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceTCPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceTCPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceTCPRequestRuleNotFound
- func (o *ReplaceTCPRequestRuleNotFound) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleNotFound
- func (o *ReplaceTCPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceTCPRequestRuleOK
- type ReplaceTCPRequestRuleParams
- type ReplaceTCPRequestRuleURL
- func (o *ReplaceTCPRequestRuleURL) Build() (*url.URL, error)
- func (o *ReplaceTCPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceTCPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceTCPRequestRuleURL) SetBasePath(bp string)
- func (o *ReplaceTCPRequestRuleURL) String() string
- func (o *ReplaceTCPRequestRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceTCPRequestRuleURL) WithBasePath(bp string) *ReplaceTCPRequestRuleURL
Constants ¶
const CreateTCPRequestRuleAcceptedCode int = 202
CreateTCPRequestRuleAcceptedCode is the HTTP code returned for type CreateTCPRequestRuleAccepted
const CreateTCPRequestRuleBadRequestCode int = 400
CreateTCPRequestRuleBadRequestCode is the HTTP code returned for type CreateTCPRequestRuleBadRequest
const CreateTCPRequestRuleConflictCode int = 409
CreateTCPRequestRuleConflictCode is the HTTP code returned for type CreateTCPRequestRuleConflict
const CreateTCPRequestRuleCreatedCode int = 201
CreateTCPRequestRuleCreatedCode is the HTTP code returned for type CreateTCPRequestRuleCreated
const DeleteTCPRequestRuleAcceptedCode int = 202
DeleteTCPRequestRuleAcceptedCode is the HTTP code returned for type DeleteTCPRequestRuleAccepted
const DeleteTCPRequestRuleNoContentCode int = 204
DeleteTCPRequestRuleNoContentCode is the HTTP code returned for type DeleteTCPRequestRuleNoContent
const DeleteTCPRequestRuleNotFoundCode int = 404
DeleteTCPRequestRuleNotFoundCode is the HTTP code returned for type DeleteTCPRequestRuleNotFound
const GetTCPRequestRuleNotFoundCode int = 404
GetTCPRequestRuleNotFoundCode is the HTTP code returned for type GetTCPRequestRuleNotFound
const GetTCPRequestRuleOKCode int = 200
GetTCPRequestRuleOKCode is the HTTP code returned for type GetTCPRequestRuleOK
const GetTCPRequestRulesOKCode int = 200
GetTCPRequestRulesOKCode is the HTTP code returned for type GetTCPRequestRulesOK
const ReplaceTCPRequestRuleAcceptedCode int = 202
ReplaceTCPRequestRuleAcceptedCode is the HTTP code returned for type ReplaceTCPRequestRuleAccepted
const ReplaceTCPRequestRuleBadRequestCode int = 400
ReplaceTCPRequestRuleBadRequestCode is the HTTP code returned for type ReplaceTCPRequestRuleBadRequest
const ReplaceTCPRequestRuleNotFoundCode int = 404
ReplaceTCPRequestRuleNotFoundCode is the HTTP code returned for type ReplaceTCPRequestRuleNotFound
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 ¶
func (o *CreateTCPRequestRuleAccepted) WithPayload(payload *models.TCPRequestRule) *CreateTCPRequestRuleAccepted
WithPayload adds the payload to the create Tcp request rule accepted response
func (*CreateTCPRequestRuleAccepted) WithReloadID ¶
func (o *CreateTCPRequestRuleAccepted) WithReloadID(reloadID string) *CreateTCPRequestRuleAccepted
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 ¶
func (o *CreateTCPRequestRuleBadRequest) WithPayload(payload *models.Error) *CreateTCPRequestRuleBadRequest
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 ¶
func (o *CreateTCPRequestRuleConflict) WithPayload(payload *models.Error) *CreateTCPRequestRuleConflict
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 ¶
func (o *CreateTCPRequestRuleCreated) WithPayload(payload *models.TCPRequestRule) *CreateTCPRequestRuleCreated
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 ¶
func (o *CreateTCPRequestRuleDefault) WithPayload(payload *models.Error) *CreateTCPRequestRuleDefault
WithPayload adds the payload to the create TCP request rule default response
func (*CreateTCPRequestRuleDefault) WithStatusCode ¶
func (o *CreateTCPRequestRuleDefault) WithStatusCode(code int) *CreateTCPRequestRuleDefault
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 ¶
func (o *CreateTCPRequestRuleParams) 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 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 ¶
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 ¶
func (o *CreateTCPRequestRuleURL) WithBasePath(bp string) *CreateTCPRequestRuleURL
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 ¶
func (o *DeleteTCPRequestRuleAccepted) WithReloadID(reloadID string) *DeleteTCPRequestRuleAccepted
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 ¶
func (o *DeleteTCPRequestRuleDefault) WithPayload(payload *models.Error) *DeleteTCPRequestRuleDefault
WithPayload adds the payload to the delete TCP request rule default response
func (*DeleteTCPRequestRuleDefault) WithStatusCode ¶
func (o *DeleteTCPRequestRuleDefault) WithStatusCode(code int) *DeleteTCPRequestRuleDefault
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 ¶
func (o *DeleteTCPRequestRuleNotFound) WithPayload(payload *models.Error) *DeleteTCPRequestRuleNotFound
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 ¶
func (o *DeleteTCPRequestRuleParams) 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 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 ¶
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 ¶
func (o *DeleteTCPRequestRuleURL) WithBasePath(bp string) *DeleteTCPRequestRuleURL
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 ¶
func (o *GetTCPRequestRuleDefault) WithPayload(payload *models.Error) *GetTCPRequestRuleDefault
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 ¶
func (o *GetTCPRequestRuleNotFound) WithPayload(payload *models.Error) *GetTCPRequestRuleNotFound
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 ¶
func (o *GetTCPRequestRuleOK) WithPayload(payload *GetTCPRequestRuleOKBody) *GetTCPRequestRuleOK
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
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 ¶
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 ¶
func (o *GetTCPRequestRulesDefault) WithPayload(payload *models.Error) *GetTCPRequestRulesDefault
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 ¶
func (o *GetTCPRequestRulesOK) WithPayload(payload *GetTCPRequestRulesOKBody) *GetTCPRequestRulesOK
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
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 ¶
func (o *GetTCPRequestRulesParams) 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 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 ¶
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 ¶
func (o *ReplaceTCPRequestRuleAccepted) WithPayload(payload *models.TCPRequestRule) *ReplaceTCPRequestRuleAccepted
WithPayload adds the payload to the replace Tcp request rule accepted response
func (*ReplaceTCPRequestRuleAccepted) WithReloadID ¶
func (o *ReplaceTCPRequestRuleAccepted) WithReloadID(reloadID string) *ReplaceTCPRequestRuleAccepted
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 ¶
func (o *ReplaceTCPRequestRuleBadRequest) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleBadRequest
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 ¶
func (o *ReplaceTCPRequestRuleDefault) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleDefault
WithPayload adds the payload to the replace TCP request rule default response
func (*ReplaceTCPRequestRuleDefault) WithStatusCode ¶
func (o *ReplaceTCPRequestRuleDefault) WithStatusCode(code int) *ReplaceTCPRequestRuleDefault
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 ¶
func (o *ReplaceTCPRequestRuleNotFound) WithPayload(payload *models.Error) *ReplaceTCPRequestRuleNotFound
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 ¶
func (o *ReplaceTCPRequestRuleOK) WithPayload(payload *models.TCPRequestRule) *ReplaceTCPRequestRuleOK
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 ¶
func (o *ReplaceTCPRequestRuleParams) 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 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 ¶
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 ¶
func (o *ReplaceTCPRequestRuleURL) WithBasePath(bp string) *ReplaceTCPRequestRuleURL
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
Source Files ¶
- create_tcp_request_rule.go
- create_tcp_request_rule_parameters.go
- create_tcp_request_rule_responses.go
- create_tcp_request_rule_urlbuilder.go
- delete_tcp_request_rule.go
- delete_tcp_request_rule_parameters.go
- delete_tcp_request_rule_responses.go
- delete_tcp_request_rule_urlbuilder.go
- get_tcp_request_rule.go
- get_tcp_request_rule_parameters.go
- get_tcp_request_rule_responses.go
- get_tcp_request_rule_urlbuilder.go
- get_tcp_request_rules.go
- get_tcp_request_rules_parameters.go
- get_tcp_request_rules_responses.go
- get_tcp_request_rules_urlbuilder.go
- replace_tcp_request_rule.go
- replace_tcp_request_rule_parameters.go
- replace_tcp_request_rule_responses.go
- replace_tcp_request_rule_urlbuilder.go