declare_capture

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for declare capture API

func (*Client) CreateDeclareCapture

CreateDeclareCapture adds a new declare capture

Adds a new declare capture in the specified frontend in the configuration file.

func (*Client) DeleteDeclareCapture

DeleteDeclareCapture deletes a declare capture

Deletes a declare capture configuration by it's index in the specified frontend.

func (*Client) GetDeclareCapture

func (a *Client) GetDeclareCapture(params *GetDeclareCaptureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeclareCaptureOK, error)

GetDeclareCapture returns one declare capture

Returns one declare capture configuration by it's index in the specified frontend.

func (*Client) GetDeclareCaptures

func (a *Client) GetDeclareCaptures(params *GetDeclareCapturesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeclareCapturesOK, error)

GetDeclareCaptures returns an array of declare captures

Returns an array of all declare capture records that are configured in specified frontend.

func (*Client) ReplaceDeclareCapture

ReplaceDeclareCapture replaces a declare capture

Replaces a declare capture configuration by it's index in the specified frontend.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v1.0.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new declare capture API client.

type CreateDeclareCaptureAccepted

type CreateDeclareCaptureAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Capture
}

CreateDeclareCaptureAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateDeclareCaptureAccepted

func NewCreateDeclareCaptureAccepted() *CreateDeclareCaptureAccepted

NewCreateDeclareCaptureAccepted creates a CreateDeclareCaptureAccepted with default headers values

func (*CreateDeclareCaptureAccepted) Code added in v1.1.5

Code gets the status code for the create declare capture accepted response

func (*CreateDeclareCaptureAccepted) Error

func (*CreateDeclareCaptureAccepted) GetPayload

func (o *CreateDeclareCaptureAccepted) GetPayload() *models.Capture

func (*CreateDeclareCaptureAccepted) IsClientError added in v1.1.0

func (o *CreateDeclareCaptureAccepted) IsClientError() bool

IsClientError returns true when this create declare capture accepted response has a 4xx status code

func (*CreateDeclareCaptureAccepted) IsCode added in v1.1.0

func (o *CreateDeclareCaptureAccepted) IsCode(code int) bool

IsCode returns true when this create declare capture accepted response a status code equal to that given

func (*CreateDeclareCaptureAccepted) IsRedirect added in v1.1.0

func (o *CreateDeclareCaptureAccepted) IsRedirect() bool

IsRedirect returns true when this create declare capture accepted response has a 3xx status code

func (*CreateDeclareCaptureAccepted) IsServerError added in v1.1.0

func (o *CreateDeclareCaptureAccepted) IsServerError() bool

IsServerError returns true when this create declare capture accepted response has a 5xx status code

func (*CreateDeclareCaptureAccepted) IsSuccess added in v1.1.0

func (o *CreateDeclareCaptureAccepted) IsSuccess() bool

IsSuccess returns true when this create declare capture accepted response has a 2xx status code

func (*CreateDeclareCaptureAccepted) String added in v1.1.0

type CreateDeclareCaptureBadRequest

type CreateDeclareCaptureBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateDeclareCaptureBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateDeclareCaptureBadRequest

func NewCreateDeclareCaptureBadRequest() *CreateDeclareCaptureBadRequest

NewCreateDeclareCaptureBadRequest creates a CreateDeclareCaptureBadRequest with default headers values

func (*CreateDeclareCaptureBadRequest) Code added in v1.1.5

Code gets the status code for the create declare capture bad request response

func (*CreateDeclareCaptureBadRequest) Error

func (*CreateDeclareCaptureBadRequest) GetPayload

func (o *CreateDeclareCaptureBadRequest) GetPayload() *models.Error

func (*CreateDeclareCaptureBadRequest) IsClientError added in v1.1.0

func (o *CreateDeclareCaptureBadRequest) IsClientError() bool

IsClientError returns true when this create declare capture bad request response has a 4xx status code

func (*CreateDeclareCaptureBadRequest) IsCode added in v1.1.0

func (o *CreateDeclareCaptureBadRequest) IsCode(code int) bool

IsCode returns true when this create declare capture bad request response a status code equal to that given

func (*CreateDeclareCaptureBadRequest) IsRedirect added in v1.1.0

func (o *CreateDeclareCaptureBadRequest) IsRedirect() bool

IsRedirect returns true when this create declare capture bad request response has a 3xx status code

func (*CreateDeclareCaptureBadRequest) IsServerError added in v1.1.0

func (o *CreateDeclareCaptureBadRequest) IsServerError() bool

IsServerError returns true when this create declare capture bad request response has a 5xx status code

func (*CreateDeclareCaptureBadRequest) IsSuccess added in v1.1.0

func (o *CreateDeclareCaptureBadRequest) IsSuccess() bool

IsSuccess returns true when this create declare capture bad request response has a 2xx status code

func (*CreateDeclareCaptureBadRequest) String added in v1.1.0

type CreateDeclareCaptureConflict

type CreateDeclareCaptureConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateDeclareCaptureConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateDeclareCaptureConflict

func NewCreateDeclareCaptureConflict() *CreateDeclareCaptureConflict

NewCreateDeclareCaptureConflict creates a CreateDeclareCaptureConflict with default headers values

func (*CreateDeclareCaptureConflict) Code added in v1.1.5

Code gets the status code for the create declare capture conflict response

func (*CreateDeclareCaptureConflict) Error

func (*CreateDeclareCaptureConflict) GetPayload

func (o *CreateDeclareCaptureConflict) GetPayload() *models.Error

func (*CreateDeclareCaptureConflict) IsClientError added in v1.1.0

func (o *CreateDeclareCaptureConflict) IsClientError() bool

IsClientError returns true when this create declare capture conflict response has a 4xx status code

func (*CreateDeclareCaptureConflict) IsCode added in v1.1.0

func (o *CreateDeclareCaptureConflict) IsCode(code int) bool

IsCode returns true when this create declare capture conflict response a status code equal to that given

func (*CreateDeclareCaptureConflict) IsRedirect added in v1.1.0

func (o *CreateDeclareCaptureConflict) IsRedirect() bool

IsRedirect returns true when this create declare capture conflict response has a 3xx status code

func (*CreateDeclareCaptureConflict) IsServerError added in v1.1.0

func (o *CreateDeclareCaptureConflict) IsServerError() bool

IsServerError returns true when this create declare capture conflict response has a 5xx status code

func (*CreateDeclareCaptureConflict) IsSuccess added in v1.1.0

func (o *CreateDeclareCaptureConflict) IsSuccess() bool

IsSuccess returns true when this create declare capture conflict response has a 2xx status code

func (*CreateDeclareCaptureConflict) String added in v1.1.0

type CreateDeclareCaptureCreated

type CreateDeclareCaptureCreated struct {
	Payload *models.Capture
}

CreateDeclareCaptureCreated describes a response with status code 201, with default header values.

Declare capture created

func NewCreateDeclareCaptureCreated

func NewCreateDeclareCaptureCreated() *CreateDeclareCaptureCreated

NewCreateDeclareCaptureCreated creates a CreateDeclareCaptureCreated with default headers values

func (*CreateDeclareCaptureCreated) Code added in v1.1.5

func (o *CreateDeclareCaptureCreated) Code() int

Code gets the status code for the create declare capture created response

