backend_switching_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 CreateBackendSwitchingRuleAcceptedCode int = 202

CreateBackendSwitchingRuleAcceptedCode is the HTTP code returned for type CreateBackendSwitchingRuleAccepted

View Source
const CreateBackendSwitchingRuleBadRequestCode int = 400

CreateBackendSwitchingRuleBadRequestCode is the HTTP code returned for type CreateBackendSwitchingRuleBadRequest

View Source
const CreateBackendSwitchingRuleConflictCode int = 409

CreateBackendSwitchingRuleConflictCode is the HTTP code returned for type CreateBackendSwitchingRuleConflict

View Source
const CreateBackendSwitchingRuleCreatedCode int = 201

CreateBackendSwitchingRuleCreatedCode is the HTTP code returned for type CreateBackendSwitchingRuleCreated

View Source
const DeleteBackendSwitchingRuleAcceptedCode int = 202

DeleteBackendSwitchingRuleAcceptedCode is the HTTP code returned for type DeleteBackendSwitchingRuleAccepted

View Source
const DeleteBackendSwitchingRuleNoContentCode int = 204

DeleteBackendSwitchingRuleNoContentCode is the HTTP code returned for type DeleteBackendSwitchingRuleNoContent

View Source
const DeleteBackendSwitchingRuleNotFoundCode int = 404

DeleteBackendSwitchingRuleNotFoundCode is the HTTP code returned for type DeleteBackendSwitchingRuleNotFound

View Source
const GetBackendSwitchingRuleNotFoundCode int = 404

GetBackendSwitchingRuleNotFoundCode is the HTTP code returned for type GetBackendSwitchingRuleNotFound

View Source
const GetBackendSwitchingRuleOKCode int = 200

GetBackendSwitchingRuleOKCode is the HTTP code returned for type GetBackendSwitchingRuleOK

View Source
const GetBackendSwitchingRulesOKCode int = 200

GetBackendSwitchingRulesOKCode is the HTTP code returned for type GetBackendSwitchingRulesOK

View Source
const ReplaceBackendSwitchingRuleAcceptedCode int = 202

ReplaceBackendSwitchingRuleAcceptedCode is the HTTP code returned for type ReplaceBackendSwitchingRuleAccepted

View Source
const ReplaceBackendSwitchingRuleBadRequestCode int = 400

ReplaceBackendSwitchingRuleBadRequestCode is the HTTP code returned for type ReplaceBackendSwitchingRuleBadRequest

View Source
const ReplaceBackendSwitchingRuleNotFoundCode int = 404

ReplaceBackendSwitchingRuleNotFoundCode is the HTTP code returned for type ReplaceBackendSwitchingRuleNotFound

View Source
const ReplaceBackendSwitchingRuleOKCode int = 200

ReplaceBackendSwitchingRuleOKCode is the HTTP code returned for type ReplaceBackendSwitchingRuleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBackendSwitchingRule

type CreateBackendSwitchingRule struct {
	Context *middleware.Context
	Handler CreateBackendSwitchingRuleHandler
}

CreateBackendSwitchingRule swagger:route POST /services/haproxy/configuration/backend_switching_rules BackendSwitchingRule createBackendSwitchingRule

Add a new Backend Switching Rule

Adds a new Backend Switching Rule of the specified type in the specified frontend.

func NewCreateBackendSwitchingRule

func NewCreateBackendSwitchingRule(ctx *middleware.Context, handler CreateBackendSwitchingRuleHandler) *CreateBackendSwitchingRule

NewCreateBackendSwitchingRule creates a new http.Handler for the create backend switching rule operation

func (*CreateBackendSwitchingRule) ServeHTTP

type CreateBackendSwitchingRuleAccepted

type CreateBackendSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

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

CreateBackendSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response createBackendSwitchingRuleAccepted

func NewCreateBackendSwitchingRuleAccepted

func NewCreateBackendSwitchingRuleAccepted() *CreateBackendSwitchingRuleAccepted

NewCreateBackendSwitchingRuleAccepted creates CreateBackendSwitchingRuleAccepted with default headers values

func (*CreateBackendSwitchingRuleAccepted) SetPayload

SetPayload sets the payload to the create backend switching rule accepted response

func (*CreateBackendSwitchingRuleAccepted) SetReloadID

