http_response_rule

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CreateHTTPResponseRuleAcceptedCode int = 202

CreateHTTPResponseRuleAcceptedCode is the HTTP code returned for type CreateHTTPResponseRuleAccepted

View Source
const CreateHTTPResponseRuleBadRequestCode int = 400

CreateHTTPResponseRuleBadRequestCode is the HTTP code returned for type CreateHTTPResponseRuleBadRequest

View Source
const CreateHTTPResponseRuleConflictCode int = 409

CreateHTTPResponseRuleConflictCode is the HTTP code returned for type CreateHTTPResponseRuleConflict

View Source
const CreateHTTPResponseRuleCreatedCode int = 201

CreateHTTPResponseRuleCreatedCode is the HTTP code returned for type CreateHTTPResponseRuleCreated

View Source
const DeleteHTTPResponseRuleAcceptedCode int = 202

DeleteHTTPResponseRuleAcceptedCode is the HTTP code returned for type DeleteHTTPResponseRuleAccepted

View Source
const DeleteHTTPResponseRuleNoContentCode int = 204

DeleteHTTPResponseRuleNoContentCode is the HTTP code returned for type DeleteHTTPResponseRuleNoContent

View Source
const DeleteHTTPResponseRuleNotFoundCode int = 404

DeleteHTTPResponseRuleNotFoundCode is the HTTP code returned for type DeleteHTTPResponseRuleNotFound

View Source
const GetHTTPResponseRuleNotFoundCode int = 404

GetHTTPResponseRuleNotFoundCode is the HTTP code returned for type GetHTTPResponseRuleNotFound

View Source
const GetHTTPResponseRuleOKCode int = 200

GetHTTPResponseRuleOKCode is the HTTP code returned for type GetHTTPResponseRuleOK

View Source
const GetHTTPResponseRulesOKCode int = 200

GetHTTPResponseRulesOKCode is the HTTP code returned for type GetHTTPResponseRulesOK

View Source
const ReplaceHTTPResponseRuleAcceptedCode int = 202

ReplaceHTTPResponseRuleAcceptedCode is the HTTP code returned for type ReplaceHTTPResponseRuleAccepted

View Source
const ReplaceHTTPResponseRuleBadRequestCode int = 400

ReplaceHTTPResponseRuleBadRequestCode is the HTTP code returned for type ReplaceHTTPResponseRuleBadRequest

View Source
const ReplaceHTTPResponseRuleNotFoundCode int = 404

ReplaceHTTPResponseRuleNotFoundCode is the HTTP code returned for type ReplaceHTTPResponseRuleNotFound

View Source
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

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

func (*CreateHTTPResponseRuleAccepted) WithReloadID

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

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

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

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

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

func (*CreateHTTPResponseRuleDefault) WithStatusCode

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

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

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

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

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

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

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

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

func (*DeleteHTTPResponseRuleDefault) WithStatusCode

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

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

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

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

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

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

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

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

func (*GetHTTPResponseRuleDefault) WithStatusCode

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

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

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

func (*GetHTTPResponseRuleOKBody) Validate

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

Validate validates this get HTTP response rule o k body

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

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

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

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

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

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

func (*GetHTTPResponseRulesDefault) WithStatusCode

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

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

func (*GetHTTPResponseRulesOKBody) Validate

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

Validate validates this get HTTP response rules o k body

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

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

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

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

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

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

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

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

func (*ReplaceHTTPResponseRuleAccepted) WithReloadID

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

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

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

func (*ReplaceHTTPResponseRuleDefault) WithStatusCode

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

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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