log_target

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 CreateLogTargetAcceptedCode int = 202

CreateLogTargetAcceptedCode is the HTTP code returned for type CreateLogTargetAccepted

View Source
const CreateLogTargetBadRequestCode int = 400

CreateLogTargetBadRequestCode is the HTTP code returned for type CreateLogTargetBadRequest

View Source
const CreateLogTargetConflictCode int = 409

CreateLogTargetConflictCode is the HTTP code returned for type CreateLogTargetConflict

View Source
const CreateLogTargetCreatedCode int = 201

CreateLogTargetCreatedCode is the HTTP code returned for type CreateLogTargetCreated

View Source
const DeleteLogTargetAcceptedCode int = 202

DeleteLogTargetAcceptedCode is the HTTP code returned for type DeleteLogTargetAccepted

View Source
const DeleteLogTargetNoContentCode int = 204

DeleteLogTargetNoContentCode is the HTTP code returned for type DeleteLogTargetNoContent

View Source
const DeleteLogTargetNotFoundCode int = 404

DeleteLogTargetNotFoundCode is the HTTP code returned for type DeleteLogTargetNotFound

View Source
const GetLogTargetNotFoundCode int = 404

GetLogTargetNotFoundCode is the HTTP code returned for type GetLogTargetNotFound

View Source
const GetLogTargetOKCode int = 200

GetLogTargetOKCode is the HTTP code returned for type GetLogTargetOK

View Source
const GetLogTargetsOKCode int = 200

GetLogTargetsOKCode is the HTTP code returned for type GetLogTargetsOK

View Source
const ReplaceLogTargetAcceptedCode int = 202

ReplaceLogTargetAcceptedCode is the HTTP code returned for type ReplaceLogTargetAccepted

View Source
const ReplaceLogTargetBadRequestCode int = 400

ReplaceLogTargetBadRequestCode is the HTTP code returned for type ReplaceLogTargetBadRequest

View Source
const ReplaceLogTargetNotFoundCode int = 404

ReplaceLogTargetNotFoundCode is the HTTP code returned for type ReplaceLogTargetNotFound

View Source
const ReplaceLogTargetOKCode int = 200

ReplaceLogTargetOKCode is the HTTP code returned for type ReplaceLogTargetOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLogTarget

type CreateLogTarget struct {
	Context *middleware.Context
	Handler CreateLogTargetHandler
}

CreateLogTarget swagger:route POST /services/haproxy/configuration/log_targets LogTarget createLogTarget

Add a new Log Target

Adds a new Log Target of the specified type in the specified parent.

func NewCreateLogTarget

func NewCreateLogTarget(ctx *middleware.Context, handler CreateLogTargetHandler) *CreateLogTarget

NewCreateLogTarget creates a new http.Handler for the create log target operation

func (*CreateLogTarget) ServeHTTP

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

type CreateLogTargetAccepted

