filter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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 filter API

func (*Client) CreateFilter

CreateFilter adds a new filter

Adds a new Filter of the specified type in the specified parent.

func (*Client) DeleteFilter

DeleteFilter deletes a filter

Deletes a Filter configuration by it's index from the specified parent.

func (*Client) GetFilter

func (a *Client) GetFilter(params *GetFilterParams, authInfo runtime.ClientAuthInfoWriter) (*GetFilterOK, error)

GetFilter returns one filter

Returns one Filter configuration by it's index in the specified parent.

func (*Client) GetFilters

func (a *Client) GetFilters(params *GetFiltersParams, authInfo runtime.ClientAuthInfoWriter) (*GetFiltersOK, error)

GetFilters returns an array of all filters

Returns all Filters that are configured in specified parent.

func (*Client) ReplaceFilter

ReplaceFilter replaces a filter

Replaces a Filter configuration by it's index in the specified parent.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

ClientService is the interface for Client methods

func New

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

New creates a new filter API client.

type CreateFilterAccepted

type CreateFilterAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.Filter
}

CreateFilterAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateFilterAccepted

func NewCreateFilterAccepted() *CreateFilterAccepted

NewCreateFilterAccepted creates a CreateFilterAccepted with default headers values

func (*CreateFilterAccepted) Error

func (o *CreateFilterAccepted) Error() string

func (*CreateFilterAccepted) GetPayload added in v0.2.0

func (o *CreateFilterAccepted) GetPayload() *models.Filter

type CreateFilterBadRequest

type CreateFilterBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateFilterBadRequest handles this case with default header values.

Bad request

func NewCreateFilterBadRequest

func NewCreateFilterBadRequest() *CreateFilterBadRequest

NewCreateFilterBadRequest creates a CreateFilterBadRequest with default headers values

func (*CreateFilterBadRequest) Error

func (o *CreateFilterBadRequest) Error() string

func (*CreateFilterBadRequest) GetPayload added in v0.2.0

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

type CreateFilterConflict

type CreateFilterConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateFilterConflict handles this case with default header values.

The specified resource already exists

func NewCreateFilterConflict

func NewCreateFilterConflict() *CreateFilterConflict

NewCreateFilterConflict creates a CreateFilterConflict with default headers values

func (*CreateFilterConflict) Error

func (o *CreateFilterConflict) Error() string

func (*CreateFilterConflict) GetPayload added in v0.2.0

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

type CreateFilterCreated

type CreateFilterCreated struct {
	Payload *models.Filter
}

CreateFilterCreated handles this case with default header values.

Filter created

func NewCreateFilterCreated

func NewCreateFilterCreated() *CreateFilterCreated

NewCreateFilterCreated creates a CreateFilterCreated with default headers values

func (*CreateFilterCreated) Error

func (o *CreateFilterCreated) Error() string

func (*CreateFilterCreated) GetPayload added in v0.2.0

func (o *CreateFilterCreated) GetPayload() *models.Filter

type CreateFilterDefault

type CreateFilterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateFilterDefault handles this case with default header values.

General Error

func NewCreateFilterDefault

func NewCreateFilterDefault(code int) *CreateFilterDefault

NewCreateFilterDefault creates a CreateFilterDefault with default headers values

func (*CreateFilterDefault) Code

func (o *CreateFilterDefault) Code() int

Code gets the status code for the create filter default response

func (*CreateFilterDefault) Error

func (o *CreateFilterDefault) Error() string

func (*CreateFilterDefault) GetPayload added in v0.2.0

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

type CreateFilterParams

