http_request_rule

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CreateHTTPRequestRuleAcceptedCode int = 202

CreateHTTPRequestRuleAcceptedCode is the HTTP code returned for type CreateHTTPRequestRuleAccepted

View Source
const CreateHTTPRequestRuleBadRequestCode int = 400

CreateHTTPRequestRuleBadRequestCode is the HTTP code returned for type CreateHTTPRequestRuleBadRequest

View Source
const CreateHTTPRequestRuleConflictCode int = 409

CreateHTTPRequestRuleConflictCode is the HTTP code returned for type CreateHTTPRequestRuleConflict

View Source
const CreateHTTPRequestRuleCreatedCode int = 201

CreateHTTPRequestRuleCreatedCode is the HTTP code returned for type CreateHTTPRequestRuleCreated

View Source
const DeleteHTTPRequestRuleAcceptedCode int = 202

DeleteHTTPRequestRuleAcceptedCode is the HTTP code returned for type DeleteHTTPRequestRuleAccepted

View Source
const DeleteHTTPRequestRuleNoContentCode int = 204

DeleteHTTPRequestRuleNoContentCode is the HTTP code returned for type DeleteHTTPRequestRuleNoContent

View Source
const DeleteHTTPRequestRuleNotFoundCode int = 404

DeleteHTTPRequestRuleNotFoundCode is the HTTP code returned for type DeleteHTTPRequestRuleNotFound

View Source
const GetHTTPRequestRuleNotFoundCode int = 404

GetHTTPRequestRuleNotFoundCode is the HTTP code returned for type GetHTTPRequestRuleNotFound

View Source
const GetHTTPRequestRuleOKCode int = 200

GetHTTPRequestRuleOKCode is the HTTP code returned for type GetHTTPRequestRuleOK

View Source
const GetHTTPRequestRulesOKCode int = 200

GetHTTPRequestRulesOKCode is the HTTP code returned for type GetHTTPRequestRulesOK

View Source
const ReplaceHTTPRequestRuleAcceptedCode int = 202

ReplaceHTTPRequestRuleAcceptedCode is the HTTP code returned for type ReplaceHTTPRequestRuleAccepted

View Source
const ReplaceHTTPRequestRuleBadRequestCode int = 400

ReplaceHTTPRequestRuleBadRequestCode is the HTTP code returned for type ReplaceHTTPRequestRuleBadRequest

View Source
const ReplaceHTTPRequestRuleNotFoundCode int = 404

ReplaceHTTPRequestRuleNotFoundCode is the HTTP code returned for type ReplaceHTTPRequestRuleNotFound

View Source
const ReplaceHTTPRequestRuleOKCode int = 200

ReplaceHTTPRequestRuleOKCode is the HTTP code returned for type ReplaceHTTPRequestRuleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateHTTPRequestRule

type CreateHTTPRequestRule struct {
	Context *middleware.Context
	Handler CreateHTTPRequestRuleHandler
}

CreateHTTPRequestRule swagger:route POST /services/haproxy/configuration/http_request_rules HTTPRequestRule createHttpRequestRule

Add a new HTTP Request Rule

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

func NewCreateHTTPRequestRule

func NewCreateHTTPRequestRule(ctx *middleware.Context, handler CreateHTTPRequestRuleHandler) *CreateHTTPRequestRule

NewCreateHTTPRequestRule creates a new http.Handler for the create HTTP request rule operation

func (*CreateHTTPRequestRule) ServeHTTP

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

type CreateHTTPRequestRuleAccepted