type CreateLogTargetAccepted struct {
	/*ID of the requested reload

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

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

CreateLogTargetAccepted Configuration change accepted and reload requested

swagger:response createLogTargetAccepted

func NewCreateLogTargetAccepted

func NewCreateLogTargetAccepted() *CreateLogTargetAccepted

NewCreateLogTargetAccepted creates CreateLogTargetAccepted with default headers values

func (*CreateLogTargetAccepted) SetPayload

func (o *CreateLogTargetAccepted) SetPayload(payload *models.LogTarget)

SetPayload sets the payload to the create log target accepted response

func (*CreateLogTargetAccepted) SetReloadID

func (o *CreateLogTargetAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the create log target accepted response

func (*CreateLogTargetAccepted) WithPayload

WithPayload adds the payload to the create log target accepted response

func (*CreateLogTargetAccepted) WithReloadID

func (o *CreateLogTargetAccepted) WithReloadID(reloadID string) *CreateLogTargetAccepted

WithReloadID adds the reloadId to the create log target accepted response

func (*CreateLogTargetAccepted) WriteResponse

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

WriteResponse to the client

type CreateLogTargetBadRequest

type CreateLogTargetBadRequest struct {
	/*Configuration file version

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

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

CreateLogTargetBadRequest Bad request

swagger:response createLogTargetBadRequest

func NewCreateLogTargetBadRequest

func NewCreateLogTargetBadRequest() *CreateLogTargetBadRequest

NewCreateLogTargetBadRequest creates CreateLogTargetBadRequest with default headers values

func (*CreateLogTargetBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateLogTargetBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create log target bad request response

func (*CreateLogTargetBadRequest) SetPayload

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

SetPayload sets the payload to the create log target bad request response

func (*CreateLogTargetBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create log target bad request response

func (*CreateLogTargetBadRequest) WithPayload

WithPayload adds the payload to the create log target bad request response

func (*CreateLogTargetBadRequest) WriteResponse

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

WriteResponse to the client

type CreateLogTargetConflict

type CreateLogTargetConflict struct {
	/*Configuration file version

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

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

CreateLogTargetConflict The specified resource already exists

swagger:response createLogTargetConflict

func NewCreateLogTargetConflict

func NewCreateLogTargetConflict() *CreateLogTargetConflict

NewCreateLogTargetConflict creates CreateLogTargetConflict with default headers values

func (*CreateLogTargetConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateLogTargetConflict) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create log target conflict response

func (*CreateLogTargetConflict) SetPayload

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

SetPayload sets the payload to the create log target conflict response

func (*CreateLogTargetConflict) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create log target conflict response

func (*CreateLogTargetConflict) WithPayload

func (o *CreateLogTargetConflict) WithPayload(payload *models.Error) *CreateLogTargetConflict

WithPayload adds the payload to the create log target conflict response

func (*CreateLogTargetConflict) WriteResponse

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

WriteResponse to the client

type CreateLogTargetCreated

type CreateLogTargetCreated struct {

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

CreateLogTargetCreated Log Target created

swagger:response createLogTargetCreated

func NewCreateLogTargetCreated

func NewCreateLogTargetCreated() *CreateLogTargetCreated

NewCreateLogTargetCreated creates CreateLogTargetCreated with default headers values

func (*CreateLogTargetCreated) SetPayload

func (o *CreateLogTargetCreated) SetPayload(payload *models.LogTarget)

SetPayload sets the payload to the create log target created response

func (*CreateLogTargetCreated) WithPayload

WithPayload adds the payload to the create log target created response

func (*CreateLogTargetCreated) WriteResponse

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

WriteResponse to the client

type CreateLogTargetDefault

type CreateLogTargetDefault struct {

	/*Configuration file version

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

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

CreateLogTargetDefault General Error

swagger:response createLogTargetDefault

func NewCreateLogTargetDefault

func NewCreateLogTargetDefault(code int) *CreateLogTargetDefault

NewCreateLogTargetDefault creates CreateLogTargetDefault with default headers values

func (*CreateLogTargetDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateLogTargetDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create log target default response

func (*CreateLogTargetDefault) SetPayload

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

SetPayload sets the payload to the create log target default response

func (*CreateLogTargetDefault) SetStatusCode

func (o *CreateLogTargetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create log target default response

func (*CreateLogTargetDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create log target default response

func (*CreateLogTargetDefault) WithPayload

func (o *CreateLogTargetDefault) WithPayload(payload *models.Error) *CreateLogTargetDefault

WithPayload adds the payload to the create log target default response

func (*CreateLogTargetDefault) WithStatusCode

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

WithStatusCode adds the status to the create log target default response

func (*CreateLogTargetDefault) WriteResponse

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

WriteResponse to the client

type CreateLogTargetHandler

type CreateLogTargetHandler interface {
	Handle(CreateLogTargetParams, interface{}) middleware.Responder
}

CreateLogTargetHandler interface for that can handle valid create log target params

type CreateLogTargetHandlerFunc

type CreateLogTargetHandlerFunc func(CreateLogTargetParams, interface{}) middleware.Responder

CreateLogTargetHandlerFunc turns a function with the right signature into a create log target handler

func (CreateLogTargetHandlerFunc) Handle

func (fn CreateLogTargetHandlerFunc) Handle(params CreateLogTargetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateLogTargetParams

type CreateLogTargetParams struct {

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

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

CreateLogTargetParams contains all the bound params for the create log target operation typically these are obtained from a http.Request

swagger:parameters createLogTarget

func NewCreateLogTargetParams

func NewCreateLogTargetParams() CreateLogTargetParams

NewCreateLogTargetParams creates a new CreateLogTargetParams object with the default values initialized.

func (*CreateLogTargetParams) BindRequest

func (o *CreateLogTargetParams) 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 NewCreateLogTargetParams() beforehand.

type CreateLogTargetURL

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

CreateLogTargetURL generates an URL for the create log target operation

func (*CreateLogTargetURL) Build

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

Build a url path and query string

func (*CreateLogTargetURL) BuildFull

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

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

func (*CreateLogTargetURL) Must

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

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

func (*CreateLogTargetURL) SetBasePath

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

func (o *CreateLogTargetURL) String() string

String returns the string representation of the path with query string

func (*CreateLogTargetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateLogTargetURL) WithBasePath

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

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 DeleteLogTarget

type DeleteLogTarget struct {
	Context *middleware.Context
	Handler DeleteLogTargetHandler
}

DeleteLogTarget swagger:route DELETE /services/haproxy/configuration/log_targets/{id} LogTarget deleteLogTarget

Delete a Log Target

Deletes a Log Target configuration by it's ID from the specified parent.

func NewDeleteLogTarget

func NewDeleteLogTarget(ctx *middleware.Context, handler DeleteLogTargetHandler) *DeleteLogTarget

NewDeleteLogTarget creates a new http.Handler for the delete log target operation

func (*DeleteLogTarget) ServeHTTP

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

type DeleteLogTargetAccepted

type DeleteLogTargetAccepted struct {
	/*ID of the requested reload

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

DeleteLogTargetAccepted Configuration change accepted and reload requested

swagger:response deleteLogTargetAccepted

func NewDeleteLogTargetAccepted

func NewDeleteLogTargetAccepted() *DeleteLogTargetAccepted

NewDeleteLogTargetAccepted creates DeleteLogTargetAccepted with default headers values

func (*DeleteLogTargetAccepted) SetReloadID

func (o *DeleteLogTargetAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the delete log target accepted response

func (*DeleteLogTargetAccepted) WithReloadID

func (o *DeleteLogTargetAccepted) WithReloadID(reloadID string) *DeleteLogTargetAccepted

WithReloadID adds the reloadId to the delete log target accepted response

func (*DeleteLogTargetAccepted) WriteResponse

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

WriteResponse to the client

type DeleteLogTargetDefault

type DeleteLogTargetDefault struct {

	/*Configuration file version

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

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

DeleteLogTargetDefault General Error

swagger:response deleteLogTargetDefault

func NewDeleteLogTargetDefault

func NewDeleteLogTargetDefault(code int) *DeleteLogTargetDefault

NewDeleteLogTargetDefault creates DeleteLogTargetDefault with default headers values

func (*DeleteLogTargetDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteLogTargetDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete log target default response

func (*DeleteLogTargetDefault) SetPayload

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

SetPayload sets the payload to the delete log target default response

func (*DeleteLogTargetDefault) SetStatusCode

func (o *DeleteLogTargetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete log target default response

func (*DeleteLogTargetDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete log target default response

func (*DeleteLogTargetDefault) WithPayload

func (o *DeleteLogTargetDefault) WithPayload(payload *models.Error) *DeleteLogTargetDefault

WithPayload adds the payload to the delete log target default response

func (*DeleteLogTargetDefault) WithStatusCode

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

WithStatusCode adds the status to the delete log target default response

func (*DeleteLogTargetDefault) WriteResponse

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

WriteResponse to the client

type DeleteLogTargetHandler

type DeleteLogTargetHandler interface {
	Handle(DeleteLogTargetParams, interface{}) middleware.Responder
}

DeleteLogTargetHandler interface for that can handle valid delete log target params

type DeleteLogTargetHandlerFunc

type DeleteLogTargetHandlerFunc func(DeleteLogTargetParams, interface{}) middleware.Responder

DeleteLogTargetHandlerFunc turns a function with the right signature into a delete log target handler

func (DeleteLogTargetHandlerFunc) Handle

func (fn DeleteLogTargetHandlerFunc) Handle(params DeleteLogTargetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteLogTargetNoContent

type DeleteLogTargetNoContent struct {
}

DeleteLogTargetNoContent Log Target deleted

swagger:response deleteLogTargetNoContent

func NewDeleteLogTargetNoContent

func NewDeleteLogTargetNoContent() *DeleteLogTargetNoContent

NewDeleteLogTargetNoContent creates DeleteLogTargetNoContent with default headers values

func (*DeleteLogTargetNoContent) WriteResponse

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

WriteResponse to the client

type DeleteLogTargetNotFound

type DeleteLogTargetNotFound struct {
	/*Configuration file version

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

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

DeleteLogTargetNotFound The specified resource was not found

swagger:response deleteLogTargetNotFound

func NewDeleteLogTargetNotFound

func NewDeleteLogTargetNotFound() *DeleteLogTargetNotFound

NewDeleteLogTargetNotFound creates DeleteLogTargetNotFound with default headers values

func (*DeleteLogTargetNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteLogTargetNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete log target not found response

func (*DeleteLogTargetNotFound) SetPayload

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

SetPayload sets the payload to the delete log target not found response

func (*DeleteLogTargetNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete log target not found response

func (*DeleteLogTargetNotFound) WithPayload

func (o *DeleteLogTargetNotFound) WithPayload(payload *models.Error) *DeleteLogTargetNotFound

WithPayload adds the payload to the delete log target not found response

func (*DeleteLogTargetNotFound) WriteResponse

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

WriteResponse to the client

type DeleteLogTargetParams

type DeleteLogTargetParams struct {

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

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

DeleteLogTargetParams contains all the bound params for the delete log target operation typically these are obtained from a http.Request

swagger:parameters deleteLogTarget

func NewDeleteLogTargetParams

func NewDeleteLogTargetParams() DeleteLogTargetParams

NewDeleteLogTargetParams creates a new DeleteLogTargetParams object with the default values initialized.

func (*DeleteLogTargetParams) BindRequest

func (o *DeleteLogTargetParams) 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 NewDeleteLogTargetParams() beforehand.

type DeleteLogTargetURL

type DeleteLogTargetURL struct {
	ID int64

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

DeleteLogTargetURL generates an URL for the delete log target operation

func (*DeleteLogTargetURL) Build

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

Build a url path and query string

func (*DeleteLogTargetURL) BuildFull

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

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

func (*DeleteLogTargetURL) Must

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

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

func (*DeleteLogTargetURL) SetBasePath

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

func (o *DeleteLogTargetURL) String() string

String returns the string representation of the path with query string

func (*DeleteLogTargetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteLogTargetURL) WithBasePath

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

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 GetLogTarget

type GetLogTarget struct {
	Context *middleware.Context
	Handler GetLogTargetHandler
}

GetLogTarget swagger:route GET /services/haproxy/configuration/log_targets/{id} LogTarget getLogTarget

Return one Log Target

Returns one Log Target configuration by it's ID in the specified parent.

func NewGetLogTarget

func NewGetLogTarget(ctx *middleware.Context, handler GetLogTargetHandler) *GetLogTarget

NewGetLogTarget creates a new http.Handler for the get log target operation

func (*GetLogTarget) ServeHTTP

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

type GetLogTargetDefault

type GetLogTargetDefault struct {

	/*Configuration file version

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

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

GetLogTargetDefault General Error

swagger:response getLogTargetDefault

func NewGetLogTargetDefault

func NewGetLogTargetDefault(code int) *GetLogTargetDefault

NewGetLogTargetDefault creates GetLogTargetDefault with default headers values

func (*GetLogTargetDefault) SetConfigurationVersion added in v1.2.2

func (o *GetLogTargetDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get log target default response

func (*GetLogTargetDefault) SetPayload

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

SetPayload sets the payload to the get log target default response

func (*GetLogTargetDefault) SetStatusCode

func (o *GetLogTargetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get log target default response

func (*GetLogTargetDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get log target default response

func (*GetLogTargetDefault) WithPayload

func (o *GetLogTargetDefault) WithPayload(payload *models.Error) *GetLogTargetDefault

WithPayload adds the payload to the get log target default response

func (*GetLogTargetDefault) WithStatusCode

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

WithStatusCode adds the status to the get log target default response

func (*GetLogTargetDefault) WriteResponse

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

WriteResponse to the client

type GetLogTargetHandler

type GetLogTargetHandler interface {
	Handle(GetLogTargetParams, interface{}) middleware.Responder
}

GetLogTargetHandler interface for that can handle valid get log target params

type GetLogTargetHandlerFunc

type GetLogTargetHandlerFunc func(GetLogTargetParams, interface{}) middleware.Responder

GetLogTargetHandlerFunc turns a function with the right signature into a get log target handler

func (GetLogTargetHandlerFunc) Handle

func (fn GetLogTargetHandlerFunc) Handle(params GetLogTargetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetLogTargetNotFound

type GetLogTargetNotFound struct {
	/*Configuration file version

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

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

GetLogTargetNotFound The specified resource was not found

swagger:response getLogTargetNotFound

func NewGetLogTargetNotFound

func NewGetLogTargetNotFound() *GetLogTargetNotFound

NewGetLogTargetNotFound creates GetLogTargetNotFound with default headers values

func (*GetLogTargetNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetLogTargetNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get log target not found response

func (*GetLogTargetNotFound) SetPayload

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

SetPayload sets the payload to the get log target not found response

func (*GetLogTargetNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get log target not found response

func (*GetLogTargetNotFound) WithPayload

func (o *GetLogTargetNotFound) WithPayload(payload *models.Error) *GetLogTargetNotFound

WithPayload adds the payload to the get log target not found response

func (*GetLogTargetNotFound) WriteResponse

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

WriteResponse to the client

type GetLogTargetOK

type GetLogTargetOK struct {
	/*Configuration file version

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

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

GetLogTargetOK Successful operation

swagger:response getLogTargetOK

func NewGetLogTargetOK

func NewGetLogTargetOK() *GetLogTargetOK

NewGetLogTargetOK creates GetLogTargetOK with default headers values

func (*GetLogTargetOK) SetConfigurationVersion added in v1.2.2

func (o *GetLogTargetOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get log target o k response

func (*GetLogTargetOK) SetPayload

func (o *GetLogTargetOK) SetPayload(payload *GetLogTargetOKBody)

SetPayload sets the payload to the get log target o k response

func (*GetLogTargetOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get log target o k response

func (*GetLogTargetOK) WithPayload

func (o *GetLogTargetOK) WithPayload(payload *GetLogTargetOKBody) *GetLogTargetOK

WithPayload adds the payload to the get log target o k response

func (*GetLogTargetOK) WriteResponse

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

WriteResponse to the client

type GetLogTargetOKBody

type GetLogTargetOKBody struct {

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

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

GetLogTargetOKBody get log target o k body swagger:model GetLogTargetOKBody

func (*GetLogTargetOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLogTargetOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLogTargetOKBody) Validate

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

Validate validates this get log target o k body

type GetLogTargetParams

type GetLogTargetParams struct {

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

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

GetLogTargetParams contains all the bound params for the get log target operation typically these are obtained from a http.Request

swagger:parameters getLogTarget

func NewGetLogTargetParams

func NewGetLogTargetParams() GetLogTargetParams

NewGetLogTargetParams creates a new GetLogTargetParams object no default values defined in spec.

func (*GetLogTargetParams) BindRequest

func (o *GetLogTargetParams) 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 NewGetLogTargetParams() beforehand.

type GetLogTargetURL

type GetLogTargetURL struct {
	ID int64

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

GetLogTargetURL generates an URL for the get log target operation

func (*GetLogTargetURL) Build

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

Build a url path and query string

func (*GetLogTargetURL) BuildFull

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

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

func (*GetLogTargetURL) Must

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

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

func (*GetLogTargetURL) SetBasePath

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

func (o *GetLogTargetURL) String() string

String returns the string representation of the path with query string

func (*GetLogTargetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLogTargetURL) WithBasePath

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

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 GetLogTargets

type GetLogTargets struct {
	Context *middleware.Context
	Handler GetLogTargetsHandler
}

GetLogTargets swagger:route GET /services/haproxy/configuration/log_targets LogTarget getLogTargets

Return an array of all Log Targets

Returns all Log Targets that are configured in specified parent.

func NewGetLogTargets

func NewGetLogTargets(ctx *middleware.Context, handler GetLogTargetsHandler) *GetLogTargets

NewGetLogTargets creates a new http.Handler for the get log targets operation

func (*GetLogTargets) ServeHTTP

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

type GetLogTargetsDefault

type GetLogTargetsDefault struct {

	/*Configuration file version

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

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

GetLogTargetsDefault General Error

swagger:response getLogTargetsDefault

func NewGetLogTargetsDefault

func NewGetLogTargetsDefault(code int) *GetLogTargetsDefault

NewGetLogTargetsDefault creates GetLogTargetsDefault with default headers values

func (*GetLogTargetsDefault) SetConfigurationVersion added in v1.2.2

func (o *GetLogTargetsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get log targets default response

func (*GetLogTargetsDefault) SetPayload

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

SetPayload sets the payload to the get log targets default response

func (*GetLogTargetsDefault) SetStatusCode

func (o *GetLogTargetsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get log targets default response

func (*GetLogTargetsDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get log targets default response

func (*GetLogTargetsDefault) WithPayload

func (o *GetLogTargetsDefault) WithPayload(payload *models.Error) *GetLogTargetsDefault

WithPayload adds the payload to the get log targets default response

func (*GetLogTargetsDefault) WithStatusCode

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

WithStatusCode adds the status to the get log targets default response

func (*GetLogTargetsDefault) WriteResponse

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

WriteResponse to the client

type GetLogTargetsHandler

type GetLogTargetsHandler interface {
	Handle(GetLogTargetsParams, interface{}) middleware.Responder
}

GetLogTargetsHandler interface for that can handle valid get log targets params

type GetLogTargetsHandlerFunc

type GetLogTargetsHandlerFunc func(GetLogTargetsParams, interface{}) middleware.Responder

GetLogTargetsHandlerFunc turns a function with the right signature into a get log targets handler

func (GetLogTargetsHandlerFunc) Handle

func (fn GetLogTargetsHandlerFunc) Handle(params GetLogTargetsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetLogTargetsOK

type GetLogTargetsOK struct {
	/*Configuration file version

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

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

GetLogTargetsOK Successful operation

swagger:response getLogTargetsOK

func NewGetLogTargetsOK

func NewGetLogTargetsOK() *GetLogTargetsOK

NewGetLogTargetsOK creates GetLogTargetsOK with default headers values

func (*GetLogTargetsOK) SetConfigurationVersion added in v1.2.2

func (o *GetLogTargetsOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get log targets o k response

func (*GetLogTargetsOK) SetPayload

func (o *GetLogTargetsOK) SetPayload(payload *GetLogTargetsOKBody)

SetPayload sets the payload to the get log targets o k response

func (*GetLogTargetsOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get log targets o k response

func (*GetLogTargetsOK) WithPayload

func (o *GetLogTargetsOK) WithPayload(payload *GetLogTargetsOKBody) *GetLogTargetsOK

WithPayload adds the payload to the get log targets o k response

func (*GetLogTargetsOK) WriteResponse

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

WriteResponse to the client

type GetLogTargetsOKBody

type GetLogTargetsOKBody struct {

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

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

GetLogTargetsOKBody get log targets o k body swagger:model GetLogTargetsOKBody

func (*GetLogTargetsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLogTargetsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLogTargetsOKBody) Validate

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

Validate validates this get log targets o k body

type GetLogTargetsParams

type GetLogTargetsParams struct {

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

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

GetLogTargetsParams contains all the bound params for the get log targets operation typically these are obtained from a http.Request

swagger:parameters getLogTargets

func NewGetLogTargetsParams

func NewGetLogTargetsParams() GetLogTargetsParams

NewGetLogTargetsParams creates a new GetLogTargetsParams object no default values defined in spec.

func (*GetLogTargetsParams) BindRequest

func (o *GetLogTargetsParams) 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 NewGetLogTargetsParams() beforehand.

type GetLogTargetsURL

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

GetLogTargetsURL generates an URL for the get log targets operation

func (*GetLogTargetsURL) Build

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

Build a url path and query string

func (*GetLogTargetsURL) BuildFull

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

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

func (*GetLogTargetsURL) Must

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

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

func (*GetLogTargetsURL) SetBasePath

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

func (o *GetLogTargetsURL) String() string

String returns the string representation of the path with query string

func (*GetLogTargetsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLogTargetsURL) WithBasePath

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

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 ReplaceLogTarget

type ReplaceLogTarget struct {
	Context *middleware.Context
	Handler ReplaceLogTargetHandler
}

ReplaceLogTarget swagger:route PUT /services/haproxy/configuration/log_targets/{id} LogTarget replaceLogTarget

Replace a Log Target

Replaces a Log Target configuration by it's ID in the specified parent.

func NewReplaceLogTarget

func NewReplaceLogTarget(ctx *middleware.Context, handler ReplaceLogTargetHandler) *ReplaceLogTarget

NewReplaceLogTarget creates a new http.Handler for the replace log target operation

func (*ReplaceLogTarget) ServeHTTP

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

type ReplaceLogTargetAccepted

type ReplaceLogTargetAccepted struct {
	/*ID of the requested reload

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

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

ReplaceLogTargetAccepted Configuration change accepted and reload requested

swagger:response replaceLogTargetAccepted

func NewReplaceLogTargetAccepted

func NewReplaceLogTargetAccepted() *ReplaceLogTargetAccepted

NewReplaceLogTargetAccepted creates ReplaceLogTargetAccepted with default headers values

func (*ReplaceLogTargetAccepted) SetPayload

func (o *ReplaceLogTargetAccepted) SetPayload(payload *models.LogTarget)

SetPayload sets the payload to the replace log target accepted response

func (*ReplaceLogTargetAccepted) SetReloadID

func (o *ReplaceLogTargetAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace log target accepted response

func (*ReplaceLogTargetAccepted) WithPayload

WithPayload adds the payload to the replace log target accepted response

func (*ReplaceLogTargetAccepted) WithReloadID

func (o *ReplaceLogTargetAccepted) WithReloadID(reloadID string) *ReplaceLogTargetAccepted

WithReloadID adds the reloadId to the replace log target accepted response

func (*ReplaceLogTargetAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceLogTargetBadRequest

type ReplaceLogTargetBadRequest struct {
	/*Configuration file version

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

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

ReplaceLogTargetBadRequest Bad request

swagger:response replaceLogTargetBadRequest

func NewReplaceLogTargetBadRequest

func NewReplaceLogTargetBadRequest() *ReplaceLogTargetBadRequest

NewReplaceLogTargetBadRequest creates ReplaceLogTargetBadRequest with default headers values

func (*ReplaceLogTargetBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceLogTargetBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace log target bad request response

func (*ReplaceLogTargetBadRequest) SetPayload

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

SetPayload sets the payload to the replace log target bad request response

func (*ReplaceLogTargetBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace log target bad request response

func (*ReplaceLogTargetBadRequest) WithPayload

WithPayload adds the payload to the replace log target bad request response

func (*ReplaceLogTargetBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceLogTargetDefault

type ReplaceLogTargetDefault struct {

	/*Configuration file version

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

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

ReplaceLogTargetDefault General Error

swagger:response replaceLogTargetDefault

func NewReplaceLogTargetDefault

func NewReplaceLogTargetDefault(code int) *ReplaceLogTargetDefault

NewReplaceLogTargetDefault creates ReplaceLogTargetDefault with default headers values

func (*ReplaceLogTargetDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceLogTargetDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace log target default response

func (*ReplaceLogTargetDefault) SetPayload

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

SetPayload sets the payload to the replace log target default response

func (*ReplaceLogTargetDefault) SetStatusCode

func (o *ReplaceLogTargetDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace log target default response

func (*ReplaceLogTargetDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace log target default response

func (*ReplaceLogTargetDefault) WithPayload

func (o *ReplaceLogTargetDefault) WithPayload(payload *models.Error) *ReplaceLogTargetDefault

WithPayload adds the payload to the replace log target default response

func (*ReplaceLogTargetDefault) WithStatusCode

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

WithStatusCode adds the status to the replace log target default response

func (*ReplaceLogTargetDefault) WriteResponse

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

WriteResponse to the client

type ReplaceLogTargetHandler

type ReplaceLogTargetHandler interface {
	Handle(ReplaceLogTargetParams, interface{}) middleware.Responder
}

ReplaceLogTargetHandler interface for that can handle valid replace log target params

type ReplaceLogTargetHandlerFunc

type ReplaceLogTargetHandlerFunc func(ReplaceLogTargetParams, interface{}) middleware.Responder

ReplaceLogTargetHandlerFunc turns a function with the right signature into a replace log target handler

func (ReplaceLogTargetHandlerFunc) Handle

func (fn ReplaceLogTargetHandlerFunc) Handle(params ReplaceLogTargetParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ReplaceLogTargetNotFound

type ReplaceLogTargetNotFound struct {
	/*Configuration file version

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

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

ReplaceLogTargetNotFound The specified resource was not found

swagger:response replaceLogTargetNotFound

func NewReplaceLogTargetNotFound

func NewReplaceLogTargetNotFound() *ReplaceLogTargetNotFound

NewReplaceLogTargetNotFound creates ReplaceLogTargetNotFound with default headers values

func (*ReplaceLogTargetNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceLogTargetNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace log target not found response

func (*ReplaceLogTargetNotFound) SetPayload

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

SetPayload sets the payload to the replace log target not found response

func (*ReplaceLogTargetNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace log target not found response

func (*ReplaceLogTargetNotFound) WithPayload

WithPayload adds the payload to the replace log target not found response

func (*ReplaceLogTargetNotFound) WriteResponse

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

WriteResponse to the client

type ReplaceLogTargetOK

type ReplaceLogTargetOK struct {

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

ReplaceLogTargetOK Log Target replaced

swagger:response replaceLogTargetOK

func NewReplaceLogTargetOK

func NewReplaceLogTargetOK() *ReplaceLogTargetOK

NewReplaceLogTargetOK creates ReplaceLogTargetOK with default headers values

func (*ReplaceLogTargetOK) SetPayload

func (o *ReplaceLogTargetOK) SetPayload(payload *models.LogTarget)

SetPayload sets the payload to the replace log target o k response

func (*ReplaceLogTargetOK) WithPayload

func (o *ReplaceLogTargetOK) WithPayload(payload *models.LogTarget) *ReplaceLogTargetOK

WithPayload adds the payload to the replace log target o k response

func (*ReplaceLogTargetOK) WriteResponse

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

WriteResponse to the client

type ReplaceLogTargetParams

type ReplaceLogTargetParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.LogTarget
	/*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
	/*Log Target ID
	  Required: true
	  In: path
	*/
	ID int64
	/*Parent name
	  Required: true
	  In: query
	*/
	ParentName string
	/*Parent type
	  Required: true
	  In: query
	*/
	ParentType string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

ReplaceLogTargetParams contains all the bound params for the replace log target operation typically these are obtained from a http.Request

swagger:parameters replaceLogTarget

func NewReplaceLogTargetParams

func NewReplaceLogTargetParams() ReplaceLogTargetParams

NewReplaceLogTargetParams creates a new ReplaceLogTargetParams object with the default values initialized.

func (*ReplaceLogTargetParams) BindRequest

func (o *ReplaceLogTargetParams) 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 NewReplaceLogTargetParams() beforehand.

type ReplaceLogTargetURL

type ReplaceLogTargetURL struct {
	ID int64

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

ReplaceLogTargetURL generates an URL for the replace log target operation

func (*ReplaceLogTargetURL) Build

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

Build a url path and query string

func (*ReplaceLogTargetURL) BuildFull

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

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

func (*ReplaceLogTargetURL) Must

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

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

func (*ReplaceLogTargetURL) SetBasePath

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

func (o *ReplaceLogTargetURL) String() string

String returns the string representation of the path with query string

func (*ReplaceLogTargetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceLogTargetURL) WithBasePath

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

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