type CreateFilterParams struct {

	/*Data*/
	Data *models.Filter
	/*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
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

CreateFilterParams contains all the parameters to send to the API endpoint for the create filter operation typically these are written to a http.Request

func NewCreateFilterParams

func NewCreateFilterParams() *CreateFilterParams

NewCreateFilterParams creates a new CreateFilterParams object with the default values initialized.

func NewCreateFilterParamsWithContext

func NewCreateFilterParamsWithContext(ctx context.Context) *CreateFilterParams

NewCreateFilterParamsWithContext creates a new CreateFilterParams object with the default values initialized, and the ability to set a context for a request

func NewCreateFilterParamsWithHTTPClient

func NewCreateFilterParamsWithHTTPClient(client *http.Client) *CreateFilterParams

NewCreateFilterParamsWithHTTPClient creates a new CreateFilterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateFilterParamsWithTimeout

func NewCreateFilterParamsWithTimeout(timeout time.Duration) *CreateFilterParams

NewCreateFilterParamsWithTimeout creates a new CreateFilterParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateFilterParams) SetContext

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

SetContext adds the context to the create filter params

func (*CreateFilterParams) SetData

func (o *CreateFilterParams) SetData(data *models.Filter)

SetData adds the data to the create filter params

func (*CreateFilterParams) SetForceReload

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

SetForceReload adds the forceReload to the create filter params

func (*CreateFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create filter params

func (*CreateFilterParams) SetParentName

func (o *CreateFilterParams) SetParentName(parentName string)

SetParentName adds the parentName to the create filter params

func (*CreateFilterParams) SetParentType

func (o *CreateFilterParams) SetParentType(parentType string)

SetParentType adds the parentType to the create filter params

func (*CreateFilterParams) SetTimeout

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

SetTimeout adds the timeout to the create filter params

func (*CreateFilterParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create filter params

func (*CreateFilterParams) SetVersion

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

SetVersion adds the version to the create filter params

func (*CreateFilterParams) WithContext

WithContext adds the context to the create filter params

func (*CreateFilterParams) WithData

func (o *CreateFilterParams) WithData(data *models.Filter) *CreateFilterParams

WithData adds the data to the create filter params

func (*CreateFilterParams) WithForceReload

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

WithForceReload adds the forceReload to the create filter params

func (*CreateFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create filter params

func (*CreateFilterParams) WithParentName

func (o *CreateFilterParams) WithParentName(parentName string) *CreateFilterParams

WithParentName adds the parentName to the create filter params

func (*CreateFilterParams) WithParentType

func (o *CreateFilterParams) WithParentType(parentType string) *CreateFilterParams

WithParentType adds the parentType to the create filter params

func (*CreateFilterParams) WithTimeout

func (o *CreateFilterParams) WithTimeout(timeout time.Duration) *CreateFilterParams

WithTimeout adds the timeout to the create filter params

func (*CreateFilterParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create filter params

func (*CreateFilterParams) WithVersion

func (o *CreateFilterParams) WithVersion(version *int64) *CreateFilterParams

WithVersion adds the version to the create filter params

func (*CreateFilterParams) WriteToRequest

func (o *CreateFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateFilterReader

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

CreateFilterReader is a Reader for the CreateFilter structure.

func (*CreateFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteFilterAccepted

type DeleteFilterAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeleteFilterAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteFilterAccepted

func NewDeleteFilterAccepted() *DeleteFilterAccepted

NewDeleteFilterAccepted creates a DeleteFilterAccepted with default headers values

func (*DeleteFilterAccepted) Error

func (o *DeleteFilterAccepted) Error() string

type DeleteFilterDefault

type DeleteFilterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteFilterDefault handles this case with default header values.

General Error

func NewDeleteFilterDefault

func NewDeleteFilterDefault(code int) *DeleteFilterDefault

NewDeleteFilterDefault creates a DeleteFilterDefault with default headers values

func (*DeleteFilterDefault) Code

func (o *DeleteFilterDefault) Code() int

Code gets the status code for the delete filter default response

func (*DeleteFilterDefault) Error

func (o *DeleteFilterDefault) Error() string

func (*DeleteFilterDefault) GetPayload added in v0.2.0

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

type DeleteFilterNoContent

type DeleteFilterNoContent struct {
}

DeleteFilterNoContent handles this case with default header values.

Filter deleted

func NewDeleteFilterNoContent

func NewDeleteFilterNoContent() *DeleteFilterNoContent

NewDeleteFilterNoContent creates a DeleteFilterNoContent with default headers values

func (*DeleteFilterNoContent) Error

func (o *DeleteFilterNoContent) Error() string

type DeleteFilterNotFound

type DeleteFilterNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

DeleteFilterNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteFilterNotFound

func NewDeleteFilterNotFound() *DeleteFilterNotFound

NewDeleteFilterNotFound creates a DeleteFilterNotFound with default headers values

func (*DeleteFilterNotFound) Error

func (o *DeleteFilterNotFound) Error() string

func (*DeleteFilterNotFound) GetPayload added in v0.2.0

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

type DeleteFilterParams

type DeleteFilterParams 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
	/*Index
	  Filter Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

DeleteFilterParams contains all the parameters to send to the API endpoint for the delete filter operation typically these are written to a http.Request

func NewDeleteFilterParams

func NewDeleteFilterParams() *DeleteFilterParams

NewDeleteFilterParams creates a new DeleteFilterParams object with the default values initialized.

func NewDeleteFilterParamsWithContext

func NewDeleteFilterParamsWithContext(ctx context.Context) *DeleteFilterParams

NewDeleteFilterParamsWithContext creates a new DeleteFilterParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteFilterParamsWithHTTPClient

func NewDeleteFilterParamsWithHTTPClient(client *http.Client) *DeleteFilterParams

NewDeleteFilterParamsWithHTTPClient creates a new DeleteFilterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteFilterParamsWithTimeout

func NewDeleteFilterParamsWithTimeout(timeout time.Duration) *DeleteFilterParams

NewDeleteFilterParamsWithTimeout creates a new DeleteFilterParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteFilterParams) SetContext

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

SetContext adds the context to the delete filter params

func (*DeleteFilterParams) SetForceReload

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

SetForceReload adds the forceReload to the delete filter params

func (*DeleteFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete filter params

func (*DeleteFilterParams) SetIndex

func (o *DeleteFilterParams) SetIndex(index int64)

SetIndex adds the index to the delete filter params

func (*DeleteFilterParams) SetParentName

func (o *DeleteFilterParams) SetParentName(parentName string)

SetParentName adds the parentName to the delete filter params

func (*DeleteFilterParams) SetParentType

func (o *DeleteFilterParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete filter params

func (*DeleteFilterParams) SetTimeout

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

SetTimeout adds the timeout to the delete filter params

func (*DeleteFilterParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete filter params

func (*DeleteFilterParams) SetVersion

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

SetVersion adds the version to the delete filter params

func (*DeleteFilterParams) WithContext

WithContext adds the context to the delete filter params

func (*DeleteFilterParams) WithForceReload

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

WithForceReload adds the forceReload to the delete filter params

func (*DeleteFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete filter params

func (*DeleteFilterParams) WithIndex

func (o *DeleteFilterParams) WithIndex(index int64) *DeleteFilterParams

WithIndex adds the index to the delete filter params

func (*DeleteFilterParams) WithParentName

func (o *DeleteFilterParams) WithParentName(parentName string) *DeleteFilterParams

WithParentName adds the parentName to the delete filter params

func (*DeleteFilterParams) WithParentType

func (o *DeleteFilterParams) WithParentType(parentType string) *DeleteFilterParams

WithParentType adds the parentType to the delete filter params

func (*DeleteFilterParams) WithTimeout

func (o *DeleteFilterParams) WithTimeout(timeout time.Duration) *DeleteFilterParams

WithTimeout adds the timeout to the delete filter params

func (*DeleteFilterParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete filter params

func (*DeleteFilterParams) WithVersion

func (o *DeleteFilterParams) WithVersion(version *int64) *DeleteFilterParams

WithVersion adds the version to the delete filter params

func (*DeleteFilterParams) WriteToRequest

func (o *DeleteFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteFilterReader

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

DeleteFilterReader is a Reader for the DeleteFilter structure.

func (*DeleteFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFilterDefault

type GetFilterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetFilterDefault handles this case with default header values.

General Error

func NewGetFilterDefault

func NewGetFilterDefault(code int) *GetFilterDefault

NewGetFilterDefault creates a GetFilterDefault with default headers values

func (*GetFilterDefault) Code

func (o *GetFilterDefault) Code() int

Code gets the status code for the get filter default response

func (*GetFilterDefault) Error

func (o *GetFilterDefault) Error() string

func (*GetFilterDefault) GetPayload added in v0.2.0

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

type GetFilterNotFound

type GetFilterNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetFilterNotFound handles this case with default header values.

The specified resource was not found

func NewGetFilterNotFound

func NewGetFilterNotFound() *GetFilterNotFound

NewGetFilterNotFound creates a GetFilterNotFound with default headers values

func (*GetFilterNotFound) Error

func (o *GetFilterNotFound) Error() string

func (*GetFilterNotFound) GetPayload added in v0.2.0

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

type GetFilterOK

type GetFilterOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetFilterOKBody
}

GetFilterOK handles this case with default header values.

Successful operation

func NewGetFilterOK

func NewGetFilterOK() *GetFilterOK

NewGetFilterOK creates a GetFilterOK with default headers values

func (*GetFilterOK) Error

func (o *GetFilterOK) Error() string

func (*GetFilterOK) GetPayload added in v0.2.0

func (o *GetFilterOK) GetPayload() *GetFilterOKBody

type GetFilterOKBody

type GetFilterOKBody struct {

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

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

GetFilterOKBody get filter o k body swagger:model GetFilterOKBody

func (*GetFilterOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFilterOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFilterOKBody) Validate

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

Validate validates this get filter o k body

type GetFilterParams

type GetFilterParams struct {

	/*Index
	  Filter Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

GetFilterParams contains all the parameters to send to the API endpoint for the get filter operation typically these are written to a http.Request

func NewGetFilterParams

func NewGetFilterParams() *GetFilterParams

NewGetFilterParams creates a new GetFilterParams object with the default values initialized.

func NewGetFilterParamsWithContext

func NewGetFilterParamsWithContext(ctx context.Context) *GetFilterParams

NewGetFilterParamsWithContext creates a new GetFilterParams object with the default values initialized, and the ability to set a context for a request

func NewGetFilterParamsWithHTTPClient

func NewGetFilterParamsWithHTTPClient(client *http.Client) *GetFilterParams

NewGetFilterParamsWithHTTPClient creates a new GetFilterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetFilterParamsWithTimeout

func NewGetFilterParamsWithTimeout(timeout time.Duration) *GetFilterParams

NewGetFilterParamsWithTimeout creates a new GetFilterParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetFilterParams) SetContext

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

SetContext adds the context to the get filter params

func (*GetFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get filter params

func (*GetFilterParams) SetIndex

func (o *GetFilterParams) SetIndex(index int64)

SetIndex adds the index to the get filter params

func (*GetFilterParams) SetParentName

func (o *GetFilterParams) SetParentName(parentName string)

SetParentName adds the parentName to the get filter params

func (*GetFilterParams) SetParentType

func (o *GetFilterParams) SetParentType(parentType string)

SetParentType adds the parentType to the get filter params

func (*GetFilterParams) SetTimeout

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

SetTimeout adds the timeout to the get filter params

func (*GetFilterParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get filter params

func (*GetFilterParams) WithContext

func (o *GetFilterParams) WithContext(ctx context.Context) *GetFilterParams

WithContext adds the context to the get filter params

func (*GetFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get filter params

func (*GetFilterParams) WithIndex

func (o *GetFilterParams) WithIndex(index int64) *GetFilterParams

WithIndex adds the index to the get filter params

func (*GetFilterParams) WithParentName

func (o *GetFilterParams) WithParentName(parentName string) *GetFilterParams

WithParentName adds the parentName to the get filter params

func (*GetFilterParams) WithParentType

func (o *GetFilterParams) WithParentType(parentType string) *GetFilterParams

WithParentType adds the parentType to the get filter params

func (*GetFilterParams) WithTimeout

func (o *GetFilterParams) WithTimeout(timeout time.Duration) *GetFilterParams

WithTimeout adds the timeout to the get filter params

func (*GetFilterParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get filter params

func (*GetFilterParams) WriteToRequest

func (o *GetFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetFilterReader

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

GetFilterReader is a Reader for the GetFilter structure.

func (*GetFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFiltersDefault

type GetFiltersDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetFiltersDefault handles this case with default header values.

General Error

func NewGetFiltersDefault

func NewGetFiltersDefault(code int) *GetFiltersDefault

NewGetFiltersDefault creates a GetFiltersDefault with default headers values

func (*GetFiltersDefault) Code

func (o *GetFiltersDefault) Code() int

Code gets the status code for the get filters default response

func (*GetFiltersDefault) Error

func (o *GetFiltersDefault) Error() string

func (*GetFiltersDefault) GetPayload added in v0.2.0

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

type GetFiltersOK

type GetFiltersOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetFiltersOKBody
}

GetFiltersOK handles this case with default header values.

Successful operation

func NewGetFiltersOK

func NewGetFiltersOK() *GetFiltersOK

NewGetFiltersOK creates a GetFiltersOK with default headers values

func (*GetFiltersOK) Error

func (o *GetFiltersOK) Error() string

func (*GetFiltersOK) GetPayload added in v0.2.0

func (o *GetFiltersOK) GetPayload() *GetFiltersOKBody

type GetFiltersOKBody

type GetFiltersOKBody struct {

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

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

GetFiltersOKBody get filters o k body swagger:model GetFiltersOKBody

func (*GetFiltersOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFiltersOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFiltersOKBody) Validate

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

Validate validates this get filters o k body

type GetFiltersParams

type GetFiltersParams struct {

	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

GetFiltersParams contains all the parameters to send to the API endpoint for the get filters operation typically these are written to a http.Request

func NewGetFiltersParams

func NewGetFiltersParams() *GetFiltersParams

NewGetFiltersParams creates a new GetFiltersParams object with the default values initialized.

func NewGetFiltersParamsWithContext

func NewGetFiltersParamsWithContext(ctx context.Context) *GetFiltersParams

NewGetFiltersParamsWithContext creates a new GetFiltersParams object with the default values initialized, and the ability to set a context for a request

func NewGetFiltersParamsWithHTTPClient

func NewGetFiltersParamsWithHTTPClient(client *http.Client) *GetFiltersParams

NewGetFiltersParamsWithHTTPClient creates a new GetFiltersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetFiltersParamsWithTimeout

func NewGetFiltersParamsWithTimeout(timeout time.Duration) *GetFiltersParams

NewGetFiltersParamsWithTimeout creates a new GetFiltersParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetFiltersParams) SetContext

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

SetContext adds the context to the get filters params

func (*GetFiltersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get filters params

func (*GetFiltersParams) SetParentName

func (o *GetFiltersParams) SetParentName(parentName string)

SetParentName adds the parentName to the get filters params

func (*GetFiltersParams) SetParentType

func (o *GetFiltersParams) SetParentType(parentType string)

SetParentType adds the parentType to the get filters params

func (*GetFiltersParams) SetTimeout

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

SetTimeout adds the timeout to the get filters params

func (*GetFiltersParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get filters params

func (*GetFiltersParams) WithContext

func (o *GetFiltersParams) WithContext(ctx context.Context) *GetFiltersParams

WithContext adds the context to the get filters params

func (*GetFiltersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get filters params

func (*GetFiltersParams) WithParentName

func (o *GetFiltersParams) WithParentName(parentName string) *GetFiltersParams

WithParentName adds the parentName to the get filters params

func (*GetFiltersParams) WithParentType

func (o *GetFiltersParams) WithParentType(parentType string) *GetFiltersParams

WithParentType adds the parentType to the get filters params

func (*GetFiltersParams) WithTimeout

func (o *GetFiltersParams) WithTimeout(timeout time.Duration) *GetFiltersParams

WithTimeout adds the timeout to the get filters params

func (*GetFiltersParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get filters params

func (*GetFiltersParams) WriteToRequest

func (o *GetFiltersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetFiltersReader

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

GetFiltersReader is a Reader for the GetFilters structure.

func (*GetFiltersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceFilterAccepted

type ReplaceFilterAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.Filter
}

ReplaceFilterAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceFilterAccepted

func NewReplaceFilterAccepted() *ReplaceFilterAccepted

NewReplaceFilterAccepted creates a ReplaceFilterAccepted with default headers values

func (*ReplaceFilterAccepted) Error

func (o *ReplaceFilterAccepted) Error() string

func (*ReplaceFilterAccepted) GetPayload added in v0.2.0

func (o *ReplaceFilterAccepted) GetPayload() *models.Filter

type ReplaceFilterBadRequest

type ReplaceFilterBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceFilterBadRequest handles this case with default header values.

Bad request

func NewReplaceFilterBadRequest

func NewReplaceFilterBadRequest() *ReplaceFilterBadRequest

NewReplaceFilterBadRequest creates a ReplaceFilterBadRequest with default headers values

func (*ReplaceFilterBadRequest) Error

func (o *ReplaceFilterBadRequest) Error() string

func (*ReplaceFilterBadRequest) GetPayload added in v0.2.0

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

type ReplaceFilterDefault

type ReplaceFilterDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceFilterDefault handles this case with default header values.

General Error

func NewReplaceFilterDefault

func NewReplaceFilterDefault(code int) *ReplaceFilterDefault

NewReplaceFilterDefault creates a ReplaceFilterDefault with default headers values

func (*ReplaceFilterDefault) Code

func (o *ReplaceFilterDefault) Code() int

Code gets the status code for the replace filter default response

func (*ReplaceFilterDefault) Error

func (o *ReplaceFilterDefault) Error() string

func (*ReplaceFilterDefault) GetPayload added in v0.2.0

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

type ReplaceFilterNotFound

type ReplaceFilterNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceFilterNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceFilterNotFound

func NewReplaceFilterNotFound() *ReplaceFilterNotFound

NewReplaceFilterNotFound creates a ReplaceFilterNotFound with default headers values

func (*ReplaceFilterNotFound) Error

func (o *ReplaceFilterNotFound) Error() string

func (*ReplaceFilterNotFound) GetPayload added in v0.2.0

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

type ReplaceFilterOK

type ReplaceFilterOK struct {
	Payload *models.Filter
}

ReplaceFilterOK handles this case with default header values.

Filter replaced

func NewReplaceFilterOK

func NewReplaceFilterOK() *ReplaceFilterOK

NewReplaceFilterOK creates a ReplaceFilterOK with default headers values

func (*ReplaceFilterOK) Error

func (o *ReplaceFilterOK) Error() string

func (*ReplaceFilterOK) GetPayload added in v0.2.0

func (o *ReplaceFilterOK) GetPayload() *models.Filter

type ReplaceFilterParams

type ReplaceFilterParams struct {

	/*Data*/
	Data *models.Filter
	/*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
	/*Index
	  Filter Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

ReplaceFilterParams contains all the parameters to send to the API endpoint for the replace filter operation typically these are written to a http.Request

func NewReplaceFilterParams

func NewReplaceFilterParams() *ReplaceFilterParams

NewReplaceFilterParams creates a new ReplaceFilterParams object with the default values initialized.

func NewReplaceFilterParamsWithContext

func NewReplaceFilterParamsWithContext(ctx context.Context) *ReplaceFilterParams

NewReplaceFilterParamsWithContext creates a new ReplaceFilterParams object with the default values initialized, and the ability to set a context for a request

func NewReplaceFilterParamsWithHTTPClient

func NewReplaceFilterParamsWithHTTPClient(client *http.Client) *ReplaceFilterParams

NewReplaceFilterParamsWithHTTPClient creates a new ReplaceFilterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReplaceFilterParamsWithTimeout

func NewReplaceFilterParamsWithTimeout(timeout time.Duration) *ReplaceFilterParams

NewReplaceFilterParamsWithTimeout creates a new ReplaceFilterParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReplaceFilterParams) SetContext

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

SetContext adds the context to the replace filter params

func (*ReplaceFilterParams) SetData

func (o *ReplaceFilterParams) SetData(data *models.Filter)

SetData adds the data to the replace filter params

func (*ReplaceFilterParams) SetForceReload

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

SetForceReload adds the forceReload to the replace filter params

func (*ReplaceFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace filter params

func (*ReplaceFilterParams) SetIndex

func (o *ReplaceFilterParams) SetIndex(index int64)

SetIndex adds the index to the replace filter params

func (*ReplaceFilterParams) SetParentName

func (o *ReplaceFilterParams) SetParentName(parentName string)

SetParentName adds the parentName to the replace filter params

func (*ReplaceFilterParams) SetParentType

func (o *ReplaceFilterParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace filter params

func (*ReplaceFilterParams) SetTimeout

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

SetTimeout adds the timeout to the replace filter params

func (*ReplaceFilterParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace filter params

func (*ReplaceFilterParams) SetVersion

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

SetVersion adds the version to the replace filter params

func (*ReplaceFilterParams) WithContext

WithContext adds the context to the replace filter params

func (*ReplaceFilterParams) WithData

WithData adds the data to the replace filter params

func (*ReplaceFilterParams) WithForceReload

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

WithForceReload adds the forceReload to the replace filter params

func (*ReplaceFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace filter params

func (*ReplaceFilterParams) WithIndex

func (o *ReplaceFilterParams) WithIndex(index int64) *ReplaceFilterParams

WithIndex adds the index to the replace filter params

func (*ReplaceFilterParams) WithParentName

func (o *ReplaceFilterParams) WithParentName(parentName string) *ReplaceFilterParams

WithParentName adds the parentName to the replace filter params

func (*ReplaceFilterParams) WithParentType

func (o *ReplaceFilterParams) WithParentType(parentType string) *ReplaceFilterParams

WithParentType adds the parentType to the replace filter params

func (*ReplaceFilterParams) WithTimeout

func (o *ReplaceFilterParams) WithTimeout(timeout time.Duration) *ReplaceFilterParams

WithTimeout adds the timeout to the replace filter params

func (*ReplaceFilterParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace filter params

func (*ReplaceFilterParams) WithVersion

func (o *ReplaceFilterParams) WithVersion(version *int64) *ReplaceFilterParams

WithVersion adds the version to the replace filter params

func (*ReplaceFilterParams) WriteToRequest

func (o *ReplaceFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ReplaceFilterReader

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

ReplaceFilterReader is a Reader for the ReplaceFilter structure.

func (*ReplaceFilterReader) ReadResponse

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