func (o *CreateBackendSwitchingRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the create backend switching rule accepted response

func (*CreateBackendSwitchingRuleAccepted) WithPayload

WithPayload adds the payload to the create backend switching rule accepted response

func (*CreateBackendSwitchingRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the create backend switching rule accepted response

func (*CreateBackendSwitchingRuleAccepted) WriteResponse

WriteResponse to the client

type CreateBackendSwitchingRuleBadRequest

type CreateBackendSwitchingRuleBadRequest struct {
	/*Configuration file version

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

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

CreateBackendSwitchingRuleBadRequest Bad request

swagger:response createBackendSwitchingRuleBadRequest

func NewCreateBackendSwitchingRuleBadRequest

func NewCreateBackendSwitchingRuleBadRequest() *CreateBackendSwitchingRuleBadRequest

NewCreateBackendSwitchingRuleBadRequest creates CreateBackendSwitchingRuleBadRequest with default headers values

func (*CreateBackendSwitchingRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create backend switching rule bad request response

func (*CreateBackendSwitchingRuleBadRequest) SetPayload

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

SetPayload sets the payload to the create backend switching rule bad request response

func (*CreateBackendSwitchingRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create backend switching rule bad request response

func (*CreateBackendSwitchingRuleBadRequest) WithPayload

WithPayload adds the payload to the create backend switching rule bad request response

func (*CreateBackendSwitchingRuleBadRequest) WriteResponse

WriteResponse to the client

type CreateBackendSwitchingRuleConflict

type CreateBackendSwitchingRuleConflict struct {
	/*Configuration file version

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

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

CreateBackendSwitchingRuleConflict The specified resource already exists

swagger:response createBackendSwitchingRuleConflict

func NewCreateBackendSwitchingRuleConflict

func NewCreateBackendSwitchingRuleConflict() *CreateBackendSwitchingRuleConflict

NewCreateBackendSwitchingRuleConflict creates CreateBackendSwitchingRuleConflict with default headers values

func (*CreateBackendSwitchingRuleConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateBackendSwitchingRuleConflict) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create backend switching rule conflict response

func (*CreateBackendSwitchingRuleConflict) SetPayload

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

SetPayload sets the payload to the create backend switching rule conflict response

func (*CreateBackendSwitchingRuleConflict) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create backend switching rule conflict response

func (*CreateBackendSwitchingRuleConflict) WithPayload

WithPayload adds the payload to the create backend switching rule conflict response

func (*CreateBackendSwitchingRuleConflict) WriteResponse

WriteResponse to the client

type CreateBackendSwitchingRuleCreated

type CreateBackendSwitchingRuleCreated struct {

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

CreateBackendSwitchingRuleCreated Backend Switching Rule created

swagger:response createBackendSwitchingRuleCreated

func NewCreateBackendSwitchingRuleCreated

func NewCreateBackendSwitchingRuleCreated() *CreateBackendSwitchingRuleCreated

NewCreateBackendSwitchingRuleCreated creates CreateBackendSwitchingRuleCreated with default headers values

func (*CreateBackendSwitchingRuleCreated) SetPayload

SetPayload sets the payload to the create backend switching rule created response

func (*CreateBackendSwitchingRuleCreated) WithPayload

WithPayload adds the payload to the create backend switching rule created response

func (*CreateBackendSwitchingRuleCreated) WriteResponse

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

WriteResponse to the client

type CreateBackendSwitchingRuleDefault

type CreateBackendSwitchingRuleDefault struct {

	/*Configuration file version

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

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

CreateBackendSwitchingRuleDefault General Error

swagger:response createBackendSwitchingRuleDefault

func NewCreateBackendSwitchingRuleDefault

func NewCreateBackendSwitchingRuleDefault(code int) *CreateBackendSwitchingRuleDefault

NewCreateBackendSwitchingRuleDefault creates CreateBackendSwitchingRuleDefault with default headers values

func (*CreateBackendSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) SetPayload

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

SetPayload sets the payload to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) SetStatusCode

func (o *CreateBackendSwitchingRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) WithPayload

WithPayload adds the payload to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) WithStatusCode

WithStatusCode adds the status to the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type CreateBackendSwitchingRuleHandler

type CreateBackendSwitchingRuleHandler interface {
	Handle(CreateBackendSwitchingRuleParams, interface{}) middleware.Responder
}

CreateBackendSwitchingRuleHandler interface for that can handle valid create backend switching rule params

type CreateBackendSwitchingRuleHandlerFunc

type CreateBackendSwitchingRuleHandlerFunc func(CreateBackendSwitchingRuleParams, interface{}) middleware.Responder

CreateBackendSwitchingRuleHandlerFunc turns a function with the right signature into a create backend switching rule handler

func (CreateBackendSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type CreateBackendSwitchingRuleParams

type CreateBackendSwitchingRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.BackendSwitchingRule
	/*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
	/*Frontend name
	  Required: true
	  In: query
	*/
	Frontend 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
}

CreateBackendSwitchingRuleParams contains all the bound params for the create backend switching rule operation typically these are obtained from a http.Request

swagger:parameters createBackendSwitchingRule

func NewCreateBackendSwitchingRuleParams

func NewCreateBackendSwitchingRuleParams() CreateBackendSwitchingRuleParams

NewCreateBackendSwitchingRuleParams creates a new CreateBackendSwitchingRuleParams object with the default values initialized.

func (*CreateBackendSwitchingRuleParams) 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 NewCreateBackendSwitchingRuleParams() beforehand.

type CreateBackendSwitchingRuleURL

type CreateBackendSwitchingRuleURL struct {
	ForceReload   *bool
	Frontend      string
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

CreateBackendSwitchingRuleURL generates an URL for the create backend switching rule operation

func (*CreateBackendSwitchingRuleURL) Build

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

Build a url path and query string

func (*CreateBackendSwitchingRuleURL) BuildFull

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

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

func (*CreateBackendSwitchingRuleURL) Must

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

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

func (*CreateBackendSwitchingRuleURL) SetBasePath

func (o *CreateBackendSwitchingRuleURL) 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 (*CreateBackendSwitchingRuleURL) String

String returns the string representation of the path with query string

func (*CreateBackendSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateBackendSwitchingRuleURL) 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 DeleteBackendSwitchingRule

type DeleteBackendSwitchingRule struct {
	Context *middleware.Context
	Handler DeleteBackendSwitchingRuleHandler
}

DeleteBackendSwitchingRule swagger:route DELETE /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule deleteBackendSwitchingRule

Delete a Backend Switching Rule

Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.

func NewDeleteBackendSwitchingRule

func NewDeleteBackendSwitchingRule(ctx *middleware.Context, handler DeleteBackendSwitchingRuleHandler) *DeleteBackendSwitchingRule

NewDeleteBackendSwitchingRule creates a new http.Handler for the delete backend switching rule operation

func (*DeleteBackendSwitchingRule) ServeHTTP

type DeleteBackendSwitchingRuleAccepted

type DeleteBackendSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

DeleteBackendSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response deleteBackendSwitchingRuleAccepted

func NewDeleteBackendSwitchingRuleAccepted

func NewDeleteBackendSwitchingRuleAccepted() *DeleteBackendSwitchingRuleAccepted

NewDeleteBackendSwitchingRuleAccepted creates DeleteBackendSwitchingRuleAccepted with default headers values

func (*DeleteBackendSwitchingRuleAccepted) SetReloadID

func (o *DeleteBackendSwitchingRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the delete backend switching rule accepted response

func (*DeleteBackendSwitchingRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the delete backend switching rule accepted response

func (*DeleteBackendSwitchingRuleAccepted) WriteResponse

WriteResponse to the client

type DeleteBackendSwitchingRuleDefault

type DeleteBackendSwitchingRuleDefault struct {

	/*Configuration file version

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

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

DeleteBackendSwitchingRuleDefault General Error

swagger:response deleteBackendSwitchingRuleDefault

func NewDeleteBackendSwitchingRuleDefault

func NewDeleteBackendSwitchingRuleDefault(code int) *DeleteBackendSwitchingRuleDefault

NewDeleteBackendSwitchingRuleDefault creates DeleteBackendSwitchingRuleDefault with default headers values

func (*DeleteBackendSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) SetPayload

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

SetPayload sets the payload to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) SetStatusCode

func (o *DeleteBackendSwitchingRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) WithPayload

WithPayload adds the payload to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) WithStatusCode

WithStatusCode adds the status to the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type DeleteBackendSwitchingRuleHandler

type DeleteBackendSwitchingRuleHandler interface {
	Handle(DeleteBackendSwitchingRuleParams, interface{}) middleware.Responder
}

DeleteBackendSwitchingRuleHandler interface for that can handle valid delete backend switching rule params

type DeleteBackendSwitchingRuleHandlerFunc

type DeleteBackendSwitchingRuleHandlerFunc func(DeleteBackendSwitchingRuleParams, interface{}) middleware.Responder

DeleteBackendSwitchingRuleHandlerFunc turns a function with the right signature into a delete backend switching rule handler

func (DeleteBackendSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteBackendSwitchingRuleNoContent

type DeleteBackendSwitchingRuleNoContent struct {
}

DeleteBackendSwitchingRuleNoContent Backend Switching Rule deleted

swagger:response deleteBackendSwitchingRuleNoContent

func NewDeleteBackendSwitchingRuleNoContent

func NewDeleteBackendSwitchingRuleNoContent() *DeleteBackendSwitchingRuleNoContent

NewDeleteBackendSwitchingRuleNoContent creates DeleteBackendSwitchingRuleNoContent with default headers values

func (*DeleteBackendSwitchingRuleNoContent) WriteResponse

WriteResponse to the client

type DeleteBackendSwitchingRuleNotFound

type DeleteBackendSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

DeleteBackendSwitchingRuleNotFound The specified resource was not found

swagger:response deleteBackendSwitchingRuleNotFound

func NewDeleteBackendSwitchingRuleNotFound

func NewDeleteBackendSwitchingRuleNotFound() *DeleteBackendSwitchingRuleNotFound

NewDeleteBackendSwitchingRuleNotFound creates DeleteBackendSwitchingRuleNotFound with default headers values

func (*DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete backend switching rule not found response

func (*DeleteBackendSwitchingRuleNotFound) SetPayload

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

SetPayload sets the payload to the delete backend switching rule not found response

func (*DeleteBackendSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete backend switching rule not found response

func (*DeleteBackendSwitchingRuleNotFound) WithPayload

WithPayload adds the payload to the delete backend switching rule not found response

func (*DeleteBackendSwitchingRuleNotFound) WriteResponse

WriteResponse to the client

type DeleteBackendSwitchingRuleParams

type DeleteBackendSwitchingRuleParams 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
	/*Frontend name
	  Required: true
	  In: query
	*/
	Frontend string
	/*Switching Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*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
}

DeleteBackendSwitchingRuleParams contains all the bound params for the delete backend switching rule operation typically these are obtained from a http.Request

swagger:parameters deleteBackendSwitchingRule

func NewDeleteBackendSwitchingRuleParams

func NewDeleteBackendSwitchingRuleParams() DeleteBackendSwitchingRuleParams

NewDeleteBackendSwitchingRuleParams creates a new DeleteBackendSwitchingRuleParams object with the default values initialized.

func (*DeleteBackendSwitchingRuleParams) 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 NewDeleteBackendSwitchingRuleParams() beforehand.

type DeleteBackendSwitchingRuleURL

type DeleteBackendSwitchingRuleURL struct {
	ID int64

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

DeleteBackendSwitchingRuleURL generates an URL for the delete backend switching rule operation

func (*DeleteBackendSwitchingRuleURL) Build

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

Build a url path and query string

func (*DeleteBackendSwitchingRuleURL) BuildFull

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

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

func (*DeleteBackendSwitchingRuleURL) Must

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

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

func (*DeleteBackendSwitchingRuleURL) SetBasePath

func (o *DeleteBackendSwitchingRuleURL) 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 (*DeleteBackendSwitchingRuleURL) String

String returns the string representation of the path with query string

func (*DeleteBackendSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteBackendSwitchingRuleURL) 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 GetBackendSwitchingRule

type GetBackendSwitchingRule struct {
	Context *middleware.Context
	Handler GetBackendSwitchingRuleHandler
}

GetBackendSwitchingRule swagger:route GET /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule getBackendSwitchingRule

Return one Backend Switching Rule

Returns one Backend Switching Rule configuration by it's ID in the specified frontend.

func NewGetBackendSwitchingRule

func NewGetBackendSwitchingRule(ctx *middleware.Context, handler GetBackendSwitchingRuleHandler) *GetBackendSwitchingRule

NewGetBackendSwitchingRule creates a new http.Handler for the get backend switching rule operation

func (*GetBackendSwitchingRule) ServeHTTP

type GetBackendSwitchingRuleDefault

type GetBackendSwitchingRuleDefault struct {

	/*Configuration file version

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

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

GetBackendSwitchingRuleDefault General Error

swagger:response getBackendSwitchingRuleDefault

func NewGetBackendSwitchingRuleDefault

func NewGetBackendSwitchingRuleDefault(code int) *GetBackendSwitchingRuleDefault

NewGetBackendSwitchingRuleDefault creates GetBackendSwitchingRuleDefault with default headers values

func (*GetBackendSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *GetBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) SetPayload

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

SetPayload sets the payload to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) SetStatusCode

func (o *GetBackendSwitchingRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) WithPayload

WithPayload adds the payload to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) WithStatusCode

WithStatusCode adds the status to the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type GetBackendSwitchingRuleHandler

type GetBackendSwitchingRuleHandler interface {
	Handle(GetBackendSwitchingRuleParams, interface{}) middleware.Responder
}

GetBackendSwitchingRuleHandler interface for that can handle valid get backend switching rule params

type GetBackendSwitchingRuleHandlerFunc

type GetBackendSwitchingRuleHandlerFunc func(GetBackendSwitchingRuleParams, interface{}) middleware.Responder

GetBackendSwitchingRuleHandlerFunc turns a function with the right signature into a get backend switching rule handler

func (GetBackendSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type GetBackendSwitchingRuleNotFound

type GetBackendSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

GetBackendSwitchingRuleNotFound The specified resource was not found

swagger:response getBackendSwitchingRuleNotFound

func NewGetBackendSwitchingRuleNotFound

func NewGetBackendSwitchingRuleNotFound() *GetBackendSwitchingRuleNotFound

NewGetBackendSwitchingRuleNotFound creates GetBackendSwitchingRuleNotFound with default headers values

func (*GetBackendSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get backend switching rule not found response

func (*GetBackendSwitchingRuleNotFound) SetPayload

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

SetPayload sets the payload to the get backend switching rule not found response

func (*GetBackendSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get backend switching rule not found response

func (*GetBackendSwitchingRuleNotFound) WithPayload

WithPayload adds the payload to the get backend switching rule not found response

func (*GetBackendSwitchingRuleNotFound) WriteResponse

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

WriteResponse to the client

type GetBackendSwitchingRuleOK

type GetBackendSwitchingRuleOK struct {
	/*Configuration file version

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

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

GetBackendSwitchingRuleOK Successful operation

swagger:response getBackendSwitchingRuleOK

func NewGetBackendSwitchingRuleOK

func NewGetBackendSwitchingRuleOK() *GetBackendSwitchingRuleOK

NewGetBackendSwitchingRuleOK creates GetBackendSwitchingRuleOK with default headers values

func (*GetBackendSwitchingRuleOK) SetConfigurationVersion added in v1.2.2

func (o *GetBackendSwitchingRuleOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get backend switching rule o k response

func (*GetBackendSwitchingRuleOK) SetPayload

SetPayload sets the payload to the get backend switching rule o k response

func (*GetBackendSwitchingRuleOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get backend switching rule o k response

func (*GetBackendSwitchingRuleOK) WithPayload

WithPayload adds the payload to the get backend switching rule o k response

func (*GetBackendSwitchingRuleOK) WriteResponse

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

WriteResponse to the client

type GetBackendSwitchingRuleOKBody

type GetBackendSwitchingRuleOKBody struct {

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

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

GetBackendSwitchingRuleOKBody get backend switching rule o k body swagger:model GetBackendSwitchingRuleOKBody

func (*GetBackendSwitchingRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBackendSwitchingRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBackendSwitchingRuleOKBody) Validate

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

Validate validates this get backend switching rule o k body

type GetBackendSwitchingRuleParams

type GetBackendSwitchingRuleParams struct {

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

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

GetBackendSwitchingRuleParams contains all the bound params for the get backend switching rule operation typically these are obtained from a http.Request

swagger:parameters getBackendSwitchingRule

func NewGetBackendSwitchingRuleParams

func NewGetBackendSwitchingRuleParams() GetBackendSwitchingRuleParams

NewGetBackendSwitchingRuleParams creates a new GetBackendSwitchingRuleParams object no default values defined in spec.

func (*GetBackendSwitchingRuleParams) 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 NewGetBackendSwitchingRuleParams() beforehand.

type GetBackendSwitchingRuleURL

type GetBackendSwitchingRuleURL struct {
	ID int64

	Frontend      string
	TransactionID *string
	// contains filtered or unexported fields
}

GetBackendSwitchingRuleURL generates an URL for the get backend switching rule operation

func (*GetBackendSwitchingRuleURL) Build

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

Build a url path and query string

func (*GetBackendSwitchingRuleURL) BuildFull

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

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

func (*GetBackendSwitchingRuleURL) Must

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

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

func (*GetBackendSwitchingRuleURL) SetBasePath

func (o *GetBackendSwitchingRuleURL) 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 (*GetBackendSwitchingRuleURL) String

func (o *GetBackendSwitchingRuleURL) String() string

String returns the string representation of the path with query string

func (*GetBackendSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBackendSwitchingRuleURL) 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 GetBackendSwitchingRules

type GetBackendSwitchingRules struct {
	Context *middleware.Context
	Handler GetBackendSwitchingRulesHandler
}

GetBackendSwitchingRules swagger:route GET /services/haproxy/configuration/backend_switching_rules BackendSwitchingRule getBackendSwitchingRules

Return an array of all Backend Switching Rules

Returns all Backend Switching Rules that are configured in specified frontend.

func NewGetBackendSwitchingRules

func NewGetBackendSwitchingRules(ctx *middleware.Context, handler GetBackendSwitchingRulesHandler) *GetBackendSwitchingRules

NewGetBackendSwitchingRules creates a new http.Handler for the get backend switching rules operation

func (*GetBackendSwitchingRules) ServeHTTP

type GetBackendSwitchingRulesDefault

type GetBackendSwitchingRulesDefault struct {

	/*Configuration file version

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

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

GetBackendSwitchingRulesDefault General Error

swagger:response getBackendSwitchingRulesDefault

func NewGetBackendSwitchingRulesDefault

func NewGetBackendSwitchingRulesDefault(code int) *GetBackendSwitchingRulesDefault

NewGetBackendSwitchingRulesDefault creates GetBackendSwitchingRulesDefault with default headers values

func (*GetBackendSwitchingRulesDefault) SetConfigurationVersion added in v1.2.2

func (o *GetBackendSwitchingRulesDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) SetPayload

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

SetPayload sets the payload to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) SetStatusCode

func (o *GetBackendSwitchingRulesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) WithPayload

WithPayload adds the payload to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) WithStatusCode

WithStatusCode adds the status to the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) WriteResponse

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

WriteResponse to the client

type GetBackendSwitchingRulesHandler

type GetBackendSwitchingRulesHandler interface {
	Handle(GetBackendSwitchingRulesParams, interface{}) middleware.Responder
}

GetBackendSwitchingRulesHandler interface for that can handle valid get backend switching rules params

type GetBackendSwitchingRulesHandlerFunc

type GetBackendSwitchingRulesHandlerFunc func(GetBackendSwitchingRulesParams, interface{}) middleware.Responder

GetBackendSwitchingRulesHandlerFunc turns a function with the right signature into a get backend switching rules handler

func (GetBackendSwitchingRulesHandlerFunc) Handle

Handle executing the request and returning a response

type GetBackendSwitchingRulesOK

type GetBackendSwitchingRulesOK struct {
	/*Configuration file version

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

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

GetBackendSwitchingRulesOK Successful operation

swagger:response getBackendSwitchingRulesOK

func NewGetBackendSwitchingRulesOK

func NewGetBackendSwitchingRulesOK() *GetBackendSwitchingRulesOK

NewGetBackendSwitchingRulesOK creates GetBackendSwitchingRulesOK with default headers values

func (*GetBackendSwitchingRulesOK) SetConfigurationVersion added in v1.2.2

func (o *GetBackendSwitchingRulesOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get backend switching rules o k response

func (*GetBackendSwitchingRulesOK) SetPayload

SetPayload sets the payload to the get backend switching rules o k response

func (*GetBackendSwitchingRulesOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get backend switching rules o k response

func (*GetBackendSwitchingRulesOK) WithPayload

WithPayload adds the payload to the get backend switching rules o k response

func (*GetBackendSwitchingRulesOK) WriteResponse

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

WriteResponse to the client

type GetBackendSwitchingRulesOKBody

type GetBackendSwitchingRulesOKBody struct {

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

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

GetBackendSwitchingRulesOKBody get backend switching rules o k body swagger:model GetBackendSwitchingRulesOKBody

func (*GetBackendSwitchingRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBackendSwitchingRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBackendSwitchingRulesOKBody) Validate

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

Validate validates this get backend switching rules o k body

type GetBackendSwitchingRulesParams

type GetBackendSwitchingRulesParams struct {

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

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

GetBackendSwitchingRulesParams contains all the bound params for the get backend switching rules operation typically these are obtained from a http.Request

swagger:parameters getBackendSwitchingRules

func NewGetBackendSwitchingRulesParams

func NewGetBackendSwitchingRulesParams() GetBackendSwitchingRulesParams

NewGetBackendSwitchingRulesParams creates a new GetBackendSwitchingRulesParams object no default values defined in spec.

func (*GetBackendSwitchingRulesParams) 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 NewGetBackendSwitchingRulesParams() beforehand.

type GetBackendSwitchingRulesURL

type GetBackendSwitchingRulesURL struct {
	Frontend      string
	TransactionID *string
	// contains filtered or unexported fields
}

GetBackendSwitchingRulesURL generates an URL for the get backend switching rules operation

func (*GetBackendSwitchingRulesURL) Build

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

Build a url path and query string

func (*GetBackendSwitchingRulesURL) BuildFull

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

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

func (*GetBackendSwitchingRulesURL) Must

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

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

func (*GetBackendSwitchingRulesURL) SetBasePath

func (o *GetBackendSwitchingRulesURL) 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 (*GetBackendSwitchingRulesURL) String

func (o *GetBackendSwitchingRulesURL) String() string

String returns the string representation of the path with query string

func (*GetBackendSwitchingRulesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBackendSwitchingRulesURL) 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 ReplaceBackendSwitchingRule

type ReplaceBackendSwitchingRule struct {
	Context *middleware.Context
	Handler ReplaceBackendSwitchingRuleHandler
}

ReplaceBackendSwitchingRule swagger:route PUT /services/haproxy/configuration/backend_switching_rules/{id} BackendSwitchingRule replaceBackendSwitchingRule

Replace a Backend Switching Rule

Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.

func NewReplaceBackendSwitchingRule

func NewReplaceBackendSwitchingRule(ctx *middleware.Context, handler ReplaceBackendSwitchingRuleHandler) *ReplaceBackendSwitchingRule

NewReplaceBackendSwitchingRule creates a new http.Handler for the replace backend switching rule operation

func (*ReplaceBackendSwitchingRule) ServeHTTP

type ReplaceBackendSwitchingRuleAccepted

type ReplaceBackendSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

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

ReplaceBackendSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response replaceBackendSwitchingRuleAccepted

func NewReplaceBackendSwitchingRuleAccepted

func NewReplaceBackendSwitchingRuleAccepted() *ReplaceBackendSwitchingRuleAccepted

NewReplaceBackendSwitchingRuleAccepted creates ReplaceBackendSwitchingRuleAccepted with default headers values

func (*ReplaceBackendSwitchingRuleAccepted) SetPayload

SetPayload sets the payload to the replace backend switching rule accepted response

func (*ReplaceBackendSwitchingRuleAccepted) SetReloadID

func (o *ReplaceBackendSwitchingRuleAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace backend switching rule accepted response

func (*ReplaceBackendSwitchingRuleAccepted) WithPayload

WithPayload adds the payload to the replace backend switching rule accepted response

func (*ReplaceBackendSwitchingRuleAccepted) WithReloadID

WithReloadID adds the reloadId to the replace backend switching rule accepted response

func (*ReplaceBackendSwitchingRuleAccepted) WriteResponse

WriteResponse to the client

type ReplaceBackendSwitchingRuleBadRequest

type ReplaceBackendSwitchingRuleBadRequest struct {
	/*Configuration file version

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

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

ReplaceBackendSwitchingRuleBadRequest Bad request

swagger:response replaceBackendSwitchingRuleBadRequest

func NewReplaceBackendSwitchingRuleBadRequest

func NewReplaceBackendSwitchingRuleBadRequest() *ReplaceBackendSwitchingRuleBadRequest

NewReplaceBackendSwitchingRuleBadRequest creates ReplaceBackendSwitchingRuleBadRequest with default headers values

func (*ReplaceBackendSwitchingRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceBackendSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace backend switching rule bad request response

func (*ReplaceBackendSwitchingRuleBadRequest) SetPayload

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

SetPayload sets the payload to the replace backend switching rule bad request response

func (*ReplaceBackendSwitchingRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace backend switching rule bad request response

func (*ReplaceBackendSwitchingRuleBadRequest) WithPayload

WithPayload adds the payload to the replace backend switching rule bad request response

func (*ReplaceBackendSwitchingRuleBadRequest) WriteResponse

WriteResponse to the client

type ReplaceBackendSwitchingRuleDefault

type ReplaceBackendSwitchingRuleDefault struct {

	/*Configuration file version

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

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

ReplaceBackendSwitchingRuleDefault General Error

swagger:response replaceBackendSwitchingRuleDefault

func NewReplaceBackendSwitchingRuleDefault

func NewReplaceBackendSwitchingRuleDefault(code int) *ReplaceBackendSwitchingRuleDefault

NewReplaceBackendSwitchingRuleDefault creates ReplaceBackendSwitchingRuleDefault with default headers values

func (*ReplaceBackendSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceBackendSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) SetPayload

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

SetPayload sets the payload to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) SetStatusCode

func (o *ReplaceBackendSwitchingRuleDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) WithPayload

WithPayload adds the payload to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) WithStatusCode

WithStatusCode adds the status to the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) WriteResponse

WriteResponse to the client

type ReplaceBackendSwitchingRuleHandler

type ReplaceBackendSwitchingRuleHandler interface {
	Handle(ReplaceBackendSwitchingRuleParams, interface{}) middleware.Responder
}

ReplaceBackendSwitchingRuleHandler interface for that can handle valid replace backend switching rule params

type ReplaceBackendSwitchingRuleHandlerFunc

type ReplaceBackendSwitchingRuleHandlerFunc func(ReplaceBackendSwitchingRuleParams, interface{}) middleware.Responder

ReplaceBackendSwitchingRuleHandlerFunc turns a function with the right signature into a replace backend switching rule handler

func (ReplaceBackendSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type ReplaceBackendSwitchingRuleNotFound

type ReplaceBackendSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

ReplaceBackendSwitchingRuleNotFound The specified resource was not found

swagger:response replaceBackendSwitchingRuleNotFound

func NewReplaceBackendSwitchingRuleNotFound

func NewReplaceBackendSwitchingRuleNotFound() *ReplaceBackendSwitchingRuleNotFound

NewReplaceBackendSwitchingRuleNotFound creates ReplaceBackendSwitchingRuleNotFound with default headers values

func (*ReplaceBackendSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceBackendSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace backend switching rule not found response

func (*ReplaceBackendSwitchingRuleNotFound) SetPayload

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

SetPayload sets the payload to the replace backend switching rule not found response

func (*ReplaceBackendSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace backend switching rule not found response

func (*ReplaceBackendSwitchingRuleNotFound) WithPayload

WithPayload adds the payload to the replace backend switching rule not found response

func (*ReplaceBackendSwitchingRuleNotFound) WriteResponse

WriteResponse to the client

type ReplaceBackendSwitchingRuleOK

type ReplaceBackendSwitchingRuleOK struct {

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

ReplaceBackendSwitchingRuleOK Backend Switching Rule replaced

swagger:response replaceBackendSwitchingRuleOK

func NewReplaceBackendSwitchingRuleOK

func NewReplaceBackendSwitchingRuleOK() *ReplaceBackendSwitchingRuleOK

NewReplaceBackendSwitchingRuleOK creates ReplaceBackendSwitchingRuleOK with default headers values

func (*ReplaceBackendSwitchingRuleOK) SetPayload

SetPayload sets the payload to the replace backend switching rule o k response

func (*ReplaceBackendSwitchingRuleOK) WithPayload

WithPayload adds the payload to the replace backend switching rule o k response

func (*ReplaceBackendSwitchingRuleOK) WriteResponse

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

WriteResponse to the client

type ReplaceBackendSwitchingRuleParams

type ReplaceBackendSwitchingRuleParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.BackendSwitchingRule
	/*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
	/*Frontend name
	  Required: true
	  In: query
	*/
	Frontend string
	/*Switching Rule ID
	  Required: true
	  In: path
	*/
	ID int64
	/*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
}

ReplaceBackendSwitchingRuleParams contains all the bound params for the replace backend switching rule operation typically these are obtained from a http.Request

swagger:parameters replaceBackendSwitchingRule

func NewReplaceBackendSwitchingRuleParams

func NewReplaceBackendSwitchingRuleParams() ReplaceBackendSwitchingRuleParams

NewReplaceBackendSwitchingRuleParams creates a new ReplaceBackendSwitchingRuleParams object with the default values initialized.

func (*ReplaceBackendSwitchingRuleParams) 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 NewReplaceBackendSwitchingRuleParams() beforehand.

type ReplaceBackendSwitchingRuleURL

type ReplaceBackendSwitchingRuleURL struct {
	ID int64

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

ReplaceBackendSwitchingRuleURL generates an URL for the replace backend switching rule operation

func (*ReplaceBackendSwitchingRuleURL) Build

Build a url path and query string

func (*ReplaceBackendSwitchingRuleURL) BuildFull

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

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

func (*ReplaceBackendSwitchingRuleURL) Must

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

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

func (*ReplaceBackendSwitchingRuleURL) SetBasePath

func (o *ReplaceBackendSwitchingRuleURL) 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 (*ReplaceBackendSwitchingRuleURL) String

String returns the string representation of the path with query string

func (*ReplaceBackendSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceBackendSwitchingRuleURL) 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