Documentation ¶
Index ¶
- Constants
- type CreateHTTPRequestRule
- type CreateHTTPRequestRuleAccepted
- func (o *CreateHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)
- func (o *CreateHTTPRequestRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleAccepted
- func (o *CreateHTTPRequestRuleAccepted) WithReloadID(reloadID string) *CreateHTTPRequestRuleAccepted
- func (o *CreateHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPRequestRuleBadRequest
- func (o *CreateHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPRequestRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateHTTPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleBadRequest
- func (o *CreateHTTPRequestRuleBadRequest) WithPayload(payload *models.Error) *CreateHTTPRequestRuleBadRequest
- func (o *CreateHTTPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPRequestRuleConflict
- func (o *CreateHTTPRequestRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPRequestRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateHTTPRequestRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleConflict
- func (o *CreateHTTPRequestRuleConflict) WithPayload(payload *models.Error) *CreateHTTPRequestRuleConflict
- func (o *CreateHTTPRequestRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPRequestRuleCreated
- func (o *CreateHTTPRequestRuleCreated) SetPayload(payload *models.HTTPRequestRule)
- func (o *CreateHTTPRequestRuleCreated) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleCreated
- func (o *CreateHTTPRequestRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPRequestRuleDefault
- func (o *CreateHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateHTTPRequestRuleDefault) SetStatusCode(code int)
- func (o *CreateHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleDefault
- func (o *CreateHTTPRequestRuleDefault) WithPayload(payload *models.Error) *CreateHTTPRequestRuleDefault
- func (o *CreateHTTPRequestRuleDefault) WithStatusCode(code int) *CreateHTTPRequestRuleDefault
- func (o *CreateHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPRequestRuleHandler
- type CreateHTTPRequestRuleHandlerFunc
- type CreateHTTPRequestRuleParams
- type CreateHTTPRequestRuleURL
- func (o *CreateHTTPRequestRuleURL) Build() (*url.URL, error)
- func (o *CreateHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateHTTPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateHTTPRequestRuleURL) SetBasePath(bp string)
- func (o *CreateHTTPRequestRuleURL) String() string
- func (o *CreateHTTPRequestRuleURL) StringFull(scheme, host string) string
- func (o *CreateHTTPRequestRuleURL) WithBasePath(bp string) *CreateHTTPRequestRuleURL
- type DeleteHTTPRequestRule
- type DeleteHTTPRequestRuleAccepted
- type DeleteHTTPRequestRuleDefault
- func (o *DeleteHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteHTTPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteHTTPRequestRuleDefault) SetStatusCode(code int)
- func (o *DeleteHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPRequestRuleDefault
- func (o *DeleteHTTPRequestRuleDefault) WithPayload(payload *models.Error) *DeleteHTTPRequestRuleDefault
- func (o *DeleteHTTPRequestRuleDefault) WithStatusCode(code int) *DeleteHTTPRequestRuleDefault
- func (o *DeleteHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHTTPRequestRuleHandler
- type DeleteHTTPRequestRuleHandlerFunc
- type DeleteHTTPRequestRuleNoContent
- type DeleteHTTPRequestRuleNotFound
- func (o *DeleteHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPRequestRuleNotFound
- func (o *DeleteHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *DeleteHTTPRequestRuleNotFound
- func (o *DeleteHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHTTPRequestRuleParams
- type DeleteHTTPRequestRuleURL
- func (o *DeleteHTTPRequestRuleURL) Build() (*url.URL, error)
- func (o *DeleteHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteHTTPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteHTTPRequestRuleURL) SetBasePath(bp string)
- func (o *DeleteHTTPRequestRuleURL) String() string
- func (o *DeleteHTTPRequestRuleURL) StringFull(scheme, host string) string
- func (o *DeleteHTTPRequestRuleURL) WithBasePath(bp string) *DeleteHTTPRequestRuleURL
- type GetHTTPRequestRule
- type GetHTTPRequestRuleDefault
- func (o *GetHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *GetHTTPRequestRuleDefault) SetStatusCode(code int)
- func (o *GetHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleDefault
- func (o *GetHTTPRequestRuleDefault) WithPayload(payload *models.Error) *GetHTTPRequestRuleDefault
- func (o *GetHTTPRequestRuleDefault) WithStatusCode(code int) *GetHTTPRequestRuleDefault
- func (o *GetHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPRequestRuleHandler
- type GetHTTPRequestRuleHandlerFunc
- type GetHTTPRequestRuleNotFound
- func (o *GetHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleNotFound
- func (o *GetHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *GetHTTPRequestRuleNotFound
- func (o *GetHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPRequestRuleOK
- func (o *GetHTTPRequestRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPRequestRuleOK) SetPayload(payload *GetHTTPRequestRuleOKBody)
- func (o *GetHTTPRequestRuleOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleOK
- func (o *GetHTTPRequestRuleOK) WithPayload(payload *GetHTTPRequestRuleOKBody) *GetHTTPRequestRuleOK
- func (o *GetHTTPRequestRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPRequestRuleOKBody
- type GetHTTPRequestRuleParams
- type GetHTTPRequestRuleURL
- func (o *GetHTTPRequestRuleURL) Build() (*url.URL, error)
- func (o *GetHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHTTPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHTTPRequestRuleURL) SetBasePath(bp string)
- func (o *GetHTTPRequestRuleURL) String() string
- func (o *GetHTTPRequestRuleURL) StringFull(scheme, host string) string
- func (o *GetHTTPRequestRuleURL) WithBasePath(bp string) *GetHTTPRequestRuleURL
- type GetHTTPRequestRules
- type GetHTTPRequestRulesDefault
- func (o *GetHTTPRequestRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPRequestRulesDefault) SetPayload(payload *models.Error)
- func (o *GetHTTPRequestRulesDefault) SetStatusCode(code int)
- func (o *GetHTTPRequestRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRulesDefault
- func (o *GetHTTPRequestRulesDefault) WithPayload(payload *models.Error) *GetHTTPRequestRulesDefault
- func (o *GetHTTPRequestRulesDefault) WithStatusCode(code int) *GetHTTPRequestRulesDefault
- func (o *GetHTTPRequestRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPRequestRulesHandler
- type GetHTTPRequestRulesHandlerFunc
- type GetHTTPRequestRulesOK
- func (o *GetHTTPRequestRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPRequestRulesOK) SetPayload(payload *GetHTTPRequestRulesOKBody)
- func (o *GetHTTPRequestRulesOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRulesOK
- func (o *GetHTTPRequestRulesOK) WithPayload(payload *GetHTTPRequestRulesOKBody) *GetHTTPRequestRulesOK
- func (o *GetHTTPRequestRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPRequestRulesOKBody
- type GetHTTPRequestRulesParams
- type GetHTTPRequestRulesURL
- func (o *GetHTTPRequestRulesURL) Build() (*url.URL, error)
- func (o *GetHTTPRequestRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHTTPRequestRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHTTPRequestRulesURL) SetBasePath(bp string)
- func (o *GetHTTPRequestRulesURL) String() string
- func (o *GetHTTPRequestRulesURL) StringFull(scheme, host string) string
- func (o *GetHTTPRequestRulesURL) WithBasePath(bp string) *GetHTTPRequestRulesURL
- type ReplaceHTTPRequestRule
- type ReplaceHTTPRequestRuleAccepted
- func (o *ReplaceHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)
- func (o *ReplaceHTTPRequestRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *ReplaceHTTPRequestRuleAccepted
- func (o *ReplaceHTTPRequestRuleAccepted) WithReloadID(reloadID string) *ReplaceHTTPRequestRuleAccepted
- func (o *ReplaceHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPRequestRuleBadRequest
- func (o *ReplaceHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPRequestRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleBadRequest
- func (o *ReplaceHTTPRequestRuleBadRequest) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleBadRequest
- func (o *ReplaceHTTPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPRequestRuleDefault
- func (o *ReplaceHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPRequestRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPRequestRuleDefault) SetStatusCode(code int)
- func (o *ReplaceHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleDefault
- func (o *ReplaceHTTPRequestRuleDefault) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleDefault
- func (o *ReplaceHTTPRequestRuleDefault) WithStatusCode(code int) *ReplaceHTTPRequestRuleDefault
- func (o *ReplaceHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPRequestRuleHandler
- type ReplaceHTTPRequestRuleHandlerFunc
- type ReplaceHTTPRequestRuleNotFound
- func (o *ReplaceHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleNotFound
- func (o *ReplaceHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleNotFound
- func (o *ReplaceHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPRequestRuleOK
- type ReplaceHTTPRequestRuleParams
- type ReplaceHTTPRequestRuleURL
- func (o *ReplaceHTTPRequestRuleURL) Build() (*url.URL, error)
- func (o *ReplaceHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceHTTPRequestRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceHTTPRequestRuleURL) SetBasePath(bp string)
- func (o *ReplaceHTTPRequestRuleURL) String() string
- func (o *ReplaceHTTPRequestRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceHTTPRequestRuleURL) WithBasePath(bp string) *ReplaceHTTPRequestRuleURL
Constants ¶
const CreateHTTPRequestRuleAcceptedCode int = 202
CreateHTTPRequestRuleAcceptedCode is the HTTP code returned for type CreateHTTPRequestRuleAccepted
const CreateHTTPRequestRuleBadRequestCode int = 400
CreateHTTPRequestRuleBadRequestCode is the HTTP code returned for type CreateHTTPRequestRuleBadRequest
const CreateHTTPRequestRuleConflictCode int = 409
CreateHTTPRequestRuleConflictCode is the HTTP code returned for type CreateHTTPRequestRuleConflict
const CreateHTTPRequestRuleCreatedCode int = 201
CreateHTTPRequestRuleCreatedCode is the HTTP code returned for type CreateHTTPRequestRuleCreated
const DeleteHTTPRequestRuleAcceptedCode int = 202
DeleteHTTPRequestRuleAcceptedCode is the HTTP code returned for type DeleteHTTPRequestRuleAccepted
const DeleteHTTPRequestRuleNoContentCode int = 204
DeleteHTTPRequestRuleNoContentCode is the HTTP code returned for type DeleteHTTPRequestRuleNoContent
const DeleteHTTPRequestRuleNotFoundCode int = 404
DeleteHTTPRequestRuleNotFoundCode is the HTTP code returned for type DeleteHTTPRequestRuleNotFound
const GetHTTPRequestRuleNotFoundCode int = 404
GetHTTPRequestRuleNotFoundCode is the HTTP code returned for type GetHTTPRequestRuleNotFound
const GetHTTPRequestRuleOKCode int = 200
GetHTTPRequestRuleOKCode is the HTTP code returned for type GetHTTPRequestRuleOK
const GetHTTPRequestRulesOKCode int = 200
GetHTTPRequestRulesOKCode is the HTTP code returned for type GetHTTPRequestRulesOK
const ReplaceHTTPRequestRuleAcceptedCode int = 202
ReplaceHTTPRequestRuleAcceptedCode is the HTTP code returned for type ReplaceHTTPRequestRuleAccepted
const ReplaceHTTPRequestRuleBadRequestCode int = 400
ReplaceHTTPRequestRuleBadRequestCode is the HTTP code returned for type ReplaceHTTPRequestRuleBadRequest
const ReplaceHTTPRequestRuleNotFoundCode int = 404
ReplaceHTTPRequestRuleNotFoundCode is the HTTP code returned for type ReplaceHTTPRequestRuleNotFound
const ReplaceHTTPRequestRuleOKCode int = 200
ReplaceHTTPRequestRuleOKCode is the HTTP code returned for type ReplaceHTTPRequestRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateHTTPRequestRule ¶
type CreateHTTPRequestRule struct { Context *middleware.Context Handler CreateHTTPRequestRuleHandler }
CreateHTTPRequestRule swagger:route POST /services/haproxy/configuration/http_request_rules HTTPRequestRule createHttpRequestRule
Add a new HTTP Request Rule ¶
Adds a new HTTP Request Rule of the specified type in the specified parent.
func NewCreateHTTPRequestRule ¶
func NewCreateHTTPRequestRule(ctx *middleware.Context, handler CreateHTTPRequestRuleHandler) *CreateHTTPRequestRule
NewCreateHTTPRequestRule creates a new http.Handler for the create HTTP request rule operation
func (*CreateHTTPRequestRule) ServeHTTP ¶
func (o *CreateHTTPRequestRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateHTTPRequestRuleAccepted ¶
type CreateHTTPRequestRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.HTTPRequestRule `json:"body,omitempty"` }
CreateHTTPRequestRuleAccepted Configuration change accepted and reload requested
swagger:response createHttpRequestRuleAccepted
func NewCreateHTTPRequestRuleAccepted ¶
func NewCreateHTTPRequestRuleAccepted() *CreateHTTPRequestRuleAccepted
NewCreateHTTPRequestRuleAccepted creates CreateHTTPRequestRuleAccepted with default headers values
func (*CreateHTTPRequestRuleAccepted) SetPayload ¶
func (o *CreateHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)
SetPayload sets the payload to the create Http request rule accepted response
func (*CreateHTTPRequestRuleAccepted) SetReloadID ¶
func (o *CreateHTTPRequestRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create Http request rule accepted response
func (*CreateHTTPRequestRuleAccepted) WithPayload ¶
func (o *CreateHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleAccepted
WithPayload adds the payload to the create Http request rule accepted response
func (*CreateHTTPRequestRuleAccepted) WithReloadID ¶
func (o *CreateHTTPRequestRuleAccepted) WithReloadID(reloadID string) *CreateHTTPRequestRuleAccepted
WithReloadID adds the reloadId to the create Http request rule accepted response
func (*CreateHTTPRequestRuleAccepted) WriteResponse ¶
func (o *CreateHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPRequestRuleBadRequest ¶
type CreateHTTPRequestRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateHTTPRequestRuleBadRequest Bad request
swagger:response createHttpRequestRuleBadRequest
func NewCreateHTTPRequestRuleBadRequest ¶
func NewCreateHTTPRequestRuleBadRequest() *CreateHTTPRequestRuleBadRequest
NewCreateHTTPRequestRuleBadRequest creates CreateHTTPRequestRuleBadRequest with default headers values
func (*CreateHTTPRequestRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Http request rule bad request response
func (*CreateHTTPRequestRuleBadRequest) SetPayload ¶
func (o *CreateHTTPRequestRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Http request rule bad request response
func (*CreateHTTPRequestRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the create Http request rule bad request response
func (*CreateHTTPRequestRuleBadRequest) WithPayload ¶
func (o *CreateHTTPRequestRuleBadRequest) WithPayload(payload *models.Error) *CreateHTTPRequestRuleBadRequest
WithPayload adds the payload to the create Http request rule bad request response
func (*CreateHTTPRequestRuleBadRequest) WriteResponse ¶
func (o *CreateHTTPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPRequestRuleConflict ¶
type CreateHTTPRequestRuleConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateHTTPRequestRuleConflict The specified resource already exists
swagger:response createHttpRequestRuleConflict
func NewCreateHTTPRequestRuleConflict ¶
func NewCreateHTTPRequestRuleConflict() *CreateHTTPRequestRuleConflict
NewCreateHTTPRequestRuleConflict creates CreateHTTPRequestRuleConflict with default headers values
func (*CreateHTTPRequestRuleConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Http request rule conflict response
func (*CreateHTTPRequestRuleConflict) SetPayload ¶
func (o *CreateHTTPRequestRuleConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Http request rule conflict response
func (*CreateHTTPRequestRuleConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleConflict
WithConfigurationVersion adds the configurationVersion to the create Http request rule conflict response
func (*CreateHTTPRequestRuleConflict) WithPayload ¶
func (o *CreateHTTPRequestRuleConflict) WithPayload(payload *models.Error) *CreateHTTPRequestRuleConflict
WithPayload adds the payload to the create Http request rule conflict response
func (*CreateHTTPRequestRuleConflict) WriteResponse ¶
func (o *CreateHTTPRequestRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPRequestRuleCreated ¶
type CreateHTTPRequestRuleCreated struct { /* In: Body */ Payload *models.HTTPRequestRule `json:"body,omitempty"` }
CreateHTTPRequestRuleCreated HTTP Request Rule created
swagger:response createHttpRequestRuleCreated
func NewCreateHTTPRequestRuleCreated ¶
func NewCreateHTTPRequestRuleCreated() *CreateHTTPRequestRuleCreated
NewCreateHTTPRequestRuleCreated creates CreateHTTPRequestRuleCreated with default headers values
func (*CreateHTTPRequestRuleCreated) SetPayload ¶
func (o *CreateHTTPRequestRuleCreated) SetPayload(payload *models.HTTPRequestRule)
SetPayload sets the payload to the create Http request rule created response
func (*CreateHTTPRequestRuleCreated) WithPayload ¶
func (o *CreateHTTPRequestRuleCreated) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleCreated
WithPayload adds the payload to the create Http request rule created response
func (*CreateHTTPRequestRuleCreated) WriteResponse ¶
func (o *CreateHTTPRequestRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPRequestRuleDefault ¶
type CreateHTTPRequestRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateHTTPRequestRuleDefault General Error
swagger:response createHttpRequestRuleDefault
func NewCreateHTTPRequestRuleDefault ¶
func NewCreateHTTPRequestRuleDefault(code int) *CreateHTTPRequestRuleDefault
NewCreateHTTPRequestRuleDefault creates CreateHTTPRequestRuleDefault with default headers values
func (*CreateHTTPRequestRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) SetPayload ¶
func (o *CreateHTTPRequestRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) SetStatusCode ¶
func (o *CreateHTTPRequestRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateHTTPRequestRuleDefault
WithConfigurationVersion adds the configurationVersion to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) WithPayload ¶
func (o *CreateHTTPRequestRuleDefault) WithPayload(payload *models.Error) *CreateHTTPRequestRuleDefault
WithPayload adds the payload to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) WithStatusCode ¶
func (o *CreateHTTPRequestRuleDefault) WithStatusCode(code int) *CreateHTTPRequestRuleDefault
WithStatusCode adds the status to the create HTTP request rule default response
func (*CreateHTTPRequestRuleDefault) WriteResponse ¶
func (o *CreateHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPRequestRuleHandler ¶
type CreateHTTPRequestRuleHandler interface {
Handle(CreateHTTPRequestRuleParams, interface{}) middleware.Responder
}
CreateHTTPRequestRuleHandler interface for that can handle valid create HTTP request rule params
type CreateHTTPRequestRuleHandlerFunc ¶
type CreateHTTPRequestRuleHandlerFunc func(CreateHTTPRequestRuleParams, interface{}) middleware.Responder
CreateHTTPRequestRuleHandlerFunc turns a function with the right signature into a create HTTP request rule handler
func (CreateHTTPRequestRuleHandlerFunc) Handle ¶
func (fn CreateHTTPRequestRuleHandlerFunc) Handle(params CreateHTTPRequestRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateHTTPRequestRuleParams ¶
type CreateHTTPRequestRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.HTTPRequestRule /*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 }
CreateHTTPRequestRuleParams contains all the bound params for the create HTTP request rule operation typically these are obtained from a http.Request
swagger:parameters createHTTPRequestRule
func NewCreateHTTPRequestRuleParams ¶
func NewCreateHTTPRequestRuleParams() CreateHTTPRequestRuleParams
NewCreateHTTPRequestRuleParams creates a new CreateHTTPRequestRuleParams object with the default values initialized.
func (*CreateHTTPRequestRuleParams) BindRequest ¶
func (o *CreateHTTPRequestRuleParams) 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 NewCreateHTTPRequestRuleParams() beforehand.
type CreateHTTPRequestRuleURL ¶
type CreateHTTPRequestRuleURL struct { ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateHTTPRequestRuleURL generates an URL for the create HTTP request rule operation
func (*CreateHTTPRequestRuleURL) Build ¶
func (o *CreateHTTPRequestRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateHTTPRequestRuleURL) BuildFull ¶
func (o *CreateHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateHTTPRequestRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateHTTPRequestRuleURL) SetBasePath ¶
func (o *CreateHTTPRequestRuleURL) 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 (*CreateHTTPRequestRuleURL) String ¶
func (o *CreateHTTPRequestRuleURL) String() string
String returns the string representation of the path with query string
func (*CreateHTTPRequestRuleURL) StringFull ¶
func (o *CreateHTTPRequestRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateHTTPRequestRuleURL) WithBasePath ¶
func (o *CreateHTTPRequestRuleURL) WithBasePath(bp string) *CreateHTTPRequestRuleURL
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 DeleteHTTPRequestRule ¶
type DeleteHTTPRequestRule struct { Context *middleware.Context Handler DeleteHTTPRequestRuleHandler }
DeleteHTTPRequestRule swagger:route DELETE /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule deleteHttpRequestRule
Delete a HTTP Request Rule ¶
Deletes a HTTP Request Rule configuration by it's ID from the specified parent.
func NewDeleteHTTPRequestRule ¶
func NewDeleteHTTPRequestRule(ctx *middleware.Context, handler DeleteHTTPRequestRuleHandler) *DeleteHTTPRequestRule
NewDeleteHTTPRequestRule creates a new http.Handler for the delete HTTP request rule operation
func (*DeleteHTTPRequestRule) ServeHTTP ¶
func (o *DeleteHTTPRequestRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteHTTPRequestRuleAccepted ¶
type DeleteHTTPRequestRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteHTTPRequestRuleAccepted Configuration change accepted and reload requested
swagger:response deleteHttpRequestRuleAccepted
func NewDeleteHTTPRequestRuleAccepted ¶
func NewDeleteHTTPRequestRuleAccepted() *DeleteHTTPRequestRuleAccepted
NewDeleteHTTPRequestRuleAccepted creates DeleteHTTPRequestRuleAccepted with default headers values
func (*DeleteHTTPRequestRuleAccepted) SetReloadID ¶
func (o *DeleteHTTPRequestRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete Http request rule accepted response
func (*DeleteHTTPRequestRuleAccepted) WithReloadID ¶
func (o *DeleteHTTPRequestRuleAccepted) WithReloadID(reloadID string) *DeleteHTTPRequestRuleAccepted
WithReloadID adds the reloadId to the delete Http request rule accepted response
func (*DeleteHTTPRequestRuleAccepted) WriteResponse ¶
func (o *DeleteHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPRequestRuleDefault ¶
type DeleteHTTPRequestRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteHTTPRequestRuleDefault General Error
swagger:response deleteHttpRequestRuleDefault
func NewDeleteHTTPRequestRuleDefault ¶
func NewDeleteHTTPRequestRuleDefault(code int) *DeleteHTTPRequestRuleDefault
NewDeleteHTTPRequestRuleDefault creates DeleteHTTPRequestRuleDefault with default headers values
func (*DeleteHTTPRequestRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) SetPayload ¶
func (o *DeleteHTTPRequestRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) SetStatusCode ¶
func (o *DeleteHTTPRequestRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPRequestRuleDefault
WithConfigurationVersion adds the configurationVersion to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) WithPayload ¶
func (o *DeleteHTTPRequestRuleDefault) WithPayload(payload *models.Error) *DeleteHTTPRequestRuleDefault
WithPayload adds the payload to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) WithStatusCode ¶
func (o *DeleteHTTPRequestRuleDefault) WithStatusCode(code int) *DeleteHTTPRequestRuleDefault
WithStatusCode adds the status to the delete HTTP request rule default response
func (*DeleteHTTPRequestRuleDefault) WriteResponse ¶
func (o *DeleteHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPRequestRuleHandler ¶
type DeleteHTTPRequestRuleHandler interface {
Handle(DeleteHTTPRequestRuleParams, interface{}) middleware.Responder
}
DeleteHTTPRequestRuleHandler interface for that can handle valid delete HTTP request rule params
type DeleteHTTPRequestRuleHandlerFunc ¶
type DeleteHTTPRequestRuleHandlerFunc func(DeleteHTTPRequestRuleParams, interface{}) middleware.Responder
DeleteHTTPRequestRuleHandlerFunc turns a function with the right signature into a delete HTTP request rule handler
func (DeleteHTTPRequestRuleHandlerFunc) Handle ¶
func (fn DeleteHTTPRequestRuleHandlerFunc) Handle(params DeleteHTTPRequestRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteHTTPRequestRuleNoContent ¶
type DeleteHTTPRequestRuleNoContent struct { }
DeleteHTTPRequestRuleNoContent HTTP Request Rule deleted
swagger:response deleteHttpRequestRuleNoContent
func NewDeleteHTTPRequestRuleNoContent ¶
func NewDeleteHTTPRequestRuleNoContent() *DeleteHTTPRequestRuleNoContent
NewDeleteHTTPRequestRuleNoContent creates DeleteHTTPRequestRuleNoContent with default headers values
func (*DeleteHTTPRequestRuleNoContent) WriteResponse ¶
func (o *DeleteHTTPRequestRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPRequestRuleNotFound ¶
type DeleteHTTPRequestRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteHTTPRequestRuleNotFound The specified resource was not found
swagger:response deleteHttpRequestRuleNotFound
func NewDeleteHTTPRequestRuleNotFound ¶
func NewDeleteHTTPRequestRuleNotFound() *DeleteHTTPRequestRuleNotFound
NewDeleteHTTPRequestRuleNotFound creates DeleteHTTPRequestRuleNotFound with default headers values
func (*DeleteHTTPRequestRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete Http request rule not found response
func (*DeleteHTTPRequestRuleNotFound) SetPayload ¶
func (o *DeleteHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete Http request rule not found response
func (*DeleteHTTPRequestRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPRequestRuleNotFound
WithConfigurationVersion adds the configurationVersion to the delete Http request rule not found response
func (*DeleteHTTPRequestRuleNotFound) WithPayload ¶
func (o *DeleteHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *DeleteHTTPRequestRuleNotFound
WithPayload adds the payload to the delete Http request rule not found response
func (*DeleteHTTPRequestRuleNotFound) WriteResponse ¶
func (o *DeleteHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPRequestRuleParams ¶
type DeleteHTTPRequestRuleParams 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 /*HTTP 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 }
DeleteHTTPRequestRuleParams contains all the bound params for the delete HTTP request rule operation typically these are obtained from a http.Request
swagger:parameters deleteHTTPRequestRule
func NewDeleteHTTPRequestRuleParams ¶
func NewDeleteHTTPRequestRuleParams() DeleteHTTPRequestRuleParams
NewDeleteHTTPRequestRuleParams creates a new DeleteHTTPRequestRuleParams object with the default values initialized.
func (*DeleteHTTPRequestRuleParams) BindRequest ¶
func (o *DeleteHTTPRequestRuleParams) 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 NewDeleteHTTPRequestRuleParams() beforehand.
type DeleteHTTPRequestRuleURL ¶
type DeleteHTTPRequestRuleURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteHTTPRequestRuleURL generates an URL for the delete HTTP request rule operation
func (*DeleteHTTPRequestRuleURL) Build ¶
func (o *DeleteHTTPRequestRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteHTTPRequestRuleURL) BuildFull ¶
func (o *DeleteHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteHTTPRequestRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteHTTPRequestRuleURL) SetBasePath ¶
func (o *DeleteHTTPRequestRuleURL) 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 (*DeleteHTTPRequestRuleURL) String ¶
func (o *DeleteHTTPRequestRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteHTTPRequestRuleURL) StringFull ¶
func (o *DeleteHTTPRequestRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteHTTPRequestRuleURL) WithBasePath ¶
func (o *DeleteHTTPRequestRuleURL) WithBasePath(bp string) *DeleteHTTPRequestRuleURL
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 GetHTTPRequestRule ¶
type GetHTTPRequestRule struct { Context *middleware.Context Handler GetHTTPRequestRuleHandler }
GetHTTPRequestRule swagger:route GET /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule getHttpRequestRule
Return one HTTP Request Rule ¶
Returns one HTTP Request Rule configuration by it's ID in the specified parent.
func NewGetHTTPRequestRule ¶
func NewGetHTTPRequestRule(ctx *middleware.Context, handler GetHTTPRequestRuleHandler) *GetHTTPRequestRule
NewGetHTTPRequestRule creates a new http.Handler for the get HTTP request rule operation
func (*GetHTTPRequestRule) ServeHTTP ¶
func (o *GetHTTPRequestRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHTTPRequestRuleDefault ¶
type GetHTTPRequestRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetHTTPRequestRuleDefault General Error
swagger:response getHttpRequestRuleDefault
func NewGetHTTPRequestRuleDefault ¶
func NewGetHTTPRequestRuleDefault(code int) *GetHTTPRequestRuleDefault
NewGetHTTPRequestRuleDefault creates GetHTTPRequestRuleDefault with default headers values
func (*GetHTTPRequestRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) SetPayload ¶
func (o *GetHTTPRequestRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) SetStatusCode ¶
func (o *GetHTTPRequestRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleDefault
WithConfigurationVersion adds the configurationVersion to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) WithPayload ¶
func (o *GetHTTPRequestRuleDefault) WithPayload(payload *models.Error) *GetHTTPRequestRuleDefault
WithPayload adds the payload to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) WithStatusCode ¶
func (o *GetHTTPRequestRuleDefault) WithStatusCode(code int) *GetHTTPRequestRuleDefault
WithStatusCode adds the status to the get HTTP request rule default response
func (*GetHTTPRequestRuleDefault) WriteResponse ¶
func (o *GetHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPRequestRuleHandler ¶
type GetHTTPRequestRuleHandler interface {
Handle(GetHTTPRequestRuleParams, interface{}) middleware.Responder
}
GetHTTPRequestRuleHandler interface for that can handle valid get HTTP request rule params
type GetHTTPRequestRuleHandlerFunc ¶
type GetHTTPRequestRuleHandlerFunc func(GetHTTPRequestRuleParams, interface{}) middleware.Responder
GetHTTPRequestRuleHandlerFunc turns a function with the right signature into a get HTTP request rule handler
func (GetHTTPRequestRuleHandlerFunc) Handle ¶
func (fn GetHTTPRequestRuleHandlerFunc) Handle(params GetHTTPRequestRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetHTTPRequestRuleNotFound ¶
type GetHTTPRequestRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetHTTPRequestRuleNotFound The specified resource was not found
swagger:response getHttpRequestRuleNotFound
func NewGetHTTPRequestRuleNotFound ¶
func NewGetHTTPRequestRuleNotFound() *GetHTTPRequestRuleNotFound
NewGetHTTPRequestRuleNotFound creates GetHTTPRequestRuleNotFound with default headers values
func (*GetHTTPRequestRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http request rule not found response
func (*GetHTTPRequestRuleNotFound) SetPayload ¶
func (o *GetHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Http request rule not found response
func (*GetHTTPRequestRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleNotFound
WithConfigurationVersion adds the configurationVersion to the get Http request rule not found response
func (*GetHTTPRequestRuleNotFound) WithPayload ¶
func (o *GetHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *GetHTTPRequestRuleNotFound
WithPayload adds the payload to the get Http request rule not found response
func (*GetHTTPRequestRuleNotFound) WriteResponse ¶
func (o *GetHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPRequestRuleOK ¶
type GetHTTPRequestRuleOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetHTTPRequestRuleOKBody `json:"body,omitempty"` }
GetHTTPRequestRuleOK Successful operation
swagger:response getHttpRequestRuleOK
func NewGetHTTPRequestRuleOK ¶
func NewGetHTTPRequestRuleOK() *GetHTTPRequestRuleOK
NewGetHTTPRequestRuleOK creates GetHTTPRequestRuleOK with default headers values
func (*GetHTTPRequestRuleOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http request rule o k response
func (*GetHTTPRequestRuleOK) SetPayload ¶
func (o *GetHTTPRequestRuleOK) SetPayload(payload *GetHTTPRequestRuleOKBody)
SetPayload sets the payload to the get Http request rule o k response
func (*GetHTTPRequestRuleOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRuleOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRuleOK
WithConfigurationVersion adds the configurationVersion to the get Http request rule o k response
func (*GetHTTPRequestRuleOK) WithPayload ¶
func (o *GetHTTPRequestRuleOK) WithPayload(payload *GetHTTPRequestRuleOKBody) *GetHTTPRequestRuleOK
WithPayload adds the payload to the get Http request rule o k response
func (*GetHTTPRequestRuleOK) WriteResponse ¶
func (o *GetHTTPRequestRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPRequestRuleOKBody ¶
type GetHTTPRequestRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.HTTPRequestRule `json:"data,omitempty"` }
GetHTTPRequestRuleOKBody get HTTP request rule o k body swagger:model GetHTTPRequestRuleOKBody
func (*GetHTTPRequestRuleOKBody) MarshalBinary ¶
func (o *GetHTTPRequestRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHTTPRequestRuleOKBody) UnmarshalBinary ¶
func (o *GetHTTPRequestRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHTTPRequestRuleParams ¶
type GetHTTPRequestRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*HTTP 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 }
GetHTTPRequestRuleParams contains all the bound params for the get HTTP request rule operation typically these are obtained from a http.Request
swagger:parameters getHTTPRequestRule
func NewGetHTTPRequestRuleParams ¶
func NewGetHTTPRequestRuleParams() GetHTTPRequestRuleParams
NewGetHTTPRequestRuleParams creates a new GetHTTPRequestRuleParams object no default values defined in spec.
func (*GetHTTPRequestRuleParams) BindRequest ¶
func (o *GetHTTPRequestRuleParams) 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 NewGetHTTPRequestRuleParams() beforehand.
type GetHTTPRequestRuleURL ¶
type GetHTTPRequestRuleURL struct { ID int64 ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetHTTPRequestRuleURL generates an URL for the get HTTP request rule operation
func (*GetHTTPRequestRuleURL) Build ¶
func (o *GetHTTPRequestRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHTTPRequestRuleURL) BuildFull ¶
func (o *GetHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHTTPRequestRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHTTPRequestRuleURL) SetBasePath ¶
func (o *GetHTTPRequestRuleURL) 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 (*GetHTTPRequestRuleURL) String ¶
func (o *GetHTTPRequestRuleURL) String() string
String returns the string representation of the path with query string
func (*GetHTTPRequestRuleURL) StringFull ¶
func (o *GetHTTPRequestRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHTTPRequestRuleURL) WithBasePath ¶
func (o *GetHTTPRequestRuleURL) WithBasePath(bp string) *GetHTTPRequestRuleURL
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 GetHTTPRequestRules ¶
type GetHTTPRequestRules struct { Context *middleware.Context Handler GetHTTPRequestRulesHandler }
GetHTTPRequestRules swagger:route GET /services/haproxy/configuration/http_request_rules HTTPRequestRule getHttpRequestRules
Return an array of all HTTP Request Rules ¶
Returns all HTTP Request Rules that are configured in specified parent.
func NewGetHTTPRequestRules ¶
func NewGetHTTPRequestRules(ctx *middleware.Context, handler GetHTTPRequestRulesHandler) *GetHTTPRequestRules
NewGetHTTPRequestRules creates a new http.Handler for the get HTTP request rules operation
func (*GetHTTPRequestRules) ServeHTTP ¶
func (o *GetHTTPRequestRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHTTPRequestRulesDefault ¶
type GetHTTPRequestRulesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetHTTPRequestRulesDefault General Error
swagger:response getHttpRequestRulesDefault
func NewGetHTTPRequestRulesDefault ¶
func NewGetHTTPRequestRulesDefault(code int) *GetHTTPRequestRulesDefault
NewGetHTTPRequestRulesDefault creates GetHTTPRequestRulesDefault with default headers values
func (*GetHTTPRequestRulesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRulesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) SetPayload ¶
func (o *GetHTTPRequestRulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) SetStatusCode ¶
func (o *GetHTTPRequestRulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRulesDefault
WithConfigurationVersion adds the configurationVersion to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) WithPayload ¶
func (o *GetHTTPRequestRulesDefault) WithPayload(payload *models.Error) *GetHTTPRequestRulesDefault
WithPayload adds the payload to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) WithStatusCode ¶
func (o *GetHTTPRequestRulesDefault) WithStatusCode(code int) *GetHTTPRequestRulesDefault
WithStatusCode adds the status to the get HTTP request rules default response
func (*GetHTTPRequestRulesDefault) WriteResponse ¶
func (o *GetHTTPRequestRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPRequestRulesHandler ¶
type GetHTTPRequestRulesHandler interface {
Handle(GetHTTPRequestRulesParams, interface{}) middleware.Responder
}
GetHTTPRequestRulesHandler interface for that can handle valid get HTTP request rules params
type GetHTTPRequestRulesHandlerFunc ¶
type GetHTTPRequestRulesHandlerFunc func(GetHTTPRequestRulesParams, interface{}) middleware.Responder
GetHTTPRequestRulesHandlerFunc turns a function with the right signature into a get HTTP request rules handler
func (GetHTTPRequestRulesHandlerFunc) Handle ¶
func (fn GetHTTPRequestRulesHandlerFunc) Handle(params GetHTTPRequestRulesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetHTTPRequestRulesOK ¶
type GetHTTPRequestRulesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetHTTPRequestRulesOKBody `json:"body,omitempty"` }
GetHTTPRequestRulesOK Successful operation
swagger:response getHttpRequestRulesOK
func NewGetHTTPRequestRulesOK ¶
func NewGetHTTPRequestRulesOK() *GetHTTPRequestRulesOK
NewGetHTTPRequestRulesOK creates GetHTTPRequestRulesOK with default headers values
func (*GetHTTPRequestRulesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRulesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http request rules o k response
func (*GetHTTPRequestRulesOK) SetPayload ¶
func (o *GetHTTPRequestRulesOK) SetPayload(payload *GetHTTPRequestRulesOKBody)
SetPayload sets the payload to the get Http request rules o k response
func (*GetHTTPRequestRulesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPRequestRulesOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPRequestRulesOK
WithConfigurationVersion adds the configurationVersion to the get Http request rules o k response
func (*GetHTTPRequestRulesOK) WithPayload ¶
func (o *GetHTTPRequestRulesOK) WithPayload(payload *GetHTTPRequestRulesOKBody) *GetHTTPRequestRulesOK
WithPayload adds the payload to the get Http request rules o k response
func (*GetHTTPRequestRulesOK) WriteResponse ¶
func (o *GetHTTPRequestRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPRequestRulesOKBody ¶
type GetHTTPRequestRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.HTTPRequestRules `json:"data"` }
GetHTTPRequestRulesOKBody get HTTP request rules o k body swagger:model GetHTTPRequestRulesOKBody
func (*GetHTTPRequestRulesOKBody) MarshalBinary ¶
func (o *GetHTTPRequestRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHTTPRequestRulesOKBody) UnmarshalBinary ¶
func (o *GetHTTPRequestRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHTTPRequestRulesParams ¶
type GetHTTPRequestRulesParams 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 }
GetHTTPRequestRulesParams contains all the bound params for the get HTTP request rules operation typically these are obtained from a http.Request
swagger:parameters getHTTPRequestRules
func NewGetHTTPRequestRulesParams ¶
func NewGetHTTPRequestRulesParams() GetHTTPRequestRulesParams
NewGetHTTPRequestRulesParams creates a new GetHTTPRequestRulesParams object no default values defined in spec.
func (*GetHTTPRequestRulesParams) BindRequest ¶
func (o *GetHTTPRequestRulesParams) 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 NewGetHTTPRequestRulesParams() beforehand.
type GetHTTPRequestRulesURL ¶
type GetHTTPRequestRulesURL struct { ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetHTTPRequestRulesURL generates an URL for the get HTTP request rules operation
func (*GetHTTPRequestRulesURL) Build ¶
func (o *GetHTTPRequestRulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHTTPRequestRulesURL) BuildFull ¶
func (o *GetHTTPRequestRulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHTTPRequestRulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHTTPRequestRulesURL) SetBasePath ¶
func (o *GetHTTPRequestRulesURL) 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 (*GetHTTPRequestRulesURL) String ¶
func (o *GetHTTPRequestRulesURL) String() string
String returns the string representation of the path with query string
func (*GetHTTPRequestRulesURL) StringFull ¶
func (o *GetHTTPRequestRulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHTTPRequestRulesURL) WithBasePath ¶
func (o *GetHTTPRequestRulesURL) WithBasePath(bp string) *GetHTTPRequestRulesURL
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 ReplaceHTTPRequestRule ¶
type ReplaceHTTPRequestRule struct { Context *middleware.Context Handler ReplaceHTTPRequestRuleHandler }
ReplaceHTTPRequestRule swagger:route PUT /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule replaceHttpRequestRule
Replace a HTTP Request Rule ¶
Replaces a HTTP Request Rule configuration by it's ID in the specified parent.
func NewReplaceHTTPRequestRule ¶
func NewReplaceHTTPRequestRule(ctx *middleware.Context, handler ReplaceHTTPRequestRuleHandler) *ReplaceHTTPRequestRule
NewReplaceHTTPRequestRule creates a new http.Handler for the replace HTTP request rule operation
func (*ReplaceHTTPRequestRule) ServeHTTP ¶
func (o *ReplaceHTTPRequestRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceHTTPRequestRuleAccepted ¶
type ReplaceHTTPRequestRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.HTTPRequestRule `json:"body,omitempty"` }
ReplaceHTTPRequestRuleAccepted Configuration change accepted and reload requested
swagger:response replaceHttpRequestRuleAccepted
func NewReplaceHTTPRequestRuleAccepted ¶
func NewReplaceHTTPRequestRuleAccepted() *ReplaceHTTPRequestRuleAccepted
NewReplaceHTTPRequestRuleAccepted creates ReplaceHTTPRequestRuleAccepted with default headers values
func (*ReplaceHTTPRequestRuleAccepted) SetPayload ¶
func (o *ReplaceHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)
SetPayload sets the payload to the replace Http request rule accepted response
func (*ReplaceHTTPRequestRuleAccepted) SetReloadID ¶
func (o *ReplaceHTTPRequestRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace Http request rule accepted response
func (*ReplaceHTTPRequestRuleAccepted) WithPayload ¶
func (o *ReplaceHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *ReplaceHTTPRequestRuleAccepted
WithPayload adds the payload to the replace Http request rule accepted response
func (*ReplaceHTTPRequestRuleAccepted) WithReloadID ¶
func (o *ReplaceHTTPRequestRuleAccepted) WithReloadID(reloadID string) *ReplaceHTTPRequestRuleAccepted
WithReloadID adds the reloadId to the replace Http request rule accepted response
func (*ReplaceHTTPRequestRuleAccepted) WriteResponse ¶
func (o *ReplaceHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPRequestRuleBadRequest ¶
type ReplaceHTTPRequestRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceHTTPRequestRuleBadRequest Bad request
swagger:response replaceHttpRequestRuleBadRequest
func NewReplaceHTTPRequestRuleBadRequest ¶
func NewReplaceHTTPRequestRuleBadRequest() *ReplaceHTTPRequestRuleBadRequest
NewReplaceHTTPRequestRuleBadRequest creates ReplaceHTTPRequestRuleBadRequest with default headers values
func (*ReplaceHTTPRequestRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Http request rule bad request response
func (*ReplaceHTTPRequestRuleBadRequest) SetPayload ¶
func (o *ReplaceHTTPRequestRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Http request rule bad request response
func (*ReplaceHTTPRequestRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the replace Http request rule bad request response
func (*ReplaceHTTPRequestRuleBadRequest) WithPayload ¶
func (o *ReplaceHTTPRequestRuleBadRequest) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleBadRequest
WithPayload adds the payload to the replace Http request rule bad request response
func (*ReplaceHTTPRequestRuleBadRequest) WriteResponse ¶
func (o *ReplaceHTTPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPRequestRuleDefault ¶
type ReplaceHTTPRequestRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceHTTPRequestRuleDefault General Error
swagger:response replaceHttpRequestRuleDefault
func NewReplaceHTTPRequestRuleDefault ¶
func NewReplaceHTTPRequestRuleDefault(code int) *ReplaceHTTPRequestRuleDefault
NewReplaceHTTPRequestRuleDefault creates ReplaceHTTPRequestRuleDefault with default headers values
func (*ReplaceHTTPRequestRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) SetPayload ¶
func (o *ReplaceHTTPRequestRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) SetStatusCode ¶
func (o *ReplaceHTTPRequestRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleDefault
WithConfigurationVersion adds the configurationVersion to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) WithPayload ¶
func (o *ReplaceHTTPRequestRuleDefault) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleDefault
WithPayload adds the payload to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) WithStatusCode ¶
func (o *ReplaceHTTPRequestRuleDefault) WithStatusCode(code int) *ReplaceHTTPRequestRuleDefault
WithStatusCode adds the status to the replace HTTP request rule default response
func (*ReplaceHTTPRequestRuleDefault) WriteResponse ¶
func (o *ReplaceHTTPRequestRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPRequestRuleHandler ¶
type ReplaceHTTPRequestRuleHandler interface {
Handle(ReplaceHTTPRequestRuleParams, interface{}) middleware.Responder
}
ReplaceHTTPRequestRuleHandler interface for that can handle valid replace HTTP request rule params
type ReplaceHTTPRequestRuleHandlerFunc ¶
type ReplaceHTTPRequestRuleHandlerFunc func(ReplaceHTTPRequestRuleParams, interface{}) middleware.Responder
ReplaceHTTPRequestRuleHandlerFunc turns a function with the right signature into a replace HTTP request rule handler
func (ReplaceHTTPRequestRuleHandlerFunc) Handle ¶
func (fn ReplaceHTTPRequestRuleHandlerFunc) Handle(params ReplaceHTTPRequestRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceHTTPRequestRuleNotFound ¶
type ReplaceHTTPRequestRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceHTTPRequestRuleNotFound The specified resource was not found
swagger:response replaceHttpRequestRuleNotFound
func NewReplaceHTTPRequestRuleNotFound ¶
func NewReplaceHTTPRequestRuleNotFound() *ReplaceHTTPRequestRuleNotFound
NewReplaceHTTPRequestRuleNotFound creates ReplaceHTTPRequestRuleNotFound with default headers values
func (*ReplaceHTTPRequestRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Http request rule not found response
func (*ReplaceHTTPRequestRuleNotFound) SetPayload ¶
func (o *ReplaceHTTPRequestRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Http request rule not found response
func (*ReplaceHTTPRequestRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPRequestRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPRequestRuleNotFound
WithConfigurationVersion adds the configurationVersion to the replace Http request rule not found response
func (*ReplaceHTTPRequestRuleNotFound) WithPayload ¶
func (o *ReplaceHTTPRequestRuleNotFound) WithPayload(payload *models.Error) *ReplaceHTTPRequestRuleNotFound
WithPayload adds the payload to the replace Http request rule not found response
func (*ReplaceHTTPRequestRuleNotFound) WriteResponse ¶
func (o *ReplaceHTTPRequestRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPRequestRuleOK ¶
type ReplaceHTTPRequestRuleOK struct { /* In: Body */ Payload *models.HTTPRequestRule `json:"body,omitempty"` }
ReplaceHTTPRequestRuleOK HTTP Request Rule replaced
swagger:response replaceHttpRequestRuleOK
func NewReplaceHTTPRequestRuleOK ¶
func NewReplaceHTTPRequestRuleOK() *ReplaceHTTPRequestRuleOK
NewReplaceHTTPRequestRuleOK creates ReplaceHTTPRequestRuleOK with default headers values
func (*ReplaceHTTPRequestRuleOK) SetPayload ¶
func (o *ReplaceHTTPRequestRuleOK) SetPayload(payload *models.HTTPRequestRule)
SetPayload sets the payload to the replace Http request rule o k response
func (*ReplaceHTTPRequestRuleOK) WithPayload ¶
func (o *ReplaceHTTPRequestRuleOK) WithPayload(payload *models.HTTPRequestRule) *ReplaceHTTPRequestRuleOK
WithPayload adds the payload to the replace Http request rule o k response
func (*ReplaceHTTPRequestRuleOK) WriteResponse ¶
func (o *ReplaceHTTPRequestRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPRequestRuleParams ¶
type ReplaceHTTPRequestRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.HTTPRequestRule /*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 /*HTTP 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 }
ReplaceHTTPRequestRuleParams contains all the bound params for the replace HTTP request rule operation typically these are obtained from a http.Request
swagger:parameters replaceHTTPRequestRule
func NewReplaceHTTPRequestRuleParams ¶
func NewReplaceHTTPRequestRuleParams() ReplaceHTTPRequestRuleParams
NewReplaceHTTPRequestRuleParams creates a new ReplaceHTTPRequestRuleParams object with the default values initialized.
func (*ReplaceHTTPRequestRuleParams) BindRequest ¶
func (o *ReplaceHTTPRequestRuleParams) 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 NewReplaceHTTPRequestRuleParams() beforehand.
type ReplaceHTTPRequestRuleURL ¶
type ReplaceHTTPRequestRuleURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceHTTPRequestRuleURL generates an URL for the replace HTTP request rule operation
func (*ReplaceHTTPRequestRuleURL) Build ¶
func (o *ReplaceHTTPRequestRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceHTTPRequestRuleURL) BuildFull ¶
func (o *ReplaceHTTPRequestRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceHTTPRequestRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceHTTPRequestRuleURL) SetBasePath ¶
func (o *ReplaceHTTPRequestRuleURL) 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 (*ReplaceHTTPRequestRuleURL) String ¶
func (o *ReplaceHTTPRequestRuleURL) String() string
String returns the string representation of the path with query string
func (*ReplaceHTTPRequestRuleURL) StringFull ¶
func (o *ReplaceHTTPRequestRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceHTTPRequestRuleURL) WithBasePath ¶
func (o *ReplaceHTTPRequestRuleURL) WithBasePath(bp string) *ReplaceHTTPRequestRuleURL
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_http_request_rule.go
- create_http_request_rule_parameters.go
- create_http_request_rule_responses.go
- create_http_request_rule_urlbuilder.go
- delete_http_request_rule.go
- delete_http_request_rule_parameters.go
- delete_http_request_rule_responses.go
- delete_http_request_rule_urlbuilder.go
- get_http_request_rule.go
- get_http_request_rule_parameters.go
- get_http_request_rule_responses.go
- get_http_request_rule_urlbuilder.go
- get_http_request_rules.go
- get_http_request_rules_parameters.go
- get_http_request_rules_responses.go
- get_http_request_rules_urlbuilder.go
- replace_http_request_rule.go
- replace_http_request_rule_parameters.go
- replace_http_request_rule_responses.go
- replace_http_request_rule_urlbuilder.go