server_switching_rule

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateServerSwitchingRuleAcceptedCode int = 202

CreateServerSwitchingRuleAcceptedCode is the HTTP code returned for type CreateServerSwitchingRuleAccepted

View Source
const CreateServerSwitchingRuleBadRequestCode int = 400

CreateServerSwitchingRuleBadRequestCode is the HTTP code returned for type CreateServerSwitchingRuleBadRequest

View Source
const CreateServerSwitchingRuleConflictCode int = 409

CreateServerSwitchingRuleConflictCode is the HTTP code returned for type CreateServerSwitchingRuleConflict

View Source
const CreateServerSwitchingRuleCreatedCode int = 201

CreateServerSwitchingRuleCreatedCode is the HTTP code returned for type CreateServerSwitchingRuleCreated

View Source
const DeleteServerSwitchingRuleAcceptedCode int = 202

DeleteServerSwitchingRuleAcceptedCode is the HTTP code returned for type DeleteServerSwitchingRuleAccepted

View Source
const DeleteServerSwitchingRuleNoContentCode int = 204

DeleteServerSwitchingRuleNoContentCode is the HTTP code returned for type DeleteServerSwitchingRuleNoContent

View Source
const DeleteServerSwitchingRuleNotFoundCode int = 404

DeleteServerSwitchingRuleNotFoundCode is the HTTP code returned for type DeleteServerSwitchingRuleNotFound

View Source
const GetServerSwitchingRuleNotFoundCode int = 404

GetServerSwitchingRuleNotFoundCode is the HTTP code returned for type GetServerSwitchingRuleNotFound

View Source
const GetServerSwitchingRuleOKCode int = 200

GetServerSwitchingRuleOKCode is the HTTP code returned for type GetServerSwitchingRuleOK

View Source
const GetServerSwitchingRulesOKCode int = 200

GetServerSwitchingRulesOKCode is the HTTP code returned for type GetServerSwitchingRulesOK

View Source
const ReplaceServerSwitchingRuleAcceptedCode int = 202

ReplaceServerSwitchingRuleAcceptedCode is the HTTP code returned for type ReplaceServerSwitchingRuleAccepted

View Source
const ReplaceServerSwitchingRuleBadRequestCode int = 400

ReplaceServerSwitchingRuleBadRequestCode is the HTTP code returned for type ReplaceServerSwitchingRuleBadRequest

View Source
const ReplaceServerSwitchingRuleNotFoundCode int = 404

ReplaceServerSwitchingRuleNotFoundCode is the HTTP code returned for type ReplaceServerSwitchingRuleNotFound

View Source
const ReplaceServerSwitchingRuleOKCode int = 200

ReplaceServerSwitchingRuleOKCode is the HTTP code returned for type ReplaceServerSwitchingRuleOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServerSwitchingRule

type CreateServerSwitchingRule struct {
	Context *middleware.Context
	Handler CreateServerSwitchingRuleHandler
}

CreateServerSwitchingRule swagger:route POST /services/haproxy/configuration/server_switching_rules ServerSwitchingRule createServerSwitchingRule

Add a new Server Switching Rule

Adds a new Server Switching Rule of the specified type in the specified backend.

func NewCreateServerSwitchingRule

func NewCreateServerSwitchingRule(ctx *middleware.Context, handler CreateServerSwitchingRuleHandler) *CreateServerSwitchingRule

NewCreateServerSwitchingRule creates a new http.Handler for the create server switching rule operation

func (*CreateServerSwitchingRule) ServeHTTP

type CreateServerSwitchingRuleAccepted

type CreateServerSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

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

CreateServerSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response createServerSwitchingRuleAccepted

func NewCreateServerSwitchingRuleAccepted

func NewCreateServerSwitchingRuleAccepted() *CreateServerSwitchingRuleAccepted

NewCreateServerSwitchingRuleAccepted creates CreateServerSwitchingRuleAccepted with default headers values

func (*CreateServerSwitchingRuleAccepted) SetPayload

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

func (*CreateServerSwitchingRuleAccepted) SetReloadID

func (o *CreateServerSwitchingRuleAccepted) SetReloadID(reloadID string)

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

