stick_rule

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 stick rule API

func (*Client) CreateStickRule

CreateStickRule adds a new stick rule

Adds a new Stick Rule of the specified type in the specified backend.

func (*Client) DeleteStickRule

DeleteStickRule deletes a stick rule

Deletes a Stick Rule configuration by it's index from the specified backend.

func (*Client) GetStickRule

func (a *Client) GetStickRule(params *GetStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStickRuleOK, error)

GetStickRule returns one stick rule

Returns one Stick Rule configuration by it's index in the specified backend.

func (*Client) GetStickRules

func (a *Client) GetStickRules(params *GetStickRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStickRulesOK, error)

GetStickRules returns an array of all stick rules

Returns all Stick Rules that are configured in specified backend.

func (*Client) ReplaceStickRule

ReplaceStickRule replaces a stick rule

Replaces a Stick Rule configuration by it's index in the specified backend.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

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 stick rule API client.

type CreateStickRuleAccepted

type CreateStickRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.StickRule
}

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

Configuration change accepted and reload requested

func NewCreateStickRuleAccepted

func NewCreateStickRuleAccepted() *CreateStickRuleAccepted

NewCreateStickRuleAccepted creates a CreateStickRuleAccepted with default headers values

func (*CreateStickRuleAccepted) Code added in v1.1.5

func (o *CreateStickRuleAccepted) Code() int

Code gets the status code for the create stick rule accepted response

func (*CreateStickRuleAccepted) Error

func (o *CreateStickRuleAccepted) Error() string

func (*CreateStickRuleAccepted) GetPayload

func (o *CreateStickRuleAccepted) GetPayload() *models.StickRule

func (*CreateStickRuleAccepted) IsClientError added in v1.1.0

func (o *CreateStickRuleAccepted) IsClientError() bool

IsClientError returns true when this create stick rule accepted response has a 4xx status code

func (*CreateStickRuleAccepted) IsCode added in v1.1.0

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

IsCode returns true when this create stick rule accepted response a status code equal to that given

func (*CreateStickRuleAccepted) IsRedirect added in v1.1.0

func (o *CreateStickRuleAccepted) IsRedirect() bool

IsRedirect returns true when this create stick rule accepted response has a 3xx status code

func (*CreateStickRuleAccepted) IsServerError added in v1.1.0

func (o *CreateStickRuleAccepted) IsServerError() bool

IsServerError returns true when this create stick rule accepted response has a 5xx status code

func (*CreateStickRuleAccepted) IsSuccess added in v1.1.0

func (o *CreateStickRuleAccepted) IsSuccess() bool

IsSuccess returns true when this create stick rule accepted response has a 2xx status code

func (*CreateStickRuleAccepted) String added in v1.1.0

func (o *CreateStickRuleAccepted) String() string

type CreateStickRuleBadRequest

type CreateStickRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateStickRuleBadRequest

func NewCreateStickRuleBadRequest() *CreateStickRuleBadRequest

NewCreateStickRuleBadRequest creates a CreateStickRuleBadRequest with default headers values

func (*CreateStickRuleBadRequest) Code added in v1.1.5

func (o *CreateStickRuleBadRequest) Code() int

Code gets the status code for the create stick rule bad request response

func (*CreateStickRuleBadRequest) Error

func (o *CreateStickRuleBadRequest) Error() string

func (*CreateStickRuleBadRequest) GetPayload

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

func (*CreateStickRuleBadRequest) IsClientError added in v1.1.0

func (o *CreateStickRuleBadRequest) IsClientError() bool

IsClientError returns true when this create stick rule bad request response has a 4xx status code

func (*CreateStickRuleBadRequest) IsCode added in v1.1.0

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

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

func (*CreateStickRuleBadRequest) IsRedirect added in v1.1.0

