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
- func (o *CreateBackendSwitchingRuleAccepted) Error() string
- func (o *CreateBackendSwitchingRuleAccepted) GetPayload() *models.BackendSwitchingRule
- func (o *CreateBackendSwitchingRuleAccepted) IsClientError() bool
- func (o *CreateBackendSwitchingRuleAccepted) IsCode(code int) bool
- func (o *CreateBackendSwitchingRuleAccepted) IsRedirect() bool
- func (o *CreateBackendSwitchingRuleAccepted) IsServerError() bool
- func (o *CreateBackendSwitchingRuleAccepted) IsSuccess() bool
- func (o *CreateBackendSwitchingRuleAccepted) String() string
- type CreateBackendSwitchingRuleBadRequest
- func (o *CreateBackendSwitchingRuleBadRequest) Error() string
- func (o *CreateBackendSwitchingRuleBadRequest) GetPayload() *models.Error
- func (o *CreateBackendSwitchingRuleBadRequest) IsClientError() bool
- func (o *CreateBackendSwitchingRuleBadRequest) IsCode(code int) bool
- func (o *CreateBackendSwitchingRuleBadRequest) IsRedirect() bool
- func (o *CreateBackendSwitchingRuleBadRequest) IsServerError() bool
- func (o *CreateBackendSwitchingRuleBadRequest) IsSuccess() bool
- func (o *CreateBackendSwitchingRuleBadRequest) String() string
- type CreateBackendSwitchingRuleConflict
- func (o *CreateBackendSwitchingRuleConflict) Error() string
- func (o *CreateBackendSwitchingRuleConflict) GetPayload() *models.Error
- func (o *CreateBackendSwitchingRuleConflict) IsClientError() bool
- func (o *CreateBackendSwitchingRuleConflict) IsCode(code int) bool
- func (o *CreateBackendSwitchingRuleConflict) IsRedirect() bool
- func (o *CreateBackendSwitchingRuleConflict) IsServerError() bool
- func (o *CreateBackendSwitchingRuleConflict) IsSuccess() bool
- func (o *CreateBackendSwitchingRuleConflict) String() string
- type CreateBackendSwitchingRuleCreated
- func (o *CreateBackendSwitchingRuleCreated) Error() string
- func (o *CreateBackendSwitchingRuleCreated) GetPayload() *models.BackendSwitchingRule
- func (o *CreateBackendSwitchingRuleCreated) IsClientError() bool
- func (o *CreateBackendSwitchingRuleCreated) IsCode(code int) bool
- func (o *CreateBackendSwitchingRuleCreated) IsRedirect() bool
- func (o *CreateBackendSwitchingRuleCreated) IsServerError() bool
- func (o *CreateBackendSwitchingRuleCreated) IsSuccess() bool
- func (o *CreateBackendSwitchingRuleCreated) String() string
- type CreateBackendSwitchingRuleDefault
- func (o *CreateBackendSwitchingRuleDefault) Code() int
- func (o *CreateBackendSwitchingRuleDefault) Error() string
- func (o *CreateBackendSwitchingRuleDefault) GetPayload() *models.Error
- func (o *CreateBackendSwitchingRuleDefault) IsClientError() bool
- func (o *CreateBackendSwitchingRuleDefault) IsCode(code int) bool
- func (o *CreateBackendSwitchingRuleDefault) IsRedirect() bool
- func (o *CreateBackendSwitchingRuleDefault) IsServerError() bool
- func (o *CreateBackendSwitchingRuleDefault) IsSuccess() bool
- func (o *CreateBackendSwitchingRuleDefault) String() string
- 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
- func (o *DeleteBackendSwitchingRuleAccepted) Error() string
- func (o *DeleteBackendSwitchingRuleAccepted) IsClientError() bool
- func (o *DeleteBackendSwitchingRuleAccepted) IsCode(code int) bool
- func (o *DeleteBackendSwitchingRuleAccepted) IsRedirect() bool
- func (o *DeleteBackendSwitchingRuleAccepted) IsServerError() bool
- func (o *DeleteBackendSwitchingRuleAccepted) IsSuccess() bool
- func (o *DeleteBackendSwitchingRuleAccepted) String() string
- type DeleteBackendSwitchingRuleDefault
- func (o *DeleteBackendSwitchingRuleDefault) Code() int
- func (o *DeleteBackendSwitchingRuleDefault) Error() string
- func (o *DeleteBackendSwitchingRuleDefault) GetPayload() *models.Error
- func (o *DeleteBackendSwitchingRuleDefault) IsClientError() bool
- func (o *DeleteBackendSwitchingRuleDefault) IsCode(code int) bool
- func (o *DeleteBackendSwitchingRuleDefault) IsRedirect() bool
- func (o *DeleteBackendSwitchingRuleDefault) IsServerError() bool
- func (o *DeleteBackendSwitchingRuleDefault) IsSuccess() bool
- func (o *DeleteBackendSwitchingRuleDefault) String() string
- type DeleteBackendSwitchingRuleNoContent
- func (o *DeleteBackendSwitchingRuleNoContent) Error() string
- func (o *DeleteBackendSwitchingRuleNoContent) IsClientError() bool
- func (o *DeleteBackendSwitchingRuleNoContent) IsCode(code int) bool
- func (o *DeleteBackendSwitchingRuleNoContent) IsRedirect() bool
- func (o *DeleteBackendSwitchingRuleNoContent) IsServerError() bool
- func (o *DeleteBackendSwitchingRuleNoContent) IsSuccess() bool
- func (o *DeleteBackendSwitchingRuleNoContent) String() string
- type DeleteBackendSwitchingRuleNotFound
- func (o *DeleteBackendSwitchingRuleNotFound) Error() string
- func (o *DeleteBackendSwitchingRuleNotFound) GetPayload() *models.Error
- func (o *DeleteBackendSwitchingRuleNotFound) IsClientError() bool
- func (o *DeleteBackendSwitchingRuleNotFound) IsCode(code int) bool
- func (o *DeleteBackendSwitchingRuleNotFound) IsRedirect() bool
- func (o *DeleteBackendSwitchingRuleNotFound) IsServerError() bool
- func (o *DeleteBackendSwitchingRuleNotFound) IsSuccess() bool
- func (o *DeleteBackendSwitchingRuleNotFound) String() string
- 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
- func (o *GetBackendSwitchingRuleDefault) Code() int
- func (o *GetBackendSwitchingRuleDefault) Error() string
- func (o *GetBackendSwitchingRuleDefault) GetPayload() *models.Error
- func (o *GetBackendSwitchingRuleDefault) IsClientError() bool
- func (o *GetBackendSwitchingRuleDefault) IsCode(code int) bool
- func (o *GetBackendSwitchingRuleDefault) IsRedirect() bool
- func (o *GetBackendSwitchingRuleDefault) IsServerError() bool
- func (o *GetBackendSwitchingRuleDefault) IsSuccess() bool
- func (o *GetBackendSwitchingRuleDefault) String() string
- type GetBackendSwitchingRuleNotFound
- func (o *GetBackendSwitchingRuleNotFound) Error() string
- func (o *GetBackendSwitchingRuleNotFound) GetPayload() *models.Error
- func (o *GetBackendSwitchingRuleNotFound) IsClientError() bool
- func (o *GetBackendSwitchingRuleNotFound) IsCode(code int) bool
- func (o *GetBackendSwitchingRuleNotFound) IsRedirect() bool
- func (o *GetBackendSwitchingRuleNotFound) IsServerError() bool
- func (o *GetBackendSwitchingRuleNotFound) IsSuccess() bool
- func (o *GetBackendSwitchingRuleNotFound) String() string
- type GetBackendSwitchingRuleOK
- func (o *GetBackendSwitchingRuleOK) Error() string
- func (o *GetBackendSwitchingRuleOK) GetPayload() *GetBackendSwitchingRuleOKBody
- func (o *GetBackendSwitchingRuleOK) IsClientError() bool
- func (o *GetBackendSwitchingRuleOK) IsCode(code int) bool
- func (o *GetBackendSwitchingRuleOK) IsRedirect() bool
- func (o *GetBackendSwitchingRuleOK) IsServerError() bool
- func (o *GetBackendSwitchingRuleOK) IsSuccess() bool
- func (o *GetBackendSwitchingRuleOK) String() string
- 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
- func (o *GetBackendSwitchingRulesDefault) Code() int
- func (o *GetBackendSwitchingRulesDefault) Error() string
- func (o *GetBackendSwitchingRulesDefault) GetPayload() *models.Error
- func (o *GetBackendSwitchingRulesDefault) IsClientError() bool
- func (o *GetBackendSwitchingRulesDefault) IsCode(code int) bool
- func (o *GetBackendSwitchingRulesDefault) IsRedirect() bool
- func (o *GetBackendSwitchingRulesDefault) IsServerError() bool
- func (o *GetBackendSwitchingRulesDefault) IsSuccess() bool
- func (o *GetBackendSwitchingRulesDefault) String() string
- type GetBackendSwitchingRulesOK
- func (o *GetBackendSwitchingRulesOK) Error() string
- func (o *GetBackendSwitchingRulesOK) GetPayload() *GetBackendSwitchingRulesOKBody
- func (o *GetBackendSwitchingRulesOK) IsClientError() bool
- func (o *GetBackendSwitchingRulesOK) IsCode(code int) bool
- func (o *GetBackendSwitchingRulesOK) IsRedirect() bool
- func (o *GetBackendSwitchingRulesOK) IsServerError() bool
- func (o *GetBackendSwitchingRulesOK) IsSuccess() bool
- func (o *GetBackendSwitchingRulesOK) String() string
- 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
- func (o *ReplaceBackendSwitchingRuleAccepted) Error() string
- func (o *ReplaceBackendSwitchingRuleAccepted) GetPayload() *models.BackendSwitchingRule
- func (o *ReplaceBackendSwitchingRuleAccepted) IsClientError() bool
- func (o *ReplaceBackendSwitchingRuleAccepted) IsCode(code int) bool
- func (o *ReplaceBackendSwitchingRuleAccepted) IsRedirect() bool
- func (o *ReplaceBackendSwitchingRuleAccepted) IsServerError() bool
- func (o *ReplaceBackendSwitchingRuleAccepted) IsSuccess() bool
- func (o *ReplaceBackendSwitchingRuleAccepted) String() string
- type ReplaceBackendSwitchingRuleBadRequest
- func (o *ReplaceBackendSwitchingRuleBadRequest) Error() string
- func (o *ReplaceBackendSwitchingRuleBadRequest) GetPayload() *models.Error
- func (o *ReplaceBackendSwitchingRuleBadRequest) IsClientError() bool
- func (o *ReplaceBackendSwitchingRuleBadRequest) IsCode(code int) bool
- func (o *ReplaceBackendSwitchingRuleBadRequest) IsRedirect() bool
- func (o *ReplaceBackendSwitchingRuleBadRequest) IsServerError() bool
- func (o *ReplaceBackendSwitchingRuleBadRequest) IsSuccess() bool
- func (o *ReplaceBackendSwitchingRuleBadRequest) String() string
- type ReplaceBackendSwitchingRuleDefault
- func (o *ReplaceBackendSwitchingRuleDefault) Code() int
- func (o *ReplaceBackendSwitchingRuleDefault) Error() string
- func (o *ReplaceBackendSwitchingRuleDefault) GetPayload() *models.Error
- func (o *ReplaceBackendSwitchingRuleDefault) IsClientError() bool
- func (o *ReplaceBackendSwitchingRuleDefault) IsCode(code int) bool
- func (o *ReplaceBackendSwitchingRuleDefault) IsRedirect() bool
- func (o *ReplaceBackendSwitchingRuleDefault) IsServerError() bool
- func (o *ReplaceBackendSwitchingRuleDefault) IsSuccess() bool
- func (o *ReplaceBackendSwitchingRuleDefault) String() string
- type ReplaceBackendSwitchingRuleNotFound
- func (o *ReplaceBackendSwitchingRuleNotFound) Error() string
- func (o *ReplaceBackendSwitchingRuleNotFound) GetPayload() *models.Error
- func (o *ReplaceBackendSwitchingRuleNotFound) IsClientError() bool
- func (o *ReplaceBackendSwitchingRuleNotFound) IsCode(code int) bool
- func (o *ReplaceBackendSwitchingRuleNotFound) IsRedirect() bool
- func (o *ReplaceBackendSwitchingRuleNotFound) IsServerError() bool
- func (o *ReplaceBackendSwitchingRuleNotFound) IsSuccess() bool
- func (o *ReplaceBackendSwitchingRuleNotFound) String() string
- type ReplaceBackendSwitchingRuleOK
- func (o *ReplaceBackendSwitchingRuleOK) Error() string
- func (o *ReplaceBackendSwitchingRuleOK) GetPayload() *models.BackendSwitchingRule
- func (o *ReplaceBackendSwitchingRuleOK) IsClientError() bool
- func (o *ReplaceBackendSwitchingRuleOK) IsCode(code int) bool
- func (o *ReplaceBackendSwitchingRuleOK) IsRedirect() bool
- func (o *ReplaceBackendSwitchingRuleOK) IsServerError() bool
- func (o *ReplaceBackendSwitchingRuleOK) IsSuccess() bool
- func (o *ReplaceBackendSwitchingRuleOK) String() string
- 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
func (*CreateBackendSwitchingRuleAccepted) IsClientError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) IsClientError() bool
IsClientError returns true when this create backend switching rule accepted response has a 4xx status code
func (*CreateBackendSwitchingRuleAccepted) IsCode ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) IsCode(code int) bool
IsCode returns true when this create backend switching rule accepted response a status code equal to that given
func (*CreateBackendSwitchingRuleAccepted) IsRedirect ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) IsRedirect() bool
IsRedirect returns true when this create backend switching rule accepted response has a 3xx status code
func (*CreateBackendSwitchingRuleAccepted) IsServerError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) IsServerError() bool
IsServerError returns true when this create backend switching rule accepted response has a 5xx status code
func (*CreateBackendSwitchingRuleAccepted) IsSuccess ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) IsSuccess() bool
IsSuccess returns true when this create backend switching rule accepted response has a 2xx status code
func (*CreateBackendSwitchingRuleAccepted) String ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleAccepted) String() string
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
func (*CreateBackendSwitchingRuleBadRequest) IsClientError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) IsClientError() bool
IsClientError returns true when this create backend switching rule bad request response has a 4xx status code
func (*CreateBackendSwitchingRuleBadRequest) IsCode ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) IsCode(code int) bool
IsCode returns true when this create backend switching rule bad request response a status code equal to that given
func (*CreateBackendSwitchingRuleBadRequest) IsRedirect ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) IsRedirect() bool
IsRedirect returns true when this create backend switching rule bad request response has a 3xx status code
func (*CreateBackendSwitchingRuleBadRequest) IsServerError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) IsServerError() bool
IsServerError returns true when this create backend switching rule bad request response has a 5xx status code
func (*CreateBackendSwitchingRuleBadRequest) IsSuccess ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) IsSuccess() bool
IsSuccess returns true when this create backend switching rule bad request response has a 2xx status code
func (*CreateBackendSwitchingRuleBadRequest) String ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleBadRequest) String() string
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
func (*CreateBackendSwitchingRuleConflict) IsClientError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) IsClientError() bool
IsClientError returns true when this create backend switching rule conflict response has a 4xx status code
func (*CreateBackendSwitchingRuleConflict) IsCode ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) IsCode(code int) bool
IsCode returns true when this create backend switching rule conflict response a status code equal to that given
func (*CreateBackendSwitchingRuleConflict) IsRedirect ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) IsRedirect() bool
IsRedirect returns true when this create backend switching rule conflict response has a 3xx status code
func (*CreateBackendSwitchingRuleConflict) IsServerError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) IsServerError() bool
IsServerError returns true when this create backend switching rule conflict response has a 5xx status code
func (*CreateBackendSwitchingRuleConflict) IsSuccess ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) IsSuccess() bool
IsSuccess returns true when this create backend switching rule conflict response has a 2xx status code
func (*CreateBackendSwitchingRuleConflict) String ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleConflict) String() string
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
func (*CreateBackendSwitchingRuleCreated) IsClientError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) IsClientError() bool
IsClientError returns true when this create backend switching rule created response has a 4xx status code
func (*CreateBackendSwitchingRuleCreated) IsCode ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) IsCode(code int) bool
IsCode returns true when this create backend switching rule created response a status code equal to that given
func (*CreateBackendSwitchingRuleCreated) IsRedirect ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) IsRedirect() bool
IsRedirect returns true when this create backend switching rule created response has a 3xx status code
func (*CreateBackendSwitchingRuleCreated) IsServerError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) IsServerError() bool
IsServerError returns true when this create backend switching rule created response has a 5xx status code
func (*CreateBackendSwitchingRuleCreated) IsSuccess ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) IsSuccess() bool
IsSuccess returns true when this create backend switching rule created response has a 2xx status code
func (*CreateBackendSwitchingRuleCreated) String ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleCreated) String() string
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
func (*CreateBackendSwitchingRuleDefault) IsClientError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) IsClientError() bool
IsClientError returns true when this create backend switching rule default response has a 4xx status code
func (*CreateBackendSwitchingRuleDefault) IsCode ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) IsCode(code int) bool
IsCode returns true when this create backend switching rule default response a status code equal to that given
func (*CreateBackendSwitchingRuleDefault) IsRedirect ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) IsRedirect() bool
IsRedirect returns true when this create backend switching rule default response has a 3xx status code
func (*CreateBackendSwitchingRuleDefault) IsServerError ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) IsServerError() bool
IsServerError returns true when this create backend switching rule default response has a 5xx status code
func (*CreateBackendSwitchingRuleDefault) IsSuccess ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) IsSuccess() bool
IsSuccess returns true when this create backend switching rule default response has a 2xx status code
func (*CreateBackendSwitchingRuleDefault) String ¶ added in v1.1.0
func (o *CreateBackendSwitchingRuleDefault) String() string
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
func (*DeleteBackendSwitchingRuleAccepted) IsClientError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) IsClientError() bool
IsClientError returns true when this delete backend switching rule accepted response has a 4xx status code
func (*DeleteBackendSwitchingRuleAccepted) IsCode ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) IsCode(code int) bool
IsCode returns true when this delete backend switching rule accepted response a status code equal to that given
func (*DeleteBackendSwitchingRuleAccepted) IsRedirect ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) IsRedirect() bool
IsRedirect returns true when this delete backend switching rule accepted response has a 3xx status code
func (*DeleteBackendSwitchingRuleAccepted) IsServerError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) IsServerError() bool
IsServerError returns true when this delete backend switching rule accepted response has a 5xx status code
func (*DeleteBackendSwitchingRuleAccepted) IsSuccess ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) IsSuccess() bool
IsSuccess returns true when this delete backend switching rule accepted response has a 2xx status code
func (*DeleteBackendSwitchingRuleAccepted) String ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleAccepted) String() 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
func (*DeleteBackendSwitchingRuleDefault) IsClientError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) IsClientError() bool
IsClientError returns true when this delete backend switching rule default response has a 4xx status code
func (*DeleteBackendSwitchingRuleDefault) IsCode ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) IsCode(code int) bool
IsCode returns true when this delete backend switching rule default response a status code equal to that given
func (*DeleteBackendSwitchingRuleDefault) IsRedirect ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) IsRedirect() bool
IsRedirect returns true when this delete backend switching rule default response has a 3xx status code
func (*DeleteBackendSwitchingRuleDefault) IsServerError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) IsServerError() bool
IsServerError returns true when this delete backend switching rule default response has a 5xx status code
func (*DeleteBackendSwitchingRuleDefault) IsSuccess ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) IsSuccess() bool
IsSuccess returns true when this delete backend switching rule default response has a 2xx status code
func (*DeleteBackendSwitchingRuleDefault) String ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleDefault) String() string
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
func (*DeleteBackendSwitchingRuleNoContent) IsClientError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) IsClientError() bool
IsClientError returns true when this delete backend switching rule no content response has a 4xx status code
func (*DeleteBackendSwitchingRuleNoContent) IsCode ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) IsCode(code int) bool
IsCode returns true when this delete backend switching rule no content response a status code equal to that given
func (*DeleteBackendSwitchingRuleNoContent) IsRedirect ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) IsRedirect() bool
IsRedirect returns true when this delete backend switching rule no content response has a 3xx status code
func (*DeleteBackendSwitchingRuleNoContent) IsServerError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) IsServerError() bool
IsServerError returns true when this delete backend switching rule no content response has a 5xx status code
func (*DeleteBackendSwitchingRuleNoContent) IsSuccess ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) IsSuccess() bool
IsSuccess returns true when this delete backend switching rule no content response has a 2xx status code
func (*DeleteBackendSwitchingRuleNoContent) String ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNoContent) String() 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
func (*DeleteBackendSwitchingRuleNotFound) IsClientError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) IsClientError() bool
IsClientError returns true when this delete backend switching rule not found response has a 4xx status code
func (*DeleteBackendSwitchingRuleNotFound) IsCode ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) IsCode(code int) bool
IsCode returns true when this delete backend switching rule not found response a status code equal to that given
func (*DeleteBackendSwitchingRuleNotFound) IsRedirect ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) IsRedirect() bool
IsRedirect returns true when this delete backend switching rule not found response has a 3xx status code
func (*DeleteBackendSwitchingRuleNotFound) IsServerError ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) IsServerError() bool
IsServerError returns true when this delete backend switching rule not found response has a 5xx status code
func (*DeleteBackendSwitchingRuleNotFound) IsSuccess ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) IsSuccess() bool
IsSuccess returns true when this delete backend switching rule not found response has a 2xx status code
func (*DeleteBackendSwitchingRuleNotFound) String ¶ added in v1.1.0
func (o *DeleteBackendSwitchingRuleNotFound) String() string
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
func (*GetBackendSwitchingRuleDefault) IsClientError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) IsClientError() bool
IsClientError returns true when this get backend switching rule default response has a 4xx status code
func (*GetBackendSwitchingRuleDefault) IsCode ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) IsCode(code int) bool
IsCode returns true when this get backend switching rule default response a status code equal to that given
func (*GetBackendSwitchingRuleDefault) IsRedirect ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) IsRedirect() bool
IsRedirect returns true when this get backend switching rule default response has a 3xx status code
func (*GetBackendSwitchingRuleDefault) IsServerError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) IsServerError() bool
IsServerError returns true when this get backend switching rule default response has a 5xx status code
func (*GetBackendSwitchingRuleDefault) IsSuccess ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) IsSuccess() bool
IsSuccess returns true when this get backend switching rule default response has a 2xx status code
func (*GetBackendSwitchingRuleDefault) String ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleDefault) String() string
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
func (*GetBackendSwitchingRuleNotFound) IsClientError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) IsClientError() bool
IsClientError returns true when this get backend switching rule not found response has a 4xx status code
func (*GetBackendSwitchingRuleNotFound) IsCode ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) IsCode(code int) bool
IsCode returns true when this get backend switching rule not found response a status code equal to that given
func (*GetBackendSwitchingRuleNotFound) IsRedirect ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) IsRedirect() bool
IsRedirect returns true when this get backend switching rule not found response has a 3xx status code
func (*GetBackendSwitchingRuleNotFound) IsServerError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) IsServerError() bool
IsServerError returns true when this get backend switching rule not found response has a 5xx status code
func (*GetBackendSwitchingRuleNotFound) IsSuccess ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) IsSuccess() bool
IsSuccess returns true when this get backend switching rule not found response has a 2xx status code
func (*GetBackendSwitchingRuleNotFound) String ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleNotFound) String() string
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
func (*GetBackendSwitchingRuleOK) IsClientError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) IsClientError() bool
IsClientError returns true when this get backend switching rule o k response has a 4xx status code
func (*GetBackendSwitchingRuleOK) IsCode ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) IsCode(code int) bool
IsCode returns true when this get backend switching rule o k response a status code equal to that given
func (*GetBackendSwitchingRuleOK) IsRedirect ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) IsRedirect() bool
IsRedirect returns true when this get backend switching rule o k response has a 3xx status code
func (*GetBackendSwitchingRuleOK) IsServerError ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) IsServerError() bool
IsServerError returns true when this get backend switching rule o k response has a 5xx status code
func (*GetBackendSwitchingRuleOK) IsSuccess ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) IsSuccess() bool
IsSuccess returns true when this get backend switching rule o k response has a 2xx status code
func (*GetBackendSwitchingRuleOK) String ¶ added in v1.1.0
func (o *GetBackendSwitchingRuleOK) String() string
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
func (*GetBackendSwitchingRulesDefault) IsClientError ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) IsClientError() bool
IsClientError returns true when this get backend switching rules default response has a 4xx status code
func (*GetBackendSwitchingRulesDefault) IsCode ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) IsCode(code int) bool
IsCode returns true when this get backend switching rules default response a status code equal to that given
func (*GetBackendSwitchingRulesDefault) IsRedirect ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) IsRedirect() bool
IsRedirect returns true when this get backend switching rules default response has a 3xx status code
func (*GetBackendSwitchingRulesDefault) IsServerError ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) IsServerError() bool
IsServerError returns true when this get backend switching rules default response has a 5xx status code
func (*GetBackendSwitchingRulesDefault) IsSuccess ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) IsSuccess() bool
IsSuccess returns true when this get backend switching rules default response has a 2xx status code
func (*GetBackendSwitchingRulesDefault) String ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesDefault) String() string
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
func (*GetBackendSwitchingRulesOK) IsClientError ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) IsClientError() bool
IsClientError returns true when this get backend switching rules o k response has a 4xx status code
func (*GetBackendSwitchingRulesOK) IsCode ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) IsCode(code int) bool
IsCode returns true when this get backend switching rules o k response a status code equal to that given
func (*GetBackendSwitchingRulesOK) IsRedirect ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) IsRedirect() bool
IsRedirect returns true when this get backend switching rules o k response has a 3xx status code
func (*GetBackendSwitchingRulesOK) IsServerError ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) IsServerError() bool
IsServerError returns true when this get backend switching rules o k response has a 5xx status code
func (*GetBackendSwitchingRulesOK) IsSuccess ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) IsSuccess() bool
IsSuccess returns true when this get backend switching rules o k response has a 2xx status code
func (*GetBackendSwitchingRulesOK) String ¶ added in v1.1.0
func (o *GetBackendSwitchingRulesOK) String() string
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
func (*ReplaceBackendSwitchingRuleAccepted) IsClientError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) IsClientError() bool
IsClientError returns true when this replace backend switching rule accepted response has a 4xx status code
func (*ReplaceBackendSwitchingRuleAccepted) IsCode ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) IsCode(code int) bool
IsCode returns true when this replace backend switching rule accepted response a status code equal to that given
func (*ReplaceBackendSwitchingRuleAccepted) IsRedirect ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) IsRedirect() bool
IsRedirect returns true when this replace backend switching rule accepted response has a 3xx status code
func (*ReplaceBackendSwitchingRuleAccepted) IsServerError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) IsServerError() bool
IsServerError returns true when this replace backend switching rule accepted response has a 5xx status code
func (*ReplaceBackendSwitchingRuleAccepted) IsSuccess ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) IsSuccess() bool
IsSuccess returns true when this replace backend switching rule accepted response has a 2xx status code
func (*ReplaceBackendSwitchingRuleAccepted) String ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleAccepted) String() string
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
func (*ReplaceBackendSwitchingRuleBadRequest) IsClientError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) IsClientError() bool
IsClientError returns true when this replace backend switching rule bad request response has a 4xx status code
func (*ReplaceBackendSwitchingRuleBadRequest) IsCode ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) IsCode(code int) bool
IsCode returns true when this replace backend switching rule bad request response a status code equal to that given
func (*ReplaceBackendSwitchingRuleBadRequest) IsRedirect ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) IsRedirect() bool
IsRedirect returns true when this replace backend switching rule bad request response has a 3xx status code
func (*ReplaceBackendSwitchingRuleBadRequest) IsServerError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) IsServerError() bool
IsServerError returns true when this replace backend switching rule bad request response has a 5xx status code
func (*ReplaceBackendSwitchingRuleBadRequest) IsSuccess ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) IsSuccess() bool
IsSuccess returns true when this replace backend switching rule bad request response has a 2xx status code
func (*ReplaceBackendSwitchingRuleBadRequest) String ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleBadRequest) String() string
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
func (*ReplaceBackendSwitchingRuleDefault) IsClientError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) IsClientError() bool
IsClientError returns true when this replace backend switching rule default response has a 4xx status code
func (*ReplaceBackendSwitchingRuleDefault) IsCode ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) IsCode(code int) bool
IsCode returns true when this replace backend switching rule default response a status code equal to that given
func (*ReplaceBackendSwitchingRuleDefault) IsRedirect ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) IsRedirect() bool
IsRedirect returns true when this replace backend switching rule default response has a 3xx status code
func (*ReplaceBackendSwitchingRuleDefault) IsServerError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) IsServerError() bool
IsServerError returns true when this replace backend switching rule default response has a 5xx status code
func (*ReplaceBackendSwitchingRuleDefault) IsSuccess ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) IsSuccess() bool
IsSuccess returns true when this replace backend switching rule default response has a 2xx status code
func (*ReplaceBackendSwitchingRuleDefault) String ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleDefault) String() string
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
func (*ReplaceBackendSwitchingRuleNotFound) IsClientError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) IsClientError() bool
IsClientError returns true when this replace backend switching rule not found response has a 4xx status code
func (*ReplaceBackendSwitchingRuleNotFound) IsCode ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) IsCode(code int) bool
IsCode returns true when this replace backend switching rule not found response a status code equal to that given
func (*ReplaceBackendSwitchingRuleNotFound) IsRedirect ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) IsRedirect() bool
IsRedirect returns true when this replace backend switching rule not found response has a 3xx status code
func (*ReplaceBackendSwitchingRuleNotFound) IsServerError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) IsServerError() bool
IsServerError returns true when this replace backend switching rule not found response has a 5xx status code
func (*ReplaceBackendSwitchingRuleNotFound) IsSuccess ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) IsSuccess() bool
IsSuccess returns true when this replace backend switching rule not found response has a 2xx status code
func (*ReplaceBackendSwitchingRuleNotFound) String ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleNotFound) String() string
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
func (*ReplaceBackendSwitchingRuleOK) IsClientError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) IsClientError() bool
IsClientError returns true when this replace backend switching rule o k response has a 4xx status code
func (*ReplaceBackendSwitchingRuleOK) IsCode ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) IsCode(code int) bool
IsCode returns true when this replace backend switching rule o k response a status code equal to that given
func (*ReplaceBackendSwitchingRuleOK) IsRedirect ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) IsRedirect() bool
IsRedirect returns true when this replace backend switching rule o k response has a 3xx status code
func (*ReplaceBackendSwitchingRuleOK) IsServerError ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) IsServerError() bool
IsServerError returns true when this replace backend switching rule o k response has a 5xx status code
func (*ReplaceBackendSwitchingRuleOK) IsSuccess ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) IsSuccess() bool
IsSuccess returns true when this replace backend switching rule o k response has a 2xx status code
func (*ReplaceBackendSwitchingRuleOK) String ¶ added in v1.1.0
func (o *ReplaceBackendSwitchingRuleOK) String() string
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