Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateBackendSwitchingRule(params *CreateBackendSwitchingRuleParams, ...) (*CreateBackendSwitchingRuleCreated, *CreateBackendSwitchingRuleAccepted, error)
- func (a *Client) DeleteBackendSwitchingRule(params *DeleteBackendSwitchingRuleParams, ...) (*DeleteBackendSwitchingRuleAccepted, *DeleteBackendSwitchingRuleNoContent, ...)
- func (a *Client) GetBackendSwitchingRule(params *GetBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBackendSwitchingRuleOK, error)
- func (a *Client) GetBackendSwitchingRules(params *GetBackendSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBackendSwitchingRulesOK, error)
- func (a *Client) ReplaceBackendSwitchingRule(params *ReplaceBackendSwitchingRuleParams, ...) (*ReplaceBackendSwitchingRuleOK, *ReplaceBackendSwitchingRuleAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateBackendSwitchingRuleAccepted
- type CreateBackendSwitchingRuleBadRequest
- type CreateBackendSwitchingRuleConflict
- type CreateBackendSwitchingRuleCreated
- type CreateBackendSwitchingRuleDefault
- type CreateBackendSwitchingRuleParams
- func NewCreateBackendSwitchingRuleParams() *CreateBackendSwitchingRuleParams
- func NewCreateBackendSwitchingRuleParamsWithContext(ctx context.Context) *CreateBackendSwitchingRuleParams
- func NewCreateBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *CreateBackendSwitchingRuleParams
- func NewCreateBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *CreateBackendSwitchingRuleParams) SetData(data *models.BackendSwitchingRule)
- func (o *CreateBackendSwitchingRuleParams) SetDefaults()
- func (o *CreateBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *CreateBackendSwitchingRuleParams) SetFrontend(frontend string)
- func (o *CreateBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *CreateBackendSwitchingRuleParams) SetVersion(version *int64)
- func (o *CreateBackendSwitchingRuleParams) WithContext(ctx context.Context) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithData(data *models.BackendSwitchingRule) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithDefaults() *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithFrontend(frontend string) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WithVersion(version *int64) *CreateBackendSwitchingRuleParams
- func (o *CreateBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateBackendSwitchingRuleReader
- type DeleteBackendSwitchingRuleAccepted
- type DeleteBackendSwitchingRuleDefault
- type DeleteBackendSwitchingRuleNoContent
- type DeleteBackendSwitchingRuleNotFound
- type DeleteBackendSwitchingRuleParams
- func NewDeleteBackendSwitchingRuleParams() *DeleteBackendSwitchingRuleParams
- func NewDeleteBackendSwitchingRuleParamsWithContext(ctx context.Context) *DeleteBackendSwitchingRuleParams
- func NewDeleteBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *DeleteBackendSwitchingRuleParams
- func NewDeleteBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *DeleteBackendSwitchingRuleParams) SetDefaults()
- func (o *DeleteBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *DeleteBackendSwitchingRuleParams) SetFrontend(frontend string)
- func (o *DeleteBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteBackendSwitchingRuleParams) SetIndex(index int64)
- func (o *DeleteBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *DeleteBackendSwitchingRuleParams) SetVersion(version *int64)
- func (o *DeleteBackendSwitchingRuleParams) WithContext(ctx context.Context) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithDefaults() *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithFrontend(frontend string) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithIndex(index int64) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WithVersion(version *int64) *DeleteBackendSwitchingRuleParams
- func (o *DeleteBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteBackendSwitchingRuleReader
- type GetBackendSwitchingRuleDefault
- type GetBackendSwitchingRuleNotFound
- type GetBackendSwitchingRuleOK
- type GetBackendSwitchingRuleOKBody
- func (o *GetBackendSwitchingRuleOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackendSwitchingRuleOKBody) MarshalBinary() ([]byte, error)
- func (o *GetBackendSwitchingRuleOKBody) UnmarshalBinary(b []byte) error
- func (o *GetBackendSwitchingRuleOKBody) Validate(formats strfmt.Registry) error
- type GetBackendSwitchingRuleParams
- func NewGetBackendSwitchingRuleParams() *GetBackendSwitchingRuleParams
- func NewGetBackendSwitchingRuleParamsWithContext(ctx context.Context) *GetBackendSwitchingRuleParams
- func NewGetBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *GetBackendSwitchingRuleParams
- func NewGetBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *GetBackendSwitchingRuleParams) SetDefaults()
- func (o *GetBackendSwitchingRuleParams) SetFrontend(frontend string)
- func (o *GetBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetBackendSwitchingRuleParams) SetIndex(index int64)
- func (o *GetBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *GetBackendSwitchingRuleParams) WithContext(ctx context.Context) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithDefaults() *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithFrontend(frontend string) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithIndex(index int64) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *GetBackendSwitchingRuleParams
- func (o *GetBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBackendSwitchingRuleReader
- type GetBackendSwitchingRulesDefault
- type GetBackendSwitchingRulesOK
- type GetBackendSwitchingRulesOKBody
- func (o *GetBackendSwitchingRulesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackendSwitchingRulesOKBody) MarshalBinary() ([]byte, error)
- func (o *GetBackendSwitchingRulesOKBody) UnmarshalBinary(b []byte) error
- func (o *GetBackendSwitchingRulesOKBody) Validate(formats strfmt.Registry) error
- type GetBackendSwitchingRulesParams
- func NewGetBackendSwitchingRulesParams() *GetBackendSwitchingRulesParams
- func NewGetBackendSwitchingRulesParamsWithContext(ctx context.Context) *GetBackendSwitchingRulesParams
- func NewGetBackendSwitchingRulesParamsWithHTTPClient(client *http.Client) *GetBackendSwitchingRulesParams
- func NewGetBackendSwitchingRulesParamsWithTimeout(timeout time.Duration) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) SetContext(ctx context.Context)
- func (o *GetBackendSwitchingRulesParams) SetDefaults()
- func (o *GetBackendSwitchingRulesParams) SetFrontend(frontend string)
- func (o *GetBackendSwitchingRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetBackendSwitchingRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetBackendSwitchingRulesParams) SetTransactionID(transactionID *string)
- func (o *GetBackendSwitchingRulesParams) WithContext(ctx context.Context) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WithDefaults() *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WithFrontend(frontend string) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WithHTTPClient(client *http.Client) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WithTimeout(timeout time.Duration) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WithTransactionID(transactionID *string) *GetBackendSwitchingRulesParams
- func (o *GetBackendSwitchingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBackendSwitchingRulesReader
- type ReplaceBackendSwitchingRuleAccepted
- type ReplaceBackendSwitchingRuleBadRequest
- type ReplaceBackendSwitchingRuleDefault
- type ReplaceBackendSwitchingRuleNotFound
- type ReplaceBackendSwitchingRuleOK
- type ReplaceBackendSwitchingRuleParams
- func NewReplaceBackendSwitchingRuleParams() *ReplaceBackendSwitchingRuleParams
- func NewReplaceBackendSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceBackendSwitchingRuleParams
- func NewReplaceBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *ReplaceBackendSwitchingRuleParams
- func NewReplaceBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *ReplaceBackendSwitchingRuleParams) SetData(data *models.BackendSwitchingRule)
- func (o *ReplaceBackendSwitchingRuleParams) SetDefaults()
- func (o *ReplaceBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *ReplaceBackendSwitchingRuleParams) SetFrontend(frontend string)
- func (o *ReplaceBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceBackendSwitchingRuleParams) SetIndex(index int64)
- func (o *ReplaceBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *ReplaceBackendSwitchingRuleParams) SetVersion(version *int64)
- func (o *ReplaceBackendSwitchingRuleParams) WithContext(ctx context.Context) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithData(data *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithDefaults() *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithFrontend(frontend string) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithIndex(index int64) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WithVersion(version *int64) *ReplaceBackendSwitchingRuleParams
- func (o *ReplaceBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceBackendSwitchingRuleReader
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 backend switching rule API
func (*Client) CreateBackendSwitchingRule ¶
func (a *Client) CreateBackendSwitchingRule(params *CreateBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBackendSwitchingRuleCreated, *CreateBackendSwitchingRuleAccepted, error)
CreateBackendSwitchingRule adds a new backend switching rule
Adds a new Backend Switching Rule of the specified type in the specified frontend.
func (*Client) DeleteBackendSwitchingRule ¶
func (a *Client) DeleteBackendSwitchingRule(params *DeleteBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackendSwitchingRuleAccepted, *DeleteBackendSwitchingRuleNoContent, error)
DeleteBackendSwitchingRule deletes a backend switching rule
Deletes a Backend Switching Rule configuration by it's index from the specified frontend.
func (*Client) GetBackendSwitchingRule ¶
func (a *Client) GetBackendSwitchingRule(params *GetBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendSwitchingRuleOK, error)
GetBackendSwitchingRule returns one backend switching rule
Returns one Backend Switching Rule configuration by it's index in the specified frontend.
func (*Client) GetBackendSwitchingRules ¶
func (a *Client) GetBackendSwitchingRules(params *GetBackendSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendSwitchingRulesOK, error)
GetBackendSwitchingRules returns an array of all backend switching rules
Returns all Backend Switching Rules that are configured in specified frontend.
func (*Client) ReplaceBackendSwitchingRule ¶
func (a *Client) ReplaceBackendSwitchingRule(params *ReplaceBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceBackendSwitchingRuleOK, *ReplaceBackendSwitchingRuleAccepted, error)
ReplaceBackendSwitchingRule replaces a backend switching rule
Replaces a Backend Switching Rule configuration by it's index in the specified frontend.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateBackendSwitchingRule(params *CreateBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBackendSwitchingRuleCreated, *CreateBackendSwitchingRuleAccepted, error) DeleteBackendSwitchingRule(params *DeleteBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackendSwitchingRuleAccepted, *DeleteBackendSwitchingRuleNoContent, error) GetBackendSwitchingRule(params *GetBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendSwitchingRuleOK, error) GetBackendSwitchingRules(params *GetBackendSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBackendSwitchingRulesOK, error) ReplaceBackendSwitchingRule(params *ReplaceBackendSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceBackendSwitchingRuleOK, *ReplaceBackendSwitchingRuleAccepted, 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 backend switching rule API client.
type CreateBackendSwitchingRuleAccepted ¶
type CreateBackendSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.BackendSwitchingRule }
CreateBackendSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewCreateBackendSwitchingRuleAccepted ¶
func NewCreateBackendSwitchingRuleAccepted() *CreateBackendSwitchingRuleAccepted
NewCreateBackendSwitchingRuleAccepted creates a CreateBackendSwitchingRuleAccepted with default headers values
func (*CreateBackendSwitchingRuleAccepted) Error ¶
func (o *CreateBackendSwitchingRuleAccepted) Error() string
func (*CreateBackendSwitchingRuleAccepted) GetPayload ¶
func (o *CreateBackendSwitchingRuleAccepted) GetPayload() *models.BackendSwitchingRule
type CreateBackendSwitchingRuleBadRequest ¶
type CreateBackendSwitchingRuleBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateBackendSwitchingRuleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateBackendSwitchingRuleBadRequest ¶
func NewCreateBackendSwitchingRuleBadRequest() *CreateBackendSwitchingRuleBadRequest
NewCreateBackendSwitchingRuleBadRequest creates a CreateBackendSwitchingRuleBadRequest with default headers values
func (*CreateBackendSwitchingRuleBadRequest) Error ¶
func (o *CreateBackendSwitchingRuleBadRequest) Error() string
func (*CreateBackendSwitchingRuleBadRequest) GetPayload ¶
func (o *CreateBackendSwitchingRuleBadRequest) GetPayload() *models.Error
type CreateBackendSwitchingRuleConflict ¶
type CreateBackendSwitchingRuleConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateBackendSwitchingRuleConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateBackendSwitchingRuleConflict ¶
func NewCreateBackendSwitchingRuleConflict() *CreateBackendSwitchingRuleConflict
NewCreateBackendSwitchingRuleConflict creates a CreateBackendSwitchingRuleConflict with default headers values
func (*CreateBackendSwitchingRuleConflict) Error ¶
func (o *CreateBackendSwitchingRuleConflict) Error() string
func (*CreateBackendSwitchingRuleConflict) GetPayload ¶
func (o *CreateBackendSwitchingRuleConflict) GetPayload() *models.Error
type CreateBackendSwitchingRuleCreated ¶
type CreateBackendSwitchingRuleCreated struct {
Payload *models.BackendSwitchingRule
}
CreateBackendSwitchingRuleCreated describes a response with status code 201, with default header values.
Backend Switching Rule created
func NewCreateBackendSwitchingRuleCreated ¶
func NewCreateBackendSwitchingRuleCreated() *CreateBackendSwitchingRuleCreated
NewCreateBackendSwitchingRuleCreated creates a CreateBackendSwitchingRuleCreated with default headers values
func (*CreateBackendSwitchingRuleCreated) Error ¶
func (o *CreateBackendSwitchingRuleCreated) Error() string
func (*CreateBackendSwitchingRuleCreated) GetPayload ¶
func (o *CreateBackendSwitchingRuleCreated) GetPayload() *models.BackendSwitchingRule
type CreateBackendSwitchingRuleDefault ¶
type CreateBackendSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateBackendSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewCreateBackendSwitchingRuleDefault ¶
func NewCreateBackendSwitchingRuleDefault(code int) *CreateBackendSwitchingRuleDefault
NewCreateBackendSwitchingRuleDefault creates a CreateBackendSwitchingRuleDefault with default headers values
func (*CreateBackendSwitchingRuleDefault) Code ¶
func (o *CreateBackendSwitchingRuleDefault) Code() int
Code gets the status code for the create backend switching rule default response
func (*CreateBackendSwitchingRuleDefault) Error ¶
func (o *CreateBackendSwitchingRuleDefault) Error() string
func (*CreateBackendSwitchingRuleDefault) GetPayload ¶
func (o *CreateBackendSwitchingRuleDefault) GetPayload() *models.Error
type CreateBackendSwitchingRuleParams ¶
type CreateBackendSwitchingRuleParams struct { // Data. Data *models.BackendSwitchingRule /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* Frontend. Frontend name */ Frontend string /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /* Version. Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateBackendSwitchingRuleParams contains all the parameters to send to the API endpoint
for the create backend switching rule operation. Typically these are written to a http.Request.
func NewCreateBackendSwitchingRuleParams ¶
func NewCreateBackendSwitchingRuleParams() *CreateBackendSwitchingRuleParams
NewCreateBackendSwitchingRuleParams creates a new CreateBackendSwitchingRuleParams 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 NewCreateBackendSwitchingRuleParamsWithContext ¶
func NewCreateBackendSwitchingRuleParamsWithContext(ctx context.Context) *CreateBackendSwitchingRuleParams
NewCreateBackendSwitchingRuleParamsWithContext creates a new CreateBackendSwitchingRuleParams object with the ability to set a context for a request.
func NewCreateBackendSwitchingRuleParamsWithHTTPClient ¶
func NewCreateBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *CreateBackendSwitchingRuleParams
NewCreateBackendSwitchingRuleParamsWithHTTPClient creates a new CreateBackendSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateBackendSwitchingRuleParamsWithTimeout ¶
func NewCreateBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *CreateBackendSwitchingRuleParams
NewCreateBackendSwitchingRuleParamsWithTimeout creates a new CreateBackendSwitchingRuleParams object with the ability to set a timeout on a request.
func (*CreateBackendSwitchingRuleParams) SetContext ¶
func (o *CreateBackendSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetData ¶
func (o *CreateBackendSwitchingRuleParams) SetData(data *models.BackendSwitchingRule)
SetData adds the data to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetDefaults ¶
func (o *CreateBackendSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the create backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackendSwitchingRuleParams) SetForceReload ¶
func (o *CreateBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetFrontend ¶
func (o *CreateBackendSwitchingRuleParams) SetFrontend(frontend string)
SetFrontend adds the frontend to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetHTTPClient ¶
func (o *CreateBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetTimeout ¶
func (o *CreateBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetTransactionID ¶
func (o *CreateBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) SetVersion ¶
func (o *CreateBackendSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithContext ¶
func (o *CreateBackendSwitchingRuleParams) WithContext(ctx context.Context) *CreateBackendSwitchingRuleParams
WithContext adds the context to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithData ¶
func (o *CreateBackendSwitchingRuleParams) WithData(data *models.BackendSwitchingRule) *CreateBackendSwitchingRuleParams
WithData adds the data to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithDefaults ¶
func (o *CreateBackendSwitchingRuleParams) WithDefaults() *CreateBackendSwitchingRuleParams
WithDefaults hydrates default values in the create backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackendSwitchingRuleParams) WithForceReload ¶
func (o *CreateBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *CreateBackendSwitchingRuleParams
WithForceReload adds the forceReload to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithFrontend ¶
func (o *CreateBackendSwitchingRuleParams) WithFrontend(frontend string) *CreateBackendSwitchingRuleParams
WithFrontend adds the frontend to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithHTTPClient ¶
func (o *CreateBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *CreateBackendSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithTimeout ¶
func (o *CreateBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *CreateBackendSwitchingRuleParams
WithTimeout adds the timeout to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithTransactionID ¶
func (o *CreateBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *CreateBackendSwitchingRuleParams
WithTransactionID adds the transactionID to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WithVersion ¶
func (o *CreateBackendSwitchingRuleParams) WithVersion(version *int64) *CreateBackendSwitchingRuleParams
WithVersion adds the version to the create backend switching rule params
func (*CreateBackendSwitchingRuleParams) WriteToRequest ¶
func (o *CreateBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateBackendSwitchingRuleReader ¶
type CreateBackendSwitchingRuleReader struct {
// contains filtered or unexported fields
}
CreateBackendSwitchingRuleReader is a Reader for the CreateBackendSwitchingRule structure.
func (*CreateBackendSwitchingRuleReader) ReadResponse ¶
func (o *CreateBackendSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteBackendSwitchingRuleAccepted ¶
type DeleteBackendSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string }
DeleteBackendSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewDeleteBackendSwitchingRuleAccepted ¶
func NewDeleteBackendSwitchingRuleAccepted() *DeleteBackendSwitchingRuleAccepted
NewDeleteBackendSwitchingRuleAccepted creates a DeleteBackendSwitchingRuleAccepted with default headers values
func (*DeleteBackendSwitchingRuleAccepted) Error ¶
func (o *DeleteBackendSwitchingRuleAccepted) Error() string
type DeleteBackendSwitchingRuleDefault ¶
type DeleteBackendSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteBackendSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewDeleteBackendSwitchingRuleDefault ¶
func NewDeleteBackendSwitchingRuleDefault(code int) *DeleteBackendSwitchingRuleDefault
NewDeleteBackendSwitchingRuleDefault creates a DeleteBackendSwitchingRuleDefault with default headers values
func (*DeleteBackendSwitchingRuleDefault) Code ¶
func (o *DeleteBackendSwitchingRuleDefault) Code() int
Code gets the status code for the delete backend switching rule default response
func (*DeleteBackendSwitchingRuleDefault) Error ¶
func (o *DeleteBackendSwitchingRuleDefault) Error() string
func (*DeleteBackendSwitchingRuleDefault) GetPayload ¶
func (o *DeleteBackendSwitchingRuleDefault) GetPayload() *models.Error
type DeleteBackendSwitchingRuleNoContent ¶
type DeleteBackendSwitchingRuleNoContent struct { }
DeleteBackendSwitchingRuleNoContent describes a response with status code 204, with default header values.
Backend Switching Rule deleted
func NewDeleteBackendSwitchingRuleNoContent ¶
func NewDeleteBackendSwitchingRuleNoContent() *DeleteBackendSwitchingRuleNoContent
NewDeleteBackendSwitchingRuleNoContent creates a DeleteBackendSwitchingRuleNoContent with default headers values
func (*DeleteBackendSwitchingRuleNoContent) Error ¶
func (o *DeleteBackendSwitchingRuleNoContent) Error() string
type DeleteBackendSwitchingRuleNotFound ¶
type DeleteBackendSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteBackendSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewDeleteBackendSwitchingRuleNotFound ¶
func NewDeleteBackendSwitchingRuleNotFound() *DeleteBackendSwitchingRuleNotFound
NewDeleteBackendSwitchingRuleNotFound creates a DeleteBackendSwitchingRuleNotFound with default headers values
func (*DeleteBackendSwitchingRuleNotFound) Error ¶
func (o *DeleteBackendSwitchingRuleNotFound) Error() string
func (*DeleteBackendSwitchingRuleNotFound) GetPayload ¶
func (o *DeleteBackendSwitchingRuleNotFound) GetPayload() *models.Error
type DeleteBackendSwitchingRuleParams ¶
type DeleteBackendSwitchingRuleParams struct { /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* Frontend. Frontend name */ Frontend string /* Index. Switching 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 }
DeleteBackendSwitchingRuleParams contains all the parameters to send to the API endpoint
for the delete backend switching rule operation. Typically these are written to a http.Request.
func NewDeleteBackendSwitchingRuleParams ¶
func NewDeleteBackendSwitchingRuleParams() *DeleteBackendSwitchingRuleParams
NewDeleteBackendSwitchingRuleParams creates a new DeleteBackendSwitchingRuleParams 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 NewDeleteBackendSwitchingRuleParamsWithContext ¶
func NewDeleteBackendSwitchingRuleParamsWithContext(ctx context.Context) *DeleteBackendSwitchingRuleParams
NewDeleteBackendSwitchingRuleParamsWithContext creates a new DeleteBackendSwitchingRuleParams object with the ability to set a context for a request.
func NewDeleteBackendSwitchingRuleParamsWithHTTPClient ¶
func NewDeleteBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *DeleteBackendSwitchingRuleParams
NewDeleteBackendSwitchingRuleParamsWithHTTPClient creates a new DeleteBackendSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteBackendSwitchingRuleParamsWithTimeout ¶
func NewDeleteBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *DeleteBackendSwitchingRuleParams
NewDeleteBackendSwitchingRuleParamsWithTimeout creates a new DeleteBackendSwitchingRuleParams object with the ability to set a timeout on a request.
func (*DeleteBackendSwitchingRuleParams) SetContext ¶
func (o *DeleteBackendSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetDefaults ¶
func (o *DeleteBackendSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the delete backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackendSwitchingRuleParams) SetForceReload ¶
func (o *DeleteBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetFrontend ¶
func (o *DeleteBackendSwitchingRuleParams) SetFrontend(frontend string)
SetFrontend adds the frontend to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetHTTPClient ¶
func (o *DeleteBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetIndex ¶
func (o *DeleteBackendSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetTimeout ¶
func (o *DeleteBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetTransactionID ¶
func (o *DeleteBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) SetVersion ¶
func (o *DeleteBackendSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithContext ¶
func (o *DeleteBackendSwitchingRuleParams) WithContext(ctx context.Context) *DeleteBackendSwitchingRuleParams
WithContext adds the context to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithDefaults ¶
func (o *DeleteBackendSwitchingRuleParams) WithDefaults() *DeleteBackendSwitchingRuleParams
WithDefaults hydrates default values in the delete backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackendSwitchingRuleParams) WithForceReload ¶
func (o *DeleteBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *DeleteBackendSwitchingRuleParams
WithForceReload adds the forceReload to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithFrontend ¶
func (o *DeleteBackendSwitchingRuleParams) WithFrontend(frontend string) *DeleteBackendSwitchingRuleParams
WithFrontend adds the frontend to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithHTTPClient ¶
func (o *DeleteBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *DeleteBackendSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithIndex ¶
func (o *DeleteBackendSwitchingRuleParams) WithIndex(index int64) *DeleteBackendSwitchingRuleParams
WithIndex adds the index to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithTimeout ¶
func (o *DeleteBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *DeleteBackendSwitchingRuleParams
WithTimeout adds the timeout to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithTransactionID ¶
func (o *DeleteBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *DeleteBackendSwitchingRuleParams
WithTransactionID adds the transactionID to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WithVersion ¶
func (o *DeleteBackendSwitchingRuleParams) WithVersion(version *int64) *DeleteBackendSwitchingRuleParams
WithVersion adds the version to the delete backend switching rule params
func (*DeleteBackendSwitchingRuleParams) WriteToRequest ¶
func (o *DeleteBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteBackendSwitchingRuleReader ¶
type DeleteBackendSwitchingRuleReader struct {
// contains filtered or unexported fields
}
DeleteBackendSwitchingRuleReader is a Reader for the DeleteBackendSwitchingRule structure.
func (*DeleteBackendSwitchingRuleReader) ReadResponse ¶
func (o *DeleteBackendSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBackendSwitchingRuleDefault ¶
type GetBackendSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetBackendSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewGetBackendSwitchingRuleDefault ¶
func NewGetBackendSwitchingRuleDefault(code int) *GetBackendSwitchingRuleDefault
NewGetBackendSwitchingRuleDefault creates a GetBackendSwitchingRuleDefault with default headers values
func (*GetBackendSwitchingRuleDefault) Code ¶
func (o *GetBackendSwitchingRuleDefault) Code() int
Code gets the status code for the get backend switching rule default response
func (*GetBackendSwitchingRuleDefault) Error ¶
func (o *GetBackendSwitchingRuleDefault) Error() string
func (*GetBackendSwitchingRuleDefault) GetPayload ¶
func (o *GetBackendSwitchingRuleDefault) GetPayload() *models.Error
type GetBackendSwitchingRuleNotFound ¶
type GetBackendSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetBackendSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewGetBackendSwitchingRuleNotFound ¶
func NewGetBackendSwitchingRuleNotFound() *GetBackendSwitchingRuleNotFound
NewGetBackendSwitchingRuleNotFound creates a GetBackendSwitchingRuleNotFound with default headers values
func (*GetBackendSwitchingRuleNotFound) Error ¶
func (o *GetBackendSwitchingRuleNotFound) Error() string
func (*GetBackendSwitchingRuleNotFound) GetPayload ¶
func (o *GetBackendSwitchingRuleNotFound) GetPayload() *models.Error
type GetBackendSwitchingRuleOK ¶
type GetBackendSwitchingRuleOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetBackendSwitchingRuleOKBody }
GetBackendSwitchingRuleOK describes a response with status code 200, with default header values.
Successful operation
func NewGetBackendSwitchingRuleOK ¶
func NewGetBackendSwitchingRuleOK() *GetBackendSwitchingRuleOK
NewGetBackendSwitchingRuleOK creates a GetBackendSwitchingRuleOK with default headers values
func (*GetBackendSwitchingRuleOK) Error ¶
func (o *GetBackendSwitchingRuleOK) Error() string
func (*GetBackendSwitchingRuleOK) GetPayload ¶
func (o *GetBackendSwitchingRuleOK) GetPayload() *GetBackendSwitchingRuleOKBody
type GetBackendSwitchingRuleOKBody ¶
type GetBackendSwitchingRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.BackendSwitchingRule `json:"data,omitempty"` }
GetBackendSwitchingRuleOKBody get backend switching rule o k body swagger:model GetBackendSwitchingRuleOKBody
func (*GetBackendSwitchingRuleOKBody) ContextValidate ¶
func (o *GetBackendSwitchingRuleOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get backend switching rule o k body based on the context it is used
func (*GetBackendSwitchingRuleOKBody) MarshalBinary ¶
func (o *GetBackendSwitchingRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendSwitchingRuleOKBody) UnmarshalBinary ¶
func (o *GetBackendSwitchingRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendSwitchingRuleParams ¶
type GetBackendSwitchingRuleParams struct { /* Frontend. Frontend name */ Frontend string /* Index. Switching 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 }
GetBackendSwitchingRuleParams contains all the parameters to send to the API endpoint
for the get backend switching rule operation. Typically these are written to a http.Request.
func NewGetBackendSwitchingRuleParams ¶
func NewGetBackendSwitchingRuleParams() *GetBackendSwitchingRuleParams
NewGetBackendSwitchingRuleParams creates a new GetBackendSwitchingRuleParams 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 NewGetBackendSwitchingRuleParamsWithContext ¶
func NewGetBackendSwitchingRuleParamsWithContext(ctx context.Context) *GetBackendSwitchingRuleParams
NewGetBackendSwitchingRuleParamsWithContext creates a new GetBackendSwitchingRuleParams object with the ability to set a context for a request.
func NewGetBackendSwitchingRuleParamsWithHTTPClient ¶
func NewGetBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *GetBackendSwitchingRuleParams
NewGetBackendSwitchingRuleParamsWithHTTPClient creates a new GetBackendSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewGetBackendSwitchingRuleParamsWithTimeout ¶
func NewGetBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *GetBackendSwitchingRuleParams
NewGetBackendSwitchingRuleParamsWithTimeout creates a new GetBackendSwitchingRuleParams object with the ability to set a timeout on a request.
func (*GetBackendSwitchingRuleParams) SetContext ¶
func (o *GetBackendSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) SetDefaults ¶
func (o *GetBackendSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the get backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendSwitchingRuleParams) SetFrontend ¶
func (o *GetBackendSwitchingRuleParams) SetFrontend(frontend string)
SetFrontend adds the frontend to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) SetHTTPClient ¶
func (o *GetBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) SetIndex ¶
func (o *GetBackendSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) SetTimeout ¶
func (o *GetBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) SetTransactionID ¶
func (o *GetBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithContext ¶
func (o *GetBackendSwitchingRuleParams) WithContext(ctx context.Context) *GetBackendSwitchingRuleParams
WithContext adds the context to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithDefaults ¶
func (o *GetBackendSwitchingRuleParams) WithDefaults() *GetBackendSwitchingRuleParams
WithDefaults hydrates default values in the get backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendSwitchingRuleParams) WithFrontend ¶
func (o *GetBackendSwitchingRuleParams) WithFrontend(frontend string) *GetBackendSwitchingRuleParams
WithFrontend adds the frontend to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithHTTPClient ¶
func (o *GetBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *GetBackendSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithIndex ¶
func (o *GetBackendSwitchingRuleParams) WithIndex(index int64) *GetBackendSwitchingRuleParams
WithIndex adds the index to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithTimeout ¶
func (o *GetBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *GetBackendSwitchingRuleParams
WithTimeout adds the timeout to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WithTransactionID ¶
func (o *GetBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *GetBackendSwitchingRuleParams
WithTransactionID adds the transactionID to the get backend switching rule params
func (*GetBackendSwitchingRuleParams) WriteToRequest ¶
func (o *GetBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBackendSwitchingRuleReader ¶
type GetBackendSwitchingRuleReader struct {
// contains filtered or unexported fields
}
GetBackendSwitchingRuleReader is a Reader for the GetBackendSwitchingRule structure.
func (*GetBackendSwitchingRuleReader) ReadResponse ¶
func (o *GetBackendSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBackendSwitchingRulesDefault ¶
type GetBackendSwitchingRulesDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetBackendSwitchingRulesDefault describes a response with status code -1, with default header values.
General Error
func NewGetBackendSwitchingRulesDefault ¶
func NewGetBackendSwitchingRulesDefault(code int) *GetBackendSwitchingRulesDefault
NewGetBackendSwitchingRulesDefault creates a GetBackendSwitchingRulesDefault with default headers values
func (*GetBackendSwitchingRulesDefault) Code ¶
func (o *GetBackendSwitchingRulesDefault) Code() int
Code gets the status code for the get backend switching rules default response
func (*GetBackendSwitchingRulesDefault) Error ¶
func (o *GetBackendSwitchingRulesDefault) Error() string
func (*GetBackendSwitchingRulesDefault) GetPayload ¶
func (o *GetBackendSwitchingRulesDefault) GetPayload() *models.Error
type GetBackendSwitchingRulesOK ¶
type GetBackendSwitchingRulesOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetBackendSwitchingRulesOKBody }
GetBackendSwitchingRulesOK describes a response with status code 200, with default header values.
Successful operation
func NewGetBackendSwitchingRulesOK ¶
func NewGetBackendSwitchingRulesOK() *GetBackendSwitchingRulesOK
NewGetBackendSwitchingRulesOK creates a GetBackendSwitchingRulesOK with default headers values
func (*GetBackendSwitchingRulesOK) Error ¶
func (o *GetBackendSwitchingRulesOK) Error() string
func (*GetBackendSwitchingRulesOK) GetPayload ¶
func (o *GetBackendSwitchingRulesOK) GetPayload() *GetBackendSwitchingRulesOKBody
type GetBackendSwitchingRulesOKBody ¶
type GetBackendSwitchingRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.BackendSwitchingRules `json:"data"` }
GetBackendSwitchingRulesOKBody get backend switching rules o k body swagger:model GetBackendSwitchingRulesOKBody
func (*GetBackendSwitchingRulesOKBody) ContextValidate ¶
func (o *GetBackendSwitchingRulesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get backend switching rules o k body based on the context it is used
func (*GetBackendSwitchingRulesOKBody) MarshalBinary ¶
func (o *GetBackendSwitchingRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackendSwitchingRulesOKBody) UnmarshalBinary ¶
func (o *GetBackendSwitchingRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackendSwitchingRulesParams ¶
type GetBackendSwitchingRulesParams struct { /* Frontend. Frontend name */ Frontend string /* TransactionID. ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBackendSwitchingRulesParams contains all the parameters to send to the API endpoint
for the get backend switching rules operation. Typically these are written to a http.Request.
func NewGetBackendSwitchingRulesParams ¶
func NewGetBackendSwitchingRulesParams() *GetBackendSwitchingRulesParams
NewGetBackendSwitchingRulesParams creates a new GetBackendSwitchingRulesParams 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 NewGetBackendSwitchingRulesParamsWithContext ¶
func NewGetBackendSwitchingRulesParamsWithContext(ctx context.Context) *GetBackendSwitchingRulesParams
NewGetBackendSwitchingRulesParamsWithContext creates a new GetBackendSwitchingRulesParams object with the ability to set a context for a request.
func NewGetBackendSwitchingRulesParamsWithHTTPClient ¶
func NewGetBackendSwitchingRulesParamsWithHTTPClient(client *http.Client) *GetBackendSwitchingRulesParams
NewGetBackendSwitchingRulesParamsWithHTTPClient creates a new GetBackendSwitchingRulesParams object with the ability to set a custom HTTPClient for a request.
func NewGetBackendSwitchingRulesParamsWithTimeout ¶
func NewGetBackendSwitchingRulesParamsWithTimeout(timeout time.Duration) *GetBackendSwitchingRulesParams
NewGetBackendSwitchingRulesParamsWithTimeout creates a new GetBackendSwitchingRulesParams object with the ability to set a timeout on a request.
func (*GetBackendSwitchingRulesParams) SetContext ¶
func (o *GetBackendSwitchingRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) SetDefaults ¶
func (o *GetBackendSwitchingRulesParams) SetDefaults()
SetDefaults hydrates default values in the get backend switching rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendSwitchingRulesParams) SetFrontend ¶
func (o *GetBackendSwitchingRulesParams) SetFrontend(frontend string)
SetFrontend adds the frontend to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) SetHTTPClient ¶
func (o *GetBackendSwitchingRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) SetTimeout ¶
func (o *GetBackendSwitchingRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) SetTransactionID ¶
func (o *GetBackendSwitchingRulesParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WithContext ¶
func (o *GetBackendSwitchingRulesParams) WithContext(ctx context.Context) *GetBackendSwitchingRulesParams
WithContext adds the context to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WithDefaults ¶
func (o *GetBackendSwitchingRulesParams) WithDefaults() *GetBackendSwitchingRulesParams
WithDefaults hydrates default values in the get backend switching rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackendSwitchingRulesParams) WithFrontend ¶
func (o *GetBackendSwitchingRulesParams) WithFrontend(frontend string) *GetBackendSwitchingRulesParams
WithFrontend adds the frontend to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WithHTTPClient ¶
func (o *GetBackendSwitchingRulesParams) WithHTTPClient(client *http.Client) *GetBackendSwitchingRulesParams
WithHTTPClient adds the HTTPClient to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WithTimeout ¶
func (o *GetBackendSwitchingRulesParams) WithTimeout(timeout time.Duration) *GetBackendSwitchingRulesParams
WithTimeout adds the timeout to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WithTransactionID ¶
func (o *GetBackendSwitchingRulesParams) WithTransactionID(transactionID *string) *GetBackendSwitchingRulesParams
WithTransactionID adds the transactionID to the get backend switching rules params
func (*GetBackendSwitchingRulesParams) WriteToRequest ¶
func (o *GetBackendSwitchingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBackendSwitchingRulesReader ¶
type GetBackendSwitchingRulesReader struct {
// contains filtered or unexported fields
}
GetBackendSwitchingRulesReader is a Reader for the GetBackendSwitchingRules structure.
func (*GetBackendSwitchingRulesReader) ReadResponse ¶
func (o *GetBackendSwitchingRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceBackendSwitchingRuleAccepted ¶
type ReplaceBackendSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.BackendSwitchingRule }
ReplaceBackendSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewReplaceBackendSwitchingRuleAccepted ¶
func NewReplaceBackendSwitchingRuleAccepted() *ReplaceBackendSwitchingRuleAccepted
NewReplaceBackendSwitchingRuleAccepted creates a ReplaceBackendSwitchingRuleAccepted with default headers values
func (*ReplaceBackendSwitchingRuleAccepted) Error ¶
func (o *ReplaceBackendSwitchingRuleAccepted) Error() string
func (*ReplaceBackendSwitchingRuleAccepted) GetPayload ¶
func (o *ReplaceBackendSwitchingRuleAccepted) GetPayload() *models.BackendSwitchingRule
type ReplaceBackendSwitchingRuleBadRequest ¶
type ReplaceBackendSwitchingRuleBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceBackendSwitchingRuleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceBackendSwitchingRuleBadRequest ¶
func NewReplaceBackendSwitchingRuleBadRequest() *ReplaceBackendSwitchingRuleBadRequest
NewReplaceBackendSwitchingRuleBadRequest creates a ReplaceBackendSwitchingRuleBadRequest with default headers values
func (*ReplaceBackendSwitchingRuleBadRequest) Error ¶
func (o *ReplaceBackendSwitchingRuleBadRequest) Error() string
func (*ReplaceBackendSwitchingRuleBadRequest) GetPayload ¶
func (o *ReplaceBackendSwitchingRuleBadRequest) GetPayload() *models.Error
type ReplaceBackendSwitchingRuleDefault ¶
type ReplaceBackendSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceBackendSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewReplaceBackendSwitchingRuleDefault ¶
func NewReplaceBackendSwitchingRuleDefault(code int) *ReplaceBackendSwitchingRuleDefault
NewReplaceBackendSwitchingRuleDefault creates a ReplaceBackendSwitchingRuleDefault with default headers values
func (*ReplaceBackendSwitchingRuleDefault) Code ¶
func (o *ReplaceBackendSwitchingRuleDefault) Code() int
Code gets the status code for the replace backend switching rule default response
func (*ReplaceBackendSwitchingRuleDefault) Error ¶
func (o *ReplaceBackendSwitchingRuleDefault) Error() string
func (*ReplaceBackendSwitchingRuleDefault) GetPayload ¶
func (o *ReplaceBackendSwitchingRuleDefault) GetPayload() *models.Error
type ReplaceBackendSwitchingRuleNotFound ¶
type ReplaceBackendSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceBackendSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewReplaceBackendSwitchingRuleNotFound ¶
func NewReplaceBackendSwitchingRuleNotFound() *ReplaceBackendSwitchingRuleNotFound
NewReplaceBackendSwitchingRuleNotFound creates a ReplaceBackendSwitchingRuleNotFound with default headers values
func (*ReplaceBackendSwitchingRuleNotFound) Error ¶
func (o *ReplaceBackendSwitchingRuleNotFound) Error() string
func (*ReplaceBackendSwitchingRuleNotFound) GetPayload ¶
func (o *ReplaceBackendSwitchingRuleNotFound) GetPayload() *models.Error
type ReplaceBackendSwitchingRuleOK ¶
type ReplaceBackendSwitchingRuleOK struct {
Payload *models.BackendSwitchingRule
}
ReplaceBackendSwitchingRuleOK describes a response with status code 200, with default header values.
Backend Switching Rule replaced
func NewReplaceBackendSwitchingRuleOK ¶
func NewReplaceBackendSwitchingRuleOK() *ReplaceBackendSwitchingRuleOK
NewReplaceBackendSwitchingRuleOK creates a ReplaceBackendSwitchingRuleOK with default headers values
func (*ReplaceBackendSwitchingRuleOK) Error ¶
func (o *ReplaceBackendSwitchingRuleOK) Error() string
func (*ReplaceBackendSwitchingRuleOK) GetPayload ¶
func (o *ReplaceBackendSwitchingRuleOK) GetPayload() *models.BackendSwitchingRule
type ReplaceBackendSwitchingRuleParams ¶
type ReplaceBackendSwitchingRuleParams struct { // Data. Data *models.BackendSwitchingRule /* ForceReload. If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /* Frontend. Frontend name */ Frontend string /* Index. Switching 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 }
ReplaceBackendSwitchingRuleParams contains all the parameters to send to the API endpoint
for the replace backend switching rule operation. Typically these are written to a http.Request.
func NewReplaceBackendSwitchingRuleParams ¶
func NewReplaceBackendSwitchingRuleParams() *ReplaceBackendSwitchingRuleParams
NewReplaceBackendSwitchingRuleParams creates a new ReplaceBackendSwitchingRuleParams 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 NewReplaceBackendSwitchingRuleParamsWithContext ¶
func NewReplaceBackendSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceBackendSwitchingRuleParams
NewReplaceBackendSwitchingRuleParamsWithContext creates a new ReplaceBackendSwitchingRuleParams object with the ability to set a context for a request.
func NewReplaceBackendSwitchingRuleParamsWithHTTPClient ¶
func NewReplaceBackendSwitchingRuleParamsWithHTTPClient(client *http.Client) *ReplaceBackendSwitchingRuleParams
NewReplaceBackendSwitchingRuleParamsWithHTTPClient creates a new ReplaceBackendSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewReplaceBackendSwitchingRuleParamsWithTimeout ¶
func NewReplaceBackendSwitchingRuleParamsWithTimeout(timeout time.Duration) *ReplaceBackendSwitchingRuleParams
NewReplaceBackendSwitchingRuleParamsWithTimeout creates a new ReplaceBackendSwitchingRuleParams object with the ability to set a timeout on a request.
func (*ReplaceBackendSwitchingRuleParams) SetContext ¶
func (o *ReplaceBackendSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetData ¶
func (o *ReplaceBackendSwitchingRuleParams) SetData(data *models.BackendSwitchingRule)
SetData adds the data to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetDefaults ¶
func (o *ReplaceBackendSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the replace backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceBackendSwitchingRuleParams) SetForceReload ¶
func (o *ReplaceBackendSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetFrontend ¶
func (o *ReplaceBackendSwitchingRuleParams) SetFrontend(frontend string)
SetFrontend adds the frontend to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetHTTPClient ¶
func (o *ReplaceBackendSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetIndex ¶
func (o *ReplaceBackendSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetTimeout ¶
func (o *ReplaceBackendSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetTransactionID ¶
func (o *ReplaceBackendSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) SetVersion ¶
func (o *ReplaceBackendSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithContext ¶
func (o *ReplaceBackendSwitchingRuleParams) WithContext(ctx context.Context) *ReplaceBackendSwitchingRuleParams
WithContext adds the context to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithData ¶
func (o *ReplaceBackendSwitchingRuleParams) WithData(data *models.BackendSwitchingRule) *ReplaceBackendSwitchingRuleParams
WithData adds the data to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithDefaults ¶
func (o *ReplaceBackendSwitchingRuleParams) WithDefaults() *ReplaceBackendSwitchingRuleParams
WithDefaults hydrates default values in the replace backend switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceBackendSwitchingRuleParams) WithForceReload ¶
func (o *ReplaceBackendSwitchingRuleParams) WithForceReload(forceReload *bool) *ReplaceBackendSwitchingRuleParams
WithForceReload adds the forceReload to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithFrontend ¶
func (o *ReplaceBackendSwitchingRuleParams) WithFrontend(frontend string) *ReplaceBackendSwitchingRuleParams
WithFrontend adds the frontend to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithHTTPClient ¶
func (o *ReplaceBackendSwitchingRuleParams) WithHTTPClient(client *http.Client) *ReplaceBackendSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithIndex ¶
func (o *ReplaceBackendSwitchingRuleParams) WithIndex(index int64) *ReplaceBackendSwitchingRuleParams
WithIndex adds the index to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithTimeout ¶
func (o *ReplaceBackendSwitchingRuleParams) WithTimeout(timeout time.Duration) *ReplaceBackendSwitchingRuleParams
WithTimeout adds the timeout to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithTransactionID ¶
func (o *ReplaceBackendSwitchingRuleParams) WithTransactionID(transactionID *string) *ReplaceBackendSwitchingRuleParams
WithTransactionID adds the transactionID to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WithVersion ¶
func (o *ReplaceBackendSwitchingRuleParams) WithVersion(version *int64) *ReplaceBackendSwitchingRuleParams
WithVersion adds the version to the replace backend switching rule params
func (*ReplaceBackendSwitchingRuleParams) WriteToRequest ¶
func (o *ReplaceBackendSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceBackendSwitchingRuleReader ¶
type ReplaceBackendSwitchingRuleReader struct {
// contains filtered or unexported fields
}
ReplaceBackendSwitchingRuleReader is a Reader for the ReplaceBackendSwitchingRule structure.
func (*ReplaceBackendSwitchingRuleReader) ReadResponse ¶
func (o *ReplaceBackendSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- backend_switching_rule_client.go
- create_backend_switching_rule_parameters.go
- create_backend_switching_rule_responses.go
- delete_backend_switching_rule_parameters.go
- delete_backend_switching_rule_responses.go
- get_backend_switching_rule_parameters.go
- get_backend_switching_rule_responses.go
- get_backend_switching_rules_parameters.go
- get_backend_switching_rules_responses.go
- replace_backend_switching_rule_parameters.go
- replace_backend_switching_rule_responses.go