stick_rule

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 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) (*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) (*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 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 handles this case 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) Error

func (o *CreateStickRuleAccepted) Error() string

func (*CreateStickRuleAccepted) GetPayload

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

type CreateStickRuleBadRequest

type CreateStickRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateStickRuleBadRequest handles this case with default header values.

Bad request

func NewCreateStickRuleBadRequest

func NewCreateStickRuleBadRequest() *CreateStickRuleBadRequest

NewCreateStickRuleBadRequest creates a CreateStickRuleBadRequest with default headers values

func (*CreateStickRuleBadRequest) Error

func (o *CreateStickRuleBadRequest) Error() string

func (*CreateStickRuleBadRequest) GetPayload

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

type CreateStickRuleConflict

type CreateStickRuleConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateStickRuleConflict handles this case with default header values.

The specified resource already exists

func NewCreateStickRuleConflict

func NewCreateStickRuleConflict() *CreateStickRuleConflict

NewCreateStickRuleConflict creates a CreateStickRuleConflict with default headers values

func (*CreateStickRuleConflict) Error

func (o *CreateStickRuleConflict) Error() string

func (*CreateStickRuleConflict) GetPayload

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

type CreateStickRuleCreated

type CreateStickRuleCreated struct {
	Payload *models.StickRule
}

CreateStickRuleCreated handles this case with default header values.

Stick Rule created

func NewCreateStickRuleCreated

func NewCreateStickRuleCreated() *CreateStickRuleCreated

NewCreateStickRuleCreated creates a CreateStickRuleCreated with default headers values

func (*CreateStickRuleCreated) Error

func (o *CreateStickRuleCreated) Error() string

func (*CreateStickRuleCreated) GetPayload

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

type CreateStickRuleDefault

type CreateStickRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateStickRuleDefault handles this case 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

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 values initialized.

func NewCreateStickRuleParamsWithContext

func NewCreateStickRuleParamsWithContext(ctx context.Context) *CreateStickRuleParams

NewCreateStickRuleParamsWithContext creates a new CreateStickRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *DeleteStickRuleAccepted) Error() string

type DeleteStickRuleDefault

type DeleteStickRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteStickRuleDefault handles this case 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

type DeleteStickRuleNoContent

type DeleteStickRuleNoContent struct {
}

DeleteStickRuleNoContent handles this case with default header values.

Stick Rule deleted

func NewDeleteStickRuleNoContent

func NewDeleteStickRuleNoContent() *DeleteStickRuleNoContent

NewDeleteStickRuleNoContent creates a DeleteStickRuleNoContent with default headers values

func (*DeleteStickRuleNoContent) Error

func (o *DeleteStickRuleNoContent) Error() string

type DeleteStickRuleNotFound

type DeleteStickRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteStickRuleNotFound handles this case 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) Error

func (o *DeleteStickRuleNotFound) Error() string

func (*DeleteStickRuleNotFound) GetPayload

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

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 values initialized.

func NewDeleteStickRuleParamsWithContext

func NewDeleteStickRuleParamsWithContext(ctx context.Context) *DeleteStickRuleParams

NewDeleteStickRuleParamsWithContext creates a new DeleteStickRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetStickRuleNotFound

type GetStickRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetStickRuleNotFound handles this case 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) Error

func (o *GetStickRuleNotFound) Error() string

func (*GetStickRuleNotFound) GetPayload

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

type GetStickRuleOK

type GetStickRuleOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetStickRuleOKBody
}

GetStickRuleOK handles this case with default header values.

Successful operation

func NewGetStickRuleOK

func NewGetStickRuleOK() *GetStickRuleOK

NewGetStickRuleOK creates a GetStickRuleOK with default headers values

func (*GetStickRuleOK) Error

func (o *GetStickRuleOK) Error() string

func (*GetStickRuleOK) GetPayload

func (o *GetStickRuleOK) GetPayload() *GetStickRuleOKBody

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) 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 values initialized.

func NewGetStickRuleParamsWithContext

func NewGetStickRuleParamsWithContext(ctx context.Context) *GetStickRuleParams

NewGetStickRuleParamsWithContext creates a new GetStickRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetStickRulesOK

type GetStickRulesOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetStickRulesOKBody
}

GetStickRulesOK handles this case with default header values.

Successful operation

func NewGetStickRulesOK

func NewGetStickRulesOK() *GetStickRulesOK

NewGetStickRulesOK creates a GetStickRulesOK with default headers values

func (*GetStickRulesOK) Error

func (o *GetStickRulesOK) Error() string

func (*GetStickRulesOK) GetPayload

func (o *GetStickRulesOK) GetPayload() *GetStickRulesOKBody

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) 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 values initialized.

func NewGetStickRulesParamsWithContext

func NewGetStickRulesParamsWithContext(ctx context.Context) *GetStickRulesParams

NewGetStickRulesParamsWithContext creates a new GetStickRulesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *ReplaceStickRuleAccepted) Error() string

func (*ReplaceStickRuleAccepted) GetPayload

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

type ReplaceStickRuleBadRequest

type ReplaceStickRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceStickRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceStickRuleBadRequest

func NewReplaceStickRuleBadRequest() *ReplaceStickRuleBadRequest

NewReplaceStickRuleBadRequest creates a ReplaceStickRuleBadRequest with default headers values

func (*ReplaceStickRuleBadRequest) Error

func (*ReplaceStickRuleBadRequest) GetPayload

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

type ReplaceStickRuleDefault

type ReplaceStickRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceStickRuleDefault handles this case 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

type ReplaceStickRuleNotFound

type ReplaceStickRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceStickRuleNotFound handles this case 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) Error

func (o *ReplaceStickRuleNotFound) Error() string

func (*ReplaceStickRuleNotFound) GetPayload

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

type ReplaceStickRuleOK

type ReplaceStickRuleOK struct {
	Payload *models.StickRule
}

ReplaceStickRuleOK handles this case with default header values.

Stick Rule replaced

func NewReplaceStickRuleOK

func NewReplaceStickRuleOK() *ReplaceStickRuleOK

NewReplaceStickRuleOK creates a ReplaceStickRuleOK with default headers values

func (*ReplaceStickRuleOK) Error

func (o *ReplaceStickRuleOK) Error() string

func (*ReplaceStickRuleOK) GetPayload

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

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 values initialized.

func NewReplaceStickRuleParamsWithContext

func NewReplaceStickRuleParamsWithContext(ctx context.Context) *ReplaceStickRuleParams

NewReplaceStickRuleParamsWithContext creates a new ReplaceStickRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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