func (*CreateServerSwitchingRuleAccepted) WithPayload

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

func (*CreateServerSwitchingRuleAccepted) WithReloadID

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

func (*CreateServerSwitchingRuleAccepted) WriteResponse

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

WriteResponse to the client

type CreateServerSwitchingRuleBadRequest

type CreateServerSwitchingRuleBadRequest struct {
	/*Configuration file version

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

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

CreateServerSwitchingRuleBadRequest Bad request

swagger:response createServerSwitchingRuleBadRequest

func NewCreateServerSwitchingRuleBadRequest

func NewCreateServerSwitchingRuleBadRequest() *CreateServerSwitchingRuleBadRequest

NewCreateServerSwitchingRuleBadRequest creates CreateServerSwitchingRuleBadRequest with default headers values

func (*CreateServerSwitchingRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateServerSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateServerSwitchingRuleBadRequest) SetPayload

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

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

func (*CreateServerSwitchingRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateServerSwitchingRuleBadRequest) WithPayload

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

func (*CreateServerSwitchingRuleBadRequest) WriteResponse

WriteResponse to the client

type CreateServerSwitchingRuleConflict

type CreateServerSwitchingRuleConflict struct {
	/*Configuration file version

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

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

CreateServerSwitchingRuleConflict The specified resource already exists

swagger:response createServerSwitchingRuleConflict

func NewCreateServerSwitchingRuleConflict

func NewCreateServerSwitchingRuleConflict() *CreateServerSwitchingRuleConflict

NewCreateServerSwitchingRuleConflict creates CreateServerSwitchingRuleConflict with default headers values

func (*CreateServerSwitchingRuleConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateServerSwitchingRuleConflict) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateServerSwitchingRuleConflict) SetPayload

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

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

func (*CreateServerSwitchingRuleConflict) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateServerSwitchingRuleConflict) WithPayload

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

func (*CreateServerSwitchingRuleConflict) WriteResponse

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

WriteResponse to the client

type CreateServerSwitchingRuleCreated

type CreateServerSwitchingRuleCreated struct {

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

CreateServerSwitchingRuleCreated Server Switching Rule created

swagger:response createServerSwitchingRuleCreated

func NewCreateServerSwitchingRuleCreated

func NewCreateServerSwitchingRuleCreated() *CreateServerSwitchingRuleCreated

NewCreateServerSwitchingRuleCreated creates CreateServerSwitchingRuleCreated with default headers values

func (*CreateServerSwitchingRuleCreated) SetPayload

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

func (*CreateServerSwitchingRuleCreated) WithPayload

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

func (*CreateServerSwitchingRuleCreated) WriteResponse

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

WriteResponse to the client

type CreateServerSwitchingRuleDefault

type CreateServerSwitchingRuleDefault struct {

	/*Configuration file version

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

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

CreateServerSwitchingRuleDefault General Error

swagger:response createServerSwitchingRuleDefault

func NewCreateServerSwitchingRuleDefault

func NewCreateServerSwitchingRuleDefault(code int) *CreateServerSwitchingRuleDefault

NewCreateServerSwitchingRuleDefault creates CreateServerSwitchingRuleDefault with default headers values

func (*CreateServerSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*CreateServerSwitchingRuleDefault) SetPayload

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

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

func (*CreateServerSwitchingRuleDefault) SetStatusCode

func (o *CreateServerSwitchingRuleDefault) SetStatusCode(code int)

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

func (*CreateServerSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*CreateServerSwitchingRuleDefault) WithPayload

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

func (*CreateServerSwitchingRuleDefault) WithStatusCode

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

func (*CreateServerSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type CreateServerSwitchingRuleHandler

type CreateServerSwitchingRuleHandler interface {
	Handle(CreateServerSwitchingRuleParams, interface{}) middleware.Responder
}

CreateServerSwitchingRuleHandler interface for that can handle valid create server switching rule params

type CreateServerSwitchingRuleHandlerFunc

type CreateServerSwitchingRuleHandlerFunc func(CreateServerSwitchingRuleParams, interface{}) middleware.Responder

CreateServerSwitchingRuleHandlerFunc turns a function with the right signature into a create server switching rule handler

func (CreateServerSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServerSwitchingRuleParams

type CreateServerSwitchingRuleParams struct {

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

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

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

swagger:parameters createServerSwitchingRule

func NewCreateServerSwitchingRuleParams

func NewCreateServerSwitchingRuleParams() CreateServerSwitchingRuleParams

NewCreateServerSwitchingRuleParams creates a new CreateServerSwitchingRuleParams object with the default values initialized.

func (*CreateServerSwitchingRuleParams) 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 NewCreateServerSwitchingRuleParams() beforehand.

type CreateServerSwitchingRuleURL

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

CreateServerSwitchingRuleURL generates an URL for the create server switching rule operation

func (*CreateServerSwitchingRuleURL) Build

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

Build a url path and query string

func (*CreateServerSwitchingRuleURL) BuildFull

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

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

func (*CreateServerSwitchingRuleURL) Must

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

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

func (*CreateServerSwitchingRuleURL) SetBasePath

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

String returns the string representation of the path with query string

func (*CreateServerSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

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

type DeleteServerSwitchingRule struct {
	Context *middleware.Context
	Handler DeleteServerSwitchingRuleHandler
}

DeleteServerSwitchingRule swagger:route DELETE /services/haproxy/configuration/server_switching_rules/{id} ServerSwitchingRule deleteServerSwitchingRule

Delete a Server Switching Rule

Deletes a Server Switching Rule configuration by it's ID from the specified backend.

func NewDeleteServerSwitchingRule

func NewDeleteServerSwitchingRule(ctx *middleware.Context, handler DeleteServerSwitchingRuleHandler) *DeleteServerSwitchingRule

NewDeleteServerSwitchingRule creates a new http.Handler for the delete server switching rule operation

func (*DeleteServerSwitchingRule) ServeHTTP

type DeleteServerSwitchingRuleAccepted

type DeleteServerSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

DeleteServerSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response deleteServerSwitchingRuleAccepted

func NewDeleteServerSwitchingRuleAccepted

func NewDeleteServerSwitchingRuleAccepted() *DeleteServerSwitchingRuleAccepted

NewDeleteServerSwitchingRuleAccepted creates DeleteServerSwitchingRuleAccepted with default headers values

func (*DeleteServerSwitchingRuleAccepted) SetReloadID

func (o *DeleteServerSwitchingRuleAccepted) SetReloadID(reloadID string)

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

func (*DeleteServerSwitchingRuleAccepted) WithReloadID

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

func (*DeleteServerSwitchingRuleAccepted) WriteResponse

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

WriteResponse to the client

type DeleteServerSwitchingRuleDefault

type DeleteServerSwitchingRuleDefault struct {

	/*Configuration file version

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

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

DeleteServerSwitchingRuleDefault General Error

swagger:response deleteServerSwitchingRuleDefault

func NewDeleteServerSwitchingRuleDefault

func NewDeleteServerSwitchingRuleDefault(code int) *DeleteServerSwitchingRuleDefault

NewDeleteServerSwitchingRuleDefault creates DeleteServerSwitchingRuleDefault with default headers values

func (*DeleteServerSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteServerSwitchingRuleDefault) SetPayload

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

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

func (*DeleteServerSwitchingRuleDefault) SetStatusCode

func (o *DeleteServerSwitchingRuleDefault) SetStatusCode(code int)

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

func (*DeleteServerSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteServerSwitchingRuleDefault) WithPayload

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

func (*DeleteServerSwitchingRuleDefault) WithStatusCode

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

func (*DeleteServerSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type DeleteServerSwitchingRuleHandler

type DeleteServerSwitchingRuleHandler interface {
	Handle(DeleteServerSwitchingRuleParams, interface{}) middleware.Responder
}

DeleteServerSwitchingRuleHandler interface for that can handle valid delete server switching rule params

type DeleteServerSwitchingRuleHandlerFunc

type DeleteServerSwitchingRuleHandlerFunc func(DeleteServerSwitchingRuleParams, interface{}) middleware.Responder

DeleteServerSwitchingRuleHandlerFunc turns a function with the right signature into a delete server switching rule handler

func (DeleteServerSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteServerSwitchingRuleNoContent

type DeleteServerSwitchingRuleNoContent struct {
}

DeleteServerSwitchingRuleNoContent Server Switching Rule deleted

swagger:response deleteServerSwitchingRuleNoContent

func NewDeleteServerSwitchingRuleNoContent

func NewDeleteServerSwitchingRuleNoContent() *DeleteServerSwitchingRuleNoContent

NewDeleteServerSwitchingRuleNoContent creates DeleteServerSwitchingRuleNoContent with default headers values

func (*DeleteServerSwitchingRuleNoContent) WriteResponse

WriteResponse to the client

type DeleteServerSwitchingRuleNotFound

type DeleteServerSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

DeleteServerSwitchingRuleNotFound The specified resource was not found

swagger:response deleteServerSwitchingRuleNotFound

func NewDeleteServerSwitchingRuleNotFound

func NewDeleteServerSwitchingRuleNotFound() *DeleteServerSwitchingRuleNotFound

NewDeleteServerSwitchingRuleNotFound creates DeleteServerSwitchingRuleNotFound with default headers values

func (*DeleteServerSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*DeleteServerSwitchingRuleNotFound) SetPayload

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

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

func (*DeleteServerSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*DeleteServerSwitchingRuleNotFound) WithPayload

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

func (*DeleteServerSwitchingRuleNotFound) WriteResponse

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

WriteResponse to the client

type DeleteServerSwitchingRuleParams

type DeleteServerSwitchingRuleParams struct {

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

	/*Backend name
	  Required: true
	  In: query
	*/
	Backend string
	/*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
	/*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
}

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

swagger:parameters deleteServerSwitchingRule

func NewDeleteServerSwitchingRuleParams

func NewDeleteServerSwitchingRuleParams() DeleteServerSwitchingRuleParams

NewDeleteServerSwitchingRuleParams creates a new DeleteServerSwitchingRuleParams object with the default values initialized.

func (*DeleteServerSwitchingRuleParams) 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 NewDeleteServerSwitchingRuleParams() beforehand.

type DeleteServerSwitchingRuleURL

type DeleteServerSwitchingRuleURL struct {
	ID int64

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

DeleteServerSwitchingRuleURL generates an URL for the delete server switching rule operation

func (*DeleteServerSwitchingRuleURL) Build

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

Build a url path and query string

func (*DeleteServerSwitchingRuleURL) BuildFull

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

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

func (*DeleteServerSwitchingRuleURL) Must

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

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

func (*DeleteServerSwitchingRuleURL) SetBasePath

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

String returns the string representation of the path with query string

func (*DeleteServerSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

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

type GetServerSwitchingRule struct {
	Context *middleware.Context
	Handler GetServerSwitchingRuleHandler
}

GetServerSwitchingRule swagger:route GET /services/haproxy/configuration/server_switching_rules/{id} ServerSwitchingRule getServerSwitchingRule

Return one Server Switching Rule

Returns one Server Switching Rule configuration by it's ID in the specified backend.

func NewGetServerSwitchingRule

func NewGetServerSwitchingRule(ctx *middleware.Context, handler GetServerSwitchingRuleHandler) *GetServerSwitchingRule

NewGetServerSwitchingRule creates a new http.Handler for the get server switching rule operation

func (*GetServerSwitchingRule) ServeHTTP

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

type GetServerSwitchingRuleDefault

type GetServerSwitchingRuleDefault struct {

	/*Configuration file version

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

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

GetServerSwitchingRuleDefault General Error

swagger:response getServerSwitchingRuleDefault

func NewGetServerSwitchingRuleDefault

func NewGetServerSwitchingRuleDefault(code int) *GetServerSwitchingRuleDefault

NewGetServerSwitchingRuleDefault creates GetServerSwitchingRuleDefault with default headers values

func (*GetServerSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *GetServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetServerSwitchingRuleDefault) SetPayload

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

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

func (*GetServerSwitchingRuleDefault) SetStatusCode

func (o *GetServerSwitchingRuleDefault) SetStatusCode(code int)

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

func (*GetServerSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetServerSwitchingRuleDefault) WithPayload

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

func (*GetServerSwitchingRuleDefault) WithStatusCode

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

func (*GetServerSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type GetServerSwitchingRuleHandler

type GetServerSwitchingRuleHandler interface {
	Handle(GetServerSwitchingRuleParams, interface{}) middleware.Responder
}

GetServerSwitchingRuleHandler interface for that can handle valid get server switching rule params

type GetServerSwitchingRuleHandlerFunc

type GetServerSwitchingRuleHandlerFunc func(GetServerSwitchingRuleParams, interface{}) middleware.Responder

GetServerSwitchingRuleHandlerFunc turns a function with the right signature into a get server switching rule handler

func (GetServerSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type GetServerSwitchingRuleNotFound

type GetServerSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

GetServerSwitchingRuleNotFound The specified resource was not found

swagger:response getServerSwitchingRuleNotFound

func NewGetServerSwitchingRuleNotFound

func NewGetServerSwitchingRuleNotFound() *GetServerSwitchingRuleNotFound

NewGetServerSwitchingRuleNotFound creates GetServerSwitchingRuleNotFound with default headers values

func (*GetServerSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*GetServerSwitchingRuleNotFound) SetPayload

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

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

func (*GetServerSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*GetServerSwitchingRuleNotFound) WithPayload

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

func (*GetServerSwitchingRuleNotFound) WriteResponse

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

WriteResponse to the client

type GetServerSwitchingRuleOK

type GetServerSwitchingRuleOK struct {
	/*Configuration file version

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

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

GetServerSwitchingRuleOK Successful operation

swagger:response getServerSwitchingRuleOK

func NewGetServerSwitchingRuleOK

func NewGetServerSwitchingRuleOK() *GetServerSwitchingRuleOK

NewGetServerSwitchingRuleOK creates GetServerSwitchingRuleOK with default headers values

func (*GetServerSwitchingRuleOK) SetConfigurationVersion added in v1.2.2

func (o *GetServerSwitchingRuleOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetServerSwitchingRuleOK) SetPayload

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

func (*GetServerSwitchingRuleOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetServerSwitchingRuleOK) WithPayload

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

func (*GetServerSwitchingRuleOK) WriteResponse

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

WriteResponse to the client

type GetServerSwitchingRuleOKBody

type GetServerSwitchingRuleOKBody struct {

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

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

GetServerSwitchingRuleOKBody get server switching rule o k body swagger:model GetServerSwitchingRuleOKBody

func (*GetServerSwitchingRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServerSwitchingRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServerSwitchingRuleOKBody) Validate

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

Validate validates this get server switching rule o k body

type GetServerSwitchingRuleParams

type GetServerSwitchingRuleParams struct {

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

	/*Backend name
	  Required: true
	  In: query
	*/
	Backend 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
}

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