func (*CreateDeclareCaptureCreated) Error

func (*CreateDeclareCaptureCreated) GetPayload

func (o *CreateDeclareCaptureCreated) GetPayload() *models.Capture

func (*CreateDeclareCaptureCreated) IsClientError added in v1.1.0

func (o *CreateDeclareCaptureCreated) IsClientError() bool

IsClientError returns true when this create declare capture created response has a 4xx status code

func (*CreateDeclareCaptureCreated) IsCode added in v1.1.0

func (o *CreateDeclareCaptureCreated) IsCode(code int) bool

IsCode returns true when this create declare capture created response a status code equal to that given

func (*CreateDeclareCaptureCreated) IsRedirect added in v1.1.0

func (o *CreateDeclareCaptureCreated) IsRedirect() bool

IsRedirect returns true when this create declare capture created response has a 3xx status code

func (*CreateDeclareCaptureCreated) IsServerError added in v1.1.0

func (o *CreateDeclareCaptureCreated) IsServerError() bool

IsServerError returns true when this create declare capture created response has a 5xx status code

func (*CreateDeclareCaptureCreated) IsSuccess added in v1.1.0

func (o *CreateDeclareCaptureCreated) IsSuccess() bool

IsSuccess returns true when this create declare capture created response has a 2xx status code

func (*CreateDeclareCaptureCreated) String added in v1.1.0

func (o *CreateDeclareCaptureCreated) String() string

type CreateDeclareCaptureDefault

type CreateDeclareCaptureDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateDeclareCaptureDefault describes a response with status code -1, with default header values.

General Error

func NewCreateDeclareCaptureDefault

func NewCreateDeclareCaptureDefault(code int) *CreateDeclareCaptureDefault

NewCreateDeclareCaptureDefault creates a CreateDeclareCaptureDefault with default headers values

func (*CreateDeclareCaptureDefault) Code

func (o *CreateDeclareCaptureDefault) Code() int

Code gets the status code for the create declare capture default response

func (*CreateDeclareCaptureDefault) Error

func (*CreateDeclareCaptureDefault) GetPayload

func (o *CreateDeclareCaptureDefault) GetPayload() *models.Error

func (*CreateDeclareCaptureDefault) IsClientError added in v1.1.0

func (o *CreateDeclareCaptureDefault) IsClientError() bool

IsClientError returns true when this create declare capture default response has a 4xx status code

func (*CreateDeclareCaptureDefault) IsCode added in v1.1.0

func (o *CreateDeclareCaptureDefault) IsCode(code int) bool

IsCode returns true when this create declare capture default response a status code equal to that given

func (*CreateDeclareCaptureDefault) IsRedirect added in v1.1.0

func (o *CreateDeclareCaptureDefault) IsRedirect() bool

IsRedirect returns true when this create declare capture default response has a 3xx status code

func (*CreateDeclareCaptureDefault) IsServerError added in v1.1.0

func (o *CreateDeclareCaptureDefault) IsServerError() bool

IsServerError returns true when this create declare capture default response has a 5xx status code

func (*CreateDeclareCaptureDefault) IsSuccess added in v1.1.0

func (o *CreateDeclareCaptureDefault) IsSuccess() bool

IsSuccess returns true when this create declare capture default response has a 2xx status code

func (*CreateDeclareCaptureDefault) String added in v1.1.0

func (o *CreateDeclareCaptureDefault) String() string

type CreateDeclareCaptureParams

type CreateDeclareCaptureParams struct {

	// Data.
	Data *models.Capture

	/* ForceReload.

	   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.
	*/
	ForceReload *bool

	/* Frontend.

	   Parent frontend name
	*/
	Frontend string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateDeclareCaptureParams contains all the parameters to send to the API endpoint

for the create declare capture operation.

Typically these are written to a http.Request.

func NewCreateDeclareCaptureParams

func NewCreateDeclareCaptureParams() *CreateDeclareCaptureParams

NewCreateDeclareCaptureParams creates a new CreateDeclareCaptureParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateDeclareCaptureParamsWithContext

func NewCreateDeclareCaptureParamsWithContext(ctx context.Context) *CreateDeclareCaptureParams

NewCreateDeclareCaptureParamsWithContext creates a new CreateDeclareCaptureParams object with the ability to set a context for a request.

func NewCreateDeclareCaptureParamsWithHTTPClient

func NewCreateDeclareCaptureParamsWithHTTPClient(client *http.Client) *CreateDeclareCaptureParams

NewCreateDeclareCaptureParamsWithHTTPClient creates a new CreateDeclareCaptureParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDeclareCaptureParamsWithTimeout

func NewCreateDeclareCaptureParamsWithTimeout(timeout time.Duration) *CreateDeclareCaptureParams

NewCreateDeclareCaptureParamsWithTimeout creates a new CreateDeclareCaptureParams object with the ability to set a timeout on a request.

func (*CreateDeclareCaptureParams) SetContext

func (o *CreateDeclareCaptureParams) SetContext(ctx context.Context)

SetContext adds the context to the create declare capture params

func (*CreateDeclareCaptureParams) SetData

func (o *CreateDeclareCaptureParams) SetData(data *models.Capture)

SetData adds the data to the create declare capture params

func (*CreateDeclareCaptureParams) SetDefaults added in v1.0.0

func (o *CreateDeclareCaptureParams) SetDefaults()

SetDefaults hydrates default values in the create declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*CreateDeclareCaptureParams) SetForceReload