func (o *CreateStickRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this create stick rule bad request response has a 3xx status code

func (*CreateStickRuleBadRequest) IsServerError added in v1.1.0

func (o *CreateStickRuleBadRequest) IsServerError() bool

IsServerError returns true when this create stick rule bad request response has a 5xx status code

func (*CreateStickRuleBadRequest) IsSuccess added in v1.1.0

func (o *CreateStickRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this create stick rule bad request response has a 2xx status code

func (*CreateStickRuleBadRequest) String added in v1.1.0

func (o *CreateStickRuleBadRequest) String() string

type CreateStickRuleConflict

type CreateStickRuleConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreateStickRuleConflict

func NewCreateStickRuleConflict() *CreateStickRuleConflict

NewCreateStickRuleConflict creates a CreateStickRuleConflict with default headers values

func (*CreateStickRuleConflict) Code added in v1.1.5

func (o *CreateStickRuleConflict) Code() int

Code gets the status code for the create stick rule conflict response

func (*CreateStickRuleConflict) Error

func (o *CreateStickRuleConflict) Error() string

func (*CreateStickRuleConflict) GetPayload

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

func (*CreateStickRuleConflict) IsClientError added in v1.1.0

func (o *CreateStickRuleConflict) IsClientError() bool

IsClientError returns true when this create stick rule conflict response has a 4xx status code

func (*CreateStickRuleConflict) IsCode added in v1.1.0

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

IsCode returns true when this create stick rule conflict response a status code equal to that given

func (*CreateStickRuleConflict) IsRedirect added in v1.1.0

func (o *CreateStickRuleConflict) IsRedirect() bool

IsRedirect returns true when this create stick rule conflict response has a 3xx status code

func (*CreateStickRuleConflict) IsServerError added in v1.1.0

func (o *CreateStickRuleConflict) IsServerError() bool

IsServerError returns true when this create stick rule conflict response has a 5xx status code

func (*CreateStickRuleConflict) IsSuccess added in v1.1.0

func (o *CreateStickRuleConflict) IsSuccess() bool

IsSuccess returns true when this create stick rule conflict response has a 2xx status code

func (*CreateStickRuleConflict) String added in v1.1.0

func (o *CreateStickRuleConflict) String() string

type CreateStickRuleCreated

type CreateStickRuleCreated struct {
	Payload *models.StickRule
}

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

Stick Rule created

func NewCreateStickRuleCreated

func NewCreateStickRuleCreated() *CreateStickRuleCreated

NewCreateStickRuleCreated creates a CreateStickRuleCreated with default headers values

func (*CreateStickRuleCreated) Code added in v1.1.5

func (o *CreateStickRuleCreated) Code() int

Code gets the status code for the create stick rule created response

func (*CreateStickRuleCreated) Error

func (o *CreateStickRuleCreated) Error() string

func (*CreateStickRuleCreated) GetPayload

func (o *CreateStickRuleCreated) GetPayload() *models.StickRule

func (*CreateStickRuleCreated) IsClientError added in v1.1.0

func (o *CreateStickRuleCreated) IsClientError() bool

IsClientError returns true when this create stick rule created response has a 4xx status code

func (*CreateStickRuleCreated) IsCode added in v1.1.0

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

IsCode returns true when this create stick rule created response a status code equal to that given

func (*CreateStickRuleCreated) IsRedirect added in v1.1.0

func (o *CreateStickRuleCreated) IsRedirect() bool

IsRedirect returns true when this create stick rule created response has a 3xx status code

func (*CreateStickRuleCreated) IsServerError added in v1.1.0

func (o *CreateStickRuleCreated) IsServerError() bool

IsServerError returns true when this create stick rule created response has a 5xx status code

func (*CreateStickRuleCreated) IsSuccess added in v1.1.0

func (o *CreateStickRuleCreated) IsSuccess() bool

IsSuccess returns true when this create stick rule created response has a 2xx status code

func (*CreateStickRuleCreated) String added in v1.1.0

func (o *CreateStickRuleCreated) String() string

type CreateStickRuleDefault

type CreateStickRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewCreateStickRuleDefault

func NewCreateStickRuleDefault(code int) *CreateStickRuleDefault

NewCreateStickRuleDefault creates a CreateStickRuleDefault with default headers values

func (*CreateStickRuleDefault) Code

func (o *CreateStickRuleDefault) Code() int

Code gets the status code for the create stick rule default response

func (*CreateStickRuleDefault) Error

func (o *CreateStickRuleDefault) Error() string

func (*CreateStickRuleDefault) GetPayload

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

func (*CreateStickRuleDefault) IsClientError added in v1.1.0

func (o *CreateStickRuleDefault) IsClientError() bool

IsClientError returns true when this create stick rule default response has a 4xx status code

func (*CreateStickRuleDefault) IsCode added in v1.1.0

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

IsCode returns true when this create stick rule default response a status code equal to that given

func (*CreateStickRuleDefault) IsRedirect added in v1.1.0

func (o *CreateStickRuleDefault) IsRedirect() bool

IsRedirect returns true when this create stick rule default response has a 3xx status code

func (*CreateStickRuleDefault) IsServerError added in v1.1.0

func (o *CreateStickRuleDefault) IsServerError() bool

IsServerError returns true when this create stick rule default response has a 5xx status code

func (*CreateStickRuleDefault) IsSuccess added in v1.1.0

func (o *CreateStickRuleDefault) IsSuccess() bool

IsSuccess returns true when this create stick rule default response has a 2xx status code

func (*CreateStickRuleDefault) String added in v1.1.0

func (o *CreateStickRuleDefault) String() string

type CreateStickRuleParams

type CreateStickRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	// Data.
	Data *models.StickRule

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

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

CreateStickRuleParams contains all the parameters to send to the API endpoint

for the create stick rule operation.

Typically these are written to a http.Request.

func NewCreateStickRuleParams

func NewCreateStickRuleParams() *CreateStickRuleParams

NewCreateStickRuleParams creates a new CreateStickRuleParams 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 NewCreateStickRuleParamsWithContext

func NewCreateStickRuleParamsWithContext(ctx context.Context) *CreateStickRuleParams

NewCreateStickRuleParamsWithContext creates a new CreateStickRuleParams object with the ability to set a context for a request.

func NewCreateStickRuleParamsWithHTTPClient

func NewCreateStickRuleParamsWithHTTPClient(client *http.Client) *CreateStickRuleParams

NewCreateStickRuleParamsWithHTTPClient creates a new CreateStickRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateStickRuleParamsWithTimeout

func NewCreateStickRuleParamsWithTimeout(timeout time.Duration) *CreateStickRuleParams

NewCreateStickRuleParamsWithTimeout creates a new CreateStickRuleParams object with the ability to set a timeout on a request.

func (*CreateStickRuleParams) SetBackend

func (o *CreateStickRuleParams) SetBackend(backend string)

SetBackend adds the backend to the create stick rule params

func (*CreateStickRuleParams) SetContext

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

SetContext adds the context to the create stick rule params

func (*CreateStickRuleParams) SetData

func (o *CreateStickRuleParams) SetData(data *models.StickRule)

SetData adds the data to the create stick rule params

func (*CreateStickRuleParams) SetDefaults

func (o *CreateStickRuleParams) SetDefaults()

SetDefaults hydrates default values in the create stick rule params (not the query body).

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

func (*CreateStickRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the create stick rule params

func (*CreateStickRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create stick rule params

func (*CreateStickRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create stick rule params

func (*CreateStickRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create stick rule params

func (*CreateStickRuleParams) SetVersion

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

SetVersion adds the version to the create stick rule params

func (*CreateStickRuleParams) WithBackend

func (o *CreateStickRuleParams) WithBackend(backend string) *CreateStickRuleParams

WithBackend adds the backend to the create stick rule params

func (*CreateStickRuleParams) WithContext

WithContext adds the context to the create stick rule params

func (*CreateStickRuleParams) WithData

WithData adds the data to the create stick rule params

func (*CreateStickRuleParams) WithDefaults

func (o *CreateStickRuleParams) WithDefaults() *CreateStickRuleParams

WithDefaults hydrates default values in the create stick rule params (not the query body).

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

func (*CreateStickRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the create stick rule params

func (*CreateStickRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create stick rule params

func (*CreateStickRuleParams) WithTimeout

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

WithTimeout adds the timeout to the create stick rule params

func (*CreateStickRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create stick rule params

func (*CreateStickRuleParams) WithVersion

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

WithVersion adds the version to the create stick rule params

func (*CreateStickRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateStickRuleReader

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

CreateStickRuleReader is a Reader for the CreateStickRule structure.

func (*CreateStickRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteStickRuleAccepted

type DeleteStickRuleAccepted struct {

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

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

Configuration change accepted and reload requested

func NewDeleteStickRuleAccepted

func NewDeleteStickRuleAccepted() *DeleteStickRuleAccepted

NewDeleteStickRuleAccepted creates a DeleteStickRuleAccepted with default headers values

func (*DeleteStickRuleAccepted) Code added in v1.1.5

func (o *DeleteStickRuleAccepted) Code() int

Code gets the status code for the delete stick rule accepted response

func (*DeleteStickRuleAccepted) Error

func (o *DeleteStickRuleAccepted) Error() string

func (*DeleteStickRuleAccepted) IsClientError added in v1.1.0

func (o *DeleteStickRuleAccepted) IsClientError() bool

IsClientError returns true when this delete stick rule accepted response has a 4xx status code

func (*DeleteStickRuleAccepted) IsCode added in v1.1.0

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

IsCode returns true when this delete stick rule accepted response a status code equal to that given

func (*DeleteStickRuleAccepted) IsRedirect added in v1.1.0

func (o *DeleteStickRuleAccepted) IsRedirect() bool

IsRedirect returns true when this delete stick rule accepted response has a 3xx status code

func (*DeleteStickRuleAccepted) IsServerError added in v1.1.0

func (o *DeleteStickRuleAccepted) IsServerError() bool

IsServerError returns true when this delete stick rule accepted response has a 5xx status code

func (*DeleteStickRuleAccepted) IsSuccess added in v1.1.0

func (o *DeleteStickRuleAccepted) IsSuccess() bool

IsSuccess returns true when this delete stick rule accepted response has a 2xx status code

func (*DeleteStickRuleAccepted) String added in v1.1.0

func (o *DeleteStickRuleAccepted) String() string

type DeleteStickRuleDefault

type DeleteStickRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewDeleteStickRuleDefault

func NewDeleteStickRuleDefault(code int) *DeleteStickRuleDefault

NewDeleteStickRuleDefault creates a DeleteStickRuleDefault with default headers values

func (*DeleteStickRuleDefault) Code

func (o *DeleteStickRuleDefault) Code() int

Code gets the status code for the delete stick rule default response

func (*DeleteStickRuleDefault) Error

func (o *DeleteStickRuleDefault) Error() string

func (*DeleteStickRuleDefault) GetPayload

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

func (*DeleteStickRuleDefault) IsClientError added in v1.1.0

func (o *DeleteStickRuleDefault) IsClientError() bool

IsClientError returns true when this delete stick rule default response has a 4xx status code

func (*DeleteStickRuleDefault) IsCode added in v1.1.0

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

IsCode returns true when this delete stick rule default response a status code equal to that given

func (*DeleteStickRuleDefault) IsRedirect added in v1.1.0

func (o *DeleteStickRuleDefault) IsRedirect() bool

IsRedirect returns true when this delete stick rule default response has a 3xx status code

func (*DeleteStickRuleDefault) IsServerError added in v1.1.0

func (o *DeleteStickRuleDefault) IsServerError() bool

IsServerError returns true when this delete stick rule default response has a 5xx status code

func (*DeleteStickRuleDefault) IsSuccess added in v1.1.0

func (o *DeleteStickRuleDefault) IsSuccess() bool

IsSuccess returns true when this delete stick rule default response has a 2xx status code

func (*DeleteStickRuleDefault) String added in v1.1.0

func (o *DeleteStickRuleDefault) String() string

type DeleteStickRuleNoContent

type DeleteStickRuleNoContent struct {
}

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

Stick Rule deleted

func NewDeleteStickRuleNoContent

func NewDeleteStickRuleNoContent() *DeleteStickRuleNoContent

NewDeleteStickRuleNoContent creates a DeleteStickRuleNoContent with default headers values

func (*DeleteStickRuleNoContent) Code added in v1.1.5

func (o *DeleteStickRuleNoContent) Code() int

Code gets the status code for the delete stick rule no content response

func (*DeleteStickRuleNoContent) Error

func (o *DeleteStickRuleNoContent) Error() string

func (*DeleteStickRuleNoContent) IsClientError added in v1.1.0

func (o *DeleteStickRuleNoContent) IsClientError() bool

IsClientError returns true when this delete stick rule no content response has a 4xx status code

func (*DeleteStickRuleNoContent) IsCode added in v1.1.0

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

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

func (*DeleteStickRuleNoContent) IsRedirect added in v1.1.0

func (o *DeleteStickRuleNoContent) IsRedirect() bool

IsRedirect returns true when this delete stick rule no content response has a 3xx status code

func (*DeleteStickRuleNoContent) IsServerError added in v1.1.0

func (o *DeleteStickRuleNoContent) IsServerError() bool

IsServerError returns true when this delete stick rule no content response has a 5xx status code

func (*DeleteStickRuleNoContent) IsSuccess added in v1.1.0

func (o *DeleteStickRuleNoContent) IsSuccess() bool

IsSuccess returns true when this delete stick rule no content response has a 2xx status code

func (*DeleteStickRuleNoContent) String added in v1.1.0

func (o *DeleteStickRuleNoContent) String() string

type DeleteStickRuleNotFound

type DeleteStickRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewDeleteStickRuleNotFound

func NewDeleteStickRuleNotFound() *DeleteStickRuleNotFound

NewDeleteStickRuleNotFound creates a DeleteStickRuleNotFound with default headers values

func (*DeleteStickRuleNotFound) Code added in v1.1.5

func (o *DeleteStickRuleNotFound) Code() int

Code gets the status code for the delete stick rule not found response

func (*DeleteStickRuleNotFound) Error

func (o *DeleteStickRuleNotFound) Error() string

func (*DeleteStickRuleNotFound) GetPayload

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

func (*DeleteStickRuleNotFound) IsClientError added in v1.1.0

func (o *DeleteStickRuleNotFound) IsClientError() bool

IsClientError returns true when this delete stick rule not found response has a 4xx status code

func (*DeleteStickRuleNotFound) IsCode added in v1.1.0

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

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

func (*DeleteStickRuleNotFound) IsRedirect added in v1.1.0

func (o *DeleteStickRuleNotFound) IsRedirect() bool

IsRedirect returns true when this delete stick rule not found response has a 3xx status code

func (*DeleteStickRuleNotFound) IsServerError added in v1.1.0

func (o *DeleteStickRuleNotFound) IsServerError() bool

IsServerError returns true when this delete stick rule not found response has a 5xx status code

func (*DeleteStickRuleNotFound) IsSuccess added in v1.1.0

func (o *DeleteStickRuleNotFound) IsSuccess() bool

IsSuccess returns true when this delete stick rule not found response has a 2xx status code

func (*DeleteStickRuleNotFound) String added in v1.1.0

func (o *DeleteStickRuleNotFound) String() string

type DeleteStickRuleParams

type DeleteStickRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

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

	   Stick Rule 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
}

DeleteStickRuleParams contains all the parameters to send to the API endpoint

for the delete stick rule operation.

Typically these are written to a http.Request.

func NewDeleteStickRuleParams

func NewDeleteStickRuleParams() *DeleteStickRuleParams

NewDeleteStickRuleParams creates a new DeleteStickRuleParams 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 NewDeleteStickRuleParamsWithContext

func NewDeleteStickRuleParamsWithContext(ctx context.Context) *DeleteStickRuleParams

NewDeleteStickRuleParamsWithContext creates a new DeleteStickRuleParams object with the ability to set a context for a request.

func NewDeleteStickRuleParamsWithHTTPClient

func NewDeleteStickRuleParamsWithHTTPClient(client *http.Client) *DeleteStickRuleParams

NewDeleteStickRuleParamsWithHTTPClient creates a new DeleteStickRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteStickRuleParamsWithTimeout

func NewDeleteStickRuleParamsWithTimeout(timeout time.Duration) *DeleteStickRuleParams

NewDeleteStickRuleParamsWithTimeout creates a new DeleteStickRuleParams object with the ability to set a timeout on a request.

func (*DeleteStickRuleParams) SetBackend

func (o *DeleteStickRuleParams) SetBackend(backend string)

SetBackend adds the backend to the delete stick rule params

func (*DeleteStickRuleParams) SetContext

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

SetContext adds the context to the delete stick rule params

func (*DeleteStickRuleParams) SetDefaults

func (o *DeleteStickRuleParams) SetDefaults()

SetDefaults hydrates default values in the delete stick rule params (not the query body).

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

func (*DeleteStickRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the delete stick rule params

func (*DeleteStickRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete stick rule params

func (*DeleteStickRuleParams) SetIndex

func (o *DeleteStickRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete stick rule params

func (*DeleteStickRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete stick rule params

func (*DeleteStickRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete stick rule params

func (*DeleteStickRuleParams) SetVersion

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

SetVersion adds the version to the delete stick rule params

func (*DeleteStickRuleParams) WithBackend

func (o *DeleteStickRuleParams) WithBackend(backend string) *DeleteStickRuleParams

WithBackend adds the backend to the delete stick rule params

func (*DeleteStickRuleParams) WithContext

WithContext adds the context to the delete stick rule params

func (*DeleteStickRuleParams) WithDefaults

func (o *DeleteStickRuleParams) WithDefaults() *DeleteStickRuleParams

WithDefaults hydrates default values in the delete stick rule params (not the query body).

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

func (*DeleteStickRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the delete stick rule params

func (*DeleteStickRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete stick rule params

func (*DeleteStickRuleParams) WithIndex

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

WithIndex adds the index to the delete stick rule params

func (*DeleteStickRuleParams) WithTimeout

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

WithTimeout adds the timeout to the delete stick rule params

func (*DeleteStickRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete stick rule params

func (*DeleteStickRuleParams) WithVersion

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

WithVersion adds the version to the delete stick rule params

func (*DeleteStickRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteStickRuleReader

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

DeleteStickRuleReader is a Reader for the DeleteStickRule structure.

func (*DeleteStickRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStickRuleDefault

type GetStickRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetStickRuleDefault

func NewGetStickRuleDefault(code int) *GetStickRuleDefault

NewGetStickRuleDefault creates a GetStickRuleDefault with default headers values

func (*GetStickRuleDefault) Code

func (o *GetStickRuleDefault) Code() int

Code gets the status code for the get stick rule default response

func (*GetStickRuleDefault) Error

func (o *GetStickRuleDefault) Error() string

func (*GetStickRuleDefault) GetPayload

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

func (*GetStickRuleDefault) IsClientError added in v1.1.0

func (o *GetStickRuleDefault) IsClientError() bool

IsClientError returns true when this get stick rule default response has a 4xx status code

func (*GetStickRuleDefault) IsCode added in v1.1.0

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

IsCode returns true when this get stick rule default response a status code equal to that given

func (*GetStickRuleDefault) IsRedirect added in v1.1.0

func (o *GetStickRuleDefault) IsRedirect() bool

IsRedirect returns true when this get stick rule default response has a 3xx status code

func (*GetStickRuleDefault) IsServerError added in v1.1.0

func (o *GetStickRuleDefault) IsServerError() bool

IsServerError returns true when this get stick rule default response has a 5xx status code

func (*GetStickRuleDefault) IsSuccess added in v1.1.0

func (o *GetStickRuleDefault) IsSuccess() bool

IsSuccess returns true when this get stick rule default response has a 2xx status code

func (*GetStickRuleDefault) String added in v1.1.0

func (o *GetStickRuleDefault) String() string

type GetStickRuleNotFound

type GetStickRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewGetStickRuleNotFound

func NewGetStickRuleNotFound() *GetStickRuleNotFound

NewGetStickRuleNotFound creates a GetStickRuleNotFound with default headers values

func (*GetStickRuleNotFound) Code added in v1.1.5

func (o *GetStickRuleNotFound) Code() int

Code gets the status code for the get stick rule not found response

func (*GetStickRuleNotFound) Error

func (o *GetStickRuleNotFound) Error() string

func (*GetStickRuleNotFound) GetPayload

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

func (*GetStickRuleNotFound) IsClientError added in v1.1.0

func (o *GetStickRuleNotFound) IsClientError() bool

IsClientError returns true when this get stick rule not found response has a 4xx status code

func (*GetStickRuleNotFound) IsCode added in v1.1.0

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

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

func (*GetStickRuleNotFound) IsRedirect added in v1.1.0

func (o *GetStickRuleNotFound) IsRedirect() bool

IsRedirect returns true when this get stick rule not found response has a 3xx status code

func (*GetStickRuleNotFound) IsServerError added in v1.1.0

func (o *GetStickRuleNotFound) IsServerError() bool

IsServerError returns true when this get stick rule not found response has a 5xx status code

func (*GetStickRuleNotFound) IsSuccess added in v1.1.0

func (o *GetStickRuleNotFound) IsSuccess() bool

IsSuccess returns true when this get stick rule not found response has a 2xx status code

func (*GetStickRuleNotFound) String added in v1.1.0

func (o *GetStickRuleNotFound) String() string

type GetStickRuleOK

type GetStickRuleOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetStickRuleOKBody
}

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

Successful operation

func NewGetStickRuleOK

func NewGetStickRuleOK() *GetStickRuleOK

NewGetStickRuleOK creates a GetStickRuleOK with default headers values

func (*GetStickRuleOK) Code added in v1.1.5

func (o *GetStickRuleOK) Code() int

Code gets the status code for the get stick rule o k response

func (*GetStickRuleOK) Error

func (o *GetStickRuleOK) Error() string

func (*GetStickRuleOK) GetPayload

func (o *GetStickRuleOK) GetPayload() *GetStickRuleOKBody

func (*GetStickRuleOK) IsClientError added in v1.1.0

func (o *GetStickRuleOK) IsClientError() bool

IsClientError returns true when this get stick rule o k response has a 4xx status code

func (*GetStickRuleOK) IsCode added in v1.1.0

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

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

func (*GetStickRuleOK) IsRedirect added in v1.1.0

func (o *GetStickRuleOK) IsRedirect() bool

IsRedirect returns true when this get stick rule o k response has a 3xx status code

func (*GetStickRuleOK) IsServerError added in v1.1.0

func (o *GetStickRuleOK) IsServerError() bool

IsServerError returns true when this get stick rule o k response has a 5xx status code

func (*GetStickRuleOK) IsSuccess added in v1.1.0

func (o *GetStickRuleOK) IsSuccess() bool

IsSuccess returns true when this get stick rule o k response has a 2xx status code

func (*GetStickRuleOK) String added in v1.1.0

func (o *GetStickRuleOK) String() string

type GetStickRuleOKBody

type GetStickRuleOKBody struct {

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

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

GetStickRuleOKBody get stick rule o k body swagger:model GetStickRuleOKBody

func (*GetStickRuleOKBody) ContextValidate

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

ContextValidate validate this get stick rule o k body based on the context it is used

func (*GetStickRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetStickRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetStickRuleOKBody) Validate

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

Validate validates this get stick rule o k body

type GetStickRuleParams

type GetStickRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	/* Index.

	   Stick Rule 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
}

GetStickRuleParams contains all the parameters to send to the API endpoint

for the get stick rule operation.

Typically these are written to a http.Request.

func NewGetStickRuleParams

func NewGetStickRuleParams() *GetStickRuleParams

NewGetStickRuleParams creates a new GetStickRuleParams 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 NewGetStickRuleParamsWithContext

func NewGetStickRuleParamsWithContext(ctx context.Context) *GetStickRuleParams

NewGetStickRuleParamsWithContext creates a new GetStickRuleParams object with the ability to set a context for a request.

func NewGetStickRuleParamsWithHTTPClient

func NewGetStickRuleParamsWithHTTPClient(client *http.Client) *GetStickRuleParams

NewGetStickRuleParamsWithHTTPClient creates a new GetStickRuleParams object with the ability to set a custom HTTPClient for a request.

func NewGetStickRuleParamsWithTimeout

func NewGetStickRuleParamsWithTimeout(timeout time.Duration) *GetStickRuleParams

NewGetStickRuleParamsWithTimeout creates a new GetStickRuleParams object with the ability to set a timeout on a request.

func (*GetStickRuleParams) SetBackend

func (o *GetStickRuleParams) SetBackend(backend string)

SetBackend adds the backend to the get stick rule params

func (*GetStickRuleParams) SetContext

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

SetContext adds the context to the get stick rule params

func (*GetStickRuleParams) SetDefaults

func (o *GetStickRuleParams) SetDefaults()

SetDefaults hydrates default values in the get stick rule params (not the query body).

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

func (*GetStickRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get stick rule params

func (*GetStickRuleParams) SetIndex

func (o *GetStickRuleParams) SetIndex(index int64)

SetIndex adds the index to the get stick rule params

func (*GetStickRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get stick rule params

func (*GetStickRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get stick rule params

func (*GetStickRuleParams) WithBackend

func (o *GetStickRuleParams) WithBackend(backend string) *GetStickRuleParams

WithBackend adds the backend to the get stick rule params

func (*GetStickRuleParams) WithContext

WithContext adds the context to the get stick rule params

func (*GetStickRuleParams) WithDefaults

func (o *GetStickRuleParams) WithDefaults() *GetStickRuleParams

WithDefaults hydrates default values in the get stick rule params (not the query body).

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

func (*GetStickRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get stick rule params

func (*GetStickRuleParams) WithIndex

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

WithIndex adds the index to the get stick rule params

func (*GetStickRuleParams) WithTimeout

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

WithTimeout adds the timeout to the get stick rule params

func (*GetStickRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get stick rule params

func (*GetStickRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStickRuleReader

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

GetStickRuleReader is a Reader for the GetStickRule structure.

func (*GetStickRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStickRulesDefault

type GetStickRulesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetStickRulesDefault

func NewGetStickRulesDefault(code int) *GetStickRulesDefault

NewGetStickRulesDefault creates a GetStickRulesDefault with default headers values

func (*GetStickRulesDefault) Code

func (o *GetStickRulesDefault) Code() int

Code gets the status code for the get stick rules default response

func (*GetStickRulesDefault) Error

func (o *GetStickRulesDefault) Error() string

func (*GetStickRulesDefault) GetPayload

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

func (*GetStickRulesDefault) IsClientError added in v1.1.0

func (o *GetStickRulesDefault) IsClientError() bool

IsClientError returns true when this get stick rules default response has a 4xx status code

func (*GetStickRulesDefault) IsCode added in v1.1.0

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

IsCode returns true when this get stick rules default response a status code equal to that given

func (*GetStickRulesDefault) IsRedirect added in v1.1.0

func (o *GetStickRulesDefault) IsRedirect() bool

IsRedirect returns true when this get stick rules default response has a 3xx status code

func (*GetStickRulesDefault) IsServerError added in v1.1.0

func (o *GetStickRulesDefault) IsServerError() bool

IsServerError returns true when this get stick rules default response has a 5xx status code

func (*GetStickRulesDefault) IsSuccess added in v1.1.0

func (o *GetStickRulesDefault) IsSuccess() bool

IsSuccess returns true when this get stick rules default response has a 2xx status code

func (*GetStickRulesDefault) String added in v1.1.0

func (o *GetStickRulesDefault) String() string

type GetStickRulesOK

type GetStickRulesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetStickRulesOKBody
}

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

Successful operation

func NewGetStickRulesOK

func NewGetStickRulesOK() *GetStickRulesOK

NewGetStickRulesOK creates a GetStickRulesOK with default headers values

func (*GetStickRulesOK) Code added in v1.1.5

func (o *GetStickRulesOK) Code() int

Code gets the status code for the get stick rules o k response

func (*GetStickRulesOK) Error

func (o *GetStickRulesOK) Error() string

func (*GetStickRulesOK) GetPayload

func (o *GetStickRulesOK) GetPayload() *GetStickRulesOKBody

func (*GetStickRulesOK) IsClientError added in v1.1.0

func (o *GetStickRulesOK) IsClientError() bool

IsClientError returns true when this get stick rules o k response has a 4xx status code

func (*GetStickRulesOK) IsCode added in v1.1.0

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

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

func (*GetStickRulesOK) IsRedirect added in v1.1.0

func (o *GetStickRulesOK) IsRedirect() bool

IsRedirect returns true when this get stick rules o k response has a 3xx status code

func (*GetStickRulesOK) IsServerError added in v1.1.0

func (o *GetStickRulesOK) IsServerError() bool

IsServerError returns true when this get stick rules o k response has a 5xx status code

func (*GetStickRulesOK) IsSuccess added in v1.1.0

func (o *GetStickRulesOK) IsSuccess() bool

IsSuccess returns true when this get stick rules o k response has a 2xx status code

func (*GetStickRulesOK) String added in v1.1.0

func (o *GetStickRulesOK) String() string

type GetStickRulesOKBody

type GetStickRulesOKBody struct {

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

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

GetStickRulesOKBody get stick rules o k body swagger:model GetStickRulesOKBody

func (*GetStickRulesOKBody) ContextValidate

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

ContextValidate validate this get stick rules o k body based on the context it is used

func (*GetStickRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetStickRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetStickRulesOKBody) Validate

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

Validate validates this get stick rules o k body

type GetStickRulesParams

type GetStickRulesParams struct {

	/* Backend.

	   Backend name
	*/
	Backend 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
}

GetStickRulesParams contains all the parameters to send to the API endpoint

for the get stick rules operation.

Typically these are written to a http.Request.

func NewGetStickRulesParams

func NewGetStickRulesParams() *GetStickRulesParams

NewGetStickRulesParams creates a new GetStickRulesParams 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 NewGetStickRulesParamsWithContext

func NewGetStickRulesParamsWithContext(ctx context.Context) *GetStickRulesParams

NewGetStickRulesParamsWithContext creates a new GetStickRulesParams object with the ability to set a context for a request.

func NewGetStickRulesParamsWithHTTPClient

func NewGetStickRulesParamsWithHTTPClient(client *http.Client) *GetStickRulesParams

NewGetStickRulesParamsWithHTTPClient creates a new GetStickRulesParams object with the ability to set a custom HTTPClient for a request.

func NewGetStickRulesParamsWithTimeout

func NewGetStickRulesParamsWithTimeout(timeout time.Duration) *GetStickRulesParams

NewGetStickRulesParamsWithTimeout creates a new GetStickRulesParams object with the ability to set a timeout on a request.

func (*GetStickRulesParams) SetBackend

func (o *GetStickRulesParams) SetBackend(backend string)

SetBackend adds the backend to the get stick rules params

func (*GetStickRulesParams) SetContext

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

SetContext adds the context to the get stick rules params

func (*GetStickRulesParams) SetDefaults

func (o *GetStickRulesParams) SetDefaults()

SetDefaults hydrates default values in the get stick rules params (not the query body).

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

func (*GetStickRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get stick rules params

func (*GetStickRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get stick rules params

func (*GetStickRulesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get stick rules params

func (*GetStickRulesParams) WithBackend

func (o *GetStickRulesParams) WithBackend(backend string) *GetStickRulesParams

WithBackend adds the backend to the get stick rules params

func (*GetStickRulesParams) WithContext

WithContext adds the context to the get stick rules params

func (*GetStickRulesParams) WithDefaults

func (o *GetStickRulesParams) WithDefaults() *GetStickRulesParams

WithDefaults hydrates default values in the get stick rules params (not the query body).

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

func (*GetStickRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get stick rules params

func (*GetStickRulesParams) WithTimeout

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

WithTimeout adds the timeout to the get stick rules params

func (*GetStickRulesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get stick rules params

func (*GetStickRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStickRulesReader

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

GetStickRulesReader is a Reader for the GetStickRules structure.

func (*GetStickRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceStickRuleAccepted

type ReplaceStickRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.StickRule
}

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

Configuration change accepted and reload requested

func NewReplaceStickRuleAccepted

func NewReplaceStickRuleAccepted() *ReplaceStickRuleAccepted

NewReplaceStickRuleAccepted creates a ReplaceStickRuleAccepted with default headers values

func (*ReplaceStickRuleAccepted) Code added in v1.1.5

func (o *ReplaceStickRuleAccepted) Code() int

Code gets the status code for the replace stick rule accepted response

func (*ReplaceStickRuleAccepted) Error

func (o *ReplaceStickRuleAccepted) Error() string

func (*ReplaceStickRuleAccepted) GetPayload

func (o *ReplaceStickRuleAccepted) GetPayload() *models.StickRule

func (*ReplaceStickRuleAccepted) IsClientError added in v1.1.0

func (o *ReplaceStickRuleAccepted) IsClientError() bool

IsClientError returns true when this replace stick rule accepted response has a 4xx status code

func (*ReplaceStickRuleAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace stick rule accepted response a status code equal to that given

func (*ReplaceStickRuleAccepted) IsRedirect added in v1.1.0

func (o *ReplaceStickRuleAccepted) IsRedirect() bool

IsRedirect returns true when this replace stick rule accepted response has a 3xx status code

func (*ReplaceStickRuleAccepted) IsServerError added in v1.1.0

func (o *ReplaceStickRuleAccepted) IsServerError() bool

IsServerError returns true when this replace stick rule accepted response has a 5xx status code

func (*ReplaceStickRuleAccepted) IsSuccess added in v1.1.0

func (o *ReplaceStickRuleAccepted) IsSuccess() bool

IsSuccess returns true when this replace stick rule accepted response has a 2xx status code

func (*ReplaceStickRuleAccepted) String added in v1.1.0

func (o *ReplaceStickRuleAccepted) String() string

type ReplaceStickRuleBadRequest

type ReplaceStickRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceStickRuleBadRequest

func NewReplaceStickRuleBadRequest() *ReplaceStickRuleBadRequest

NewReplaceStickRuleBadRequest creates a ReplaceStickRuleBadRequest with default headers values

func (*ReplaceStickRuleBadRequest) Code added in v1.1.5

func (o *ReplaceStickRuleBadRequest) Code() int

Code gets the status code for the replace stick rule bad request response

func (*ReplaceStickRuleBadRequest) Error

func (*ReplaceStickRuleBadRequest) GetPayload

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

func (*ReplaceStickRuleBadRequest) IsClientError added in v1.1.0

func (o *ReplaceStickRuleBadRequest) IsClientError() bool

IsClientError returns true when this replace stick rule bad request response has a 4xx status code

func (*ReplaceStickRuleBadRequest) IsCode added in v1.1.0

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

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

func (*ReplaceStickRuleBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceStickRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this replace stick rule bad request response has a 3xx status code

func (*ReplaceStickRuleBadRequest) IsServerError added in v1.1.0

func (o *ReplaceStickRuleBadRequest) IsServerError() bool

IsServerError returns true when this replace stick rule bad request response has a 5xx status code

func (*ReplaceStickRuleBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceStickRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this replace stick rule bad request response has a 2xx status code

func (*ReplaceStickRuleBadRequest) String added in v1.1.0

func (o *ReplaceStickRuleBadRequest) String() string

type ReplaceStickRuleDefault

type ReplaceStickRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplaceStickRuleDefault

func NewReplaceStickRuleDefault(code int) *ReplaceStickRuleDefault

NewReplaceStickRuleDefault creates a ReplaceStickRuleDefault with default headers values

func (*ReplaceStickRuleDefault) Code

func (o *ReplaceStickRuleDefault) Code() int

Code gets the status code for the replace stick rule default response

func (*ReplaceStickRuleDefault) Error

func (o *ReplaceStickRuleDefault) Error() string

func (*ReplaceStickRuleDefault) GetPayload

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

func (*ReplaceStickRuleDefault) IsClientError added in v1.1.0

func (o *ReplaceStickRuleDefault) IsClientError() bool

IsClientError returns true when this replace stick rule default response has a 4xx status code

func (*ReplaceStickRuleDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace stick rule default response a status code equal to that given

func (*ReplaceStickRuleDefault) IsRedirect added in v1.1.0

func (o *ReplaceStickRuleDefault) IsRedirect() bool

IsRedirect returns true when this replace stick rule default response has a 3xx status code

func (*ReplaceStickRuleDefault) IsServerError added in v1.1.0

func (o *ReplaceStickRuleDefault) IsServerError() bool

IsServerError returns true when this replace stick rule default response has a 5xx status code

func (*ReplaceStickRuleDefault) IsSuccess added in v1.1.0

func (o *ReplaceStickRuleDefault) IsSuccess() bool

IsSuccess returns true when this replace stick rule default response has a 2xx status code

func (*ReplaceStickRuleDefault) String added in v1.1.0

func (o *ReplaceStickRuleDefault) String() string

type ReplaceStickRuleNotFound

type ReplaceStickRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewReplaceStickRuleNotFound

func NewReplaceStickRuleNotFound() *ReplaceStickRuleNotFound

NewReplaceStickRuleNotFound creates a ReplaceStickRuleNotFound with default headers values

func (*ReplaceStickRuleNotFound) Code added in v1.1.5

func (o *ReplaceStickRuleNotFound) Code() int

Code gets the status code for the replace stick rule not found response

func (*ReplaceStickRuleNotFound) Error

func (o *ReplaceStickRuleNotFound) Error() string

func (*ReplaceStickRuleNotFound) GetPayload

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

func (*ReplaceStickRuleNotFound) IsClientError added in v1.1.0

func (o *ReplaceStickRuleNotFound) IsClientError() bool

IsClientError returns true when this replace stick rule not found response has a 4xx status code

func (*ReplaceStickRuleNotFound) IsCode added in v1.1.0

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

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

func (*ReplaceStickRuleNotFound) IsRedirect added in v1.1.0

func (o *ReplaceStickRuleNotFound) IsRedirect() bool

IsRedirect returns true when this replace stick rule not found response has a 3xx status code

func (*ReplaceStickRuleNotFound) IsServerError added in v1.1.0

func (o *ReplaceStickRuleNotFound) IsServerError() bool

IsServerError returns true when this replace stick rule not found response has a 5xx status code

func (*ReplaceStickRuleNotFound) IsSuccess added in v1.1.0

func (o *ReplaceStickRuleNotFound) IsSuccess() bool

IsSuccess returns true when this replace stick rule not found response has a 2xx status code

func (*ReplaceStickRuleNotFound) String added in v1.1.0

func (o *ReplaceStickRuleNotFound) String() string

type ReplaceStickRuleOK

type ReplaceStickRuleOK struct {
	Payload *models.StickRule
}

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

Stick Rule replaced

func NewReplaceStickRuleOK

func NewReplaceStickRuleOK() *ReplaceStickRuleOK

NewReplaceStickRuleOK creates a ReplaceStickRuleOK with default headers values

func (*ReplaceStickRuleOK) Code added in v1.1.5

func (o *ReplaceStickRuleOK) Code() int

Code gets the status code for the replace stick rule o k response

func (*ReplaceStickRuleOK) Error

func (o *ReplaceStickRuleOK) Error() string

func (*ReplaceStickRuleOK) GetPayload

func (o *ReplaceStickRuleOK) GetPayload() *models.StickRule

func (*ReplaceStickRuleOK) IsClientError added in v1.1.0

func (o *ReplaceStickRuleOK) IsClientError() bool

IsClientError returns true when this replace stick rule o k response has a 4xx status code

func (*ReplaceStickRuleOK) IsCode added in v1.1.0

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

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

func (*ReplaceStickRuleOK) IsRedirect added in v1.1.0

func (o *ReplaceStickRuleOK) IsRedirect() bool

IsRedirect returns true when this replace stick rule o k response has a 3xx status code

func (*ReplaceStickRuleOK) IsServerError added in v1.1.0

func (o *ReplaceStickRuleOK) IsServerError() bool

IsServerError returns true when this replace stick rule o k response has a 5xx status code

func (*ReplaceStickRuleOK) IsSuccess added in v1.1.0

func (o *ReplaceStickRuleOK) IsSuccess() bool

IsSuccess returns true when this replace stick rule o k response has a 2xx status code

func (*ReplaceStickRuleOK) String added in v1.1.0

func (o *ReplaceStickRuleOK) String() string

type ReplaceStickRuleParams

type ReplaceStickRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	// Data.
	Data *models.StickRule

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

	   Stick Rule 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
}

ReplaceStickRuleParams contains all the parameters to send to the API endpoint

for the replace stick rule operation.

Typically these are written to a http.Request.

func NewReplaceStickRuleParams

func NewReplaceStickRuleParams() *ReplaceStickRuleParams

NewReplaceStickRuleParams creates a new ReplaceStickRuleParams 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 NewReplaceStickRuleParamsWithContext

func NewReplaceStickRuleParamsWithContext(ctx context.Context) *ReplaceStickRuleParams

NewReplaceStickRuleParamsWithContext creates a new ReplaceStickRuleParams object with the ability to set a context for a request.

func NewReplaceStickRuleParamsWithHTTPClient

func NewReplaceStickRuleParamsWithHTTPClient(client *http.Client) *ReplaceStickRuleParams

NewReplaceStickRuleParamsWithHTTPClient creates a new ReplaceStickRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceStickRuleParamsWithTimeout

func NewReplaceStickRuleParamsWithTimeout(timeout time.Duration) *ReplaceStickRuleParams

NewReplaceStickRuleParamsWithTimeout creates a new ReplaceStickRuleParams object with the ability to set a timeout on a request.

func (*ReplaceStickRuleParams) SetBackend

func (o *ReplaceStickRuleParams) SetBackend(backend string)

SetBackend adds the backend to the replace stick rule params

func (*ReplaceStickRuleParams) SetContext

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

SetContext adds the context to the replace stick rule params

func (*ReplaceStickRuleParams) SetData

func (o *ReplaceStickRuleParams) SetData(data *models.StickRule)

SetData adds the data to the replace stick rule params

func (*ReplaceStickRuleParams) SetDefaults

func (o *ReplaceStickRuleParams) SetDefaults()

SetDefaults hydrates default values in the replace stick rule params (not the query body).

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

func (*ReplaceStickRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the replace stick rule params

func (*ReplaceStickRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace stick rule params

func (*ReplaceStickRuleParams) SetIndex

func (o *ReplaceStickRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace stick rule params

func (*ReplaceStickRuleParams) SetTimeout

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

SetTimeout adds the timeout to the replace stick rule params

func (*ReplaceStickRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace stick rule params

func (*ReplaceStickRuleParams) SetVersion

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

SetVersion adds the version to the replace stick rule params

func (*ReplaceStickRuleParams) WithBackend

func (o *ReplaceStickRuleParams) WithBackend(backend string) *ReplaceStickRuleParams

WithBackend adds the backend to the replace stick rule params

func (*ReplaceStickRuleParams) WithContext

WithContext adds the context to the replace stick rule params

func (*ReplaceStickRuleParams) WithData

WithData adds the data to the replace stick rule params

func (*ReplaceStickRuleParams) WithDefaults

WithDefaults hydrates default values in the replace stick rule params (not the query body).

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

func (*ReplaceStickRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the replace stick rule params

func (*ReplaceStickRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace stick rule params

func (*ReplaceStickRuleParams) WithIndex

WithIndex adds the index to the replace stick rule params

func (*ReplaceStickRuleParams) WithTimeout

WithTimeout adds the timeout to the replace stick rule params

func (*ReplaceStickRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace stick rule params

func (*ReplaceStickRuleParams) WithVersion

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

WithVersion adds the version to the replace stick rule params

func (*ReplaceStickRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceStickRuleReader

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

ReplaceStickRuleReader is a Reader for the ReplaceStickRule structure.

func (*ReplaceStickRuleReader) ReadResponse

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