Documentation ¶
Index ¶
- Constants
- type CreateHTTPResponseRule
- type CreateHTTPResponseRuleAccepted
- func (o *CreateHTTPResponseRuleAccepted) SetPayload(payload *models.HTTPResponseRule)
- func (o *CreateHTTPResponseRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateHTTPResponseRuleAccepted) WithPayload(payload *models.HTTPResponseRule) *CreateHTTPResponseRuleAccepted
- func (o *CreateHTTPResponseRuleAccepted) WithReloadID(reloadID string) *CreateHTTPResponseRuleAccepted
- func (o *CreateHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPResponseRuleBadRequest
- func (o *CreateHTTPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPResponseRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateHTTPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleBadRequest
- func (o *CreateHTTPResponseRuleBadRequest) WithPayload(payload *models.Error) *CreateHTTPResponseRuleBadRequest
- func (o *CreateHTTPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPResponseRuleConflict
- func (o *CreateHTTPResponseRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPResponseRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateHTTPResponseRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleConflict
- func (o *CreateHTTPResponseRuleConflict) WithPayload(payload *models.Error) *CreateHTTPResponseRuleConflict
- func (o *CreateHTTPResponseRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPResponseRuleCreated
- func (o *CreateHTTPResponseRuleCreated) SetPayload(payload *models.HTTPResponseRule)
- func (o *CreateHTTPResponseRuleCreated) WithPayload(payload *models.HTTPResponseRule) *CreateHTTPResponseRuleCreated
- func (o *CreateHTTPResponseRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPResponseRuleDefault
- func (o *CreateHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateHTTPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateHTTPResponseRuleDefault) SetStatusCode(code int)
- func (o *CreateHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleDefault
- func (o *CreateHTTPResponseRuleDefault) WithPayload(payload *models.Error) *CreateHTTPResponseRuleDefault
- func (o *CreateHTTPResponseRuleDefault) WithStatusCode(code int) *CreateHTTPResponseRuleDefault
- func (o *CreateHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHTTPResponseRuleHandler
- type CreateHTTPResponseRuleHandlerFunc
- type CreateHTTPResponseRuleParams
- type CreateHTTPResponseRuleURL
- func (o *CreateHTTPResponseRuleURL) Build() (*url.URL, error)
- func (o *CreateHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateHTTPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateHTTPResponseRuleURL) SetBasePath(bp string)
- func (o *CreateHTTPResponseRuleURL) String() string
- func (o *CreateHTTPResponseRuleURL) StringFull(scheme, host string) string
- func (o *CreateHTTPResponseRuleURL) WithBasePath(bp string) *CreateHTTPResponseRuleURL
- type DeleteHTTPResponseRule
- type DeleteHTTPResponseRuleAccepted
- type DeleteHTTPResponseRuleDefault
- func (o *DeleteHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteHTTPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteHTTPResponseRuleDefault) SetStatusCode(code int)
- func (o *DeleteHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPResponseRuleDefault
- func (o *DeleteHTTPResponseRuleDefault) WithPayload(payload *models.Error) *DeleteHTTPResponseRuleDefault
- func (o *DeleteHTTPResponseRuleDefault) WithStatusCode(code int) *DeleteHTTPResponseRuleDefault
- func (o *DeleteHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHTTPResponseRuleHandler
- type DeleteHTTPResponseRuleHandlerFunc
- type DeleteHTTPResponseRuleNoContent
- type DeleteHTTPResponseRuleNotFound
- func (o *DeleteHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPResponseRuleNotFound
- func (o *DeleteHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteHTTPResponseRuleNotFound
- func (o *DeleteHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHTTPResponseRuleParams
- type DeleteHTTPResponseRuleURL
- func (o *DeleteHTTPResponseRuleURL) Build() (*url.URL, error)
- func (o *DeleteHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteHTTPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteHTTPResponseRuleURL) SetBasePath(bp string)
- func (o *DeleteHTTPResponseRuleURL) String() string
- func (o *DeleteHTTPResponseRuleURL) StringFull(scheme, host string) string
- func (o *DeleteHTTPResponseRuleURL) WithBasePath(bp string) *DeleteHTTPResponseRuleURL
- type GetHTTPResponseRule
- type GetHTTPResponseRuleDefault
- func (o *GetHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *GetHTTPResponseRuleDefault) SetStatusCode(code int)
- func (o *GetHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleDefault
- func (o *GetHTTPResponseRuleDefault) WithPayload(payload *models.Error) *GetHTTPResponseRuleDefault
- func (o *GetHTTPResponseRuleDefault) WithStatusCode(code int) *GetHTTPResponseRuleDefault
- func (o *GetHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPResponseRuleHandler
- type GetHTTPResponseRuleHandlerFunc
- type GetHTTPResponseRuleNotFound
- func (o *GetHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleNotFound
- func (o *GetHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *GetHTTPResponseRuleNotFound
- func (o *GetHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPResponseRuleOK
- func (o *GetHTTPResponseRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPResponseRuleOK) SetPayload(payload *GetHTTPResponseRuleOKBody)
- func (o *GetHTTPResponseRuleOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleOK
- func (o *GetHTTPResponseRuleOK) WithPayload(payload *GetHTTPResponseRuleOKBody) *GetHTTPResponseRuleOK
- func (o *GetHTTPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPResponseRuleOKBody
- type GetHTTPResponseRuleParams
- type GetHTTPResponseRuleURL
- func (o *GetHTTPResponseRuleURL) Build() (*url.URL, error)
- func (o *GetHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHTTPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHTTPResponseRuleURL) SetBasePath(bp string)
- func (o *GetHTTPResponseRuleURL) String() string
- func (o *GetHTTPResponseRuleURL) StringFull(scheme, host string) string
- func (o *GetHTTPResponseRuleURL) WithBasePath(bp string) *GetHTTPResponseRuleURL
- type GetHTTPResponseRules
- type GetHTTPResponseRulesDefault
- func (o *GetHTTPResponseRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPResponseRulesDefault) SetPayload(payload *models.Error)
- func (o *GetHTTPResponseRulesDefault) SetStatusCode(code int)
- func (o *GetHTTPResponseRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRulesDefault
- func (o *GetHTTPResponseRulesDefault) WithPayload(payload *models.Error) *GetHTTPResponseRulesDefault
- func (o *GetHTTPResponseRulesDefault) WithStatusCode(code int) *GetHTTPResponseRulesDefault
- func (o *GetHTTPResponseRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPResponseRulesHandler
- type GetHTTPResponseRulesHandlerFunc
- type GetHTTPResponseRulesOK
- func (o *GetHTTPResponseRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetHTTPResponseRulesOK) SetPayload(payload *GetHTTPResponseRulesOKBody)
- func (o *GetHTTPResponseRulesOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRulesOK
- func (o *GetHTTPResponseRulesOK) WithPayload(payload *GetHTTPResponseRulesOKBody) *GetHTTPResponseRulesOK
- func (o *GetHTTPResponseRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHTTPResponseRulesOKBody
- type GetHTTPResponseRulesParams
- type GetHTTPResponseRulesURL
- func (o *GetHTTPResponseRulesURL) Build() (*url.URL, error)
- func (o *GetHTTPResponseRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHTTPResponseRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHTTPResponseRulesURL) SetBasePath(bp string)
- func (o *GetHTTPResponseRulesURL) String() string
- func (o *GetHTTPResponseRulesURL) StringFull(scheme, host string) string
- func (o *GetHTTPResponseRulesURL) WithBasePath(bp string) *GetHTTPResponseRulesURL
- type ReplaceHTTPResponseRule
- type ReplaceHTTPResponseRuleAccepted
- func (o *ReplaceHTTPResponseRuleAccepted) SetPayload(payload *models.HTTPResponseRule)
- func (o *ReplaceHTTPResponseRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceHTTPResponseRuleAccepted) WithPayload(payload *models.HTTPResponseRule) *ReplaceHTTPResponseRuleAccepted
- func (o *ReplaceHTTPResponseRuleAccepted) WithReloadID(reloadID string) *ReplaceHTTPResponseRuleAccepted
- func (o *ReplaceHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPResponseRuleBadRequest
- func (o *ReplaceHTTPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPResponseRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleBadRequest
- func (o *ReplaceHTTPResponseRuleBadRequest) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleBadRequest
- func (o *ReplaceHTTPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPResponseRuleDefault
- func (o *ReplaceHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPResponseRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPResponseRuleDefault) SetStatusCode(code int)
- func (o *ReplaceHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleDefault
- func (o *ReplaceHTTPResponseRuleDefault) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleDefault
- func (o *ReplaceHTTPResponseRuleDefault) WithStatusCode(code int) *ReplaceHTTPResponseRuleDefault
- func (o *ReplaceHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPResponseRuleHandler
- type ReplaceHTTPResponseRuleHandlerFunc
- type ReplaceHTTPResponseRuleNotFound
- func (o *ReplaceHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleNotFound
- func (o *ReplaceHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleNotFound
- func (o *ReplaceHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceHTTPResponseRuleOK
- type ReplaceHTTPResponseRuleParams
- type ReplaceHTTPResponseRuleURL
- func (o *ReplaceHTTPResponseRuleURL) Build() (*url.URL, error)
- func (o *ReplaceHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceHTTPResponseRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceHTTPResponseRuleURL) SetBasePath(bp string)
- func (o *ReplaceHTTPResponseRuleURL) String() string
- func (o *ReplaceHTTPResponseRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceHTTPResponseRuleURL) WithBasePath(bp string) *ReplaceHTTPResponseRuleURL
Constants ¶
const CreateHTTPResponseRuleAcceptedCode int = 202
CreateHTTPResponseRuleAcceptedCode is the HTTP code returned for type CreateHTTPResponseRuleAccepted
const CreateHTTPResponseRuleBadRequestCode int = 400
CreateHTTPResponseRuleBadRequestCode is the HTTP code returned for type CreateHTTPResponseRuleBadRequest
const CreateHTTPResponseRuleConflictCode int = 409
CreateHTTPResponseRuleConflictCode is the HTTP code returned for type CreateHTTPResponseRuleConflict
const CreateHTTPResponseRuleCreatedCode int = 201
CreateHTTPResponseRuleCreatedCode is the HTTP code returned for type CreateHTTPResponseRuleCreated
const DeleteHTTPResponseRuleAcceptedCode int = 202
DeleteHTTPResponseRuleAcceptedCode is the HTTP code returned for type DeleteHTTPResponseRuleAccepted
const DeleteHTTPResponseRuleNoContentCode int = 204
DeleteHTTPResponseRuleNoContentCode is the HTTP code returned for type DeleteHTTPResponseRuleNoContent
const DeleteHTTPResponseRuleNotFoundCode int = 404
DeleteHTTPResponseRuleNotFoundCode is the HTTP code returned for type DeleteHTTPResponseRuleNotFound
const GetHTTPResponseRuleNotFoundCode int = 404
GetHTTPResponseRuleNotFoundCode is the HTTP code returned for type GetHTTPResponseRuleNotFound
const GetHTTPResponseRuleOKCode int = 200
GetHTTPResponseRuleOKCode is the HTTP code returned for type GetHTTPResponseRuleOK
const GetHTTPResponseRulesOKCode int = 200
GetHTTPResponseRulesOKCode is the HTTP code returned for type GetHTTPResponseRulesOK
const ReplaceHTTPResponseRuleAcceptedCode int = 202
ReplaceHTTPResponseRuleAcceptedCode is the HTTP code returned for type ReplaceHTTPResponseRuleAccepted
const ReplaceHTTPResponseRuleBadRequestCode int = 400
ReplaceHTTPResponseRuleBadRequestCode is the HTTP code returned for type ReplaceHTTPResponseRuleBadRequest
const ReplaceHTTPResponseRuleNotFoundCode int = 404
ReplaceHTTPResponseRuleNotFoundCode is the HTTP code returned for type ReplaceHTTPResponseRuleNotFound
const ReplaceHTTPResponseRuleOKCode int = 200
ReplaceHTTPResponseRuleOKCode is the HTTP code returned for type ReplaceHTTPResponseRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateHTTPResponseRule ¶
type CreateHTTPResponseRule struct { Context *middleware.Context Handler CreateHTTPResponseRuleHandler }
CreateHTTPResponseRule swagger:route POST /services/haproxy/configuration/http_response_rules HTTPResponseRule createHttpResponseRule
Add a new HTTP Response Rule ¶
Adds a new HTTP Response Rule of the specified type in the specified parent.
func NewCreateHTTPResponseRule ¶
func NewCreateHTTPResponseRule(ctx *middleware.Context, handler CreateHTTPResponseRuleHandler) *CreateHTTPResponseRule
NewCreateHTTPResponseRule creates a new http.Handler for the create HTTP response rule operation
func (*CreateHTTPResponseRule) ServeHTTP ¶
func (o *CreateHTTPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateHTTPResponseRuleAccepted ¶
type CreateHTTPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.HTTPResponseRule `json:"body,omitempty"` }
CreateHTTPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response createHttpResponseRuleAccepted
func NewCreateHTTPResponseRuleAccepted ¶
func NewCreateHTTPResponseRuleAccepted() *CreateHTTPResponseRuleAccepted
NewCreateHTTPResponseRuleAccepted creates CreateHTTPResponseRuleAccepted with default headers values
func (*CreateHTTPResponseRuleAccepted) SetPayload ¶
func (o *CreateHTTPResponseRuleAccepted) SetPayload(payload *models.HTTPResponseRule)
SetPayload sets the payload to the create Http response rule accepted response
func (*CreateHTTPResponseRuleAccepted) SetReloadID ¶
func (o *CreateHTTPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create Http response rule accepted response
func (*CreateHTTPResponseRuleAccepted) WithPayload ¶
func (o *CreateHTTPResponseRuleAccepted) WithPayload(payload *models.HTTPResponseRule) *CreateHTTPResponseRuleAccepted
WithPayload adds the payload to the create Http response rule accepted response
func (*CreateHTTPResponseRuleAccepted) WithReloadID ¶
func (o *CreateHTTPResponseRuleAccepted) WithReloadID(reloadID string) *CreateHTTPResponseRuleAccepted
WithReloadID adds the reloadId to the create Http response rule accepted response
func (*CreateHTTPResponseRuleAccepted) WriteResponse ¶
func (o *CreateHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPResponseRuleBadRequest ¶
type CreateHTTPResponseRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateHTTPResponseRuleBadRequest Bad request
swagger:response createHttpResponseRuleBadRequest
func NewCreateHTTPResponseRuleBadRequest ¶
func NewCreateHTTPResponseRuleBadRequest() *CreateHTTPResponseRuleBadRequest
NewCreateHTTPResponseRuleBadRequest creates CreateHTTPResponseRuleBadRequest with default headers values
func (*CreateHTTPResponseRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Http response rule bad request response
func (*CreateHTTPResponseRuleBadRequest) SetPayload ¶
func (o *CreateHTTPResponseRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Http response rule bad request response
func (*CreateHTTPResponseRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the create Http response rule bad request response
func (*CreateHTTPResponseRuleBadRequest) WithPayload ¶
func (o *CreateHTTPResponseRuleBadRequest) WithPayload(payload *models.Error) *CreateHTTPResponseRuleBadRequest
WithPayload adds the payload to the create Http response rule bad request response
func (*CreateHTTPResponseRuleBadRequest) WriteResponse ¶
func (o *CreateHTTPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPResponseRuleConflict ¶
type CreateHTTPResponseRuleConflict struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateHTTPResponseRuleConflict The specified resource already exists
swagger:response createHttpResponseRuleConflict
func NewCreateHTTPResponseRuleConflict ¶
func NewCreateHTTPResponseRuleConflict() *CreateHTTPResponseRuleConflict
NewCreateHTTPResponseRuleConflict creates CreateHTTPResponseRuleConflict with default headers values
func (*CreateHTTPResponseRuleConflict) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleConflict) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create Http response rule conflict response
func (*CreateHTTPResponseRuleConflict) SetPayload ¶
func (o *CreateHTTPResponseRuleConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Http response rule conflict response
func (*CreateHTTPResponseRuleConflict) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleConflict
WithConfigurationVersion adds the configurationVersion to the create Http response rule conflict response
func (*CreateHTTPResponseRuleConflict) WithPayload ¶
func (o *CreateHTTPResponseRuleConflict) WithPayload(payload *models.Error) *CreateHTTPResponseRuleConflict
WithPayload adds the payload to the create Http response rule conflict response
func (*CreateHTTPResponseRuleConflict) WriteResponse ¶
func (o *CreateHTTPResponseRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPResponseRuleCreated ¶
type CreateHTTPResponseRuleCreated struct { /* In: Body */ Payload *models.HTTPResponseRule `json:"body,omitempty"` }
CreateHTTPResponseRuleCreated HTTP Response Rule created
swagger:response createHttpResponseRuleCreated
func NewCreateHTTPResponseRuleCreated ¶
func NewCreateHTTPResponseRuleCreated() *CreateHTTPResponseRuleCreated
NewCreateHTTPResponseRuleCreated creates CreateHTTPResponseRuleCreated with default headers values
func (*CreateHTTPResponseRuleCreated) SetPayload ¶
func (o *CreateHTTPResponseRuleCreated) SetPayload(payload *models.HTTPResponseRule)
SetPayload sets the payload to the create Http response rule created response
func (*CreateHTTPResponseRuleCreated) WithPayload ¶
func (o *CreateHTTPResponseRuleCreated) WithPayload(payload *models.HTTPResponseRule) *CreateHTTPResponseRuleCreated
WithPayload adds the payload to the create Http response rule created response
func (*CreateHTTPResponseRuleCreated) WriteResponse ¶
func (o *CreateHTTPResponseRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPResponseRuleDefault ¶
type CreateHTTPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateHTTPResponseRuleDefault General Error
swagger:response createHttpResponseRuleDefault
func NewCreateHTTPResponseRuleDefault ¶
func NewCreateHTTPResponseRuleDefault(code int) *CreateHTTPResponseRuleDefault
NewCreateHTTPResponseRuleDefault creates CreateHTTPResponseRuleDefault with default headers values
func (*CreateHTTPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) SetPayload ¶
func (o *CreateHTTPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) SetStatusCode ¶
func (o *CreateHTTPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *CreateHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateHTTPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) WithPayload ¶
func (o *CreateHTTPResponseRuleDefault) WithPayload(payload *models.Error) *CreateHTTPResponseRuleDefault
WithPayload adds the payload to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) WithStatusCode ¶
func (o *CreateHTTPResponseRuleDefault) WithStatusCode(code int) *CreateHTTPResponseRuleDefault
WithStatusCode adds the status to the create HTTP response rule default response
func (*CreateHTTPResponseRuleDefault) WriteResponse ¶
func (o *CreateHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHTTPResponseRuleHandler ¶
type CreateHTTPResponseRuleHandler interface {
Handle(CreateHTTPResponseRuleParams, interface{}) middleware.Responder
}
CreateHTTPResponseRuleHandler interface for that can handle valid create HTTP response rule params
type CreateHTTPResponseRuleHandlerFunc ¶
type CreateHTTPResponseRuleHandlerFunc func(CreateHTTPResponseRuleParams, interface{}) middleware.Responder
CreateHTTPResponseRuleHandlerFunc turns a function with the right signature into a create HTTP response rule handler
func (CreateHTTPResponseRuleHandlerFunc) Handle ¶
func (fn CreateHTTPResponseRuleHandlerFunc) Handle(params CreateHTTPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateHTTPResponseRuleParams ¶
type CreateHTTPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.HTTPResponseRule /*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 }
CreateHTTPResponseRuleParams contains all the bound params for the create HTTP response rule operation typically these are obtained from a http.Request
swagger:parameters createHTTPResponseRule
func NewCreateHTTPResponseRuleParams ¶
func NewCreateHTTPResponseRuleParams() CreateHTTPResponseRuleParams
NewCreateHTTPResponseRuleParams creates a new CreateHTTPResponseRuleParams object with the default values initialized.
func (*CreateHTTPResponseRuleParams) BindRequest ¶
func (o *CreateHTTPResponseRuleParams) 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 NewCreateHTTPResponseRuleParams() beforehand.
type CreateHTTPResponseRuleURL ¶
type CreateHTTPResponseRuleURL struct { ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateHTTPResponseRuleURL generates an URL for the create HTTP response rule operation
func (*CreateHTTPResponseRuleURL) Build ¶
func (o *CreateHTTPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateHTTPResponseRuleURL) BuildFull ¶
func (o *CreateHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateHTTPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateHTTPResponseRuleURL) SetBasePath ¶
func (o *CreateHTTPResponseRuleURL) 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 (*CreateHTTPResponseRuleURL) String ¶
func (o *CreateHTTPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*CreateHTTPResponseRuleURL) StringFull ¶
func (o *CreateHTTPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateHTTPResponseRuleURL) WithBasePath ¶
func (o *CreateHTTPResponseRuleURL) WithBasePath(bp string) *CreateHTTPResponseRuleURL
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 DeleteHTTPResponseRule ¶
type DeleteHTTPResponseRule struct { Context *middleware.Context Handler DeleteHTTPResponseRuleHandler }
DeleteHTTPResponseRule swagger:route DELETE /services/haproxy/configuration/http_response_rules/{id} HTTPResponseRule deleteHttpResponseRule
Delete a HTTP Response Rule ¶
Deletes a HTTP Response Rule configuration by it's ID from the specified parent.
func NewDeleteHTTPResponseRule ¶
func NewDeleteHTTPResponseRule(ctx *middleware.Context, handler DeleteHTTPResponseRuleHandler) *DeleteHTTPResponseRule
NewDeleteHTTPResponseRule creates a new http.Handler for the delete HTTP response rule operation
func (*DeleteHTTPResponseRule) ServeHTTP ¶
func (o *DeleteHTTPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteHTTPResponseRuleAccepted ¶
type DeleteHTTPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteHTTPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response deleteHttpResponseRuleAccepted
func NewDeleteHTTPResponseRuleAccepted ¶
func NewDeleteHTTPResponseRuleAccepted() *DeleteHTTPResponseRuleAccepted
NewDeleteHTTPResponseRuleAccepted creates DeleteHTTPResponseRuleAccepted with default headers values
func (*DeleteHTTPResponseRuleAccepted) SetReloadID ¶
func (o *DeleteHTTPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete Http response rule accepted response
func (*DeleteHTTPResponseRuleAccepted) WithReloadID ¶
func (o *DeleteHTTPResponseRuleAccepted) WithReloadID(reloadID string) *DeleteHTTPResponseRuleAccepted
WithReloadID adds the reloadId to the delete Http response rule accepted response
func (*DeleteHTTPResponseRuleAccepted) WriteResponse ¶
func (o *DeleteHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPResponseRuleDefault ¶
type DeleteHTTPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteHTTPResponseRuleDefault General Error
swagger:response deleteHttpResponseRuleDefault
func NewDeleteHTTPResponseRuleDefault ¶
func NewDeleteHTTPResponseRuleDefault(code int) *DeleteHTTPResponseRuleDefault
NewDeleteHTTPResponseRuleDefault creates DeleteHTTPResponseRuleDefault with default headers values
func (*DeleteHTTPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) SetPayload ¶
func (o *DeleteHTTPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) SetStatusCode ¶
func (o *DeleteHTTPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) WithPayload ¶
func (o *DeleteHTTPResponseRuleDefault) WithPayload(payload *models.Error) *DeleteHTTPResponseRuleDefault
WithPayload adds the payload to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) WithStatusCode ¶
func (o *DeleteHTTPResponseRuleDefault) WithStatusCode(code int) *DeleteHTTPResponseRuleDefault
WithStatusCode adds the status to the delete HTTP response rule default response
func (*DeleteHTTPResponseRuleDefault) WriteResponse ¶
func (o *DeleteHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPResponseRuleHandler ¶
type DeleteHTTPResponseRuleHandler interface {
Handle(DeleteHTTPResponseRuleParams, interface{}) middleware.Responder
}
DeleteHTTPResponseRuleHandler interface for that can handle valid delete HTTP response rule params
type DeleteHTTPResponseRuleHandlerFunc ¶
type DeleteHTTPResponseRuleHandlerFunc func(DeleteHTTPResponseRuleParams, interface{}) middleware.Responder
DeleteHTTPResponseRuleHandlerFunc turns a function with the right signature into a delete HTTP response rule handler
func (DeleteHTTPResponseRuleHandlerFunc) Handle ¶
func (fn DeleteHTTPResponseRuleHandlerFunc) Handle(params DeleteHTTPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteHTTPResponseRuleNoContent ¶
type DeleteHTTPResponseRuleNoContent struct { }
DeleteHTTPResponseRuleNoContent HTTP Response Rule deleted
swagger:response deleteHttpResponseRuleNoContent
func NewDeleteHTTPResponseRuleNoContent ¶
func NewDeleteHTTPResponseRuleNoContent() *DeleteHTTPResponseRuleNoContent
NewDeleteHTTPResponseRuleNoContent creates DeleteHTTPResponseRuleNoContent with default headers values
func (*DeleteHTTPResponseRuleNoContent) WriteResponse ¶
func (o *DeleteHTTPResponseRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPResponseRuleNotFound ¶
type DeleteHTTPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteHTTPResponseRuleNotFound The specified resource was not found
swagger:response deleteHttpResponseRuleNotFound
func NewDeleteHTTPResponseRuleNotFound ¶
func NewDeleteHTTPResponseRuleNotFound() *DeleteHTTPResponseRuleNotFound
NewDeleteHTTPResponseRuleNotFound creates DeleteHTTPResponseRuleNotFound with default headers values
func (*DeleteHTTPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the delete Http response rule not found response
func (*DeleteHTTPResponseRuleNotFound) SetPayload ¶
func (o *DeleteHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete Http response rule not found response
func (*DeleteHTTPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *DeleteHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteHTTPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the delete Http response rule not found response
func (*DeleteHTTPResponseRuleNotFound) WithPayload ¶
func (o *DeleteHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *DeleteHTTPResponseRuleNotFound
WithPayload adds the payload to the delete Http response rule not found response
func (*DeleteHTTPResponseRuleNotFound) WriteResponse ¶
func (o *DeleteHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHTTPResponseRuleParams ¶
type DeleteHTTPResponseRuleParams 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 Response 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 }
DeleteHTTPResponseRuleParams contains all the bound params for the delete HTTP response rule operation typically these are obtained from a http.Request
swagger:parameters deleteHTTPResponseRule
func NewDeleteHTTPResponseRuleParams ¶
func NewDeleteHTTPResponseRuleParams() DeleteHTTPResponseRuleParams
NewDeleteHTTPResponseRuleParams creates a new DeleteHTTPResponseRuleParams object with the default values initialized.
func (*DeleteHTTPResponseRuleParams) BindRequest ¶
func (o *DeleteHTTPResponseRuleParams) 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 NewDeleteHTTPResponseRuleParams() beforehand.
type DeleteHTTPResponseRuleURL ¶
type DeleteHTTPResponseRuleURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteHTTPResponseRuleURL generates an URL for the delete HTTP response rule operation
func (*DeleteHTTPResponseRuleURL) Build ¶
func (o *DeleteHTTPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteHTTPResponseRuleURL) BuildFull ¶
func (o *DeleteHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteHTTPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteHTTPResponseRuleURL) SetBasePath ¶
func (o *DeleteHTTPResponseRuleURL) 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 (*DeleteHTTPResponseRuleURL) String ¶
func (o *DeleteHTTPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteHTTPResponseRuleURL) StringFull ¶
func (o *DeleteHTTPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteHTTPResponseRuleURL) WithBasePath ¶
func (o *DeleteHTTPResponseRuleURL) WithBasePath(bp string) *DeleteHTTPResponseRuleURL
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 GetHTTPResponseRule ¶
type GetHTTPResponseRule struct { Context *middleware.Context Handler GetHTTPResponseRuleHandler }
GetHTTPResponseRule swagger:route GET /services/haproxy/configuration/http_response_rules/{id} HTTPResponseRule getHttpResponseRule
Return one HTTP Response Rule ¶
Returns one HTTP Response Rule configuration by it's ID in the specified parent.
func NewGetHTTPResponseRule ¶
func NewGetHTTPResponseRule(ctx *middleware.Context, handler GetHTTPResponseRuleHandler) *GetHTTPResponseRule
NewGetHTTPResponseRule creates a new http.Handler for the get HTTP response rule operation
func (*GetHTTPResponseRule) ServeHTTP ¶
func (o *GetHTTPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHTTPResponseRuleDefault ¶
type GetHTTPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetHTTPResponseRuleDefault General Error
swagger:response getHttpResponseRuleDefault
func NewGetHTTPResponseRuleDefault ¶
func NewGetHTTPResponseRuleDefault(code int) *GetHTTPResponseRuleDefault
NewGetHTTPResponseRuleDefault creates GetHTTPResponseRuleDefault with default headers values
func (*GetHTTPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) SetPayload ¶
func (o *GetHTTPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) SetStatusCode ¶
func (o *GetHTTPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) WithPayload ¶
func (o *GetHTTPResponseRuleDefault) WithPayload(payload *models.Error) *GetHTTPResponseRuleDefault
WithPayload adds the payload to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) WithStatusCode ¶
func (o *GetHTTPResponseRuleDefault) WithStatusCode(code int) *GetHTTPResponseRuleDefault
WithStatusCode adds the status to the get HTTP response rule default response
func (*GetHTTPResponseRuleDefault) WriteResponse ¶
func (o *GetHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPResponseRuleHandler ¶
type GetHTTPResponseRuleHandler interface {
Handle(GetHTTPResponseRuleParams, interface{}) middleware.Responder
}
GetHTTPResponseRuleHandler interface for that can handle valid get HTTP response rule params
type GetHTTPResponseRuleHandlerFunc ¶
type GetHTTPResponseRuleHandlerFunc func(GetHTTPResponseRuleParams, interface{}) middleware.Responder
GetHTTPResponseRuleHandlerFunc turns a function with the right signature into a get HTTP response rule handler
func (GetHTTPResponseRuleHandlerFunc) Handle ¶
func (fn GetHTTPResponseRuleHandlerFunc) Handle(params GetHTTPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetHTTPResponseRuleNotFound ¶
type GetHTTPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetHTTPResponseRuleNotFound The specified resource was not found
swagger:response getHttpResponseRuleNotFound
func NewGetHTTPResponseRuleNotFound ¶
func NewGetHTTPResponseRuleNotFound() *GetHTTPResponseRuleNotFound
NewGetHTTPResponseRuleNotFound creates GetHTTPResponseRuleNotFound with default headers values
func (*GetHTTPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http response rule not found response
func (*GetHTTPResponseRuleNotFound) SetPayload ¶
func (o *GetHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Http response rule not found response
func (*GetHTTPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the get Http response rule not found response
func (*GetHTTPResponseRuleNotFound) WithPayload ¶
func (o *GetHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *GetHTTPResponseRuleNotFound
WithPayload adds the payload to the get Http response rule not found response
func (*GetHTTPResponseRuleNotFound) WriteResponse ¶
func (o *GetHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPResponseRuleOK ¶
type GetHTTPResponseRuleOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetHTTPResponseRuleOKBody `json:"body,omitempty"` }
GetHTTPResponseRuleOK Successful operation
swagger:response getHttpResponseRuleOK
func NewGetHTTPResponseRuleOK ¶
func NewGetHTTPResponseRuleOK() *GetHTTPResponseRuleOK
NewGetHTTPResponseRuleOK creates GetHTTPResponseRuleOK with default headers values
func (*GetHTTPResponseRuleOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http response rule o k response
func (*GetHTTPResponseRuleOK) SetPayload ¶
func (o *GetHTTPResponseRuleOK) SetPayload(payload *GetHTTPResponseRuleOKBody)
SetPayload sets the payload to the get Http response rule o k response
func (*GetHTTPResponseRuleOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRuleOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRuleOK
WithConfigurationVersion adds the configurationVersion to the get Http response rule o k response
func (*GetHTTPResponseRuleOK) WithPayload ¶
func (o *GetHTTPResponseRuleOK) WithPayload(payload *GetHTTPResponseRuleOKBody) *GetHTTPResponseRuleOK
WithPayload adds the payload to the get Http response rule o k response
func (*GetHTTPResponseRuleOK) WriteResponse ¶
func (o *GetHTTPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPResponseRuleOKBody ¶
type GetHTTPResponseRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.HTTPResponseRule `json:"data,omitempty"` }
GetHTTPResponseRuleOKBody get HTTP response rule o k body swagger:model GetHTTPResponseRuleOKBody
func (*GetHTTPResponseRuleOKBody) MarshalBinary ¶
func (o *GetHTTPResponseRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHTTPResponseRuleOKBody) UnmarshalBinary ¶
func (o *GetHTTPResponseRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHTTPResponseRuleParams ¶
type GetHTTPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*HTTP Response 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 }
GetHTTPResponseRuleParams contains all the bound params for the get HTTP response rule operation typically these are obtained from a http.Request
swagger:parameters getHTTPResponseRule
func NewGetHTTPResponseRuleParams ¶
func NewGetHTTPResponseRuleParams() GetHTTPResponseRuleParams
NewGetHTTPResponseRuleParams creates a new GetHTTPResponseRuleParams object no default values defined in spec.
func (*GetHTTPResponseRuleParams) BindRequest ¶
func (o *GetHTTPResponseRuleParams) 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 NewGetHTTPResponseRuleParams() beforehand.
type GetHTTPResponseRuleURL ¶
type GetHTTPResponseRuleURL struct { ID int64 ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetHTTPResponseRuleURL generates an URL for the get HTTP response rule operation
func (*GetHTTPResponseRuleURL) Build ¶
func (o *GetHTTPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHTTPResponseRuleURL) BuildFull ¶
func (o *GetHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHTTPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHTTPResponseRuleURL) SetBasePath ¶
func (o *GetHTTPResponseRuleURL) 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 (*GetHTTPResponseRuleURL) String ¶
func (o *GetHTTPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*GetHTTPResponseRuleURL) StringFull ¶
func (o *GetHTTPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHTTPResponseRuleURL) WithBasePath ¶
func (o *GetHTTPResponseRuleURL) WithBasePath(bp string) *GetHTTPResponseRuleURL
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 GetHTTPResponseRules ¶
type GetHTTPResponseRules struct { Context *middleware.Context Handler GetHTTPResponseRulesHandler }
GetHTTPResponseRules swagger:route GET /services/haproxy/configuration/http_response_rules HTTPResponseRule getHttpResponseRules
Return an array of all HTTP Response Rules ¶
Returns all HTTP Response Rules that are configured in specified parent.
func NewGetHTTPResponseRules ¶
func NewGetHTTPResponseRules(ctx *middleware.Context, handler GetHTTPResponseRulesHandler) *GetHTTPResponseRules
NewGetHTTPResponseRules creates a new http.Handler for the get HTTP response rules operation
func (*GetHTTPResponseRules) ServeHTTP ¶
func (o *GetHTTPResponseRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHTTPResponseRulesDefault ¶
type GetHTTPResponseRulesDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetHTTPResponseRulesDefault General Error
swagger:response getHttpResponseRulesDefault
func NewGetHTTPResponseRulesDefault ¶
func NewGetHTTPResponseRulesDefault(code int) *GetHTTPResponseRulesDefault
NewGetHTTPResponseRulesDefault creates GetHTTPResponseRulesDefault with default headers values
func (*GetHTTPResponseRulesDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRulesDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) SetPayload ¶
func (o *GetHTTPResponseRulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) SetStatusCode ¶
func (o *GetHTTPResponseRulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRulesDefault
WithConfigurationVersion adds the configurationVersion to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) WithPayload ¶
func (o *GetHTTPResponseRulesDefault) WithPayload(payload *models.Error) *GetHTTPResponseRulesDefault
WithPayload adds the payload to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) WithStatusCode ¶
func (o *GetHTTPResponseRulesDefault) WithStatusCode(code int) *GetHTTPResponseRulesDefault
WithStatusCode adds the status to the get HTTP response rules default response
func (*GetHTTPResponseRulesDefault) WriteResponse ¶
func (o *GetHTTPResponseRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPResponseRulesHandler ¶
type GetHTTPResponseRulesHandler interface {
Handle(GetHTTPResponseRulesParams, interface{}) middleware.Responder
}
GetHTTPResponseRulesHandler interface for that can handle valid get HTTP response rules params
type GetHTTPResponseRulesHandlerFunc ¶
type GetHTTPResponseRulesHandlerFunc func(GetHTTPResponseRulesParams, interface{}) middleware.Responder
GetHTTPResponseRulesHandlerFunc turns a function with the right signature into a get HTTP response rules handler
func (GetHTTPResponseRulesHandlerFunc) Handle ¶
func (fn GetHTTPResponseRulesHandlerFunc) Handle(params GetHTTPResponseRulesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetHTTPResponseRulesOK ¶
type GetHTTPResponseRulesOK struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *GetHTTPResponseRulesOKBody `json:"body,omitempty"` }
GetHTTPResponseRulesOK Successful operation
swagger:response getHttpResponseRulesOK
func NewGetHTTPResponseRulesOK ¶
func NewGetHTTPResponseRulesOK() *GetHTTPResponseRulesOK
NewGetHTTPResponseRulesOK creates GetHTTPResponseRulesOK with default headers values
func (*GetHTTPResponseRulesOK) SetConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRulesOK) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the get Http response rules o k response
func (*GetHTTPResponseRulesOK) SetPayload ¶
func (o *GetHTTPResponseRulesOK) SetPayload(payload *GetHTTPResponseRulesOKBody)
SetPayload sets the payload to the get Http response rules o k response
func (*GetHTTPResponseRulesOK) WithConfigurationVersion ¶ added in v1.2.2
func (o *GetHTTPResponseRulesOK) WithConfigurationVersion(configurationVersion int64) *GetHTTPResponseRulesOK
WithConfigurationVersion adds the configurationVersion to the get Http response rules o k response
func (*GetHTTPResponseRulesOK) WithPayload ¶
func (o *GetHTTPResponseRulesOK) WithPayload(payload *GetHTTPResponseRulesOKBody) *GetHTTPResponseRulesOK
WithPayload adds the payload to the get Http response rules o k response
func (*GetHTTPResponseRulesOK) WriteResponse ¶
func (o *GetHTTPResponseRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHTTPResponseRulesOKBody ¶
type GetHTTPResponseRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.HTTPResponseRules `json:"data"` }
GetHTTPResponseRulesOKBody get HTTP response rules o k body swagger:model GetHTTPResponseRulesOKBody
func (*GetHTTPResponseRulesOKBody) MarshalBinary ¶
func (o *GetHTTPResponseRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHTTPResponseRulesOKBody) UnmarshalBinary ¶
func (o *GetHTTPResponseRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHTTPResponseRulesParams ¶
type GetHTTPResponseRulesParams 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 }
GetHTTPResponseRulesParams contains all the bound params for the get HTTP response rules operation typically these are obtained from a http.Request
swagger:parameters getHTTPResponseRules
func NewGetHTTPResponseRulesParams ¶
func NewGetHTTPResponseRulesParams() GetHTTPResponseRulesParams
NewGetHTTPResponseRulesParams creates a new GetHTTPResponseRulesParams object no default values defined in spec.
func (*GetHTTPResponseRulesParams) BindRequest ¶
func (o *GetHTTPResponseRulesParams) 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 NewGetHTTPResponseRulesParams() beforehand.
type GetHTTPResponseRulesURL ¶
type GetHTTPResponseRulesURL struct { ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetHTTPResponseRulesURL generates an URL for the get HTTP response rules operation
func (*GetHTTPResponseRulesURL) Build ¶
func (o *GetHTTPResponseRulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHTTPResponseRulesURL) BuildFull ¶
func (o *GetHTTPResponseRulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHTTPResponseRulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHTTPResponseRulesURL) SetBasePath ¶
func (o *GetHTTPResponseRulesURL) 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 (*GetHTTPResponseRulesURL) String ¶
func (o *GetHTTPResponseRulesURL) String() string
String returns the string representation of the path with query string
func (*GetHTTPResponseRulesURL) StringFull ¶
func (o *GetHTTPResponseRulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHTTPResponseRulesURL) WithBasePath ¶
func (o *GetHTTPResponseRulesURL) WithBasePath(bp string) *GetHTTPResponseRulesURL
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 ReplaceHTTPResponseRule ¶
type ReplaceHTTPResponseRule struct { Context *middleware.Context Handler ReplaceHTTPResponseRuleHandler }
ReplaceHTTPResponseRule swagger:route PUT /services/haproxy/configuration/http_response_rules/{id} HTTPResponseRule replaceHttpResponseRule
Replace a HTTP Response Rule ¶
Replaces a HTTP Response Rule configuration by it's ID in the specified parent.
func NewReplaceHTTPResponseRule ¶
func NewReplaceHTTPResponseRule(ctx *middleware.Context, handler ReplaceHTTPResponseRuleHandler) *ReplaceHTTPResponseRule
NewReplaceHTTPResponseRule creates a new http.Handler for the replace HTTP response rule operation
func (*ReplaceHTTPResponseRule) ServeHTTP ¶
func (o *ReplaceHTTPResponseRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceHTTPResponseRuleAccepted ¶
type ReplaceHTTPResponseRuleAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.HTTPResponseRule `json:"body,omitempty"` }
ReplaceHTTPResponseRuleAccepted Configuration change accepted and reload requested
swagger:response replaceHttpResponseRuleAccepted
func NewReplaceHTTPResponseRuleAccepted ¶
func NewReplaceHTTPResponseRuleAccepted() *ReplaceHTTPResponseRuleAccepted
NewReplaceHTTPResponseRuleAccepted creates ReplaceHTTPResponseRuleAccepted with default headers values
func (*ReplaceHTTPResponseRuleAccepted) SetPayload ¶
func (o *ReplaceHTTPResponseRuleAccepted) SetPayload(payload *models.HTTPResponseRule)
SetPayload sets the payload to the replace Http response rule accepted response
func (*ReplaceHTTPResponseRuleAccepted) SetReloadID ¶
func (o *ReplaceHTTPResponseRuleAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace Http response rule accepted response
func (*ReplaceHTTPResponseRuleAccepted) WithPayload ¶
func (o *ReplaceHTTPResponseRuleAccepted) WithPayload(payload *models.HTTPResponseRule) *ReplaceHTTPResponseRuleAccepted
WithPayload adds the payload to the replace Http response rule accepted response
func (*ReplaceHTTPResponseRuleAccepted) WithReloadID ¶
func (o *ReplaceHTTPResponseRuleAccepted) WithReloadID(reloadID string) *ReplaceHTTPResponseRuleAccepted
WithReloadID adds the reloadId to the replace Http response rule accepted response
func (*ReplaceHTTPResponseRuleAccepted) WriteResponse ¶
func (o *ReplaceHTTPResponseRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPResponseRuleBadRequest ¶
type ReplaceHTTPResponseRuleBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceHTTPResponseRuleBadRequest Bad request
swagger:response replaceHttpResponseRuleBadRequest
func NewReplaceHTTPResponseRuleBadRequest ¶
func NewReplaceHTTPResponseRuleBadRequest() *ReplaceHTTPResponseRuleBadRequest
NewReplaceHTTPResponseRuleBadRequest creates ReplaceHTTPResponseRuleBadRequest with default headers values
func (*ReplaceHTTPResponseRuleBadRequest) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Http response rule bad request response
func (*ReplaceHTTPResponseRuleBadRequest) SetPayload ¶
func (o *ReplaceHTTPResponseRuleBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Http response rule bad request response
func (*ReplaceHTTPResponseRuleBadRequest) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleBadRequest
WithConfigurationVersion adds the configurationVersion to the replace Http response rule bad request response
func (*ReplaceHTTPResponseRuleBadRequest) WithPayload ¶
func (o *ReplaceHTTPResponseRuleBadRequest) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleBadRequest
WithPayload adds the payload to the replace Http response rule bad request response
func (*ReplaceHTTPResponseRuleBadRequest) WriteResponse ¶
func (o *ReplaceHTTPResponseRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPResponseRuleDefault ¶
type ReplaceHTTPResponseRuleDefault struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceHTTPResponseRuleDefault General Error
swagger:response replaceHttpResponseRuleDefault
func NewReplaceHTTPResponseRuleDefault ¶
func NewReplaceHTTPResponseRuleDefault(code int) *ReplaceHTTPResponseRuleDefault
NewReplaceHTTPResponseRuleDefault creates ReplaceHTTPResponseRuleDefault with default headers values
func (*ReplaceHTTPResponseRuleDefault) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleDefault) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) SetPayload ¶
func (o *ReplaceHTTPResponseRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) SetStatusCode ¶
func (o *ReplaceHTTPResponseRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleDefault
WithConfigurationVersion adds the configurationVersion to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) WithPayload ¶
func (o *ReplaceHTTPResponseRuleDefault) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleDefault
WithPayload adds the payload to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) WithStatusCode ¶
func (o *ReplaceHTTPResponseRuleDefault) WithStatusCode(code int) *ReplaceHTTPResponseRuleDefault
WithStatusCode adds the status to the replace HTTP response rule default response
func (*ReplaceHTTPResponseRuleDefault) WriteResponse ¶
func (o *ReplaceHTTPResponseRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPResponseRuleHandler ¶
type ReplaceHTTPResponseRuleHandler interface {
Handle(ReplaceHTTPResponseRuleParams, interface{}) middleware.Responder
}
ReplaceHTTPResponseRuleHandler interface for that can handle valid replace HTTP response rule params
type ReplaceHTTPResponseRuleHandlerFunc ¶
type ReplaceHTTPResponseRuleHandlerFunc func(ReplaceHTTPResponseRuleParams, interface{}) middleware.Responder
ReplaceHTTPResponseRuleHandlerFunc turns a function with the right signature into a replace HTTP response rule handler
func (ReplaceHTTPResponseRuleHandlerFunc) Handle ¶
func (fn ReplaceHTTPResponseRuleHandlerFunc) Handle(params ReplaceHTTPResponseRuleParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceHTTPResponseRuleNotFound ¶
type ReplaceHTTPResponseRuleNotFound struct { /*Configuration file version */ ConfigurationVersion int64 `json:"Configuration-Version"` /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReplaceHTTPResponseRuleNotFound The specified resource was not found
swagger:response replaceHttpResponseRuleNotFound
func NewReplaceHTTPResponseRuleNotFound ¶
func NewReplaceHTTPResponseRuleNotFound() *ReplaceHTTPResponseRuleNotFound
NewReplaceHTTPResponseRuleNotFound creates ReplaceHTTPResponseRuleNotFound with default headers values
func (*ReplaceHTTPResponseRuleNotFound) SetConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleNotFound) SetConfigurationVersion(configurationVersion int64)
SetConfigurationVersion sets the configurationVersion to the replace Http response rule not found response
func (*ReplaceHTTPResponseRuleNotFound) SetPayload ¶
func (o *ReplaceHTTPResponseRuleNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Http response rule not found response
func (*ReplaceHTTPResponseRuleNotFound) WithConfigurationVersion ¶ added in v1.2.2
func (o *ReplaceHTTPResponseRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceHTTPResponseRuleNotFound
WithConfigurationVersion adds the configurationVersion to the replace Http response rule not found response
func (*ReplaceHTTPResponseRuleNotFound) WithPayload ¶
func (o *ReplaceHTTPResponseRuleNotFound) WithPayload(payload *models.Error) *ReplaceHTTPResponseRuleNotFound
WithPayload adds the payload to the replace Http response rule not found response
func (*ReplaceHTTPResponseRuleNotFound) WriteResponse ¶
func (o *ReplaceHTTPResponseRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPResponseRuleOK ¶
type ReplaceHTTPResponseRuleOK struct { /* In: Body */ Payload *models.HTTPResponseRule `json:"body,omitempty"` }
ReplaceHTTPResponseRuleOK HTTP Response Rule replaced
swagger:response replaceHttpResponseRuleOK
func NewReplaceHTTPResponseRuleOK ¶
func NewReplaceHTTPResponseRuleOK() *ReplaceHTTPResponseRuleOK
NewReplaceHTTPResponseRuleOK creates ReplaceHTTPResponseRuleOK with default headers values
func (*ReplaceHTTPResponseRuleOK) SetPayload ¶
func (o *ReplaceHTTPResponseRuleOK) SetPayload(payload *models.HTTPResponseRule)
SetPayload sets the payload to the replace Http response rule o k response
func (*ReplaceHTTPResponseRuleOK) WithPayload ¶
func (o *ReplaceHTTPResponseRuleOK) WithPayload(payload *models.HTTPResponseRule) *ReplaceHTTPResponseRuleOK
WithPayload adds the payload to the replace Http response rule o k response
func (*ReplaceHTTPResponseRuleOK) WriteResponse ¶
func (o *ReplaceHTTPResponseRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceHTTPResponseRuleParams ¶
type ReplaceHTTPResponseRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.HTTPResponseRule /*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 Response 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 }
ReplaceHTTPResponseRuleParams contains all the bound params for the replace HTTP response rule operation typically these are obtained from a http.Request
swagger:parameters replaceHTTPResponseRule
func NewReplaceHTTPResponseRuleParams ¶
func NewReplaceHTTPResponseRuleParams() ReplaceHTTPResponseRuleParams
NewReplaceHTTPResponseRuleParams creates a new ReplaceHTTPResponseRuleParams object with the default values initialized.
func (*ReplaceHTTPResponseRuleParams) BindRequest ¶
func (o *ReplaceHTTPResponseRuleParams) 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 NewReplaceHTTPResponseRuleParams() beforehand.
type ReplaceHTTPResponseRuleURL ¶
type ReplaceHTTPResponseRuleURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceHTTPResponseRuleURL generates an URL for the replace HTTP response rule operation
func (*ReplaceHTTPResponseRuleURL) Build ¶
func (o *ReplaceHTTPResponseRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceHTTPResponseRuleURL) BuildFull ¶
func (o *ReplaceHTTPResponseRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceHTTPResponseRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceHTTPResponseRuleURL) SetBasePath ¶
func (o *ReplaceHTTPResponseRuleURL) 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 (*ReplaceHTTPResponseRuleURL) String ¶
func (o *ReplaceHTTPResponseRuleURL) String() string
String returns the string representation of the path with query string
func (*ReplaceHTTPResponseRuleURL) StringFull ¶
func (o *ReplaceHTTPResponseRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceHTTPResponseRuleURL) WithBasePath ¶
func (o *ReplaceHTTPResponseRuleURL) WithBasePath(bp string) *ReplaceHTTPResponseRuleURL
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_response_rule.go
- create_http_response_rule_parameters.go
- create_http_response_rule_responses.go
- create_http_response_rule_urlbuilder.go
- delete_http_response_rule.go
- delete_http_response_rule_parameters.go
- delete_http_response_rule_responses.go
- delete_http_response_rule_urlbuilder.go
- get_http_response_rule.go
- get_http_response_rule_parameters.go
- get_http_response_rule_responses.go
- get_http_response_rule_urlbuilder.go
- get_http_response_rules.go
- get_http_response_rules_parameters.go
- get_http_response_rules_responses.go
- get_http_response_rules_urlbuilder.go
- replace_http_response_rule.go
- replace_http_response_rule_parameters.go
- replace_http_response_rule_responses.go
- replace_http_response_rule_urlbuilder.go