Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateStickRule(params *CreateStickRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateStickRuleCreated, *CreateStickRuleAccepted, error)
- func (a *Client) DeleteStickRule(params *DeleteStickRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteStickRuleAccepted, *DeleteStickRuleNoContent, error)
- func (a *Client) GetStickRule(params *GetStickRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetStickRuleOK, error)
- func (a *Client) GetStickRules(params *GetStickRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetStickRulesOK, error)
- func (a *Client) ReplaceStickRule(params *ReplaceStickRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceStickRuleOK, *ReplaceStickRuleAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateStickRuleAccepted
- func (o *CreateStickRuleAccepted) Code() int
- func (o *CreateStickRuleAccepted) Error() string
- func (o *CreateStickRuleAccepted) GetPayload() *models.StickRule
- func (o *CreateStickRuleAccepted) IsClientError() bool
- func (o *CreateStickRuleAccepted) IsCode(code int) bool
- func (o *CreateStickRuleAccepted) IsRedirect() bool
- func (o *CreateStickRuleAccepted) IsServerError() bool
- func (o *CreateStickRuleAccepted) IsSuccess() bool
- func (o *CreateStickRuleAccepted) String() string
- type CreateStickRuleBadRequest
- func (o *CreateStickRuleBadRequest) Code() int
- func (o *CreateStickRuleBadRequest) Error() string
- func (o *CreateStickRuleBadRequest) GetPayload() *models.Error
- func (o *CreateStickRuleBadRequest) IsClientError() bool
- func (o *CreateStickRuleBadRequest) IsCode(code int) bool
- func (o *CreateStickRuleBadRequest) IsRedirect() bool
- func (o *CreateStickRuleBadRequest) IsServerError() bool
- func (o *CreateStickRuleBadRequest) IsSuccess() bool
- func (o *CreateStickRuleBadRequest) String() string
- type CreateStickRuleConflict
- func (o *CreateStickRuleConflict) Code() int
- func (o *CreateStickRuleConflict) Error() string
- func (o *CreateStickRuleConflict) GetPayload() *models.Error
- func (o *CreateStickRuleConflict) IsClientError() bool
- func (o *CreateStickRuleConflict) IsCode(code int) bool
- func (o *CreateStickRuleConflict) IsRedirect() bool
- func (o *CreateStickRuleConflict) IsServerError() bool
- func (o *CreateStickRuleConflict) IsSuccess() bool
- func (o *CreateStickRuleConflict) String() string
- type CreateStickRuleCreated
- func (o *CreateStickRuleCreated) Code() int
- func (o *CreateStickRuleCreated) Error() string
- func (o *CreateStickRuleCreated) GetPayload() *models.StickRule
- func (o *CreateStickRuleCreated) IsClientError() bool
- func (o *CreateStickRuleCreated) IsCode(code int) bool
- func (o *CreateStickRuleCreated) IsRedirect() bool
- func (o *CreateStickRuleCreated) IsServerError() bool
- func (o *CreateStickRuleCreated) IsSuccess() bool
- func (o *CreateStickRuleCreated) String() string
- type CreateStickRuleDefault
- func (o *CreateStickRuleDefault) Code() int
- func (o *CreateStickRuleDefault) Error() string
- func (o *CreateStickRuleDefault) GetPayload() *models.Error
- func (o *CreateStickRuleDefault) IsClientError() bool
- func (o *CreateStickRuleDefault) IsCode(code int) bool
- func (o *CreateStickRuleDefault) IsRedirect() bool
- func (o *CreateStickRuleDefault) IsServerError() bool
- func (o *CreateStickRuleDefault) IsSuccess() bool
- func (o *CreateStickRuleDefault) String() string
- type CreateStickRuleParams
- func NewCreateStickRuleParams() *CreateStickRuleParams
- func NewCreateStickRuleParamsWithContext(ctx context.Context) *CreateStickRuleParams
- func NewCreateStickRuleParamsWithHTTPClient(client *http.Client) *CreateStickRuleParams
- func NewCreateStickRuleParamsWithTimeout(timeout time.Duration) *CreateStickRuleParams
- func (o *CreateStickRuleParams) SetBackend(backend string)
- func (o *CreateStickRuleParams) SetContext(ctx context.Context)
- func (o *CreateStickRuleParams) SetData(data *models.StickRule)
- func (o *CreateStickRuleParams) SetDefaults()
- func (o *CreateStickRuleParams) SetForceReload(forceReload *bool)
- func (o *CreateStickRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateStickRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateStickRuleParams) SetTransactionID(transactionID *string)
- func (o *CreateStickRuleParams) SetVersion(version *int64)
- func (o *CreateStickRuleParams) WithBackend(backend string) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithContext(ctx context.Context) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithData(data *models.StickRule) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithDefaults() *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithForceReload(forceReload *bool) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithHTTPClient(client *http.Client) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithTimeout(timeout time.Duration) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithTransactionID(transactionID *string) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WithVersion(version *int64) *CreateStickRuleParams
- func (o *CreateStickRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateStickRuleReader
- type DeleteStickRuleAccepted
- func (o *DeleteStickRuleAccepted) Code() int
- func (o *DeleteStickRuleAccepted) Error() string
- func (o *DeleteStickRuleAccepted) IsClientError() bool
- func (o *DeleteStickRuleAccepted) IsCode(code int) bool
- func (o *DeleteStickRuleAccepted) IsRedirect() bool
- func (o *DeleteStickRuleAccepted) IsServerError() bool
- func (o *DeleteStickRuleAccepted) IsSuccess() bool
- func (o *DeleteStickRuleAccepted) String() string
- type DeleteStickRuleDefault
- func (o *DeleteStickRuleDefault) Code() int
- func (o *DeleteStickRuleDefault) Error() string
- func (o *DeleteStickRuleDefault) GetPayload() *models.Error
- func (o *DeleteStickRuleDefault) IsClientError() bool
- func (o *DeleteStickRuleDefault) IsCode(code int) bool
- func (o *DeleteStickRuleDefault) IsRedirect() bool
- func (o *DeleteStickRuleDefault) IsServerError() bool
- func (o *DeleteStickRuleDefault) IsSuccess() bool
- func (o *DeleteStickRuleDefault) String() string
- type DeleteStickRuleNoContent
- func (o *DeleteStickRuleNoContent) Code() int
- func (o *DeleteStickRuleNoContent) Error() string
- func (o *DeleteStickRuleNoContent) IsClientError() bool
- func (o *DeleteStickRuleNoContent) IsCode(code int) bool
- func (o *DeleteStickRuleNoContent) IsRedirect() bool
- func (o *DeleteStickRuleNoContent) IsServerError() bool
- func (o *DeleteStickRuleNoContent) IsSuccess() bool
- func (o *DeleteStickRuleNoContent) String() string
- type DeleteStickRuleNotFound
- func (o *DeleteStickRuleNotFound) Code() int
- func (o *DeleteStickRuleNotFound) Error() string
- func (o *DeleteStickRuleNotFound) GetPayload() *models.Error
- func (o *DeleteStickRuleNotFound) IsClientError() bool
- func (o *DeleteStickRuleNotFound) IsCode(code int) bool
- func (o *DeleteStickRuleNotFound) IsRedirect() bool
- func (o *DeleteStickRuleNotFound) IsServerError() bool
- func (o *DeleteStickRuleNotFound) IsSuccess() bool
- func (o *DeleteStickRuleNotFound) String() string
- type DeleteStickRuleParams
- func NewDeleteStickRuleParams() *DeleteStickRuleParams
- func NewDeleteStickRuleParamsWithContext(ctx context.Context) *DeleteStickRuleParams
- func NewDeleteStickRuleParamsWithHTTPClient(client *http.Client) *DeleteStickRuleParams
- func NewDeleteStickRuleParamsWithTimeout(timeout time.Duration) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) SetBackend(backend string)
- func (o *DeleteStickRuleParams) SetContext(ctx context.Context)
- func (o *DeleteStickRuleParams) SetDefaults()
- func (o *DeleteStickRuleParams) SetForceReload(forceReload *bool)
- func (o *DeleteStickRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteStickRuleParams) SetIndex(index int64)
- func (o *DeleteStickRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteStickRuleParams) SetTransactionID(transactionID *string)
- func (o *DeleteStickRuleParams) SetVersion(version *int64)
- func (o *DeleteStickRuleParams) WithBackend(backend string) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithContext(ctx context.Context) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithDefaults() *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithForceReload(forceReload *bool) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithHTTPClient(client *http.Client) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithIndex(index int64) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithTimeout(timeout time.Duration) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithTransactionID(transactionID *string) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WithVersion(version *int64) *DeleteStickRuleParams
- func (o *DeleteStickRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteStickRuleReader
- type GetStickRuleDefault
- func (o *GetStickRuleDefault) Code() int
- func (o *GetStickRuleDefault) Error() string
- func (o *GetStickRuleDefault) GetPayload() *models.Error
- func (o *GetStickRuleDefault) IsClientError() bool
- func (o *GetStickRuleDefault) IsCode(code int) bool
- func (o *GetStickRuleDefault) IsRedirect() bool
- func (o *GetStickRuleDefault) IsServerError() bool
- func (o *GetStickRuleDefault) IsSuccess() bool
- func (o *GetStickRuleDefault) String() string
- type GetStickRuleNotFound
- func (o *GetStickRuleNotFound) Code() int
- func (o *GetStickRuleNotFound) Error() string
- func (o *GetStickRuleNotFound) GetPayload() *models.Error
- func (o *GetStickRuleNotFound) IsClientError() bool
- func (o *GetStickRuleNotFound) IsCode(code int) bool
- func (o *GetStickRuleNotFound) IsRedirect() bool
- func (o *GetStickRuleNotFound) IsServerError() bool
- func (o *GetStickRuleNotFound) IsSuccess() bool
- func (o *GetStickRuleNotFound) String() string
- type GetStickRuleOK
- func (o *GetStickRuleOK) Code() int
- func (o *GetStickRuleOK) Error() string
- func (o *GetStickRuleOK) GetPayload() *GetStickRuleOKBody
- func (o *GetStickRuleOK) IsClientError() bool
- func (o *GetStickRuleOK) IsCode(code int) bool
- func (o *GetStickRuleOK) IsRedirect() bool
- func (o *GetStickRuleOK) IsServerError() bool
- func (o *GetStickRuleOK) IsSuccess() bool
- func (o *GetStickRuleOK) String() string
- type GetStickRuleOKBody
- type GetStickRuleParams
- func (o *GetStickRuleParams) SetBackend(backend string)
- func (o *GetStickRuleParams) SetContext(ctx context.Context)
- func (o *GetStickRuleParams) SetDefaults()
- func (o *GetStickRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetStickRuleParams) SetIndex(index int64)
- func (o *GetStickRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetStickRuleParams) SetTransactionID(transactionID *string)
- func (o *GetStickRuleParams) WithBackend(backend string) *GetStickRuleParams
- func (o *GetStickRuleParams) WithContext(ctx context.Context) *GetStickRuleParams
- func (o *GetStickRuleParams) WithDefaults() *GetStickRuleParams
- func (o *GetStickRuleParams) WithHTTPClient(client *http.Client) *GetStickRuleParams
- func (o *GetStickRuleParams) WithIndex(index int64) *GetStickRuleParams
- func (o *GetStickRuleParams) WithTimeout(timeout time.Duration) *GetStickRuleParams
- func (o *GetStickRuleParams) WithTransactionID(transactionID *string) *GetStickRuleParams
- func (o *GetStickRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStickRuleReader
- type GetStickRulesDefault
- func (o *GetStickRulesDefault) Code() int
- func (o *GetStickRulesDefault) Error() string
- func (o *GetStickRulesDefault) GetPayload() *models.Error
- func (o *GetStickRulesDefault) IsClientError() bool
- func (o *GetStickRulesDefault) IsCode(code int) bool
- func (o *GetStickRulesDefault) IsRedirect() bool
- func (o *GetStickRulesDefault) IsServerError() bool
- func (o *GetStickRulesDefault) IsSuccess() bool
- func (o *GetStickRulesDefault) String() string
- type GetStickRulesOK
- func (o *GetStickRulesOK) Code() int
- func (o *GetStickRulesOK) Error() string
- func (o *GetStickRulesOK) GetPayload() *GetStickRulesOKBody
- func (o *GetStickRulesOK) IsClientError() bool
- func (o *GetStickRulesOK) IsCode(code int) bool
- func (o *GetStickRulesOK) IsRedirect() bool
- func (o *GetStickRulesOK) IsServerError() bool
- func (o *GetStickRulesOK) IsSuccess() bool
- func (o *GetStickRulesOK) String() string
- type GetStickRulesOKBody
- type GetStickRulesParams
- func (o *GetStickRulesParams) SetBackend(backend string)
- func (o *GetStickRulesParams) SetContext(ctx context.Context)
- func (o *GetStickRulesParams) SetDefaults()
- func (o *GetStickRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetStickRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetStickRulesParams) SetTransactionID(transactionID *string)
- func (o *GetStickRulesParams) WithBackend(backend string) *GetStickRulesParams
- func (o *GetStickRulesParams) WithContext(ctx context.Context) *GetStickRulesParams
- func (o *GetStickRulesParams) WithDefaults() *GetStickRulesParams
- func (o *GetStickRulesParams) WithHTTPClient(client *http.Client) *GetStickRulesParams
- func (o *GetStickRulesParams) WithTimeout(timeout time.Duration) *GetStickRulesParams
- func (o *GetStickRulesParams) WithTransactionID(transactionID *string) *GetStickRulesParams
- func (o *GetStickRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStickRulesReader
- type ReplaceStickRuleAccepted
- func (o *ReplaceStickRuleAccepted) Code() int
- func (o *ReplaceStickRuleAccepted) Error() string
- func (o *ReplaceStickRuleAccepted) GetPayload() *models.StickRule
- func (o *ReplaceStickRuleAccepted) IsClientError() bool
- func (o *ReplaceStickRuleAccepted) IsCode(code int) bool
- func (o *ReplaceStickRuleAccepted) IsRedirect() bool
- func (o *ReplaceStickRuleAccepted) IsServerError() bool
- func (o *ReplaceStickRuleAccepted) IsSuccess() bool
- func (o *ReplaceStickRuleAccepted) String() string
- type ReplaceStickRuleBadRequest
- func (o *ReplaceStickRuleBadRequest) Code() int
- func (o *ReplaceStickRuleBadRequest) Error() string
- func (o *ReplaceStickRuleBadRequest) GetPayload() *models.Error
- func (o *ReplaceStickRuleBadRequest) IsClientError() bool
- func (o *ReplaceStickRuleBadRequest) IsCode(code int) bool
- func (o *ReplaceStickRuleBadRequest) IsRedirect() bool
- func (o *ReplaceStickRuleBadRequest) IsServerError() bool
- func (o *ReplaceStickRuleBadRequest) IsSuccess() bool
- func (o *ReplaceStickRuleBadRequest) String() string
- type ReplaceStickRuleDefault
- func (o *ReplaceStickRuleDefault) Code() int
- func (o *ReplaceStickRuleDefault) Error() string
- func (o *ReplaceStickRuleDefault) GetPayload() *models.Error
- func (o *ReplaceStickRuleDefault) IsClientError() bool
- func (o *ReplaceStickRuleDefault) IsCode(code int) bool
- func (o *ReplaceStickRuleDefault) IsRedirect() bool
- func (o *ReplaceStickRuleDefault) IsServerError() bool
- func (o *ReplaceStickRuleDefault) IsSuccess() bool
- func (o *ReplaceStickRuleDefault) String() string
- type ReplaceStickRuleNotFound
- func (o *ReplaceStickRuleNotFound) Code() int
- func (o *ReplaceStickRuleNotFound) Error() string
- func (o *ReplaceStickRuleNotFound) GetPayload() *models.Error
- func (o *ReplaceStickRuleNotFound) IsClientError() bool
- func (o *ReplaceStickRuleNotFound) IsCode(code int) bool
- func (o *ReplaceStickRuleNotFound) IsRedirect() bool
- func (o *ReplaceStickRuleNotFound) IsServerError() bool
- func (o *ReplaceStickRuleNotFound) IsSuccess() bool
- func (o *ReplaceStickRuleNotFound) String() string
- type ReplaceStickRuleOK
- func (o *ReplaceStickRuleOK) Code() int
- func (o *ReplaceStickRuleOK) Error() string
- func (o *ReplaceStickRuleOK) GetPayload() *models.StickRule
- func (o *ReplaceStickRuleOK) IsClientError() bool
- func (o *ReplaceStickRuleOK) IsCode(code int) bool
- func (o *ReplaceStickRuleOK) IsRedirect() bool
- func (o *ReplaceStickRuleOK) IsServerError() bool
- func (o *ReplaceStickRuleOK) IsSuccess() bool
- func (o *ReplaceStickRuleOK) String() string
- type ReplaceStickRuleParams
- func NewReplaceStickRuleParams() *ReplaceStickRuleParams
- func NewReplaceStickRuleParamsWithContext(ctx context.Context) *ReplaceStickRuleParams
- func NewReplaceStickRuleParamsWithHTTPClient(client *http.Client) *ReplaceStickRuleParams
- func NewReplaceStickRuleParamsWithTimeout(timeout time.Duration) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) SetBackend(backend string)
- func (o *ReplaceStickRuleParams) SetContext(ctx context.Context)
- func (o *ReplaceStickRuleParams) SetData(data *models.StickRule)
- func (o *ReplaceStickRuleParams) SetDefaults()
- func (o *ReplaceStickRuleParams) SetForceReload(forceReload *bool)
- func (o *ReplaceStickRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceStickRuleParams) SetIndex(index int64)
- func (o *ReplaceStickRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceStickRuleParams) SetTransactionID(transactionID *string)
- func (o *ReplaceStickRuleParams) SetVersion(version *int64)
- func (o *ReplaceStickRuleParams) WithBackend(backend string) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithContext(ctx context.Context) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithData(data *models.StickRule) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithDefaults() *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithForceReload(forceReload *bool) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithHTTPClient(client *http.Client) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithIndex(index int64) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithTimeout(timeout time.Duration) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithTransactionID(transactionID *string) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WithVersion(version *int64) *ReplaceStickRuleParams
- func (o *ReplaceStickRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceStickRuleReader
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 ¶
func (a *Client) CreateStickRule(params *CreateStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateStickRuleCreated, *CreateStickRuleAccepted, error)
CreateStickRule adds a new stick rule
Adds a new Stick Rule of the specified type in the specified backend.
func (*Client) DeleteStickRule ¶
func (a *Client) DeleteStickRule(params *DeleteStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteStickRuleAccepted, *DeleteStickRuleNoContent, error)
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 ¶
func (a *Client) ReplaceStickRule(params *ReplaceStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceStickRuleOK, *ReplaceStickRuleAccepted, error)
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 ¶
type ClientService interface { CreateStickRule(params *CreateStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateStickRuleCreated, *CreateStickRuleAccepted, error) DeleteStickRule(params *DeleteStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteStickRuleAccepted, *DeleteStickRuleNoContent, error) GetStickRule(params *GetStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStickRuleOK, error) GetStickRules(params *GetStickRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStickRulesOK, error) ReplaceStickRule(params *ReplaceStickRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceStickRuleOK, *ReplaceStickRuleAccepted, error) SetTransport(transport runtime.ClientTransport) }
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 ¶
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 ¶
func (o *CreateStickRuleParams) WithContext(ctx context.Context) *CreateStickRuleParams
WithContext adds the context to the create stick rule params
func (*CreateStickRuleParams) WithData ¶
func (o *CreateStickRuleParams) WithData(data *models.StickRule) *CreateStickRuleParams
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 ¶
func (o *DeleteStickRuleParams) WithContext(ctx context.Context) *DeleteStickRuleParams
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 ¶
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
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 ¶
func (o *GetStickRuleParams) WithContext(ctx context.Context) *GetStickRuleParams
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 ¶
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
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 ¶
func (o *GetStickRulesParams) WithContext(ctx context.Context) *GetStickRulesParams
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 (o *ReplaceStickRuleBadRequest) Error() string
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 ¶
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 ¶
func (o *ReplaceStickRuleParams) WithContext(ctx context.Context) *ReplaceStickRuleParams
WithContext adds the context to the replace stick rule params
func (*ReplaceStickRuleParams) WithData ¶
func (o *ReplaceStickRuleParams) WithData(data *models.StickRule) *ReplaceStickRuleParams
WithData adds the data to the replace stick rule params
func (*ReplaceStickRuleParams) WithDefaults ¶
func (o *ReplaceStickRuleParams) WithDefaults() *ReplaceStickRuleParams
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 ¶
func (o *ReplaceStickRuleParams) WithIndex(index int64) *ReplaceStickRuleParams
WithIndex adds the index to the replace stick rule params
func (*ReplaceStickRuleParams) WithTimeout ¶
func (o *ReplaceStickRuleParams) WithTimeout(timeout time.Duration) *ReplaceStickRuleParams
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 ¶
func (o *ReplaceStickRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- create_stick_rule_parameters.go
- create_stick_rule_responses.go
- delete_stick_rule_parameters.go
- delete_stick_rule_responses.go
- get_stick_rule_parameters.go
- get_stick_rule_responses.go
- get_stick_rules_parameters.go
- get_stick_rules_responses.go
- replace_stick_rule_parameters.go
- replace_stick_rule_responses.go
- stick_rule_client.go