Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateServerSwitchingRule(params *CreateServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateServerSwitchingRuleCreated, *CreateServerSwitchingRuleAccepted, error)
- func (a *Client) DeleteServerSwitchingRule(params *DeleteServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteServerSwitchingRuleAccepted, *DeleteServerSwitchingRuleNoContent, error)
- func (a *Client) GetServerSwitchingRule(params *GetServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetServerSwitchingRuleOK, error)
- func (a *Client) GetServerSwitchingRules(params *GetServerSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetServerSwitchingRulesOK, error)
- func (a *Client) ReplaceServerSwitchingRule(params *ReplaceServerSwitchingRuleParams, ...) (*ReplaceServerSwitchingRuleOK, *ReplaceServerSwitchingRuleAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateServerSwitchingRuleAccepted
- type CreateServerSwitchingRuleBadRequest
- type CreateServerSwitchingRuleConflict
- type CreateServerSwitchingRuleCreated
- type CreateServerSwitchingRuleDefault
- type CreateServerSwitchingRuleParams
- func NewCreateServerSwitchingRuleParams() *CreateServerSwitchingRuleParams
- func NewCreateServerSwitchingRuleParamsWithContext(ctx context.Context) *CreateServerSwitchingRuleParams
- func NewCreateServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *CreateServerSwitchingRuleParams
- func NewCreateServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) SetBackend(backend string)
- func (o *CreateServerSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *CreateServerSwitchingRuleParams) SetData(data *models.ServerSwitchingRule)
- func (o *CreateServerSwitchingRuleParams) SetDefaults()
- func (o *CreateServerSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *CreateServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateServerSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *CreateServerSwitchingRuleParams) SetVersion(version *int64)
- func (o *CreateServerSwitchingRuleParams) WithBackend(backend string) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithContext(ctx context.Context) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithData(data *models.ServerSwitchingRule) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithDefaults() *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithForceReload(forceReload *bool) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithTransactionID(transactionID *string) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WithVersion(version *int64) *CreateServerSwitchingRuleParams
- func (o *CreateServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServerSwitchingRuleReader
- type DeleteServerSwitchingRuleAccepted
- type DeleteServerSwitchingRuleDefault
- type DeleteServerSwitchingRuleNoContent
- type DeleteServerSwitchingRuleNotFound
- type DeleteServerSwitchingRuleParams
- func NewDeleteServerSwitchingRuleParams() *DeleteServerSwitchingRuleParams
- func NewDeleteServerSwitchingRuleParamsWithContext(ctx context.Context) *DeleteServerSwitchingRuleParams
- func NewDeleteServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *DeleteServerSwitchingRuleParams
- func NewDeleteServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) SetBackend(backend string)
- func (o *DeleteServerSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *DeleteServerSwitchingRuleParams) SetDefaults()
- func (o *DeleteServerSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *DeleteServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServerSwitchingRuleParams) SetIndex(index int64)
- func (o *DeleteServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServerSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *DeleteServerSwitchingRuleParams) SetVersion(version *int64)
- func (o *DeleteServerSwitchingRuleParams) WithBackend(backend string) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithContext(ctx context.Context) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithDefaults() *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithForceReload(forceReload *bool) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithIndex(index int64) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithTransactionID(transactionID *string) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WithVersion(version *int64) *DeleteServerSwitchingRuleParams
- func (o *DeleteServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServerSwitchingRuleReader
- type GetServerSwitchingRuleDefault
- type GetServerSwitchingRuleNotFound
- type GetServerSwitchingRuleOK
- type GetServerSwitchingRuleOKBody
- func (o *GetServerSwitchingRuleOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetServerSwitchingRuleOKBody) MarshalBinary() ([]byte, error)
- func (o *GetServerSwitchingRuleOKBody) UnmarshalBinary(b []byte) error
- func (o *GetServerSwitchingRuleOKBody) Validate(formats strfmt.Registry) error
- type GetServerSwitchingRuleParams
- func NewGetServerSwitchingRuleParams() *GetServerSwitchingRuleParams
- func NewGetServerSwitchingRuleParamsWithContext(ctx context.Context) *GetServerSwitchingRuleParams
- func NewGetServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRuleParams
- func NewGetServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) SetBackend(backend string)
- func (o *GetServerSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *GetServerSwitchingRuleParams) SetDefaults()
- func (o *GetServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetServerSwitchingRuleParams) SetIndex(index int64)
- func (o *GetServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetServerSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *GetServerSwitchingRuleParams) WithBackend(backend string) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithContext(ctx context.Context) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithDefaults() *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithIndex(index int64) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WithTransactionID(transactionID *string) *GetServerSwitchingRuleParams
- func (o *GetServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServerSwitchingRuleReader
- type GetServerSwitchingRulesDefault
- type GetServerSwitchingRulesOK
- type GetServerSwitchingRulesOKBody
- func (o *GetServerSwitchingRulesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetServerSwitchingRulesOKBody) MarshalBinary() ([]byte, error)
- func (o *GetServerSwitchingRulesOKBody) UnmarshalBinary(b []byte) error
- func (o *GetServerSwitchingRulesOKBody) Validate(formats strfmt.Registry) error
- type GetServerSwitchingRulesParams
- func NewGetServerSwitchingRulesParams() *GetServerSwitchingRulesParams
- func NewGetServerSwitchingRulesParamsWithContext(ctx context.Context) *GetServerSwitchingRulesParams
- func NewGetServerSwitchingRulesParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRulesParams
- func NewGetServerSwitchingRulesParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) SetBackend(backend string)
- func (o *GetServerSwitchingRulesParams) SetContext(ctx context.Context)
- func (o *GetServerSwitchingRulesParams) SetDefaults()
- func (o *GetServerSwitchingRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetServerSwitchingRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetServerSwitchingRulesParams) SetTransactionID(transactionID *string)
- func (o *GetServerSwitchingRulesParams) WithBackend(backend string) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WithContext(ctx context.Context) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WithDefaults() *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WithHTTPClient(client *http.Client) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WithTimeout(timeout time.Duration) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WithTransactionID(transactionID *string) *GetServerSwitchingRulesParams
- func (o *GetServerSwitchingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServerSwitchingRulesReader
- type ReplaceServerSwitchingRuleAccepted
- type ReplaceServerSwitchingRuleBadRequest
- type ReplaceServerSwitchingRuleDefault
- type ReplaceServerSwitchingRuleNotFound
- type ReplaceServerSwitchingRuleOK
- type ReplaceServerSwitchingRuleParams
- func NewReplaceServerSwitchingRuleParams() *ReplaceServerSwitchingRuleParams
- func NewReplaceServerSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams
- func NewReplaceServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *ReplaceServerSwitchingRuleParams
- func NewReplaceServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) SetBackend(backend string)
- func (o *ReplaceServerSwitchingRuleParams) SetContext(ctx context.Context)
- func (o *ReplaceServerSwitchingRuleParams) SetData(data *models.ServerSwitchingRule)
- func (o *ReplaceServerSwitchingRuleParams) SetDefaults()
- func (o *ReplaceServerSwitchingRuleParams) SetForceReload(forceReload *bool)
- func (o *ReplaceServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceServerSwitchingRuleParams) SetIndex(index int64)
- func (o *ReplaceServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceServerSwitchingRuleParams) SetTransactionID(transactionID *string)
- func (o *ReplaceServerSwitchingRuleParams) SetVersion(version *int64)
- func (o *ReplaceServerSwitchingRuleParams) WithBackend(backend string) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithData(data *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithDefaults() *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithForceReload(forceReload *bool) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithIndex(index int64) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithTransactionID(transactionID *string) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WithVersion(version *int64) *ReplaceServerSwitchingRuleParams
- func (o *ReplaceServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceServerSwitchingRuleReader
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 server switching rule API
func (*Client) CreateServerSwitchingRule ¶
func (a *Client) CreateServerSwitchingRule(params *CreateServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerSwitchingRuleCreated, *CreateServerSwitchingRuleAccepted, error)
CreateServerSwitchingRule adds a new server switching rule
Adds a new Server Switching Rule of the specified type in the specified backend.
func (*Client) DeleteServerSwitchingRule ¶
func (a *Client) DeleteServerSwitchingRule(params *DeleteServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServerSwitchingRuleAccepted, *DeleteServerSwitchingRuleNoContent, error)
DeleteServerSwitchingRule deletes a server switching rule
Deletes a Server Switching Rule configuration by it's index from the specified backend.
func (*Client) GetServerSwitchingRule ¶
func (a *Client) GetServerSwitchingRule(params *GetServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRuleOK, error)
GetServerSwitchingRule returns one server switching rule
Returns one Server Switching Rule configuration by it's index in the specified backend.
func (*Client) GetServerSwitchingRules ¶
func (a *Client) GetServerSwitchingRules(params *GetServerSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRulesOK, error)
GetServerSwitchingRules returns an array of all server switching rules
Returns all Backend Switching Rules that are configured in specified backend.
func (*Client) ReplaceServerSwitchingRule ¶
func (a *Client) ReplaceServerSwitchingRule(params *ReplaceServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceServerSwitchingRuleOK, *ReplaceServerSwitchingRuleAccepted, error)
ReplaceServerSwitchingRule replaces a server switching rule
Replaces a Server Switching 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 { CreateServerSwitchingRule(params *CreateServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerSwitchingRuleCreated, *CreateServerSwitchingRuleAccepted, error) DeleteServerSwitchingRule(params *DeleteServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServerSwitchingRuleAccepted, *DeleteServerSwitchingRuleNoContent, error) GetServerSwitchingRule(params *GetServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRuleOK, error) GetServerSwitchingRules(params *GetServerSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRulesOK, error) ReplaceServerSwitchingRule(params *ReplaceServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceServerSwitchingRuleOK, *ReplaceServerSwitchingRuleAccepted, 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 server switching rule API client.
type CreateServerSwitchingRuleAccepted ¶
type CreateServerSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.ServerSwitchingRule }
CreateServerSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewCreateServerSwitchingRuleAccepted ¶
func NewCreateServerSwitchingRuleAccepted() *CreateServerSwitchingRuleAccepted
NewCreateServerSwitchingRuleAccepted creates a CreateServerSwitchingRuleAccepted with default headers values
func (*CreateServerSwitchingRuleAccepted) Error ¶
func (o *CreateServerSwitchingRuleAccepted) Error() string
func (*CreateServerSwitchingRuleAccepted) GetPayload ¶
func (o *CreateServerSwitchingRuleAccepted) GetPayload() *models.ServerSwitchingRule
type CreateServerSwitchingRuleBadRequest ¶
type CreateServerSwitchingRuleBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateServerSwitchingRuleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateServerSwitchingRuleBadRequest ¶
func NewCreateServerSwitchingRuleBadRequest() *CreateServerSwitchingRuleBadRequest
NewCreateServerSwitchingRuleBadRequest creates a CreateServerSwitchingRuleBadRequest with default headers values
func (*CreateServerSwitchingRuleBadRequest) Error ¶
func (o *CreateServerSwitchingRuleBadRequest) Error() string
func (*CreateServerSwitchingRuleBadRequest) GetPayload ¶
func (o *CreateServerSwitchingRuleBadRequest) GetPayload() *models.Error
type CreateServerSwitchingRuleConflict ¶
type CreateServerSwitchingRuleConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateServerSwitchingRuleConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateServerSwitchingRuleConflict ¶
func NewCreateServerSwitchingRuleConflict() *CreateServerSwitchingRuleConflict
NewCreateServerSwitchingRuleConflict creates a CreateServerSwitchingRuleConflict with default headers values
func (*CreateServerSwitchingRuleConflict) Error ¶
func (o *CreateServerSwitchingRuleConflict) Error() string
func (*CreateServerSwitchingRuleConflict) GetPayload ¶
func (o *CreateServerSwitchingRuleConflict) GetPayload() *models.Error
type CreateServerSwitchingRuleCreated ¶
type CreateServerSwitchingRuleCreated struct {
Payload *models.ServerSwitchingRule
}
CreateServerSwitchingRuleCreated describes a response with status code 201, with default header values.
Server Switching Rule created
func NewCreateServerSwitchingRuleCreated ¶
func NewCreateServerSwitchingRuleCreated() *CreateServerSwitchingRuleCreated
NewCreateServerSwitchingRuleCreated creates a CreateServerSwitchingRuleCreated with default headers values
func (*CreateServerSwitchingRuleCreated) Error ¶
func (o *CreateServerSwitchingRuleCreated) Error() string
func (*CreateServerSwitchingRuleCreated) GetPayload ¶
func (o *CreateServerSwitchingRuleCreated) GetPayload() *models.ServerSwitchingRule
type CreateServerSwitchingRuleDefault ¶
type CreateServerSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateServerSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewCreateServerSwitchingRuleDefault ¶
func NewCreateServerSwitchingRuleDefault(code int) *CreateServerSwitchingRuleDefault
NewCreateServerSwitchingRuleDefault creates a CreateServerSwitchingRuleDefault with default headers values
func (*CreateServerSwitchingRuleDefault) Code ¶
func (o *CreateServerSwitchingRuleDefault) Code() int
Code gets the status code for the create server switching rule default response
func (*CreateServerSwitchingRuleDefault) Error ¶
func (o *CreateServerSwitchingRuleDefault) Error() string
func (*CreateServerSwitchingRuleDefault) GetPayload ¶
func (o *CreateServerSwitchingRuleDefault) GetPayload() *models.Error
type CreateServerSwitchingRuleParams ¶
type CreateServerSwitchingRuleParams struct { /* Backend. Backend name */ Backend string // Data. Data *models.ServerSwitchingRule /* 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 }
CreateServerSwitchingRuleParams contains all the parameters to send to the API endpoint
for the create server switching rule operation. Typically these are written to a http.Request.
func NewCreateServerSwitchingRuleParams ¶
func NewCreateServerSwitchingRuleParams() *CreateServerSwitchingRuleParams
NewCreateServerSwitchingRuleParams creates a new CreateServerSwitchingRuleParams 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 NewCreateServerSwitchingRuleParamsWithContext ¶
func NewCreateServerSwitchingRuleParamsWithContext(ctx context.Context) *CreateServerSwitchingRuleParams
NewCreateServerSwitchingRuleParamsWithContext creates a new CreateServerSwitchingRuleParams object with the ability to set a context for a request.
func NewCreateServerSwitchingRuleParamsWithHTTPClient ¶
func NewCreateServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *CreateServerSwitchingRuleParams
NewCreateServerSwitchingRuleParamsWithHTTPClient creates a new CreateServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateServerSwitchingRuleParamsWithTimeout ¶
func NewCreateServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *CreateServerSwitchingRuleParams
NewCreateServerSwitchingRuleParamsWithTimeout creates a new CreateServerSwitchingRuleParams object with the ability to set a timeout on a request.
func (*CreateServerSwitchingRuleParams) SetBackend ¶
func (o *CreateServerSwitchingRuleParams) SetBackend(backend string)
SetBackend adds the backend to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetContext ¶
func (o *CreateServerSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetData ¶
func (o *CreateServerSwitchingRuleParams) SetData(data *models.ServerSwitchingRule)
SetData adds the data to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetDefaults ¶
func (o *CreateServerSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the create server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServerSwitchingRuleParams) SetForceReload ¶
func (o *CreateServerSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetHTTPClient ¶
func (o *CreateServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetTimeout ¶
func (o *CreateServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetTransactionID ¶
func (o *CreateServerSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create server switching rule params
func (*CreateServerSwitchingRuleParams) SetVersion ¶
func (o *CreateServerSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithBackend ¶
func (o *CreateServerSwitchingRuleParams) WithBackend(backend string) *CreateServerSwitchingRuleParams
WithBackend adds the backend to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithContext ¶
func (o *CreateServerSwitchingRuleParams) WithContext(ctx context.Context) *CreateServerSwitchingRuleParams
WithContext adds the context to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithData ¶
func (o *CreateServerSwitchingRuleParams) WithData(data *models.ServerSwitchingRule) *CreateServerSwitchingRuleParams
WithData adds the data to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithDefaults ¶
func (o *CreateServerSwitchingRuleParams) WithDefaults() *CreateServerSwitchingRuleParams
WithDefaults hydrates default values in the create server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServerSwitchingRuleParams) WithForceReload ¶
func (o *CreateServerSwitchingRuleParams) WithForceReload(forceReload *bool) *CreateServerSwitchingRuleParams
WithForceReload adds the forceReload to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithHTTPClient ¶
func (o *CreateServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *CreateServerSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithTimeout ¶
func (o *CreateServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *CreateServerSwitchingRuleParams
WithTimeout adds the timeout to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithTransactionID ¶
func (o *CreateServerSwitchingRuleParams) WithTransactionID(transactionID *string) *CreateServerSwitchingRuleParams
WithTransactionID adds the transactionID to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WithVersion ¶
func (o *CreateServerSwitchingRuleParams) WithVersion(version *int64) *CreateServerSwitchingRuleParams
WithVersion adds the version to the create server switching rule params
func (*CreateServerSwitchingRuleParams) WriteToRequest ¶
func (o *CreateServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateServerSwitchingRuleReader ¶
type CreateServerSwitchingRuleReader struct {
// contains filtered or unexported fields
}
CreateServerSwitchingRuleReader is a Reader for the CreateServerSwitchingRule structure.
func (*CreateServerSwitchingRuleReader) ReadResponse ¶
func (o *CreateServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteServerSwitchingRuleAccepted ¶
type DeleteServerSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string }
DeleteServerSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewDeleteServerSwitchingRuleAccepted ¶
func NewDeleteServerSwitchingRuleAccepted() *DeleteServerSwitchingRuleAccepted
NewDeleteServerSwitchingRuleAccepted creates a DeleteServerSwitchingRuleAccepted with default headers values
func (*DeleteServerSwitchingRuleAccepted) Error ¶
func (o *DeleteServerSwitchingRuleAccepted) Error() string
type DeleteServerSwitchingRuleDefault ¶
type DeleteServerSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteServerSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewDeleteServerSwitchingRuleDefault ¶
func NewDeleteServerSwitchingRuleDefault(code int) *DeleteServerSwitchingRuleDefault
NewDeleteServerSwitchingRuleDefault creates a DeleteServerSwitchingRuleDefault with default headers values
func (*DeleteServerSwitchingRuleDefault) Code ¶
func (o *DeleteServerSwitchingRuleDefault) Code() int
Code gets the status code for the delete server switching rule default response
func (*DeleteServerSwitchingRuleDefault) Error ¶
func (o *DeleteServerSwitchingRuleDefault) Error() string
func (*DeleteServerSwitchingRuleDefault) GetPayload ¶
func (o *DeleteServerSwitchingRuleDefault) GetPayload() *models.Error
type DeleteServerSwitchingRuleNoContent ¶
type DeleteServerSwitchingRuleNoContent struct { }
DeleteServerSwitchingRuleNoContent describes a response with status code 204, with default header values.
Server Switching Rule deleted
func NewDeleteServerSwitchingRuleNoContent ¶
func NewDeleteServerSwitchingRuleNoContent() *DeleteServerSwitchingRuleNoContent
NewDeleteServerSwitchingRuleNoContent creates a DeleteServerSwitchingRuleNoContent with default headers values
func (*DeleteServerSwitchingRuleNoContent) Error ¶
func (o *DeleteServerSwitchingRuleNoContent) Error() string
type DeleteServerSwitchingRuleNotFound ¶
type DeleteServerSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteServerSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewDeleteServerSwitchingRuleNotFound ¶
func NewDeleteServerSwitchingRuleNotFound() *DeleteServerSwitchingRuleNotFound
NewDeleteServerSwitchingRuleNotFound creates a DeleteServerSwitchingRuleNotFound with default headers values
func (*DeleteServerSwitchingRuleNotFound) Error ¶
func (o *DeleteServerSwitchingRuleNotFound) Error() string
func (*DeleteServerSwitchingRuleNotFound) GetPayload ¶
func (o *DeleteServerSwitchingRuleNotFound) GetPayload() *models.Error
type DeleteServerSwitchingRuleParams ¶
type DeleteServerSwitchingRuleParams 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. 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 }
DeleteServerSwitchingRuleParams contains all the parameters to send to the API endpoint
for the delete server switching rule operation. Typically these are written to a http.Request.
func NewDeleteServerSwitchingRuleParams ¶
func NewDeleteServerSwitchingRuleParams() *DeleteServerSwitchingRuleParams
NewDeleteServerSwitchingRuleParams creates a new DeleteServerSwitchingRuleParams 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 NewDeleteServerSwitchingRuleParamsWithContext ¶
func NewDeleteServerSwitchingRuleParamsWithContext(ctx context.Context) *DeleteServerSwitchingRuleParams
NewDeleteServerSwitchingRuleParamsWithContext creates a new DeleteServerSwitchingRuleParams object with the ability to set a context for a request.
func NewDeleteServerSwitchingRuleParamsWithHTTPClient ¶
func NewDeleteServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *DeleteServerSwitchingRuleParams
NewDeleteServerSwitchingRuleParamsWithHTTPClient creates a new DeleteServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteServerSwitchingRuleParamsWithTimeout ¶
func NewDeleteServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *DeleteServerSwitchingRuleParams
NewDeleteServerSwitchingRuleParamsWithTimeout creates a new DeleteServerSwitchingRuleParams object with the ability to set a timeout on a request.
func (*DeleteServerSwitchingRuleParams) SetBackend ¶
func (o *DeleteServerSwitchingRuleParams) SetBackend(backend string)
SetBackend adds the backend to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetContext ¶
func (o *DeleteServerSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetDefaults ¶
func (o *DeleteServerSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the delete server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServerSwitchingRuleParams) SetForceReload ¶
func (o *DeleteServerSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetHTTPClient ¶
func (o *DeleteServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetIndex ¶
func (o *DeleteServerSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetTimeout ¶
func (o *DeleteServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetTransactionID ¶
func (o *DeleteServerSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) SetVersion ¶
func (o *DeleteServerSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithBackend ¶
func (o *DeleteServerSwitchingRuleParams) WithBackend(backend string) *DeleteServerSwitchingRuleParams
WithBackend adds the backend to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithContext ¶
func (o *DeleteServerSwitchingRuleParams) WithContext(ctx context.Context) *DeleteServerSwitchingRuleParams
WithContext adds the context to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithDefaults ¶
func (o *DeleteServerSwitchingRuleParams) WithDefaults() *DeleteServerSwitchingRuleParams
WithDefaults hydrates default values in the delete server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServerSwitchingRuleParams) WithForceReload ¶
func (o *DeleteServerSwitchingRuleParams) WithForceReload(forceReload *bool) *DeleteServerSwitchingRuleParams
WithForceReload adds the forceReload to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithHTTPClient ¶
func (o *DeleteServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *DeleteServerSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithIndex ¶
func (o *DeleteServerSwitchingRuleParams) WithIndex(index int64) *DeleteServerSwitchingRuleParams
WithIndex adds the index to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithTimeout ¶
func (o *DeleteServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *DeleteServerSwitchingRuleParams
WithTimeout adds the timeout to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithTransactionID ¶
func (o *DeleteServerSwitchingRuleParams) WithTransactionID(transactionID *string) *DeleteServerSwitchingRuleParams
WithTransactionID adds the transactionID to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WithVersion ¶
func (o *DeleteServerSwitchingRuleParams) WithVersion(version *int64) *DeleteServerSwitchingRuleParams
WithVersion adds the version to the delete server switching rule params
func (*DeleteServerSwitchingRuleParams) WriteToRequest ¶
func (o *DeleteServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteServerSwitchingRuleReader ¶
type DeleteServerSwitchingRuleReader struct {
// contains filtered or unexported fields
}
DeleteServerSwitchingRuleReader is a Reader for the DeleteServerSwitchingRule structure.
func (*DeleteServerSwitchingRuleReader) ReadResponse ¶
func (o *DeleteServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetServerSwitchingRuleDefault ¶
type GetServerSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetServerSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewGetServerSwitchingRuleDefault ¶
func NewGetServerSwitchingRuleDefault(code int) *GetServerSwitchingRuleDefault
NewGetServerSwitchingRuleDefault creates a GetServerSwitchingRuleDefault with default headers values
func (*GetServerSwitchingRuleDefault) Code ¶
func (o *GetServerSwitchingRuleDefault) Code() int
Code gets the status code for the get server switching rule default response
func (*GetServerSwitchingRuleDefault) Error ¶
func (o *GetServerSwitchingRuleDefault) Error() string
func (*GetServerSwitchingRuleDefault) GetPayload ¶
func (o *GetServerSwitchingRuleDefault) GetPayload() *models.Error
type GetServerSwitchingRuleNotFound ¶
type GetServerSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetServerSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewGetServerSwitchingRuleNotFound ¶
func NewGetServerSwitchingRuleNotFound() *GetServerSwitchingRuleNotFound
NewGetServerSwitchingRuleNotFound creates a GetServerSwitchingRuleNotFound with default headers values
func (*GetServerSwitchingRuleNotFound) Error ¶
func (o *GetServerSwitchingRuleNotFound) Error() string
func (*GetServerSwitchingRuleNotFound) GetPayload ¶
func (o *GetServerSwitchingRuleNotFound) GetPayload() *models.Error
type GetServerSwitchingRuleOK ¶
type GetServerSwitchingRuleOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetServerSwitchingRuleOKBody }
GetServerSwitchingRuleOK describes a response with status code 200, with default header values.
Successful operation
func NewGetServerSwitchingRuleOK ¶
func NewGetServerSwitchingRuleOK() *GetServerSwitchingRuleOK
NewGetServerSwitchingRuleOK creates a GetServerSwitchingRuleOK with default headers values
func (*GetServerSwitchingRuleOK) Error ¶
func (o *GetServerSwitchingRuleOK) Error() string
func (*GetServerSwitchingRuleOK) GetPayload ¶
func (o *GetServerSwitchingRuleOK) GetPayload() *GetServerSwitchingRuleOKBody
type GetServerSwitchingRuleOKBody ¶
type GetServerSwitchingRuleOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.ServerSwitchingRule `json:"data,omitempty"` }
GetServerSwitchingRuleOKBody get server switching rule o k body swagger:model GetServerSwitchingRuleOKBody
func (*GetServerSwitchingRuleOKBody) ContextValidate ¶
func (o *GetServerSwitchingRuleOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get server switching rule o k body based on the context it is used
func (*GetServerSwitchingRuleOKBody) MarshalBinary ¶
func (o *GetServerSwitchingRuleOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetServerSwitchingRuleOKBody) UnmarshalBinary ¶
func (o *GetServerSwitchingRuleOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetServerSwitchingRuleParams ¶
type GetServerSwitchingRuleParams struct { /* Backend. Backend name */ Backend 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 }
GetServerSwitchingRuleParams contains all the parameters to send to the API endpoint
for the get server switching rule operation. Typically these are written to a http.Request.
func NewGetServerSwitchingRuleParams ¶
func NewGetServerSwitchingRuleParams() *GetServerSwitchingRuleParams
NewGetServerSwitchingRuleParams creates a new GetServerSwitchingRuleParams 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 NewGetServerSwitchingRuleParamsWithContext ¶
func NewGetServerSwitchingRuleParamsWithContext(ctx context.Context) *GetServerSwitchingRuleParams
NewGetServerSwitchingRuleParamsWithContext creates a new GetServerSwitchingRuleParams object with the ability to set a context for a request.
func NewGetServerSwitchingRuleParamsWithHTTPClient ¶
func NewGetServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRuleParams
NewGetServerSwitchingRuleParamsWithHTTPClient creates a new GetServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewGetServerSwitchingRuleParamsWithTimeout ¶
func NewGetServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRuleParams
NewGetServerSwitchingRuleParamsWithTimeout creates a new GetServerSwitchingRuleParams object with the ability to set a timeout on a request.
func (*GetServerSwitchingRuleParams) SetBackend ¶
func (o *GetServerSwitchingRuleParams) SetBackend(backend string)
SetBackend adds the backend to the get server switching rule params
func (*GetServerSwitchingRuleParams) SetContext ¶
func (o *GetServerSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the get server switching rule params
func (*GetServerSwitchingRuleParams) SetDefaults ¶
func (o *GetServerSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the get server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetServerSwitchingRuleParams) SetHTTPClient ¶
func (o *GetServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get server switching rule params
func (*GetServerSwitchingRuleParams) SetIndex ¶
func (o *GetServerSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the get server switching rule params
func (*GetServerSwitchingRuleParams) SetTimeout ¶
func (o *GetServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get server switching rule params
func (*GetServerSwitchingRuleParams) SetTransactionID ¶
func (o *GetServerSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithBackend ¶
func (o *GetServerSwitchingRuleParams) WithBackend(backend string) *GetServerSwitchingRuleParams
WithBackend adds the backend to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithContext ¶
func (o *GetServerSwitchingRuleParams) WithContext(ctx context.Context) *GetServerSwitchingRuleParams
WithContext adds the context to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithDefaults ¶
func (o *GetServerSwitchingRuleParams) WithDefaults() *GetServerSwitchingRuleParams
WithDefaults hydrates default values in the get server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetServerSwitchingRuleParams) WithHTTPClient ¶
func (o *GetServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *GetServerSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithIndex ¶
func (o *GetServerSwitchingRuleParams) WithIndex(index int64) *GetServerSwitchingRuleParams
WithIndex adds the index to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithTimeout ¶
func (o *GetServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *GetServerSwitchingRuleParams
WithTimeout adds the timeout to the get server switching rule params
func (*GetServerSwitchingRuleParams) WithTransactionID ¶
func (o *GetServerSwitchingRuleParams) WithTransactionID(transactionID *string) *GetServerSwitchingRuleParams
WithTransactionID adds the transactionID to the get server switching rule params
func (*GetServerSwitchingRuleParams) WriteToRequest ¶
func (o *GetServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetServerSwitchingRuleReader ¶
type GetServerSwitchingRuleReader struct {
// contains filtered or unexported fields
}
GetServerSwitchingRuleReader is a Reader for the GetServerSwitchingRule structure.
func (*GetServerSwitchingRuleReader) ReadResponse ¶
func (o *GetServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetServerSwitchingRulesDefault ¶
type GetServerSwitchingRulesDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetServerSwitchingRulesDefault describes a response with status code -1, with default header values.
General Error
func NewGetServerSwitchingRulesDefault ¶
func NewGetServerSwitchingRulesDefault(code int) *GetServerSwitchingRulesDefault
NewGetServerSwitchingRulesDefault creates a GetServerSwitchingRulesDefault with default headers values
func (*GetServerSwitchingRulesDefault) Code ¶
func (o *GetServerSwitchingRulesDefault) Code() int
Code gets the status code for the get server switching rules default response
func (*GetServerSwitchingRulesDefault) Error ¶
func (o *GetServerSwitchingRulesDefault) Error() string
func (*GetServerSwitchingRulesDefault) GetPayload ¶
func (o *GetServerSwitchingRulesDefault) GetPayload() *models.Error
type GetServerSwitchingRulesOK ¶
type GetServerSwitchingRulesOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetServerSwitchingRulesOKBody }
GetServerSwitchingRulesOK describes a response with status code 200, with default header values.
Successful operation
func NewGetServerSwitchingRulesOK ¶
func NewGetServerSwitchingRulesOK() *GetServerSwitchingRulesOK
NewGetServerSwitchingRulesOK creates a GetServerSwitchingRulesOK with default headers values
func (*GetServerSwitchingRulesOK) Error ¶
func (o *GetServerSwitchingRulesOK) Error() string
func (*GetServerSwitchingRulesOK) GetPayload ¶
func (o *GetServerSwitchingRulesOK) GetPayload() *GetServerSwitchingRulesOKBody
type GetServerSwitchingRulesOKBody ¶
type GetServerSwitchingRulesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.ServerSwitchingRules `json:"data"` }
GetServerSwitchingRulesOKBody get server switching rules o k body swagger:model GetServerSwitchingRulesOKBody
func (*GetServerSwitchingRulesOKBody) ContextValidate ¶
func (o *GetServerSwitchingRulesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get server switching rules o k body based on the context it is used
func (*GetServerSwitchingRulesOKBody) MarshalBinary ¶
func (o *GetServerSwitchingRulesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetServerSwitchingRulesOKBody) UnmarshalBinary ¶
func (o *GetServerSwitchingRulesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetServerSwitchingRulesParams ¶
type GetServerSwitchingRulesParams 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 }
GetServerSwitchingRulesParams contains all the parameters to send to the API endpoint
for the get server switching rules operation. Typically these are written to a http.Request.
func NewGetServerSwitchingRulesParams ¶
func NewGetServerSwitchingRulesParams() *GetServerSwitchingRulesParams
NewGetServerSwitchingRulesParams creates a new GetServerSwitchingRulesParams 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 NewGetServerSwitchingRulesParamsWithContext ¶
func NewGetServerSwitchingRulesParamsWithContext(ctx context.Context) *GetServerSwitchingRulesParams
NewGetServerSwitchingRulesParamsWithContext creates a new GetServerSwitchingRulesParams object with the ability to set a context for a request.
func NewGetServerSwitchingRulesParamsWithHTTPClient ¶
func NewGetServerSwitchingRulesParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRulesParams
NewGetServerSwitchingRulesParamsWithHTTPClient creates a new GetServerSwitchingRulesParams object with the ability to set a custom HTTPClient for a request.
func NewGetServerSwitchingRulesParamsWithTimeout ¶
func NewGetServerSwitchingRulesParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRulesParams
NewGetServerSwitchingRulesParamsWithTimeout creates a new GetServerSwitchingRulesParams object with the ability to set a timeout on a request.
func (*GetServerSwitchingRulesParams) SetBackend ¶
func (o *GetServerSwitchingRulesParams) SetBackend(backend string)
SetBackend adds the backend to the get server switching rules params
func (*GetServerSwitchingRulesParams) SetContext ¶
func (o *GetServerSwitchingRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get server switching rules params
func (*GetServerSwitchingRulesParams) SetDefaults ¶
func (o *GetServerSwitchingRulesParams) SetDefaults()
SetDefaults hydrates default values in the get server switching rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetServerSwitchingRulesParams) SetHTTPClient ¶
func (o *GetServerSwitchingRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get server switching rules params
func (*GetServerSwitchingRulesParams) SetTimeout ¶
func (o *GetServerSwitchingRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get server switching rules params
func (*GetServerSwitchingRulesParams) SetTransactionID ¶
func (o *GetServerSwitchingRulesParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get server switching rules params
func (*GetServerSwitchingRulesParams) WithBackend ¶
func (o *GetServerSwitchingRulesParams) WithBackend(backend string) *GetServerSwitchingRulesParams
WithBackend adds the backend to the get server switching rules params
func (*GetServerSwitchingRulesParams) WithContext ¶
func (o *GetServerSwitchingRulesParams) WithContext(ctx context.Context) *GetServerSwitchingRulesParams
WithContext adds the context to the get server switching rules params
func (*GetServerSwitchingRulesParams) WithDefaults ¶
func (o *GetServerSwitchingRulesParams) WithDefaults() *GetServerSwitchingRulesParams
WithDefaults hydrates default values in the get server switching rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetServerSwitchingRulesParams) WithHTTPClient ¶
func (o *GetServerSwitchingRulesParams) WithHTTPClient(client *http.Client) *GetServerSwitchingRulesParams
WithHTTPClient adds the HTTPClient to the get server switching rules params
func (*GetServerSwitchingRulesParams) WithTimeout ¶
func (o *GetServerSwitchingRulesParams) WithTimeout(timeout time.Duration) *GetServerSwitchingRulesParams
WithTimeout adds the timeout to the get server switching rules params
func (*GetServerSwitchingRulesParams) WithTransactionID ¶
func (o *GetServerSwitchingRulesParams) WithTransactionID(transactionID *string) *GetServerSwitchingRulesParams
WithTransactionID adds the transactionID to the get server switching rules params
func (*GetServerSwitchingRulesParams) WriteToRequest ¶
func (o *GetServerSwitchingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetServerSwitchingRulesReader ¶
type GetServerSwitchingRulesReader struct {
// contains filtered or unexported fields
}
GetServerSwitchingRulesReader is a Reader for the GetServerSwitchingRules structure.
func (*GetServerSwitchingRulesReader) ReadResponse ¶
func (o *GetServerSwitchingRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceServerSwitchingRuleAccepted ¶
type ReplaceServerSwitchingRuleAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.ServerSwitchingRule }
ReplaceServerSwitchingRuleAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewReplaceServerSwitchingRuleAccepted ¶
func NewReplaceServerSwitchingRuleAccepted() *ReplaceServerSwitchingRuleAccepted
NewReplaceServerSwitchingRuleAccepted creates a ReplaceServerSwitchingRuleAccepted with default headers values
func (*ReplaceServerSwitchingRuleAccepted) Error ¶
func (o *ReplaceServerSwitchingRuleAccepted) Error() string
func (*ReplaceServerSwitchingRuleAccepted) GetPayload ¶
func (o *ReplaceServerSwitchingRuleAccepted) GetPayload() *models.ServerSwitchingRule
type ReplaceServerSwitchingRuleBadRequest ¶
type ReplaceServerSwitchingRuleBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceServerSwitchingRuleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceServerSwitchingRuleBadRequest ¶
func NewReplaceServerSwitchingRuleBadRequest() *ReplaceServerSwitchingRuleBadRequest
NewReplaceServerSwitchingRuleBadRequest creates a ReplaceServerSwitchingRuleBadRequest with default headers values
func (*ReplaceServerSwitchingRuleBadRequest) Error ¶
func (o *ReplaceServerSwitchingRuleBadRequest) Error() string
func (*ReplaceServerSwitchingRuleBadRequest) GetPayload ¶
func (o *ReplaceServerSwitchingRuleBadRequest) GetPayload() *models.Error
type ReplaceServerSwitchingRuleDefault ¶
type ReplaceServerSwitchingRuleDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceServerSwitchingRuleDefault describes a response with status code -1, with default header values.
General Error
func NewReplaceServerSwitchingRuleDefault ¶
func NewReplaceServerSwitchingRuleDefault(code int) *ReplaceServerSwitchingRuleDefault
NewReplaceServerSwitchingRuleDefault creates a ReplaceServerSwitchingRuleDefault with default headers values
func (*ReplaceServerSwitchingRuleDefault) Code ¶
func (o *ReplaceServerSwitchingRuleDefault) Code() int
Code gets the status code for the replace server switching rule default response
func (*ReplaceServerSwitchingRuleDefault) Error ¶
func (o *ReplaceServerSwitchingRuleDefault) Error() string
func (*ReplaceServerSwitchingRuleDefault) GetPayload ¶
func (o *ReplaceServerSwitchingRuleDefault) GetPayload() *models.Error
type ReplaceServerSwitchingRuleNotFound ¶
type ReplaceServerSwitchingRuleNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceServerSwitchingRuleNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewReplaceServerSwitchingRuleNotFound ¶
func NewReplaceServerSwitchingRuleNotFound() *ReplaceServerSwitchingRuleNotFound
NewReplaceServerSwitchingRuleNotFound creates a ReplaceServerSwitchingRuleNotFound with default headers values
func (*ReplaceServerSwitchingRuleNotFound) Error ¶
func (o *ReplaceServerSwitchingRuleNotFound) Error() string
func (*ReplaceServerSwitchingRuleNotFound) GetPayload ¶
func (o *ReplaceServerSwitchingRuleNotFound) GetPayload() *models.Error
type ReplaceServerSwitchingRuleOK ¶
type ReplaceServerSwitchingRuleOK struct {
Payload *models.ServerSwitchingRule
}
ReplaceServerSwitchingRuleOK describes a response with status code 200, with default header values.
Server Switching Rule replaced
func NewReplaceServerSwitchingRuleOK ¶
func NewReplaceServerSwitchingRuleOK() *ReplaceServerSwitchingRuleOK
NewReplaceServerSwitchingRuleOK creates a ReplaceServerSwitchingRuleOK with default headers values
func (*ReplaceServerSwitchingRuleOK) Error ¶
func (o *ReplaceServerSwitchingRuleOK) Error() string
func (*ReplaceServerSwitchingRuleOK) GetPayload ¶
func (o *ReplaceServerSwitchingRuleOK) GetPayload() *models.ServerSwitchingRule
type ReplaceServerSwitchingRuleParams ¶
type ReplaceServerSwitchingRuleParams struct { /* Backend. Backend name */ Backend string // Data. Data *models.ServerSwitchingRule /* 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. 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 }
ReplaceServerSwitchingRuleParams contains all the parameters to send to the API endpoint
for the replace server switching rule operation. Typically these are written to a http.Request.
func NewReplaceServerSwitchingRuleParams ¶
func NewReplaceServerSwitchingRuleParams() *ReplaceServerSwitchingRuleParams
NewReplaceServerSwitchingRuleParams creates a new ReplaceServerSwitchingRuleParams 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 NewReplaceServerSwitchingRuleParamsWithContext ¶
func NewReplaceServerSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams
NewReplaceServerSwitchingRuleParamsWithContext creates a new ReplaceServerSwitchingRuleParams object with the ability to set a context for a request.
func NewReplaceServerSwitchingRuleParamsWithHTTPClient ¶
func NewReplaceServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *ReplaceServerSwitchingRuleParams
NewReplaceServerSwitchingRuleParamsWithHTTPClient creates a new ReplaceServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.
func NewReplaceServerSwitchingRuleParamsWithTimeout ¶
func NewReplaceServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *ReplaceServerSwitchingRuleParams
NewReplaceServerSwitchingRuleParamsWithTimeout creates a new ReplaceServerSwitchingRuleParams object with the ability to set a timeout on a request.
func (*ReplaceServerSwitchingRuleParams) SetBackend ¶
func (o *ReplaceServerSwitchingRuleParams) SetBackend(backend string)
SetBackend adds the backend to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetContext ¶
func (o *ReplaceServerSwitchingRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetData ¶
func (o *ReplaceServerSwitchingRuleParams) SetData(data *models.ServerSwitchingRule)
SetData adds the data to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetDefaults ¶
func (o *ReplaceServerSwitchingRuleParams) SetDefaults()
SetDefaults hydrates default values in the replace server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceServerSwitchingRuleParams) SetForceReload ¶
func (o *ReplaceServerSwitchingRuleParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetHTTPClient ¶
func (o *ReplaceServerSwitchingRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetIndex ¶
func (o *ReplaceServerSwitchingRuleParams) SetIndex(index int64)
SetIndex adds the index to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetTimeout ¶
func (o *ReplaceServerSwitchingRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetTransactionID ¶
func (o *ReplaceServerSwitchingRuleParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) SetVersion ¶
func (o *ReplaceServerSwitchingRuleParams) SetVersion(version *int64)
SetVersion adds the version to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithBackend ¶
func (o *ReplaceServerSwitchingRuleParams) WithBackend(backend string) *ReplaceServerSwitchingRuleParams
WithBackend adds the backend to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithContext ¶
func (o *ReplaceServerSwitchingRuleParams) WithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams
WithContext adds the context to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithData ¶
func (o *ReplaceServerSwitchingRuleParams) WithData(data *models.ServerSwitchingRule) *ReplaceServerSwitchingRuleParams
WithData adds the data to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithDefaults ¶
func (o *ReplaceServerSwitchingRuleParams) WithDefaults() *ReplaceServerSwitchingRuleParams
WithDefaults hydrates default values in the replace server switching rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceServerSwitchingRuleParams) WithForceReload ¶
func (o *ReplaceServerSwitchingRuleParams) WithForceReload(forceReload *bool) *ReplaceServerSwitchingRuleParams
WithForceReload adds the forceReload to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithHTTPClient ¶
func (o *ReplaceServerSwitchingRuleParams) WithHTTPClient(client *http.Client) *ReplaceServerSwitchingRuleParams
WithHTTPClient adds the HTTPClient to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithIndex ¶
func (o *ReplaceServerSwitchingRuleParams) WithIndex(index int64) *ReplaceServerSwitchingRuleParams
WithIndex adds the index to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithTimeout ¶
func (o *ReplaceServerSwitchingRuleParams) WithTimeout(timeout time.Duration) *ReplaceServerSwitchingRuleParams
WithTimeout adds the timeout to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithTransactionID ¶
func (o *ReplaceServerSwitchingRuleParams) WithTransactionID(transactionID *string) *ReplaceServerSwitchingRuleParams
WithTransactionID adds the transactionID to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WithVersion ¶
func (o *ReplaceServerSwitchingRuleParams) WithVersion(version *int64) *ReplaceServerSwitchingRuleParams
WithVersion adds the version to the replace server switching rule params
func (*ReplaceServerSwitchingRuleParams) WriteToRequest ¶
func (o *ReplaceServerSwitchingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceServerSwitchingRuleReader ¶
type ReplaceServerSwitchingRuleReader struct {
// contains filtered or unexported fields
}
ReplaceServerSwitchingRuleReader is a Reader for the ReplaceServerSwitchingRule structure.
func (*ReplaceServerSwitchingRuleReader) ReadResponse ¶
func (o *ReplaceServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_server_switching_rule_parameters.go
- create_server_switching_rule_responses.go
- delete_server_switching_rule_parameters.go
- delete_server_switching_rule_responses.go
- get_server_switching_rule_parameters.go
- get_server_switching_rule_responses.go
- get_server_switching_rules_parameters.go
- get_server_switching_rules_responses.go
- replace_server_switching_rule_parameters.go
- replace_server_switching_rule_responses.go
- server_switching_rule_client.go