Documentation ¶
Index ¶
- Constants
- type CreateServerSwitchingRule
- type CreateServerSwitchingRuleAccepted
- func (o *CreateServerSwitchingRuleAccepted) SetPayload(payload *models.ServerSwitchingRule)
- func (o *CreateServerSwitchingRuleAccepted) SetReloadID(reloadID string)
- func (o *CreateServerSwitchingRuleAccepted) WithPayload(payload *models.ServerSwitchingRule) *CreateServerSwitchingRuleAccepted
- func (o *CreateServerSwitchingRuleAccepted) WithReloadID(reloadID string) *CreateServerSwitchingRuleAccepted
- func (o *CreateServerSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerSwitchingRuleBadRequest
- func (o *CreateServerSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerSwitchingRuleBadRequest) SetPayload(payload *models.Error)
- func (o *CreateServerSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *CreateServerSwitchingRuleBadRequest
- func (o *CreateServerSwitchingRuleBadRequest) WithPayload(payload *models.Error) *CreateServerSwitchingRuleBadRequest
- func (o *CreateServerSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerSwitchingRuleConflict
- func (o *CreateServerSwitchingRuleConflict) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerSwitchingRuleConflict) SetPayload(payload *models.Error)
- func (o *CreateServerSwitchingRuleConflict) WithConfigurationVersion(configurationVersion int64) *CreateServerSwitchingRuleConflict
- func (o *CreateServerSwitchingRuleConflict) WithPayload(payload *models.Error) *CreateServerSwitchingRuleConflict
- func (o *CreateServerSwitchingRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerSwitchingRuleCreated
- func (o *CreateServerSwitchingRuleCreated) SetPayload(payload *models.ServerSwitchingRule)
- func (o *CreateServerSwitchingRuleCreated) WithPayload(payload *models.ServerSwitchingRule) *CreateServerSwitchingRuleCreated
- func (o *CreateServerSwitchingRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerSwitchingRuleDefault
- func (o *CreateServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *CreateServerSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *CreateServerSwitchingRuleDefault) SetStatusCode(code int)
- func (o *CreateServerSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *CreateServerSwitchingRuleDefault
- func (o *CreateServerSwitchingRuleDefault) WithPayload(payload *models.Error) *CreateServerSwitchingRuleDefault
- func (o *CreateServerSwitchingRuleDefault) WithStatusCode(code int) *CreateServerSwitchingRuleDefault
- func (o *CreateServerSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateServerSwitchingRuleHandler
- type CreateServerSwitchingRuleHandlerFunc
- type CreateServerSwitchingRuleParams
- type CreateServerSwitchingRuleURL
- func (o *CreateServerSwitchingRuleURL) Build() (*url.URL, error)
- func (o *CreateServerSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateServerSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateServerSwitchingRuleURL) SetBasePath(bp string)
- func (o *CreateServerSwitchingRuleURL) String() string
- func (o *CreateServerSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *CreateServerSwitchingRuleURL) WithBasePath(bp string) *CreateServerSwitchingRuleURL
- type DeleteServerSwitchingRule
- type DeleteServerSwitchingRuleAccepted
- type DeleteServerSwitchingRuleDefault
- func (o *DeleteServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteServerSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteServerSwitchingRuleDefault) SetStatusCode(code int)
- func (o *DeleteServerSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *DeleteServerSwitchingRuleDefault
- func (o *DeleteServerSwitchingRuleDefault) WithPayload(payload *models.Error) *DeleteServerSwitchingRuleDefault
- func (o *DeleteServerSwitchingRuleDefault) WithStatusCode(code int) *DeleteServerSwitchingRuleDefault
- func (o *DeleteServerSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteServerSwitchingRuleHandler
- type DeleteServerSwitchingRuleHandlerFunc
- type DeleteServerSwitchingRuleNoContent
- type DeleteServerSwitchingRuleNotFound
- func (o *DeleteServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *DeleteServerSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *DeleteServerSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteServerSwitchingRuleNotFound
- func (o *DeleteServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteServerSwitchingRuleNotFound
- func (o *DeleteServerSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteServerSwitchingRuleParams
- type DeleteServerSwitchingRuleURL
- func (o *DeleteServerSwitchingRuleURL) Build() (*url.URL, error)
- func (o *DeleteServerSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteServerSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteServerSwitchingRuleURL) SetBasePath(bp string)
- func (o *DeleteServerSwitchingRuleURL) String() string
- func (o *DeleteServerSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *DeleteServerSwitchingRuleURL) WithBasePath(bp string) *DeleteServerSwitchingRuleURL
- type GetServerSwitchingRule
- type GetServerSwitchingRuleDefault
- func (o *GetServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *GetServerSwitchingRuleDefault) SetStatusCode(code int)
- func (o *GetServerSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *GetServerSwitchingRuleDefault
- func (o *GetServerSwitchingRuleDefault) WithPayload(payload *models.Error) *GetServerSwitchingRuleDefault
- func (o *GetServerSwitchingRuleDefault) WithStatusCode(code int) *GetServerSwitchingRuleDefault
- func (o *GetServerSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerSwitchingRuleHandler
- type GetServerSwitchingRuleHandlerFunc
- type GetServerSwitchingRuleNotFound
- func (o *GetServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *GetServerSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *GetServerSwitchingRuleNotFound
- func (o *GetServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *GetServerSwitchingRuleNotFound
- func (o *GetServerSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerSwitchingRuleOK
- func (o *GetServerSwitchingRuleOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerSwitchingRuleOK) SetPayload(payload *GetServerSwitchingRuleOKBody)
- func (o *GetServerSwitchingRuleOK) WithConfigurationVersion(configurationVersion int64) *GetServerSwitchingRuleOK
- func (o *GetServerSwitchingRuleOK) WithPayload(payload *GetServerSwitchingRuleOKBody) *GetServerSwitchingRuleOK
- func (o *GetServerSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerSwitchingRuleOKBody
- type GetServerSwitchingRuleParams
- type GetServerSwitchingRuleURL
- func (o *GetServerSwitchingRuleURL) Build() (*url.URL, error)
- func (o *GetServerSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetServerSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetServerSwitchingRuleURL) SetBasePath(bp string)
- func (o *GetServerSwitchingRuleURL) String() string
- func (o *GetServerSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *GetServerSwitchingRuleURL) WithBasePath(bp string) *GetServerSwitchingRuleURL
- type GetServerSwitchingRules
- type GetServerSwitchingRulesDefault
- func (o *GetServerSwitchingRulesDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerSwitchingRulesDefault) SetPayload(payload *models.Error)
- func (o *GetServerSwitchingRulesDefault) SetStatusCode(code int)
- func (o *GetServerSwitchingRulesDefault) WithConfigurationVersion(configurationVersion int64) *GetServerSwitchingRulesDefault
- func (o *GetServerSwitchingRulesDefault) WithPayload(payload *models.Error) *GetServerSwitchingRulesDefault
- func (o *GetServerSwitchingRulesDefault) WithStatusCode(code int) *GetServerSwitchingRulesDefault
- func (o *GetServerSwitchingRulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerSwitchingRulesHandler
- type GetServerSwitchingRulesHandlerFunc
- type GetServerSwitchingRulesOK
- func (o *GetServerSwitchingRulesOK) SetConfigurationVersion(configurationVersion int64)
- func (o *GetServerSwitchingRulesOK) SetPayload(payload *GetServerSwitchingRulesOKBody)
- func (o *GetServerSwitchingRulesOK) WithConfigurationVersion(configurationVersion int64) *GetServerSwitchingRulesOK
- func (o *GetServerSwitchingRulesOK) WithPayload(payload *GetServerSwitchingRulesOKBody) *GetServerSwitchingRulesOK
- func (o *GetServerSwitchingRulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetServerSwitchingRulesOKBody
- type GetServerSwitchingRulesParams
- type GetServerSwitchingRulesURL
- func (o *GetServerSwitchingRulesURL) Build() (*url.URL, error)
- func (o *GetServerSwitchingRulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetServerSwitchingRulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetServerSwitchingRulesURL) SetBasePath(bp string)
- func (o *GetServerSwitchingRulesURL) String() string
- func (o *GetServerSwitchingRulesURL) StringFull(scheme, host string) string
- func (o *GetServerSwitchingRulesURL) WithBasePath(bp string) *GetServerSwitchingRulesURL
- type ReplaceServerSwitchingRule
- type ReplaceServerSwitchingRuleAccepted
- func (o *ReplaceServerSwitchingRuleAccepted) SetPayload(payload *models.ServerSwitchingRule)
- func (o *ReplaceServerSwitchingRuleAccepted) SetReloadID(reloadID string)
- func (o *ReplaceServerSwitchingRuleAccepted) WithPayload(payload *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleAccepted
- func (o *ReplaceServerSwitchingRuleAccepted) WithReloadID(reloadID string) *ReplaceServerSwitchingRuleAccepted
- func (o *ReplaceServerSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerSwitchingRuleBadRequest
- func (o *ReplaceServerSwitchingRuleBadRequest) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerSwitchingRuleBadRequest) SetPayload(payload *models.Error)
- func (o *ReplaceServerSwitchingRuleBadRequest) WithConfigurationVersion(configurationVersion int64) *ReplaceServerSwitchingRuleBadRequest
- func (o *ReplaceServerSwitchingRuleBadRequest) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleBadRequest
- func (o *ReplaceServerSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerSwitchingRuleDefault
- func (o *ReplaceServerSwitchingRuleDefault) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerSwitchingRuleDefault) SetPayload(payload *models.Error)
- func (o *ReplaceServerSwitchingRuleDefault) SetStatusCode(code int)
- func (o *ReplaceServerSwitchingRuleDefault) WithConfigurationVersion(configurationVersion int64) *ReplaceServerSwitchingRuleDefault
- func (o *ReplaceServerSwitchingRuleDefault) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleDefault
- func (o *ReplaceServerSwitchingRuleDefault) WithStatusCode(code int) *ReplaceServerSwitchingRuleDefault
- func (o *ReplaceServerSwitchingRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerSwitchingRuleHandler
- type ReplaceServerSwitchingRuleHandlerFunc
- type ReplaceServerSwitchingRuleNotFound
- func (o *ReplaceServerSwitchingRuleNotFound) SetConfigurationVersion(configurationVersion int64)
- func (o *ReplaceServerSwitchingRuleNotFound) SetPayload(payload *models.Error)
- func (o *ReplaceServerSwitchingRuleNotFound) WithConfigurationVersion(configurationVersion int64) *ReplaceServerSwitchingRuleNotFound
- func (o *ReplaceServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleNotFound
- func (o *ReplaceServerSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerSwitchingRuleOK
- func (o *ReplaceServerSwitchingRuleOK) SetPayload(payload *models.ServerSwitchingRule)
- func (o *ReplaceServerSwitchingRuleOK) WithPayload(payload *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleOK
- func (o *ReplaceServerSwitchingRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceServerSwitchingRuleParams
- type ReplaceServerSwitchingRuleURL
- func (o *ReplaceServerSwitchingRuleURL) Build() (*url.URL, error)
- func (o *ReplaceServerSwitchingRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceServerSwitchingRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceServerSwitchingRuleURL) SetBasePath(bp string)
- func (o *ReplaceServerSwitchingRuleURL) String() string
- func (o *ReplaceServerSwitchingRuleURL) StringFull(scheme, host string) string
- func (o *ReplaceServerSwitchingRuleURL) WithBasePath(bp string) *ReplaceServerSwitchingRuleURL
Constants ¶
const CreateServerSwitchingRuleAcceptedCode int = 202
CreateServerSwitchingRuleAcceptedCode is the HTTP code returned for type CreateServerSwitchingRuleAccepted
const CreateServerSwitchingRuleBadRequestCode int = 400
CreateServerSwitchingRuleBadRequestCode is the HTTP code returned for type CreateServerSwitchingRuleBadRequest
const CreateServerSwitchingRuleConflictCode int = 409
CreateServerSwitchingRuleConflictCode is the HTTP code returned for type CreateServerSwitchingRuleConflict
const CreateServerSwitchingRuleCreatedCode int = 201
CreateServerSwitchingRuleCreatedCode is the HTTP code returned for type CreateServerSwitchingRuleCreated
const DeleteServerSwitchingRuleAcceptedCode int = 202
DeleteServerSwitchingRuleAcceptedCode is the HTTP code returned for type DeleteServerSwitchingRuleAccepted
const DeleteServerSwitchingRuleNoContentCode int = 204
DeleteServerSwitchingRuleNoContentCode is the HTTP code returned for type DeleteServerSwitchingRuleNoContent
const DeleteServerSwitchingRuleNotFoundCode int = 404
DeleteServerSwitchingRuleNotFoundCode is the HTTP code returned for type DeleteServerSwitchingRuleNotFound
const GetServerSwitchingRuleNotFoundCode int = 404
GetServerSwitchingRuleNotFoundCode is the HTTP code returned for type GetServerSwitchingRuleNotFound
const GetServerSwitchingRuleOKCode int = 200
GetServerSwitchingRuleOKCode is the HTTP code returned for type GetServerSwitchingRuleOK
const GetServerSwitchingRulesOKCode int = 200
GetServerSwitchingRulesOKCode is the HTTP code returned for type GetServerSwitchingRulesOK
const ReplaceServerSwitchingRuleAcceptedCode int = 202
ReplaceServerSwitchingRuleAcceptedCode is the HTTP code returned for type ReplaceServerSwitchingRuleAccepted
const ReplaceServerSwitchingRuleBadRequestCode int = 400
ReplaceServerSwitchingRuleBadRequestCode is the HTTP code returned for type ReplaceServerSwitchingRuleBadRequest
const ReplaceServerSwitchingRuleNotFoundCode int = 404
ReplaceServerSwitchingRuleNotFoundCode is the HTTP code returned for type ReplaceServerSwitchingRuleNotFound
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 ¶
func (o *CreateServerSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *CreateServerSwitchingRuleAccepted) SetPayload(payload *models.ServerSwitchingRule)
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 ¶
func (o *CreateServerSwitchingRuleAccepted) WithPayload(payload *models.ServerSwitchingRule) *CreateServerSwitchingRuleAccepted
WithPayload adds the payload to the create server switching rule accepted response
func (*CreateServerSwitchingRuleAccepted) WithReloadID ¶
func (o *CreateServerSwitchingRuleAccepted) WithReloadID(reloadID string) *CreateServerSwitchingRuleAccepted
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 ¶
func (o *CreateServerSwitchingRuleBadRequest) WithPayload(payload *models.Error) *CreateServerSwitchingRuleBadRequest
WithPayload adds the payload to the create server switching rule bad request response
func (*CreateServerSwitchingRuleBadRequest) WriteResponse ¶
func (o *CreateServerSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *CreateServerSwitchingRuleConflict) WithPayload(payload *models.Error) *CreateServerSwitchingRuleConflict
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 ¶
func (o *CreateServerSwitchingRuleCreated) SetPayload(payload *models.ServerSwitchingRule)
SetPayload sets the payload to the create server switching rule created response
func (*CreateServerSwitchingRuleCreated) WithPayload ¶
func (o *CreateServerSwitchingRuleCreated) WithPayload(payload *models.ServerSwitchingRule) *CreateServerSwitchingRuleCreated
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 ¶
func (o *CreateServerSwitchingRuleDefault) WithPayload(payload *models.Error) *CreateServerSwitchingRuleDefault
WithPayload adds the payload to the create server switching rule default response
func (*CreateServerSwitchingRuleDefault) WithStatusCode ¶
func (o *CreateServerSwitchingRuleDefault) WithStatusCode(code int) *CreateServerSwitchingRuleDefault
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 ¶
func (fn CreateServerSwitchingRuleHandlerFunc) Handle(params CreateServerSwitchingRuleParams, principal interface{}) middleware.Responder
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 ¶
func (o *CreateServerSwitchingRuleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with 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 ¶
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 ¶
func (o *CreateServerSwitchingRuleURL) String() 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 ¶
func (o *CreateServerSwitchingRuleURL) WithBasePath(bp string) *CreateServerSwitchingRuleURL
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 ¶
func (o *DeleteServerSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *DeleteServerSwitchingRuleAccepted) WithReloadID(reloadID string) *DeleteServerSwitchingRuleAccepted
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 ¶
func (o *DeleteServerSwitchingRuleDefault) WithPayload(payload *models.Error) *DeleteServerSwitchingRuleDefault
WithPayload adds the payload to the delete server switching rule default response
func (*DeleteServerSwitchingRuleDefault) WithStatusCode ¶
func (o *DeleteServerSwitchingRuleDefault) WithStatusCode(code int) *DeleteServerSwitchingRuleDefault
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 ¶
func (fn DeleteServerSwitchingRuleHandlerFunc) Handle(params DeleteServerSwitchingRuleParams, principal interface{}) middleware.Responder
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 ¶
func (o *DeleteServerSwitchingRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *DeleteServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *DeleteServerSwitchingRuleNotFound
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 ¶
func (o *DeleteServerSwitchingRuleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with 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 ¶
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 ¶
func (o *DeleteServerSwitchingRuleURL) String() 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 ¶
func (o *DeleteServerSwitchingRuleURL) WithBasePath(bp string) *DeleteServerSwitchingRuleURL
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 ¶
func (o *GetServerSwitchingRuleDefault) WithPayload(payload *models.Error) *GetServerSwitchingRuleDefault
WithPayload adds the payload to the get server switching rule default response
func (*GetServerSwitchingRuleDefault) WithStatusCode ¶
func (o *GetServerSwitchingRuleDefault) WithStatusCode(code int) *GetServerSwitchingRuleDefault
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 ¶
func (fn GetServerSwitchingRuleHandlerFunc) Handle(params GetServerSwitchingRuleParams, principal interface{}) middleware.Responder
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 ¶
func (o *GetServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *GetServerSwitchingRuleNotFound
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 ¶
func (o *GetServerSwitchingRuleOK) SetPayload(payload *GetServerSwitchingRuleOKBody)
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 ¶
func (o *GetServerSwitchingRuleOK) WithPayload(payload *GetServerSwitchingRuleOKBody) *GetServerSwitchingRuleOK
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
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 ¶
func (o *GetServerSwitchingRuleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with 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 ¶
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 ¶
func (o *GetServerSwitchingRuleURL) WithBasePath(bp string) *GetServerSwitchingRuleURL
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 ¶
func (o *GetServerSwitchingRules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *GetServerSwitchingRulesDefault) WithPayload(payload *models.Error) *GetServerSwitchingRulesDefault
WithPayload adds the payload to the get server switching rules default response
func (*GetServerSwitchingRulesDefault) WithStatusCode ¶
func (o *GetServerSwitchingRulesDefault) WithStatusCode(code int) *GetServerSwitchingRulesDefault
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 ¶
func (fn GetServerSwitchingRulesHandlerFunc) Handle(params GetServerSwitchingRulesParams, principal interface{}) middleware.Responder
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 ¶
func (o *GetServerSwitchingRulesOK) SetPayload(payload *GetServerSwitchingRulesOKBody)
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 ¶
func (o *GetServerSwitchingRulesOK) WithPayload(payload *GetServerSwitchingRulesOKBody) *GetServerSwitchingRulesOK
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
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 ¶
func (o *GetServerSwitchingRulesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with 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 ¶
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 ¶
func (o *GetServerSwitchingRulesURL) WithBasePath(bp string) *GetServerSwitchingRulesURL
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 ¶
func (o *ReplaceServerSwitchingRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *ReplaceServerSwitchingRuleAccepted) SetPayload(payload *models.ServerSwitchingRule)
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 ¶
func (o *ReplaceServerSwitchingRuleAccepted) WithPayload(payload *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleAccepted
WithPayload adds the payload to the replace server switching rule accepted response
func (*ReplaceServerSwitchingRuleAccepted) WithReloadID ¶
func (o *ReplaceServerSwitchingRuleAccepted) WithReloadID(reloadID string) *ReplaceServerSwitchingRuleAccepted
WithReloadID adds the reloadId to the replace server switching rule accepted response
func (*ReplaceServerSwitchingRuleAccepted) WriteResponse ¶
func (o *ReplaceServerSwitchingRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ReplaceServerSwitchingRuleBadRequest) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleBadRequest
WithPayload adds the payload to the replace server switching rule bad request response
func (*ReplaceServerSwitchingRuleBadRequest) WriteResponse ¶
func (o *ReplaceServerSwitchingRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ReplaceServerSwitchingRuleDefault) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleDefault
WithPayload adds the payload to the replace server switching rule default response
func (*ReplaceServerSwitchingRuleDefault) WithStatusCode ¶
func (o *ReplaceServerSwitchingRuleDefault) WithStatusCode(code int) *ReplaceServerSwitchingRuleDefault
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 ¶
func (fn ReplaceServerSwitchingRuleHandlerFunc) Handle(params ReplaceServerSwitchingRuleParams, principal interface{}) middleware.Responder
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 ¶
func (o *ReplaceServerSwitchingRuleNotFound) WithPayload(payload *models.Error) *ReplaceServerSwitchingRuleNotFound
WithPayload adds the payload to the replace server switching rule not found response
func (*ReplaceServerSwitchingRuleNotFound) WriteResponse ¶
func (o *ReplaceServerSwitchingRuleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ReplaceServerSwitchingRuleOK) SetPayload(payload *models.ServerSwitchingRule)
SetPayload sets the payload to the replace server switching rule o k response
func (*ReplaceServerSwitchingRuleOK) WithPayload ¶
func (o *ReplaceServerSwitchingRuleOK) WithPayload(payload *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleOK
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 ¶
func (o *ReplaceServerSwitchingRuleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with 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 ¶
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 ¶
func (o *ReplaceServerSwitchingRuleURL) String() 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 ¶
func (o *ReplaceServerSwitchingRuleURL) WithBasePath(bp string) *ReplaceServerSwitchingRuleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- create_server_switching_rule.go
- create_server_switching_rule_parameters.go
- create_server_switching_rule_responses.go
- create_server_switching_rule_urlbuilder.go
- delete_server_switching_rule.go
- delete_server_switching_rule_parameters.go
- delete_server_switching_rule_responses.go
- delete_server_switching_rule_urlbuilder.go
- get_server_switching_rule.go
- get_server_switching_rule_parameters.go
- get_server_switching_rule_responses.go
- get_server_switching_rule_urlbuilder.go
- get_server_switching_rules.go
- get_server_switching_rules_parameters.go
- get_server_switching_rules_responses.go
- get_server_switching_rules_urlbuilder.go
- replace_server_switching_rule.go
- replace_server_switching_rule_parameters.go
- replace_server_switching_rule_responses.go
- replace_server_switching_rule_urlbuilder.go