swagger:parameters getServerSwitchingRule

func NewGetServerSwitchingRuleParams

func NewGetServerSwitchingRuleParams() GetServerSwitchingRuleParams

NewGetServerSwitchingRuleParams creates a new GetServerSwitchingRuleParams object no default values defined in spec.

func (*GetServerSwitchingRuleParams) 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 NewGetServerSwitchingRuleParams() beforehand.

type GetServerSwitchingRuleURL

type GetServerSwitchingRuleURL struct {
	ID int64

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

GetServerSwitchingRuleURL generates an URL for the get server switching rule operation

func (*GetServerSwitchingRuleURL) Build

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

Build a url path and query string

func (*GetServerSwitchingRuleURL) BuildFull

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

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

func (*GetServerSwitchingRuleURL) Must

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

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

func (*GetServerSwitchingRuleURL) SetBasePath

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

func (o *GetServerSwitchingRuleURL) String() string

String returns the string representation of the path with query string

func (*GetServerSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

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

type GetServerSwitchingRules struct {
	Context *middleware.Context
	Handler GetServerSwitchingRulesHandler
}

GetServerSwitchingRules swagger:route GET /services/haproxy/configuration/server_switching_rules ServerSwitchingRule getServerSwitchingRules

Return an array of all Server Switching Rules

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

func NewGetServerSwitchingRules

func NewGetServerSwitchingRules(ctx *middleware.Context, handler GetServerSwitchingRulesHandler) *GetServerSwitchingRules

NewGetServerSwitchingRules creates a new http.Handler for the get server switching rules operation

func (*GetServerSwitchingRules) ServeHTTP

type GetServerSwitchingRulesDefault

type GetServerSwitchingRulesDefault struct {

	/*Configuration file version

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

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

GetServerSwitchingRulesDefault General Error

swagger:response getServerSwitchingRulesDefault

func NewGetServerSwitchingRulesDefault

func NewGetServerSwitchingRulesDefault(code int) *GetServerSwitchingRulesDefault

NewGetServerSwitchingRulesDefault creates GetServerSwitchingRulesDefault with default headers values

func (*GetServerSwitchingRulesDefault) SetConfigurationVersion added in v1.2.2

func (o *GetServerSwitchingRulesDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*GetServerSwitchingRulesDefault) SetPayload

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

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

func (*GetServerSwitchingRulesDefault) SetStatusCode

func (o *GetServerSwitchingRulesDefault) SetStatusCode(code int)

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

func (*GetServerSwitchingRulesDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*GetServerSwitchingRulesDefault) WithPayload

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

func (*GetServerSwitchingRulesDefault) WithStatusCode

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

func (*GetServerSwitchingRulesDefault) WriteResponse

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

WriteResponse to the client

type GetServerSwitchingRulesHandler

type GetServerSwitchingRulesHandler interface {
	Handle(GetServerSwitchingRulesParams, interface{}) middleware.Responder
}

GetServerSwitchingRulesHandler interface for that can handle valid get server switching rules params

type GetServerSwitchingRulesHandlerFunc

type GetServerSwitchingRulesHandlerFunc func(GetServerSwitchingRulesParams, interface{}) middleware.Responder

GetServerSwitchingRulesHandlerFunc turns a function with the right signature into a get server switching rules handler

func (GetServerSwitchingRulesHandlerFunc) Handle

Handle executing the request and returning a response

type GetServerSwitchingRulesOK

type GetServerSwitchingRulesOK struct {
	/*Configuration file version

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

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

GetServerSwitchingRulesOK Successful operation

swagger:response getServerSwitchingRulesOK

func NewGetServerSwitchingRulesOK

func NewGetServerSwitchingRulesOK() *GetServerSwitchingRulesOK

NewGetServerSwitchingRulesOK creates GetServerSwitchingRulesOK with default headers values

func (*GetServerSwitchingRulesOK) SetConfigurationVersion added in v1.2.2

func (o *GetServerSwitchingRulesOK) SetConfigurationVersion(configurationVersion int64)

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

func (*GetServerSwitchingRulesOK) SetPayload

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

func (*GetServerSwitchingRulesOK) WithConfigurationVersion added in v1.2.2

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

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

func (*GetServerSwitchingRulesOK) WithPayload

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

func (*GetServerSwitchingRulesOK) WriteResponse

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

WriteResponse to the client

type GetServerSwitchingRulesOKBody

type GetServerSwitchingRulesOKBody struct {

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

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

GetServerSwitchingRulesOKBody get server switching rules o k body swagger:model GetServerSwitchingRulesOKBody

func (*GetServerSwitchingRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServerSwitchingRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServerSwitchingRulesOKBody) Validate

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

Validate validates this get server switching rules o k body

type GetServerSwitchingRulesParams

type GetServerSwitchingRulesParams struct {

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

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

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

swagger:parameters getServerSwitchingRules

func NewGetServerSwitchingRulesParams

func NewGetServerSwitchingRulesParams() GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParams creates a new GetServerSwitchingRulesParams object no default values defined in spec.

func (*GetServerSwitchingRulesParams) 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 NewGetServerSwitchingRulesParams() beforehand.

type GetServerSwitchingRulesURL

type GetServerSwitchingRulesURL struct {
	Backend       string
	TransactionID *string
	// contains filtered or unexported fields
}

GetServerSwitchingRulesURL generates an URL for the get server switching rules operation

func (*GetServerSwitchingRulesURL) Build

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

Build a url path and query string

func (*GetServerSwitchingRulesURL) BuildFull

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

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

func (*GetServerSwitchingRulesURL) Must

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

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

func (*GetServerSwitchingRulesURL) SetBasePath

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

func (o *GetServerSwitchingRulesURL) String() string

String returns the string representation of the path with query string

func (*GetServerSwitchingRulesURL) StringFull

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

StringFull returns the string representation of a complete url

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

type ReplaceServerSwitchingRule struct {
	Context *middleware.Context
	Handler ReplaceServerSwitchingRuleHandler
}

ReplaceServerSwitchingRule swagger:route PUT /services/haproxy/configuration/server_switching_rules/{id} ServerSwitchingRule replaceServerSwitchingRule

Replace a Server Switching Rule

Replaces a Server Switching Rule configuration by it's ID in the specified backend.

func NewReplaceServerSwitchingRule

func NewReplaceServerSwitchingRule(ctx *middleware.Context, handler ReplaceServerSwitchingRuleHandler) *ReplaceServerSwitchingRule

NewReplaceServerSwitchingRule creates a new http.Handler for the replace server switching rule operation

func (*ReplaceServerSwitchingRule) ServeHTTP

type ReplaceServerSwitchingRuleAccepted

type ReplaceServerSwitchingRuleAccepted struct {
	/*ID of the requested reload

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

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

ReplaceServerSwitchingRuleAccepted Configuration change accepted and reload requested

swagger:response replaceServerSwitchingRuleAccepted

func NewReplaceServerSwitchingRuleAccepted

func NewReplaceServerSwitchingRuleAccepted() *ReplaceServerSwitchingRuleAccepted

NewReplaceServerSwitchingRuleAccepted creates ReplaceServerSwitchingRuleAccepted with default headers values

func (*ReplaceServerSwitchingRuleAccepted) SetPayload

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

func (*ReplaceServerSwitchingRuleAccepted) SetReloadID

func (o *ReplaceServerSwitchingRuleAccepted) SetReloadID(reloadID string)

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

func (*ReplaceServerSwitchingRuleAccepted) WithPayload

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

func (*ReplaceServerSwitchingRuleAccepted) WithReloadID

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

func (*ReplaceServerSwitchingRuleAccepted) WriteResponse

WriteResponse to the client

type ReplaceServerSwitchingRuleBadRequest

type ReplaceServerSwitchingRuleBadRequest struct {
	/*Configuration file version

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

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

ReplaceServerSwitchingRuleBadRequest Bad request

swagger:response replaceServerSwitchingRuleBadRequest

func NewReplaceServerSwitchingRuleBadRequest

func NewReplaceServerSwitchingRuleBadRequest() *ReplaceServerSwitchingRuleBadRequest

NewReplaceServerSwitchingRuleBadRequest creates ReplaceServerSwitchingRuleBadRequest with default headers values

func (*ReplaceServerSwitchingRuleBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceServerSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceServerSwitchingRuleBadRequest) SetPayload

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

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

func (*ReplaceServerSwitchingRuleBadRequest) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceServerSwitchingRuleBadRequest) WithPayload

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

func (*ReplaceServerSwitchingRuleBadRequest) WriteResponse

WriteResponse to the client

type ReplaceServerSwitchingRuleDefault

type ReplaceServerSwitchingRuleDefault struct {

	/*Configuration file version

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

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

ReplaceServerSwitchingRuleDefault General Error

swagger:response replaceServerSwitchingRuleDefault

func NewReplaceServerSwitchingRuleDefault

func NewReplaceServerSwitchingRuleDefault(code int) *ReplaceServerSwitchingRuleDefault

NewReplaceServerSwitchingRuleDefault creates ReplaceServerSwitchingRuleDefault with default headers values

func (*ReplaceServerSwitchingRuleDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceServerSwitchingRuleDefault) SetPayload

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

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

func (*ReplaceServerSwitchingRuleDefault) SetStatusCode

func (o *ReplaceServerSwitchingRuleDefault) SetStatusCode(code int)

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

func (*ReplaceServerSwitchingRuleDefault) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceServerSwitchingRuleDefault) WithPayload

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

func (*ReplaceServerSwitchingRuleDefault) WithStatusCode

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

func (*ReplaceServerSwitchingRuleDefault) WriteResponse

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

WriteResponse to the client

type ReplaceServerSwitchingRuleHandler

type ReplaceServerSwitchingRuleHandler interface {
	Handle(ReplaceServerSwitchingRuleParams, interface{}) middleware.Responder
}

ReplaceServerSwitchingRuleHandler interface for that can handle valid replace server switching rule params

type ReplaceServerSwitchingRuleHandlerFunc

type ReplaceServerSwitchingRuleHandlerFunc func(ReplaceServerSwitchingRuleParams, interface{}) middleware.Responder

ReplaceServerSwitchingRuleHandlerFunc turns a function with the right signature into a replace server switching rule handler

func (ReplaceServerSwitchingRuleHandlerFunc) Handle

Handle executing the request and returning a response

type ReplaceServerSwitchingRuleNotFound

type ReplaceServerSwitchingRuleNotFound struct {
	/*Configuration file version

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

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

ReplaceServerSwitchingRuleNotFound The specified resource was not found

swagger:response replaceServerSwitchingRuleNotFound

func NewReplaceServerSwitchingRuleNotFound

func NewReplaceServerSwitchingRuleNotFound() *ReplaceServerSwitchingRuleNotFound

NewReplaceServerSwitchingRuleNotFound creates ReplaceServerSwitchingRuleNotFound with default headers values

func (*ReplaceServerSwitchingRuleNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)

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

func (*ReplaceServerSwitchingRuleNotFound) SetPayload

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

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

func (*ReplaceServerSwitchingRuleNotFound) WithConfigurationVersion added in v1.2.2

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

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

func (*ReplaceServerSwitchingRuleNotFound) WithPayload

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

func (*ReplaceServerSwitchingRuleNotFound) WriteResponse

WriteResponse to the client

type ReplaceServerSwitchingRuleOK

type ReplaceServerSwitchingRuleOK struct {

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

ReplaceServerSwitchingRuleOK Server Switching Rule replaced

swagger:response replaceServerSwitchingRuleOK

func NewReplaceServerSwitchingRuleOK

func NewReplaceServerSwitchingRuleOK() *ReplaceServerSwitchingRuleOK

NewReplaceServerSwitchingRuleOK creates ReplaceServerSwitchingRuleOK with default headers values

func (*ReplaceServerSwitchingRuleOK) SetPayload

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

func (*ReplaceServerSwitchingRuleOK) WithPayload

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

func (*ReplaceServerSwitchingRuleOK) WriteResponse

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

WriteResponse to the client

type ReplaceServerSwitchingRuleParams

type ReplaceServerSwitchingRuleParams struct {

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

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

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

swagger:parameters replaceServerSwitchingRule

func NewReplaceServerSwitchingRuleParams

func NewReplaceServerSwitchingRuleParams() ReplaceServerSwitchingRuleParams

NewReplaceServerSwitchingRuleParams creates a new ReplaceServerSwitchingRuleParams object with the default values initialized.

func (*ReplaceServerSwitchingRuleParams) 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 NewReplaceServerSwitchingRuleParams() beforehand.

type ReplaceServerSwitchingRuleURL

type ReplaceServerSwitchingRuleURL struct {
	ID int64

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

ReplaceServerSwitchingRuleURL generates an URL for the replace server switching rule operation

func (*ReplaceServerSwitchingRuleURL) Build

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

Build a url path and query string

func (*ReplaceServerSwitchingRuleURL) BuildFull

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

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

func (*ReplaceServerSwitchingRuleURL) Must

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

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

func (*ReplaceServerSwitchingRuleURL) SetBasePath

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

String returns the string representation of the path with query string

func (*ReplaceServerSwitchingRuleURL) StringFull

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

StringFull returns the string representation of a complete url

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