type CreateHTTPRequestRuleAccepted struct {
	/*ID of the requested reload

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

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

CreateHTTPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response createHttpRequestRuleAccepted

func NewCreateHTTPRequestRuleAccepted

func NewCreateHTTPRequestRuleAccepted() *CreateHTTPRequestRuleAccepted

NewCreateHTTPRequestRuleAccepted creates CreateHTTPRequestRuleAccepted with default headers values

func (*CreateHTTPRequestRuleAccepted) SetPayload

func (o *CreateHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)

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

func (*CreateHTTPRequestRuleAccepted) SetReloadID

func (o *CreateHTTPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*CreateHTTPRequestRuleAccepted) WithPayload

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

func (*CreateHTTPRequestRuleAccepted) WithReloadID

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

func (*CreateHTTPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type CreateHTTPRequestRuleBadRequest

type CreateHTTPRequestRuleBadRequest struct {
	/*Configuration file version

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

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

CreateHTTPRequestRuleBadRequest Bad request

swagger:response createHttpRequestRuleBadRequest

func NewCreateHTTPRequestRuleBadRequest

func NewCreateHTTPRequestRuleBadRequest() *CreateHTTPRequestRuleBadRequest

NewCreateHTTPRequestRuleBadRequest creates CreateHTTPRequestRuleBadRequest with default headers values

func (*CreateHTTPRequestRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateHTTPRequestRuleBadRequest) SetPayload

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

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

func (*CreateHTTPRequestRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateHTTPRequestRuleBadRequest) WithPayload

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

func (*CreateHTTPRequestRuleBadRequest) WriteResponse

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

WriteResponse to the client

type CreateHTTPRequestRuleConflict

type CreateHTTPRequestRuleConflict struct {
	/*Configuration file version

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

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

CreateHTTPRequestRuleConflict The specified resource already exists

swagger:response createHttpRequestRuleConflict

func NewCreateHTTPRequestRuleConflict

func NewCreateHTTPRequestRuleConflict() *CreateHTTPRequestRuleConflict

NewCreateHTTPRequestRuleConflict creates CreateHTTPRequestRuleConflict with default headers values

func (*CreateHTTPRequestRuleConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateHTTPRequestRuleConflict) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateHTTPRequestRuleConflict) SetPayload

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

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

func (*CreateHTTPRequestRuleConflict) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateHTTPRequestRuleConflict) WithPayload

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

func (*CreateHTTPRequestRuleConflict) WriteResponse

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

WriteResponse to the client

type CreateHTTPRequestRuleCreated

type CreateHTTPRequestRuleCreated struct {

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

CreateHTTPRequestRuleCreated HTTP Request Rule created

swagger:response createHttpRequestRuleCreated

func NewCreateHTTPRequestRuleCreated

func NewCreateHTTPRequestRuleCreated() *CreateHTTPRequestRuleCreated

NewCreateHTTPRequestRuleCreated creates CreateHTTPRequestRuleCreated with default headers values

func (*CreateHTTPRequestRuleCreated) SetPayload

func (o *CreateHTTPRequestRuleCreated) SetPayload(payload *models.HTTPRequestRule)

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

func (*CreateHTTPRequestRuleCreated) WithPayload

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

func (*CreateHTTPRequestRuleCreated) WriteResponse

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

WriteResponse to the client

type CreateHTTPRequestRuleDefault

type CreateHTTPRequestRuleDefault struct {

	/*Configuration file version

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

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

CreateHTTPRequestRuleDefault General Error

swagger:response createHttpRequestRuleDefault

func NewCreateHTTPRequestRuleDefault

func NewCreateHTTPRequestRuleDefault(code int) *CreateHTTPRequestRuleDefault

NewCreateHTTPRequestRuleDefault creates CreateHTTPRequestRuleDefault with default headers values

func (*CreateHTTPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateHTTPRequestRuleDefault) SetPayload

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

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

func (*CreateHTTPRequestRuleDefault) SetStatusCode

func (o *CreateHTTPRequestRuleDefault) SetStatusCode(code int)

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

func (*CreateHTTPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateHTTPRequestRuleDefault) WithPayload

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

func (*CreateHTTPRequestRuleDefault) WithStatusCode

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

func (*CreateHTTPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type CreateHTTPRequestRuleHandler

type CreateHTTPRequestRuleHandler interface {
	Handle(CreateHTTPRequestRuleParams, interface{}) middleware.Responder
}

CreateHTTPRequestRuleHandler interface for that can handle valid create HTTP request rule params

type CreateHTTPRequestRuleHandlerFunc

type CreateHTTPRequestRuleHandlerFunc func(CreateHTTPRequestRuleParams, interface{}) middleware.Responder

CreateHTTPRequestRuleHandlerFunc turns a function with the right signature into a create HTTP request rule handler

func (CreateHTTPRequestRuleHandlerFunc) Handle

func (fn CreateHTTPRequestRuleHandlerFunc) Handle(params CreateHTTPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateHTTPRequestRuleParams

type CreateHTTPRequestRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.HTTPRequestRule
	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

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

swagger:parameters createHTTPRequestRule

func NewCreateHTTPRequestRuleParams

func NewCreateHTTPRequestRuleParams() CreateHTTPRequestRuleParams

NewCreateHTTPRequestRuleParams creates a new CreateHTTPRequestRuleParams object with the default values initialized.

func (*CreateHTTPRequestRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateHTTPRequestRuleParams() beforehand.

type CreateHTTPRequestRuleURL

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

CreateHTTPRequestRuleURL generates an URL for the create HTTP request rule operation

func (*CreateHTTPRequestRuleURL) Build

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

Build a url path and query string

func (*CreateHTTPRequestRuleURL) BuildFull

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

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

func (*CreateHTTPRequestRuleURL) Must

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

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

func (*CreateHTTPRequestRuleURL) SetBasePath

func (o *CreateHTTPRequestRuleURL) SetBasePath(bp string)

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

func (*CreateHTTPRequestRuleURL) String

func (o *CreateHTTPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*CreateHTTPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateHTTPRequestRuleURL) WithBasePath

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

type DeleteHTTPRequestRule

type DeleteHTTPRequestRule struct {
	Context *middleware.Context
	Handler DeleteHTTPRequestRuleHandler
}

DeleteHTTPRequestRule swagger:route DELETE /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule deleteHttpRequestRule

Delete a HTTP Request Rule

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

func NewDeleteHTTPRequestRule

func NewDeleteHTTPRequestRule(ctx *middleware.Context, handler DeleteHTTPRequestRuleHandler) *DeleteHTTPRequestRule

NewDeleteHTTPRequestRule creates a new http.Handler for the delete HTTP request rule operation

func (*DeleteHTTPRequestRule) ServeHTTP

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

type DeleteHTTPRequestRuleAccepted

type DeleteHTTPRequestRuleAccepted struct {
	/*ID of the requested reload

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

DeleteHTTPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response deleteHttpRequestRuleAccepted

func NewDeleteHTTPRequestRuleAccepted

func NewDeleteHTTPRequestRuleAccepted() *DeleteHTTPRequestRuleAccepted

NewDeleteHTTPRequestRuleAccepted creates DeleteHTTPRequestRuleAccepted with default headers values

func (*DeleteHTTPRequestRuleAccepted) SetReloadID

func (o *DeleteHTTPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*DeleteHTTPRequestRuleAccepted) WithReloadID

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

func (*DeleteHTTPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type DeleteHTTPRequestRuleDefault

type DeleteHTTPRequestRuleDefault struct {

	/*Configuration file version

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

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

DeleteHTTPRequestRuleDefault General Error

swagger:response deleteHttpRequestRuleDefault

func NewDeleteHTTPRequestRuleDefault

func NewDeleteHTTPRequestRuleDefault(code int) *DeleteHTTPRequestRuleDefault

NewDeleteHTTPRequestRuleDefault creates DeleteHTTPRequestRuleDefault with default headers values

func (*DeleteHTTPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteHTTPRequestRuleDefault) SetPayload

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

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

func (*DeleteHTTPRequestRuleDefault) SetStatusCode

func (o *DeleteHTTPRequestRuleDefault) SetStatusCode(code int)

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

func (*DeleteHTTPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteHTTPRequestRuleDefault) WithPayload

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

func (*DeleteHTTPRequestRuleDefault) WithStatusCode

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

func (*DeleteHTTPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type DeleteHTTPRequestRuleHandler

type DeleteHTTPRequestRuleHandler interface {
	Handle(DeleteHTTPRequestRuleParams, interface{}) middleware.Responder
}

DeleteHTTPRequestRuleHandler interface for that can handle valid delete HTTP request rule params

type DeleteHTTPRequestRuleHandlerFunc

type DeleteHTTPRequestRuleHandlerFunc func(DeleteHTTPRequestRuleParams, interface{}) middleware.Responder

DeleteHTTPRequestRuleHandlerFunc turns a function with the right signature into a delete HTTP request rule handler

func (DeleteHTTPRequestRuleHandlerFunc) Handle

func (fn DeleteHTTPRequestRuleHandlerFunc) Handle(params DeleteHTTPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteHTTPRequestRuleNoContent

type DeleteHTTPRequestRuleNoContent struct {
}

DeleteHTTPRequestRuleNoContent HTTP Request Rule deleted

swagger:response deleteHttpRequestRuleNoContent

func NewDeleteHTTPRequestRuleNoContent

func NewDeleteHTTPRequestRuleNoContent() *DeleteHTTPRequestRuleNoContent

NewDeleteHTTPRequestRuleNoContent creates DeleteHTTPRequestRuleNoContent with default headers values

func (*DeleteHTTPRequestRuleNoContent) WriteResponse

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

WriteResponse to the client

type DeleteHTTPRequestRuleNotFound

type DeleteHTTPRequestRuleNotFound struct {
	/*Configuration file version

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

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

DeleteHTTPRequestRuleNotFound The specified resource was not found

swagger:response deleteHttpRequestRuleNotFound

func NewDeleteHTTPRequestRuleNotFound

func NewDeleteHTTPRequestRuleNotFound() *DeleteHTTPRequestRuleNotFound

NewDeleteHTTPRequestRuleNotFound creates DeleteHTTPRequestRuleNotFound with default headers values

func (*DeleteHTTPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteHTTPRequestRuleNotFound) SetPayload

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

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

func (*DeleteHTTPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteHTTPRequestRuleNotFound) WithPayload

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

func (*DeleteHTTPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type DeleteHTTPRequestRuleParams

type DeleteHTTPRequestRuleParams struct {

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

	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*HTTP Request Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

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

swagger:parameters deleteHTTPRequestRule

func NewDeleteHTTPRequestRuleParams

func NewDeleteHTTPRequestRuleParams() DeleteHTTPRequestRuleParams

NewDeleteHTTPRequestRuleParams creates a new DeleteHTTPRequestRuleParams object with the default values initialized.

func (*DeleteHTTPRequestRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteHTTPRequestRuleParams() beforehand.

type DeleteHTTPRequestRuleURL

type DeleteHTTPRequestRuleURL struct {
	ID int64

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

DeleteHTTPRequestRuleURL generates an URL for the delete HTTP request rule operation

func (*DeleteHTTPRequestRuleURL) Build

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

Build a url path and query string

func (*DeleteHTTPRequestRuleURL) BuildFull

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

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

func (*DeleteHTTPRequestRuleURL) Must

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

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

func (*DeleteHTTPRequestRuleURL) SetBasePath

func (o *DeleteHTTPRequestRuleURL) SetBasePath(bp string)

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

func (*DeleteHTTPRequestRuleURL) String

func (o *DeleteHTTPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*DeleteHTTPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteHTTPRequestRuleURL) WithBasePath

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

type GetHTTPRequestRule

type GetHTTPRequestRule struct {
	Context *middleware.Context
	Handler GetHTTPRequestRuleHandler
}

GetHTTPRequestRule swagger:route GET /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule getHttpRequestRule

Return one HTTP Request Rule

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

func NewGetHTTPRequestRule

func NewGetHTTPRequestRule(ctx *middleware.Context, handler GetHTTPRequestRuleHandler) *GetHTTPRequestRule

NewGetHTTPRequestRule creates a new http.Handler for the get HTTP request rule operation

func (*GetHTTPRequestRule) ServeHTTP

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

type GetHTTPRequestRuleDefault

type GetHTTPRequestRuleDefault struct {

	/*Configuration file version

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

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

GetHTTPRequestRuleDefault General Error

swagger:response getHttpRequestRuleDefault

func NewGetHTTPRequestRuleDefault

func NewGetHTTPRequestRuleDefault(code int) *GetHTTPRequestRuleDefault

NewGetHTTPRequestRuleDefault creates GetHTTPRequestRuleDefault with default headers values

func (*GetHTTPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *GetHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetHTTPRequestRuleDefault) SetPayload

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

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

func (*GetHTTPRequestRuleDefault) SetStatusCode

func (o *GetHTTPRequestRuleDefault) SetStatusCode(code int)

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

func (*GetHTTPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetHTTPRequestRuleDefault) WithPayload

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

func (*GetHTTPRequestRuleDefault) WithStatusCode

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

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

func (*GetHTTPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type GetHTTPRequestRuleHandler

type GetHTTPRequestRuleHandler interface {
	Handle(GetHTTPRequestRuleParams, interface{}) middleware.Responder
}

GetHTTPRequestRuleHandler interface for that can handle valid get HTTP request rule params

type GetHTTPRequestRuleHandlerFunc

type GetHTTPRequestRuleHandlerFunc func(GetHTTPRequestRuleParams, interface{}) middleware.Responder

GetHTTPRequestRuleHandlerFunc turns a function with the right signature into a get HTTP request rule handler

func (GetHTTPRequestRuleHandlerFunc) Handle

func (fn GetHTTPRequestRuleHandlerFunc) Handle(params GetHTTPRequestRuleParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetHTTPRequestRuleNotFound

type GetHTTPRequestRuleNotFound struct {
	/*Configuration file version

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

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

GetHTTPRequestRuleNotFound The specified resource was not found

swagger:response getHttpRequestRuleNotFound

func NewGetHTTPRequestRuleNotFound

func NewGetHTTPRequestRuleNotFound() *GetHTTPRequestRuleNotFound

NewGetHTTPRequestRuleNotFound creates GetHTTPRequestRuleNotFound with default headers values

func (*GetHTTPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*GetHTTPRequestRuleNotFound) SetPayload

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

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

func (*GetHTTPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*GetHTTPRequestRuleNotFound) WithPayload

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

func (*GetHTTPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type GetHTTPRequestRuleOK

type GetHTTPRequestRuleOK struct {
	/*Configuration file version

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

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

GetHTTPRequestRuleOK Successful operation

swagger:response getHttpRequestRuleOK

func NewGetHTTPRequestRuleOK

func NewGetHTTPRequestRuleOK() *GetHTTPRequestRuleOK

NewGetHTTPRequestRuleOK creates GetHTTPRequestRuleOK with default headers values

func (*GetHTTPRequestRuleOK) SetConfigurationVersion added in v1.2.2

func (o *GetHTTPRequestRuleOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetHTTPRequestRuleOK) SetPayload

func (o *GetHTTPRequestRuleOK) SetPayload(payload *GetHTTPRequestRuleOKBody)

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

func (*GetHTTPRequestRuleOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetHTTPRequestRuleOK) WithPayload

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

func (*GetHTTPRequestRuleOK) WriteResponse

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

WriteResponse to the client

type GetHTTPRequestRuleOKBody

type GetHTTPRequestRuleOKBody struct {

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

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

GetHTTPRequestRuleOKBody get HTTP request rule o k body swagger:model GetHTTPRequestRuleOKBody

func (*GetHTTPRequestRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPRequestRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPRequestRuleOKBody) Validate

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

Validate validates this get HTTP request rule o k body

type GetHTTPRequestRuleParams

type GetHTTPRequestRuleParams struct {

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

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

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

swagger:parameters getHTTPRequestRule

func NewGetHTTPRequestRuleParams

func NewGetHTTPRequestRuleParams() GetHTTPRequestRuleParams

NewGetHTTPRequestRuleParams creates a new GetHTTPRequestRuleParams object no default values defined in spec.

func (*GetHTTPRequestRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetHTTPRequestRuleParams() beforehand.

type GetHTTPRequestRuleURL

type GetHTTPRequestRuleURL struct {
	ID int64

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

GetHTTPRequestRuleURL generates an URL for the get HTTP request rule operation

func (*GetHTTPRequestRuleURL) Build

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

Build a url path and query string

func (*GetHTTPRequestRuleURL) BuildFull

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

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

func (*GetHTTPRequestRuleURL) Must

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

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

func (*GetHTTPRequestRuleURL) SetBasePath

func (o *GetHTTPRequestRuleURL) SetBasePath(bp string)

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

func (*GetHTTPRequestRuleURL) String

func (o *GetHTTPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*GetHTTPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetHTTPRequestRuleURL) WithBasePath

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

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

type GetHTTPRequestRules

type GetHTTPRequestRules struct {
	Context *middleware.Context
	Handler GetHTTPRequestRulesHandler
}

GetHTTPRequestRules swagger:route GET /services/haproxy/configuration/http_request_rules HTTPRequestRule getHttpRequestRules

Return an array of all HTTP Request Rules

Returns all HTTP Request Rules that are configured in specified parent.

func NewGetHTTPRequestRules

func NewGetHTTPRequestRules(ctx *middleware.Context, handler GetHTTPRequestRulesHandler) *GetHTTPRequestRules

NewGetHTTPRequestRules creates a new http.Handler for the get HTTP request rules operation

func (*GetHTTPRequestRules) ServeHTTP

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

type GetHTTPRequestRulesDefault

type GetHTTPRequestRulesDefault struct {

	/*Configuration file version

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

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

GetHTTPRequestRulesDefault General Error

swagger:response getHttpRequestRulesDefault

func NewGetHTTPRequestRulesDefault

func NewGetHTTPRequestRulesDefault(code int) *GetHTTPRequestRulesDefault

NewGetHTTPRequestRulesDefault creates GetHTTPRequestRulesDefault with default headers values

func (*GetHTTPRequestRulesDefault) SetConfigurationVersion added in v1.2.2

func (o *GetHTTPRequestRulesDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetHTTPRequestRulesDefault) SetPayload

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

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

func (*GetHTTPRequestRulesDefault) SetStatusCode

func (o *GetHTTPRequestRulesDefault) SetStatusCode(code int)

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

func (*GetHTTPRequestRulesDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetHTTPRequestRulesDefault) WithPayload

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

func (*GetHTTPRequestRulesDefault) WithStatusCode

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

func (*GetHTTPRequestRulesDefault) WriteResponse

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

WriteResponse to the client

type GetHTTPRequestRulesHandler

type GetHTTPRequestRulesHandler interface {
	Handle(GetHTTPRequestRulesParams, interface{}) middleware.Responder
}

GetHTTPRequestRulesHandler interface for that can handle valid get HTTP request rules params

type GetHTTPRequestRulesHandlerFunc

type GetHTTPRequestRulesHandlerFunc func(GetHTTPRequestRulesParams, interface{}) middleware.Responder

GetHTTPRequestRulesHandlerFunc turns a function with the right signature into a get HTTP request rules handler

func (GetHTTPRequestRulesHandlerFunc) Handle

func (fn GetHTTPRequestRulesHandlerFunc) Handle(params GetHTTPRequestRulesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetHTTPRequestRulesOK

type GetHTTPRequestRulesOK struct {
	/*Configuration file version

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

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

GetHTTPRequestRulesOK Successful operation

swagger:response getHttpRequestRulesOK

func NewGetHTTPRequestRulesOK

func NewGetHTTPRequestRulesOK() *GetHTTPRequestRulesOK

NewGetHTTPRequestRulesOK creates GetHTTPRequestRulesOK with default headers values

func (*GetHTTPRequestRulesOK) SetConfigurationVersion added in v1.2.2

func (o *GetHTTPRequestRulesOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetHTTPRequestRulesOK) SetPayload

func (o *GetHTTPRequestRulesOK) SetPayload(payload *GetHTTPRequestRulesOKBody)

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

func (*GetHTTPRequestRulesOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetHTTPRequestRulesOK) WithPayload

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

func (*GetHTTPRequestRulesOK) WriteResponse

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

WriteResponse to the client

type GetHTTPRequestRulesOKBody

type GetHTTPRequestRulesOKBody struct {

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

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

GetHTTPRequestRulesOKBody get HTTP request rules o k body swagger:model GetHTTPRequestRulesOKBody

func (*GetHTTPRequestRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPRequestRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPRequestRulesOKBody) Validate

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

Validate validates this get HTTP request rules o k body

type GetHTTPRequestRulesParams

type GetHTTPRequestRulesParams struct {

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

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

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

swagger:parameters getHTTPRequestRules

func NewGetHTTPRequestRulesParams

func NewGetHTTPRequestRulesParams() GetHTTPRequestRulesParams

NewGetHTTPRequestRulesParams creates a new GetHTTPRequestRulesParams object no default values defined in spec.

func (*GetHTTPRequestRulesParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetHTTPRequestRulesParams() beforehand.

type GetHTTPRequestRulesURL

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

GetHTTPRequestRulesURL generates an URL for the get HTTP request rules operation

func (*GetHTTPRequestRulesURL) Build

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

Build a url path and query string

func (*GetHTTPRequestRulesURL) BuildFull

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

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

func (*GetHTTPRequestRulesURL) Must

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

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

func (*GetHTTPRequestRulesURL) SetBasePath

func (o *GetHTTPRequestRulesURL) SetBasePath(bp string)

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

func (*GetHTTPRequestRulesURL) String

func (o *GetHTTPRequestRulesURL) String() string

String returns the string representation of the path with query string

func (*GetHTTPRequestRulesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetHTTPRequestRulesURL) WithBasePath

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

type ReplaceHTTPRequestRule

type ReplaceHTTPRequestRule struct {
	Context *middleware.Context
	Handler ReplaceHTTPRequestRuleHandler
}

ReplaceHTTPRequestRule swagger:route PUT /services/haproxy/configuration/http_request_rules/{id} HTTPRequestRule replaceHttpRequestRule

Replace a HTTP Request Rule

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

func NewReplaceHTTPRequestRule

func NewReplaceHTTPRequestRule(ctx *middleware.Context, handler ReplaceHTTPRequestRuleHandler) *ReplaceHTTPRequestRule

NewReplaceHTTPRequestRule creates a new http.Handler for the replace HTTP request rule operation

func (*ReplaceHTTPRequestRule) ServeHTTP

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

type ReplaceHTTPRequestRuleAccepted

type ReplaceHTTPRequestRuleAccepted struct {
	/*ID of the requested reload

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

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

ReplaceHTTPRequestRuleAccepted Configuration change accepted and reload requested

swagger:response replaceHttpRequestRuleAccepted

func NewReplaceHTTPRequestRuleAccepted

func NewReplaceHTTPRequestRuleAccepted() *ReplaceHTTPRequestRuleAccepted

NewReplaceHTTPRequestRuleAccepted creates ReplaceHTTPRequestRuleAccepted with default headers values

func (*ReplaceHTTPRequestRuleAccepted) SetPayload

func (o *ReplaceHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule)

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

func (*ReplaceHTTPRequestRuleAccepted) SetReloadID

func (o *ReplaceHTTPRequestRuleAccepted) SetReloadID(reloadID string)

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

func (*ReplaceHTTPRequestRuleAccepted) WithPayload

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

func (*ReplaceHTTPRequestRuleAccepted) WithReloadID

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

func (*ReplaceHTTPRequestRuleAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceHTTPRequestRuleBadRequest

type ReplaceHTTPRequestRuleBadRequest struct {
	/*Configuration file version

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

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

ReplaceHTTPRequestRuleBadRequest Bad request

swagger:response replaceHttpRequestRuleBadRequest

func NewReplaceHTTPRequestRuleBadRequest

func NewReplaceHTTPRequestRuleBadRequest() *ReplaceHTTPRequestRuleBadRequest

NewReplaceHTTPRequestRuleBadRequest creates ReplaceHTTPRequestRuleBadRequest with default headers values

func (*ReplaceHTTPRequestRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceHTTPRequestRuleBadRequest) SetPayload

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

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

func (*ReplaceHTTPRequestRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceHTTPRequestRuleBadRequest) WithPayload

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

func (*ReplaceHTTPRequestRuleBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceHTTPRequestRuleDefault

type ReplaceHTTPRequestRuleDefault struct {

	/*Configuration file version

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

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

ReplaceHTTPRequestRuleDefault General Error

swagger:response replaceHttpRequestRuleDefault

func NewReplaceHTTPRequestRuleDefault

func NewReplaceHTTPRequestRuleDefault(code int) *ReplaceHTTPRequestRuleDefault

NewReplaceHTTPRequestRuleDefault creates ReplaceHTTPRequestRuleDefault with default headers values

func (*ReplaceHTTPRequestRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceHTTPRequestRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceHTTPRequestRuleDefault) SetPayload

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

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

func (*ReplaceHTTPRequestRuleDefault) SetStatusCode

func (o *ReplaceHTTPRequestRuleDefault) SetStatusCode(code int)

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

func (*ReplaceHTTPRequestRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceHTTPRequestRuleDefault) WithPayload

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

func (*ReplaceHTTPRequestRuleDefault) WithStatusCode

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

func (*ReplaceHTTPRequestRuleDefault) WriteResponse

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

WriteResponse to the client

type ReplaceHTTPRequestRuleHandler

type ReplaceHTTPRequestRuleHandler interface {
	Handle(ReplaceHTTPRequestRuleParams, interface{}) middleware.Responder
}

ReplaceHTTPRequestRuleHandler interface for that can handle valid replace HTTP request rule params

type ReplaceHTTPRequestRuleHandlerFunc

type ReplaceHTTPRequestRuleHandlerFunc func(ReplaceHTTPRequestRuleParams, interface{}) middleware.Responder

ReplaceHTTPRequestRuleHandlerFunc turns a function with the right signature into a replace HTTP request rule handler

func (ReplaceHTTPRequestRuleHandlerFunc) Handle

Handle executing the request and returning a response

type ReplaceHTTPRequestRuleNotFound

type ReplaceHTTPRequestRuleNotFound struct {
	/*Configuration file version

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

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

ReplaceHTTPRequestRuleNotFound The specified resource was not found

swagger:response replaceHttpRequestRuleNotFound

func NewReplaceHTTPRequestRuleNotFound

func NewReplaceHTTPRequestRuleNotFound() *ReplaceHTTPRequestRuleNotFound

NewReplaceHTTPRequestRuleNotFound creates ReplaceHTTPRequestRuleNotFound with default headers values

func (*ReplaceHTTPRequestRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceHTTPRequestRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceHTTPRequestRuleNotFound) SetPayload

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

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

func (*ReplaceHTTPRequestRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceHTTPRequestRuleNotFound) WithPayload

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

func (*ReplaceHTTPRequestRuleNotFound) WriteResponse

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

WriteResponse to the client

type ReplaceHTTPRequestRuleOK

type ReplaceHTTPRequestRuleOK struct {

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

ReplaceHTTPRequestRuleOK HTTP Request Rule replaced

swagger:response replaceHttpRequestRuleOK

func NewReplaceHTTPRequestRuleOK

func NewReplaceHTTPRequestRuleOK() *ReplaceHTTPRequestRuleOK

NewReplaceHTTPRequestRuleOK creates ReplaceHTTPRequestRuleOK with default headers values

func (*ReplaceHTTPRequestRuleOK) SetPayload

func (o *ReplaceHTTPRequestRuleOK) SetPayload(payload *models.HTTPRequestRule)

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

func (*ReplaceHTTPRequestRuleOK) WithPayload

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

func (*ReplaceHTTPRequestRuleOK) WriteResponse

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

WriteResponse to the client

type ReplaceHTTPRequestRuleParams

type ReplaceHTTPRequestRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.HTTPRequestRule
	/*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*HTTP Request Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

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

swagger:parameters replaceHTTPRequestRule

func NewReplaceHTTPRequestRuleParams

func NewReplaceHTTPRequestRuleParams() ReplaceHTTPRequestRuleParams

NewReplaceHTTPRequestRuleParams creates a new ReplaceHTTPRequestRuleParams object with the default values initialized.

func (*ReplaceHTTPRequestRuleParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewReplaceHTTPRequestRuleParams() beforehand.

type ReplaceHTTPRequestRuleURL

type ReplaceHTTPRequestRuleURL struct {
	ID int64

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

ReplaceHTTPRequestRuleURL generates an URL for the replace HTTP request rule operation

func (*ReplaceHTTPRequestRuleURL) Build

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

Build a url path and query string

func (*ReplaceHTTPRequestRuleURL) BuildFull

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

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

func (*ReplaceHTTPRequestRuleURL) Must

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

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

func (*ReplaceHTTPRequestRuleURL) SetBasePath

func (o *ReplaceHTTPRequestRuleURL) SetBasePath(bp string)

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

func (*ReplaceHTTPRequestRuleURL) String

func (o *ReplaceHTTPRequestRuleURL) String() string

String returns the string representation of the path with query string

func (*ReplaceHTTPRequestRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceHTTPRequestRuleURL) WithBasePath

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