func (o *CreateDeclareCaptureParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create declare capture params

func (*CreateDeclareCaptureParams) SetFrontend

func (o *CreateDeclareCaptureParams) SetFrontend(frontend string)

SetFrontend adds the frontend to the create declare capture params

func (*CreateDeclareCaptureParams) SetHTTPClient

func (o *CreateDeclareCaptureParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create declare capture params

func (*CreateDeclareCaptureParams) SetTimeout

func (o *CreateDeclareCaptureParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create declare capture params

func (*CreateDeclareCaptureParams) SetTransactionID

func (o *CreateDeclareCaptureParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create declare capture params

func (*CreateDeclareCaptureParams) SetVersion

func (o *CreateDeclareCaptureParams) SetVersion(version *int64)

SetVersion adds the version to the create declare capture params

func (*CreateDeclareCaptureParams) WithContext

WithContext adds the context to the create declare capture params

func (*CreateDeclareCaptureParams) WithData

WithData adds the data to the create declare capture params

func (*CreateDeclareCaptureParams) WithDefaults added in v1.0.0

WithDefaults hydrates default values in the create declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*CreateDeclareCaptureParams) WithForceReload

func (o *CreateDeclareCaptureParams) WithForceReload(forceReload *bool) *CreateDeclareCaptureParams

WithForceReload adds the forceReload to the create declare capture params

func (*CreateDeclareCaptureParams) WithFrontend

WithFrontend adds the frontend to the create declare capture params

func (*CreateDeclareCaptureParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create declare capture params

func (*CreateDeclareCaptureParams) WithTimeout

WithTimeout adds the timeout to the create declare capture params

func (*CreateDeclareCaptureParams) WithTransactionID

func (o *CreateDeclareCaptureParams) WithTransactionID(transactionID *string) *CreateDeclareCaptureParams

WithTransactionID adds the transactionID to the create declare capture params

func (*CreateDeclareCaptureParams) WithVersion

WithVersion adds the version to the create declare capture params

func (*CreateDeclareCaptureParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDeclareCaptureReader

type CreateDeclareCaptureReader struct {
	// contains filtered or unexported fields
}

CreateDeclareCaptureReader is a Reader for the CreateDeclareCapture structure.

func (*CreateDeclareCaptureReader) ReadResponse

func (o *CreateDeclareCaptureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteDeclareCaptureAccepted

type DeleteDeclareCaptureAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteDeclareCaptureAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteDeclareCaptureAccepted

func NewDeleteDeclareCaptureAccepted() *DeleteDeclareCaptureAccepted

NewDeleteDeclareCaptureAccepted creates a DeleteDeclareCaptureAccepted with default headers values

func (*DeleteDeclareCaptureAccepted) Code added in v1.1.5

Code gets the status code for the delete declare capture accepted response

func (*DeleteDeclareCaptureAccepted) Error

func (*DeleteDeclareCaptureAccepted) IsClientError added in v1.1.0

func (o *DeleteDeclareCaptureAccepted) IsClientError() bool

IsClientError returns true when this delete declare capture accepted response has a 4xx status code

func (*DeleteDeclareCaptureAccepted) IsCode added in v1.1.0

func (o *DeleteDeclareCaptureAccepted) IsCode(code int) bool

IsCode returns true when this delete declare capture accepted response a status code equal to that given

func (*DeleteDeclareCaptureAccepted) IsRedirect added in v1.1.0

func (o *DeleteDeclareCaptureAccepted) IsRedirect() bool

IsRedirect returns true when this delete declare capture accepted response has a 3xx status code

func (*DeleteDeclareCaptureAccepted) IsServerError added in v1.1.0

func (o *DeleteDeclareCaptureAccepted) IsServerError() bool

IsServerError returns true when this delete declare capture accepted response has a 5xx status code

func (*DeleteDeclareCaptureAccepted) IsSuccess added in v1.1.0

func (o *DeleteDeclareCaptureAccepted) IsSuccess() bool

IsSuccess returns true when this delete declare capture accepted response has a 2xx status code

func (*DeleteDeclareCaptureAccepted) String added in v1.1.0

type DeleteDeclareCaptureDefault

type DeleteDeclareCaptureDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteDeclareCaptureDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteDeclareCaptureDefault

func NewDeleteDeclareCaptureDefault(code int) *DeleteDeclareCaptureDefault

NewDeleteDeclareCaptureDefault creates a DeleteDeclareCaptureDefault with default headers values

func (*DeleteDeclareCaptureDefault) Code

func (o *DeleteDeclareCaptureDefault) Code() int

Code gets the status code for the delete declare capture default response

func (*DeleteDeclareCaptureDefault) Error

func (*DeleteDeclareCaptureDefault) GetPayload

func (o *DeleteDeclareCaptureDefault) GetPayload() *models.Error

func (*DeleteDeclareCaptureDefault) IsClientError added in v1.1.0

func (o *DeleteDeclareCaptureDefault) IsClientError() bool

IsClientError returns true when this delete declare capture default response has a 4xx status code

func (*DeleteDeclareCaptureDefault) IsCode added in v1.1.0

func (o *DeleteDeclareCaptureDefault) IsCode(code int) bool

IsCode returns true when this delete declare capture default response a status code equal to that given

func (*DeleteDeclareCaptureDefault) IsRedirect added in v1.1.0

func (o *DeleteDeclareCaptureDefault) IsRedirect() bool

IsRedirect returns true when this delete declare capture default response has a 3xx status code

func (*DeleteDeclareCaptureDefault) IsServerError added in v1.1.0

func (o *DeleteDeclareCaptureDefault) IsServerError() bool

IsServerError returns true when this delete declare capture default response has a 5xx status code

func (*DeleteDeclareCaptureDefault) IsSuccess added in v1.1.0

func (o *DeleteDeclareCaptureDefault) IsSuccess() bool

IsSuccess returns true when this delete declare capture default response has a 2xx status code

func (*DeleteDeclareCaptureDefault) String added in v1.1.0

func (o *DeleteDeclareCaptureDefault) String() string

type DeleteDeclareCaptureNoContent

type DeleteDeclareCaptureNoContent struct {
}

DeleteDeclareCaptureNoContent describes a response with status code 204, with default header values.

Declare Capture deleted

func NewDeleteDeclareCaptureNoContent

func NewDeleteDeclareCaptureNoContent() *DeleteDeclareCaptureNoContent

NewDeleteDeclareCaptureNoContent creates a DeleteDeclareCaptureNoContent with default headers values

func (*DeleteDeclareCaptureNoContent) Code added in v1.1.5

Code gets the status code for the delete declare capture no content response

func (*DeleteDeclareCaptureNoContent) Error

func (*DeleteDeclareCaptureNoContent) IsClientError added in v1.1.0

func (o *DeleteDeclareCaptureNoContent) IsClientError() bool

IsClientError returns true when this delete declare capture no content response has a 4xx status code

func (*DeleteDeclareCaptureNoContent) IsCode added in v1.1.0

func (o *DeleteDeclareCaptureNoContent) IsCode(code int) bool

IsCode returns true when this delete declare capture no content response a status code equal to that given

func (*DeleteDeclareCaptureNoContent) IsRedirect added in v1.1.0

func (o *DeleteDeclareCaptureNoContent) IsRedirect() bool

IsRedirect returns true when this delete declare capture no content response has a 3xx status code

func (*DeleteDeclareCaptureNoContent) IsServerError added in v1.1.0

func (o *DeleteDeclareCaptureNoContent) IsServerError() bool

IsServerError returns true when this delete declare capture no content response has a 5xx status code

func (*DeleteDeclareCaptureNoContent) IsSuccess added in v1.1.0

func (o *DeleteDeclareCaptureNoContent) IsSuccess() bool

IsSuccess returns true when this delete declare capture no content response has a 2xx status code

func (*DeleteDeclareCaptureNoContent) String added in v1.1.0

type DeleteDeclareCaptureNotFound

type DeleteDeclareCaptureNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteDeclareCaptureNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteDeclareCaptureNotFound

func NewDeleteDeclareCaptureNotFound() *DeleteDeclareCaptureNotFound

NewDeleteDeclareCaptureNotFound creates a DeleteDeclareCaptureNotFound with default headers values

func (*DeleteDeclareCaptureNotFound) Code added in v1.1.5

Code gets the status code for the delete declare capture not found response

func (*DeleteDeclareCaptureNotFound) Error

func (*DeleteDeclareCaptureNotFound) GetPayload

func (o *DeleteDeclareCaptureNotFound) GetPayload() *models.Error

func (*DeleteDeclareCaptureNotFound) IsClientError added in v1.1.0

func (o *DeleteDeclareCaptureNotFound) IsClientError() bool

IsClientError returns true when this delete declare capture not found response has a 4xx status code

func (*DeleteDeclareCaptureNotFound) IsCode added in v1.1.0

func (o *DeleteDeclareCaptureNotFound) IsCode(code int) bool

IsCode returns true when this delete declare capture not found response a status code equal to that given

func (*DeleteDeclareCaptureNotFound) IsRedirect added in v1.1.0

func (o *DeleteDeclareCaptureNotFound) IsRedirect() bool

IsRedirect returns true when this delete declare capture not found response has a 3xx status code

func (*DeleteDeclareCaptureNotFound) IsServerError added in v1.1.0

func (o *DeleteDeclareCaptureNotFound) IsServerError() bool

IsServerError returns true when this delete declare capture not found response has a 5xx status code

func (*DeleteDeclareCaptureNotFound) IsSuccess added in v1.1.0

func (o *DeleteDeclareCaptureNotFound) IsSuccess() bool

IsSuccess returns true when this delete declare capture not found response has a 2xx status code

func (*DeleteDeclareCaptureNotFound) String added in v1.1.0

type DeleteDeclareCaptureParams

type DeleteDeclareCaptureParams struct {

	/* ForceReload.

	   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.
	*/
	ForceReload *bool

	/* Frontend.

	   Parent frontend name
	*/
	Frontend string

	/* Index.

	   Declare Capture Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteDeclareCaptureParams contains all the parameters to send to the API endpoint

for the delete declare capture operation.

Typically these are written to a http.Request.

func NewDeleteDeclareCaptureParams

func NewDeleteDeclareCaptureParams() *DeleteDeclareCaptureParams

NewDeleteDeclareCaptureParams creates a new DeleteDeclareCaptureParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteDeclareCaptureParamsWithContext

func NewDeleteDeclareCaptureParamsWithContext(ctx context.Context) *DeleteDeclareCaptureParams

NewDeleteDeclareCaptureParamsWithContext creates a new DeleteDeclareCaptureParams object with the ability to set a context for a request.

func NewDeleteDeclareCaptureParamsWithHTTPClient

func NewDeleteDeclareCaptureParamsWithHTTPClient(client *http.Client) *DeleteDeclareCaptureParams

NewDeleteDeclareCaptureParamsWithHTTPClient creates a new DeleteDeclareCaptureParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDeclareCaptureParamsWithTimeout

func NewDeleteDeclareCaptureParamsWithTimeout(timeout time.Duration) *DeleteDeclareCaptureParams

NewDeleteDeclareCaptureParamsWithTimeout creates a new DeleteDeclareCaptureParams object with the ability to set a timeout on a request.

func (*DeleteDeclareCaptureParams) SetContext

func (o *DeleteDeclareCaptureParams) SetContext(ctx context.Context)

SetContext adds the context to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetDefaults added in v1.0.0

func (o *DeleteDeclareCaptureParams) SetDefaults()

SetDefaults hydrates default values in the delete declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteDeclareCaptureParams) SetForceReload

func (o *DeleteDeclareCaptureParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetFrontend

func (o *DeleteDeclareCaptureParams) SetFrontend(frontend string)

SetFrontend adds the frontend to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetHTTPClient

func (o *DeleteDeclareCaptureParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetIndex

func (o *DeleteDeclareCaptureParams) SetIndex(index int64)

SetIndex adds the index to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetTimeout

func (o *DeleteDeclareCaptureParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetTransactionID

func (o *DeleteDeclareCaptureParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete declare capture params

func (*DeleteDeclareCaptureParams) SetVersion

func (o *DeleteDeclareCaptureParams) SetVersion(version *int64)

SetVersion adds the version to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithContext

WithContext adds the context to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithDefaults added in v1.0.0

WithDefaults hydrates default values in the delete declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteDeclareCaptureParams) WithForceReload

func (o *DeleteDeclareCaptureParams) WithForceReload(forceReload *bool) *DeleteDeclareCaptureParams

WithForceReload adds the forceReload to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithFrontend

WithFrontend adds the frontend to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithIndex

WithIndex adds the index to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithTimeout

WithTimeout adds the timeout to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithTransactionID

func (o *DeleteDeclareCaptureParams) WithTransactionID(transactionID *string) *DeleteDeclareCaptureParams

WithTransactionID adds the transactionID to the delete declare capture params

func (*DeleteDeclareCaptureParams) WithVersion

WithVersion adds the version to the delete declare capture params

func (*DeleteDeclareCaptureParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDeclareCaptureReader

type DeleteDeclareCaptureReader struct {
	// contains filtered or unexported fields
}

DeleteDeclareCaptureReader is a Reader for the DeleteDeclareCapture structure.

func (*DeleteDeclareCaptureReader) ReadResponse

func (o *DeleteDeclareCaptureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetDeclareCaptureDefault

type GetDeclareCaptureDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetDeclareCaptureDefault describes a response with status code -1, with default header values.

General Error

func NewGetDeclareCaptureDefault

func NewGetDeclareCaptureDefault(code int) *GetDeclareCaptureDefault

NewGetDeclareCaptureDefault creates a GetDeclareCaptureDefault with default headers values

func (*GetDeclareCaptureDefault) Code

func (o *GetDeclareCaptureDefault) Code() int

Code gets the status code for the get declare capture default response

func (*GetDeclareCaptureDefault) Error

func (o *GetDeclareCaptureDefault) Error() string

func (*GetDeclareCaptureDefault) GetPayload

func (o *GetDeclareCaptureDefault) GetPayload() *models.Error

func (*GetDeclareCaptureDefault) IsClientError added in v1.1.0

func (o *GetDeclareCaptureDefault) IsClientError() bool

IsClientError returns true when this get declare capture default response has a 4xx status code

func (*GetDeclareCaptureDefault) IsCode added in v1.1.0

func (o *GetDeclareCaptureDefault) IsCode(code int) bool

IsCode returns true when this get declare capture default response a status code equal to that given

func (*GetDeclareCaptureDefault) IsRedirect added in v1.1.0

func (o *GetDeclareCaptureDefault) IsRedirect() bool

IsRedirect returns true when this get declare capture default response has a 3xx status code

func (*GetDeclareCaptureDefault) IsServerError added in v1.1.0

func (o *GetDeclareCaptureDefault) IsServerError() bool

IsServerError returns true when this get declare capture default response has a 5xx status code

func (*GetDeclareCaptureDefault) IsSuccess added in v1.1.0

func (o *GetDeclareCaptureDefault) IsSuccess() bool

IsSuccess returns true when this get declare capture default response has a 2xx status code

func (*GetDeclareCaptureDefault) String added in v1.1.0

func (o *GetDeclareCaptureDefault) String() string

type GetDeclareCaptureNotFound

type GetDeclareCaptureNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetDeclareCaptureNotFound describes a response with status code 404, with default header values.

The specified resource already exists

func NewGetDeclareCaptureNotFound

func NewGetDeclareCaptureNotFound() *GetDeclareCaptureNotFound

NewGetDeclareCaptureNotFound creates a GetDeclareCaptureNotFound with default headers values

func (*GetDeclareCaptureNotFound) Code added in v1.1.5

func (o *GetDeclareCaptureNotFound) Code() int

Code gets the status code for the get declare capture not found response

func (*GetDeclareCaptureNotFound) Error

func (o *GetDeclareCaptureNotFound) Error() string

func (*GetDeclareCaptureNotFound) GetPayload

func (o *GetDeclareCaptureNotFound) GetPayload() *models.Error

func (*GetDeclareCaptureNotFound) IsClientError added in v1.1.0

func (o *GetDeclareCaptureNotFound) IsClientError() bool

IsClientError returns true when this get declare capture not found response has a 4xx status code

func (*GetDeclareCaptureNotFound) IsCode added in v1.1.0

func (o *GetDeclareCaptureNotFound) IsCode(code int) bool

IsCode returns true when this get declare capture not found response a status code equal to that given

func (*GetDeclareCaptureNotFound) IsRedirect added in v1.1.0

func (o *GetDeclareCaptureNotFound) IsRedirect() bool

IsRedirect returns true when this get declare capture not found response has a 3xx status code

func (*GetDeclareCaptureNotFound) IsServerError added in v1.1.0

func (o *GetDeclareCaptureNotFound) IsServerError() bool

IsServerError returns true when this get declare capture not found response has a 5xx status code

func (*GetDeclareCaptureNotFound) IsSuccess added in v1.1.0

func (o *GetDeclareCaptureNotFound) IsSuccess() bool

IsSuccess returns true when this get declare capture not found response has a 2xx status code

func (*GetDeclareCaptureNotFound) String added in v1.1.0

func (o *GetDeclareCaptureNotFound) String() string

type GetDeclareCaptureOK

type GetDeclareCaptureOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetDeclareCaptureOKBody
}

GetDeclareCaptureOK describes a response with status code 200, with default header values.

Successful operation

func NewGetDeclareCaptureOK

func NewGetDeclareCaptureOK() *GetDeclareCaptureOK

NewGetDeclareCaptureOK creates a GetDeclareCaptureOK with default headers values

func (*GetDeclareCaptureOK) Code added in v1.1.5

func (o *GetDeclareCaptureOK) Code() int

Code gets the status code for the get declare capture o k response

func (*GetDeclareCaptureOK) Error

func (o *GetDeclareCaptureOK) Error() string

func (*GetDeclareCaptureOK) GetPayload

func (*GetDeclareCaptureOK) IsClientError added in v1.1.0

func (o *GetDeclareCaptureOK) IsClientError() bool

IsClientError returns true when this get declare capture o k response has a 4xx status code

func (*GetDeclareCaptureOK) IsCode added in v1.1.0

func (o *GetDeclareCaptureOK) IsCode(code int) bool

IsCode returns true when this get declare capture o k response a status code equal to that given

func (*GetDeclareCaptureOK) IsRedirect added in v1.1.0

func (o *GetDeclareCaptureOK) IsRedirect() bool

IsRedirect returns true when this get declare capture o k response has a 3xx status code

func (*GetDeclareCaptureOK) IsServerError added in v1.1.0

func (o *GetDeclareCaptureOK) IsServerError() bool

IsServerError returns true when this get declare capture o k response has a 5xx status code

func (*GetDeclareCaptureOK) IsSuccess added in v1.1.0

func (o *GetDeclareCaptureOK) IsSuccess() bool

IsSuccess returns true when this get declare capture o k response has a 2xx status code

func (*GetDeclareCaptureOK) String added in v1.1.0

func (o *GetDeclareCaptureOK) String() string

type GetDeclareCaptureOKBody

type GetDeclareCaptureOKBody struct {

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

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

GetDeclareCaptureOKBody get declare capture o k body swagger:model GetDeclareCaptureOKBody

func (*GetDeclareCaptureOKBody) ContextValidate added in v1.0.0

func (o *GetDeclareCaptureOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get declare capture o k body based on the context it is used

func (*GetDeclareCaptureOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDeclareCaptureOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDeclareCaptureOKBody) Validate

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

Validate validates this get declare capture o k body

type GetDeclareCaptureParams

type GetDeclareCaptureParams struct {

	/* Frontend.

	   Parent frontend name
	*/
	Frontend string

	/* Index.

	   Declare Capture Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDeclareCaptureParams contains all the parameters to send to the API endpoint

for the get declare capture operation.

Typically these are written to a http.Request.

func NewGetDeclareCaptureParams

func NewGetDeclareCaptureParams() *GetDeclareCaptureParams

NewGetDeclareCaptureParams creates a new GetDeclareCaptureParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDeclareCaptureParamsWithContext

func NewGetDeclareCaptureParamsWithContext(ctx context.Context) *GetDeclareCaptureParams

NewGetDeclareCaptureParamsWithContext creates a new GetDeclareCaptureParams object with the ability to set a context for a request.

func NewGetDeclareCaptureParamsWithHTTPClient

func NewGetDeclareCaptureParamsWithHTTPClient(client *http.Client) *GetDeclareCaptureParams

NewGetDeclareCaptureParamsWithHTTPClient creates a new GetDeclareCaptureParams object with the ability to set a custom HTTPClient for a request.

func NewGetDeclareCaptureParamsWithTimeout

func NewGetDeclareCaptureParamsWithTimeout(timeout time.Duration) *GetDeclareCaptureParams

NewGetDeclareCaptureParamsWithTimeout creates a new GetDeclareCaptureParams object with the ability to set a timeout on a request.

func (*GetDeclareCaptureParams) SetContext

func (o *GetDeclareCaptureParams) SetContext(ctx context.Context)

SetContext adds the context to the get declare capture params

func (*GetDeclareCaptureParams) SetDefaults added in v1.0.0

func (o *GetDeclareCaptureParams) SetDefaults()

SetDefaults hydrates default values in the get declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeclareCaptureParams) SetFrontend

func (o *GetDeclareCaptureParams) SetFrontend(frontend string)

SetFrontend adds the frontend to the get declare capture params

func (*GetDeclareCaptureParams) SetHTTPClient

func (o *GetDeclareCaptureParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get declare capture params

func (*GetDeclareCaptureParams) SetIndex

func (o *GetDeclareCaptureParams) SetIndex(index int64)

SetIndex adds the index to the get declare capture params

func (*GetDeclareCaptureParams) SetTimeout

func (o *GetDeclareCaptureParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get declare capture params

func (*GetDeclareCaptureParams) SetTransactionID

func (o *GetDeclareCaptureParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get declare capture params

func (*GetDeclareCaptureParams) WithContext

WithContext adds the context to the get declare capture params

func (*GetDeclareCaptureParams) WithDefaults added in v1.0.0

WithDefaults hydrates default values in the get declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeclareCaptureParams) WithFrontend

func (o *GetDeclareCaptureParams) WithFrontend(frontend string) *GetDeclareCaptureParams

WithFrontend adds the frontend to the get declare capture params

func (*GetDeclareCaptureParams) WithHTTPClient

func (o *GetDeclareCaptureParams) WithHTTPClient(client *http.Client) *GetDeclareCaptureParams

WithHTTPClient adds the HTTPClient to the get declare capture params

func (*GetDeclareCaptureParams) WithIndex

WithIndex adds the index to the get declare capture params

func (*GetDeclareCaptureParams) WithTimeout

WithTimeout adds the timeout to the get declare capture params

func (*GetDeclareCaptureParams) WithTransactionID

func (o *GetDeclareCaptureParams) WithTransactionID(transactionID *string) *GetDeclareCaptureParams

WithTransactionID adds the transactionID to the get declare capture params

func (*GetDeclareCaptureParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeclareCaptureReader

type GetDeclareCaptureReader struct {
	// contains filtered or unexported fields
}

GetDeclareCaptureReader is a Reader for the GetDeclareCapture structure.

func (*GetDeclareCaptureReader) ReadResponse

func (o *GetDeclareCaptureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetDeclareCapturesDefault

type GetDeclareCapturesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetDeclareCapturesDefault describes a response with status code -1, with default header values.

General Error

func NewGetDeclareCapturesDefault

func NewGetDeclareCapturesDefault(code int) *GetDeclareCapturesDefault

NewGetDeclareCapturesDefault creates a GetDeclareCapturesDefault with default headers values

func (*GetDeclareCapturesDefault) Code

func (o *GetDeclareCapturesDefault) Code() int

Code gets the status code for the get declare captures default response

func (*GetDeclareCapturesDefault) Error

func (o *GetDeclareCapturesDefault) Error() string

func (*GetDeclareCapturesDefault) GetPayload

func (o *GetDeclareCapturesDefault) GetPayload() *models.Error

func (*GetDeclareCapturesDefault) IsClientError added in v1.1.0

func (o *GetDeclareCapturesDefault) IsClientError() bool

IsClientError returns true when this get declare captures default response has a 4xx status code

func (*GetDeclareCapturesDefault) IsCode added in v1.1.0

func (o *GetDeclareCapturesDefault) IsCode(code int) bool

IsCode returns true when this get declare captures default response a status code equal to that given

func (*GetDeclareCapturesDefault) IsRedirect added in v1.1.0

func (o *GetDeclareCapturesDefault) IsRedirect() bool

IsRedirect returns true when this get declare captures default response has a 3xx status code

func (*GetDeclareCapturesDefault) IsServerError added in v1.1.0

func (o *GetDeclareCapturesDefault) IsServerError() bool

IsServerError returns true when this get declare captures default response has a 5xx status code

func (*GetDeclareCapturesDefault) IsSuccess added in v1.1.0

func (o *GetDeclareCapturesDefault) IsSuccess() bool

IsSuccess returns true when this get declare captures default response has a 2xx status code

func (*GetDeclareCapturesDefault) String added in v1.1.0

func (o *GetDeclareCapturesDefault) String() string

type GetDeclareCapturesOK

type GetDeclareCapturesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetDeclareCapturesOKBody
}

GetDeclareCapturesOK describes a response with status code 200, with default header values.

Successful operation

func NewGetDeclareCapturesOK

func NewGetDeclareCapturesOK() *GetDeclareCapturesOK

NewGetDeclareCapturesOK creates a GetDeclareCapturesOK with default headers values

func (*GetDeclareCapturesOK) Code added in v1.1.5

func (o *GetDeclareCapturesOK) Code() int

Code gets the status code for the get declare captures o k response

func (*GetDeclareCapturesOK) Error

func (o *GetDeclareCapturesOK) Error() string

func (*GetDeclareCapturesOK) GetPayload

func (*GetDeclareCapturesOK) IsClientError added in v1.1.0

func (o *GetDeclareCapturesOK) IsClientError() bool

IsClientError returns true when this get declare captures o k response has a 4xx status code

func (*GetDeclareCapturesOK) IsCode added in v1.1.0

func (o *GetDeclareCapturesOK) IsCode(code int) bool

IsCode returns true when this get declare captures o k response a status code equal to that given

func (*GetDeclareCapturesOK) IsRedirect added in v1.1.0

func (o *GetDeclareCapturesOK) IsRedirect() bool

IsRedirect returns true when this get declare captures o k response has a 3xx status code

func (*GetDeclareCapturesOK) IsServerError added in v1.1.0

func (o *GetDeclareCapturesOK) IsServerError() bool

IsServerError returns true when this get declare captures o k response has a 5xx status code

func (*GetDeclareCapturesOK) IsSuccess added in v1.1.0

func (o *GetDeclareCapturesOK) IsSuccess() bool

IsSuccess returns true when this get declare captures o k response has a 2xx status code

func (*GetDeclareCapturesOK) String added in v1.1.0

func (o *GetDeclareCapturesOK) String() string

type GetDeclareCapturesOKBody

type GetDeclareCapturesOKBody struct {

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

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

GetDeclareCapturesOKBody get declare captures o k body swagger:model GetDeclareCapturesOKBody

func (*GetDeclareCapturesOKBody) ContextValidate added in v1.0.0

func (o *GetDeclareCapturesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get declare captures o k body based on the context it is used

func (*GetDeclareCapturesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDeclareCapturesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDeclareCapturesOKBody) Validate

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

Validate validates this get declare captures o k body

type GetDeclareCapturesParams

type GetDeclareCapturesParams struct {

	/* Frontend.

	   Parent frontend name
	*/
	Frontend string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDeclareCapturesParams contains all the parameters to send to the API endpoint

for the get declare captures operation.

Typically these are written to a http.Request.

func NewGetDeclareCapturesParams

func NewGetDeclareCapturesParams() *GetDeclareCapturesParams

NewGetDeclareCapturesParams creates a new GetDeclareCapturesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDeclareCapturesParamsWithContext

func NewGetDeclareCapturesParamsWithContext(ctx context.Context) *GetDeclareCapturesParams

NewGetDeclareCapturesParamsWithContext creates a new GetDeclareCapturesParams object with the ability to set a context for a request.

func NewGetDeclareCapturesParamsWithHTTPClient

func NewGetDeclareCapturesParamsWithHTTPClient(client *http.Client) *GetDeclareCapturesParams

NewGetDeclareCapturesParamsWithHTTPClient creates a new GetDeclareCapturesParams object with the ability to set a custom HTTPClient for a request.

func NewGetDeclareCapturesParamsWithTimeout

func NewGetDeclareCapturesParamsWithTimeout(timeout time.Duration) *GetDeclareCapturesParams

NewGetDeclareCapturesParamsWithTimeout creates a new GetDeclareCapturesParams object with the ability to set a timeout on a request.

func (*GetDeclareCapturesParams) SetContext

func (o *GetDeclareCapturesParams) SetContext(ctx context.Context)

SetContext adds the context to the get declare captures params

func (*GetDeclareCapturesParams) SetDefaults added in v1.0.0

func (o *GetDeclareCapturesParams) SetDefaults()

SetDefaults hydrates default values in the get declare captures params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeclareCapturesParams) SetFrontend

func (o *GetDeclareCapturesParams) SetFrontend(frontend string)

SetFrontend adds the frontend to the get declare captures params

func (*GetDeclareCapturesParams) SetHTTPClient

func (o *GetDeclareCapturesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get declare captures params

func (*GetDeclareCapturesParams) SetTimeout

func (o *GetDeclareCapturesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get declare captures params

func (*GetDeclareCapturesParams) SetTransactionID

func (o *GetDeclareCapturesParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get declare captures params

func (*GetDeclareCapturesParams) WithContext

WithContext adds the context to the get declare captures params

func (*GetDeclareCapturesParams) WithDefaults added in v1.0.0

WithDefaults hydrates default values in the get declare captures params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeclareCapturesParams) WithFrontend

func (o *GetDeclareCapturesParams) WithFrontend(frontend string) *GetDeclareCapturesParams

WithFrontend adds the frontend to the get declare captures params

func (*GetDeclareCapturesParams) WithHTTPClient

func (o *GetDeclareCapturesParams) WithHTTPClient(client *http.Client) *GetDeclareCapturesParams

WithHTTPClient adds the HTTPClient to the get declare captures params

func (*GetDeclareCapturesParams) WithTimeout

WithTimeout adds the timeout to the get declare captures params

func (*GetDeclareCapturesParams) WithTransactionID

func (o *GetDeclareCapturesParams) WithTransactionID(transactionID *string) *GetDeclareCapturesParams

WithTransactionID adds the transactionID to the get declare captures params

func (*GetDeclareCapturesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeclareCapturesReader

type GetDeclareCapturesReader struct {
	// contains filtered or unexported fields
}

GetDeclareCapturesReader is a Reader for the GetDeclareCaptures structure.

func (*GetDeclareCapturesReader) ReadResponse

func (o *GetDeclareCapturesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ReplaceDeclareCaptureAccepted

type ReplaceDeclareCaptureAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Capture
}

ReplaceDeclareCaptureAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceDeclareCaptureAccepted

func NewReplaceDeclareCaptureAccepted() *ReplaceDeclareCaptureAccepted

NewReplaceDeclareCaptureAccepted creates a ReplaceDeclareCaptureAccepted with default headers values

func (*ReplaceDeclareCaptureAccepted) Code added in v1.1.5

Code gets the status code for the replace declare capture accepted response

func (*ReplaceDeclareCaptureAccepted) Error

func (*ReplaceDeclareCaptureAccepted) GetPayload

func (o *ReplaceDeclareCaptureAccepted) GetPayload() *models.Capture

func (*ReplaceDeclareCaptureAccepted) IsClientError added in v1.1.0

func (o *ReplaceDeclareCaptureAccepted) IsClientError() bool

IsClientError returns true when this replace declare capture accepted response has a 4xx status code

func (*ReplaceDeclareCaptureAccepted) IsCode added in v1.1.0

func (o *ReplaceDeclareCaptureAccepted) IsCode(code int) bool

IsCode returns true when this replace declare capture accepted response a status code equal to that given

func (*ReplaceDeclareCaptureAccepted) IsRedirect added in v1.1.0

func (o *ReplaceDeclareCaptureAccepted) IsRedirect() bool

IsRedirect returns true when this replace declare capture accepted response has a 3xx status code

func (*ReplaceDeclareCaptureAccepted) IsServerError added in v1.1.0

func (o *ReplaceDeclareCaptureAccepted) IsServerError() bool

IsServerError returns true when this replace declare capture accepted response has a 5xx status code

func (*ReplaceDeclareCaptureAccepted) IsSuccess added in v1.1.0

func (o *ReplaceDeclareCaptureAccepted) IsSuccess() bool

IsSuccess returns true when this replace declare capture accepted response has a 2xx status code

func (*ReplaceDeclareCaptureAccepted) String added in v1.1.0

type ReplaceDeclareCaptureBadRequest

type ReplaceDeclareCaptureBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceDeclareCaptureBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceDeclareCaptureBadRequest

func NewReplaceDeclareCaptureBadRequest() *ReplaceDeclareCaptureBadRequest

NewReplaceDeclareCaptureBadRequest creates a ReplaceDeclareCaptureBadRequest with default headers values

func (*ReplaceDeclareCaptureBadRequest) Code added in v1.1.5

Code gets the status code for the replace declare capture bad request response

func (*ReplaceDeclareCaptureBadRequest) Error

func (*ReplaceDeclareCaptureBadRequest) GetPayload

func (o *ReplaceDeclareCaptureBadRequest) GetPayload() *models.Error

func (*ReplaceDeclareCaptureBadRequest) IsClientError added in v1.1.0

func (o *ReplaceDeclareCaptureBadRequest) IsClientError() bool

IsClientError returns true when this replace declare capture bad request response has a 4xx status code

func (*ReplaceDeclareCaptureBadRequest) IsCode added in v1.1.0

func (o *ReplaceDeclareCaptureBadRequest) IsCode(code int) bool

IsCode returns true when this replace declare capture bad request response a status code equal to that given

func (*ReplaceDeclareCaptureBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceDeclareCaptureBadRequest) IsRedirect() bool

IsRedirect returns true when this replace declare capture bad request response has a 3xx status code

func (*ReplaceDeclareCaptureBadRequest) IsServerError added in v1.1.0

func (o *ReplaceDeclareCaptureBadRequest) IsServerError() bool

IsServerError returns true when this replace declare capture bad request response has a 5xx status code

func (*ReplaceDeclareCaptureBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceDeclareCaptureBadRequest) IsSuccess() bool

IsSuccess returns true when this replace declare capture bad request response has a 2xx status code

func (*ReplaceDeclareCaptureBadRequest) String added in v1.1.0

type ReplaceDeclareCaptureDefault

type ReplaceDeclareCaptureDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceDeclareCaptureDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceDeclareCaptureDefault

func NewReplaceDeclareCaptureDefault(code int) *ReplaceDeclareCaptureDefault

NewReplaceDeclareCaptureDefault creates a ReplaceDeclareCaptureDefault with default headers values

func (*ReplaceDeclareCaptureDefault) Code

Code gets the status code for the replace declare capture default response

func (*ReplaceDeclareCaptureDefault) Error

func (*ReplaceDeclareCaptureDefault) GetPayload

func (o *ReplaceDeclareCaptureDefault) GetPayload() *models.Error

func (*ReplaceDeclareCaptureDefault) IsClientError added in v1.1.0

func (o *ReplaceDeclareCaptureDefault) IsClientError() bool

IsClientError returns true when this replace declare capture default response has a 4xx status code

func (*ReplaceDeclareCaptureDefault) IsCode added in v1.1.0

func (o *ReplaceDeclareCaptureDefault) IsCode(code int) bool

IsCode returns true when this replace declare capture default response a status code equal to that given

func (*ReplaceDeclareCaptureDefault) IsRedirect added in v1.1.0

func (o *ReplaceDeclareCaptureDefault) IsRedirect() bool

IsRedirect returns true when this replace declare capture default response has a 3xx status code

func (*ReplaceDeclareCaptureDefault) IsServerError added in v1.1.0

func (o *ReplaceDeclareCaptureDefault) IsServerError() bool

IsServerError returns true when this replace declare capture default response has a 5xx status code

func (*ReplaceDeclareCaptureDefault) IsSuccess added in v1.1.0

func (o *ReplaceDeclareCaptureDefault) IsSuccess() bool

IsSuccess returns true when this replace declare capture default response has a 2xx status code

func (*ReplaceDeclareCaptureDefault) String added in v1.1.0

type ReplaceDeclareCaptureNotFound

type ReplaceDeclareCaptureNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceDeclareCaptureNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceDeclareCaptureNotFound

func NewReplaceDeclareCaptureNotFound() *ReplaceDeclareCaptureNotFound

NewReplaceDeclareCaptureNotFound creates a ReplaceDeclareCaptureNotFound with default headers values

func (*ReplaceDeclareCaptureNotFound) Code added in v1.1.5

Code gets the status code for the replace declare capture not found response

func (*ReplaceDeclareCaptureNotFound) Error

func (*ReplaceDeclareCaptureNotFound) GetPayload

func (o *ReplaceDeclareCaptureNotFound) GetPayload() *models.Error

func (*ReplaceDeclareCaptureNotFound) IsClientError added in v1.1.0

func (o *ReplaceDeclareCaptureNotFound) IsClientError() bool

IsClientError returns true when this replace declare capture not found response has a 4xx status code

func (*ReplaceDeclareCaptureNotFound) IsCode added in v1.1.0

func (o *ReplaceDeclareCaptureNotFound) IsCode(code int) bool

IsCode returns true when this replace declare capture not found response a status code equal to that given

func (*ReplaceDeclareCaptureNotFound) IsRedirect added in v1.1.0

func (o *ReplaceDeclareCaptureNotFound) IsRedirect() bool

IsRedirect returns true when this replace declare capture not found response has a 3xx status code

func (*ReplaceDeclareCaptureNotFound) IsServerError added in v1.1.0

func (o *ReplaceDeclareCaptureNotFound) IsServerError() bool

IsServerError returns true when this replace declare capture not found response has a 5xx status code

func (*ReplaceDeclareCaptureNotFound) IsSuccess added in v1.1.0

func (o *ReplaceDeclareCaptureNotFound) IsSuccess() bool

IsSuccess returns true when this replace declare capture not found response has a 2xx status code

func (*ReplaceDeclareCaptureNotFound) String added in v1.1.0

type ReplaceDeclareCaptureOK

type ReplaceDeclareCaptureOK struct {
	Payload *models.Capture
}

ReplaceDeclareCaptureOK describes a response with status code 200, with default header values.

Declare Capture replaced

func NewReplaceDeclareCaptureOK

func NewReplaceDeclareCaptureOK() *ReplaceDeclareCaptureOK

NewReplaceDeclareCaptureOK creates a ReplaceDeclareCaptureOK with default headers values

func (*ReplaceDeclareCaptureOK) Code added in v1.1.5

func (o *ReplaceDeclareCaptureOK) Code() int

Code gets the status code for the replace declare capture o k response

func (*ReplaceDeclareCaptureOK) Error

func (o *ReplaceDeclareCaptureOK) Error() string

func (*ReplaceDeclareCaptureOK) GetPayload

func (o *ReplaceDeclareCaptureOK) GetPayload() *models.Capture

func (*ReplaceDeclareCaptureOK) IsClientError added in v1.1.0

func (o *ReplaceDeclareCaptureOK) IsClientError() bool

IsClientError returns true when this replace declare capture o k response has a 4xx status code

func (*ReplaceDeclareCaptureOK) IsCode added in v1.1.0

func (o *ReplaceDeclareCaptureOK) IsCode(code int) bool

IsCode returns true when this replace declare capture o k response a status code equal to that given

func (*ReplaceDeclareCaptureOK) IsRedirect added in v1.1.0

func (o *ReplaceDeclareCaptureOK) IsRedirect() bool

IsRedirect returns true when this replace declare capture o k response has a 3xx status code

func (*ReplaceDeclareCaptureOK) IsServerError added in v1.1.0

func (o *ReplaceDeclareCaptureOK) IsServerError() bool

IsServerError returns true when this replace declare capture o k response has a 5xx status code

func (*ReplaceDeclareCaptureOK) IsSuccess added in v1.1.0

func (o *ReplaceDeclareCaptureOK) IsSuccess() bool

IsSuccess returns true when this replace declare capture o k response has a 2xx status code

func (*ReplaceDeclareCaptureOK) String added in v1.1.0

func (o *ReplaceDeclareCaptureOK) String() string

type ReplaceDeclareCaptureParams

type ReplaceDeclareCaptureParams struct {

	// Data.
	Data *models.Capture

	/* ForceReload.

	   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.
	*/
	ForceReload *bool

	/* Frontend.

	   Parent frontend name
	*/
	Frontend string

	/* Index.

	   Declare Capture Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReplaceDeclareCaptureParams contains all the parameters to send to the API endpoint

for the replace declare capture operation.

Typically these are written to a http.Request.

func NewReplaceDeclareCaptureParams

func NewReplaceDeclareCaptureParams() *ReplaceDeclareCaptureParams

NewReplaceDeclareCaptureParams creates a new ReplaceDeclareCaptureParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewReplaceDeclareCaptureParamsWithContext

func NewReplaceDeclareCaptureParamsWithContext(ctx context.Context) *ReplaceDeclareCaptureParams

NewReplaceDeclareCaptureParamsWithContext creates a new ReplaceDeclareCaptureParams object with the ability to set a context for a request.

func NewReplaceDeclareCaptureParamsWithHTTPClient

func NewReplaceDeclareCaptureParamsWithHTTPClient(client *http.Client) *ReplaceDeclareCaptureParams

NewReplaceDeclareCaptureParamsWithHTTPClient creates a new ReplaceDeclareCaptureParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceDeclareCaptureParamsWithTimeout

func NewReplaceDeclareCaptureParamsWithTimeout(timeout time.Duration) *ReplaceDeclareCaptureParams

NewReplaceDeclareCaptureParamsWithTimeout creates a new ReplaceDeclareCaptureParams object with the ability to set a timeout on a request.

func (*ReplaceDeclareCaptureParams) SetContext

func (o *ReplaceDeclareCaptureParams) SetContext(ctx context.Context)

SetContext adds the context to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetData

func (o *ReplaceDeclareCaptureParams) SetData(data *models.Capture)

SetData adds the data to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetDefaults added in v1.0.0

func (o *ReplaceDeclareCaptureParams) SetDefaults()

SetDefaults hydrates default values in the replace declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*ReplaceDeclareCaptureParams) SetForceReload

func (o *ReplaceDeclareCaptureParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetFrontend

func (o *ReplaceDeclareCaptureParams) SetFrontend(frontend string)

SetFrontend adds the frontend to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetHTTPClient

func (o *ReplaceDeclareCaptureParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetIndex

func (o *ReplaceDeclareCaptureParams) SetIndex(index int64)

SetIndex adds the index to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetTimeout

func (o *ReplaceDeclareCaptureParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetTransactionID

func (o *ReplaceDeclareCaptureParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace declare capture params

func (*ReplaceDeclareCaptureParams) SetVersion

func (o *ReplaceDeclareCaptureParams) SetVersion(version *int64)

SetVersion adds the version to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithContext

WithContext adds the context to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithData

WithData adds the data to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithDefaults added in v1.0.0

WithDefaults hydrates default values in the replace declare capture params (not the query body).

All values with no default are reset to their zero value.

func (*ReplaceDeclareCaptureParams) WithForceReload

func (o *ReplaceDeclareCaptureParams) WithForceReload(forceReload *bool) *ReplaceDeclareCaptureParams

WithForceReload adds the forceReload to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithFrontend

WithFrontend adds the frontend to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithIndex

WithIndex adds the index to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithTimeout

WithTimeout adds the timeout to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithTransactionID

func (o *ReplaceDeclareCaptureParams) WithTransactionID(transactionID *string) *ReplaceDeclareCaptureParams

WithTransactionID adds the transactionID to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WithVersion

WithVersion adds the version to the replace declare capture params

func (*ReplaceDeclareCaptureParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceDeclareCaptureReader

type ReplaceDeclareCaptureReader struct {
	// contains filtered or unexported fields
}

ReplaceDeclareCaptureReader is a Reader for the ReplaceDeclareCapture structure.

func (*ReplaceDeclareCaptureReader) ReadResponse

func (o *ReplaceDeclareCaptureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL