backend_switching_rule

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for backend switching rule API

func (*Client) CreateBackendSwitchingRule

CreateBackendSwitchingRule adds a new backend switching rule

Adds a new Backend Switching Rule of the specified type in the specified frontend.

func (*Client) DeleteBackendSwitchingRule

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

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

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) Code added in v1.1.5

Code gets the status code for the create backend switching rule accepted response

func (*CreateBackendSwitchingRuleAccepted) Error

func (*CreateBackendSwitchingRuleAccepted) GetPayload

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

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

IsSuccess returns true when this create backend switching rule accepted response has a 2xx status code

func (*CreateBackendSwitchingRuleAccepted) String added in v1.1.0

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) Code added in v1.1.5

Code gets the status code for the create backend switching rule bad request response

func (*CreateBackendSwitchingRuleBadRequest) Error

func (*CreateBackendSwitchingRuleBadRequest) GetPayload

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

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

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

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

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) Code added in v1.1.5

Code gets the status code for the create backend switching rule conflict response

func (*CreateBackendSwitchingRuleConflict) Error

func (*CreateBackendSwitchingRuleConflict) GetPayload

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

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

IsSuccess returns true when this create backend switching rule conflict response has a 2xx status code

func (*CreateBackendSwitchingRuleConflict) String added in v1.1.0

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) Code added in v1.1.5

Code gets the status code for the create backend switching rule created response

func (*CreateBackendSwitchingRuleCreated) Error

func (*CreateBackendSwitchingRuleCreated) GetPayload

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

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

Code gets the status code for the create backend switching rule default response

func (*CreateBackendSwitchingRuleDefault) Error

func (*CreateBackendSwitchingRuleDefault) GetPayload

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

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

SetContext adds the context to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) SetData

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

WithContext adds the context to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WithData

WithData adds the data to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WithDefaults

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

WithForceReload adds the forceReload to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WithFrontend

WithFrontend adds the frontend to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WithTimeout

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

WithVersion adds the version to the create backend switching rule params

func (*CreateBackendSwitchingRuleParams) WriteToRequest

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) Code added in v1.1.5

Code gets the status code for the delete backend switching rule accepted response

func (*DeleteBackendSwitchingRuleAccepted) Error

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

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

IsSuccess returns true when this delete backend switching rule accepted response has a 2xx status code

func (*DeleteBackendSwitchingRuleAccepted) String added in v1.1.0

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

Code gets the status code for the delete backend switching rule default response

func (*DeleteBackendSwitchingRuleDefault) Error

func (*DeleteBackendSwitchingRuleDefault) GetPayload

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

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) Code added in v1.1.5

Code gets the status code for the delete backend switching rule no content response

func (*DeleteBackendSwitchingRuleNoContent) Error

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

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

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

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) Code added in v1.1.5

Code gets the status code for the delete backend switching rule not found response

func (*DeleteBackendSwitchingRuleNotFound) Error

func (*DeleteBackendSwitchingRuleNotFound) GetPayload

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

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

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

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

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

WithContext adds the context to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WithDefaults

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

WithForceReload adds the forceReload to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WithFrontend

WithFrontend adds the frontend to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WithIndex

WithIndex adds the index to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WithTimeout

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

WithVersion adds the version to the delete backend switching rule params

func (*DeleteBackendSwitchingRuleParams) WriteToRequest

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

Code gets the status code for the get backend switching rule default response

func (*GetBackendSwitchingRuleDefault) Error

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

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) Code added in v1.1.5

Code gets the status code for the get backend switching rule not found response

func (*GetBackendSwitchingRuleNotFound) Error

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

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) Code added in v1.1.5

func (o *GetBackendSwitchingRuleOK) Code() int

Code gets the status code for the get backend switching rule o k response

func (*GetBackendSwitchingRuleOK) Error

func (o *GetBackendSwitchingRuleOK) Error() string

func (*GetBackendSwitchingRuleOK) GetPayload

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

func (*GetBackendSwitchingRuleOKBody) Validate

func (o *GetBackendSwitchingRuleOKBody) Validate(formats strfmt.Registry) error

Validate validates this get backend switching rule o k body

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

WithContext adds the context to the get backend switching rule params

func (*GetBackendSwitchingRuleParams) WithDefaults

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

WithFrontend adds the frontend to the get backend switching rule params

func (*GetBackendSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get backend switching rule params

func (*GetBackendSwitchingRuleParams) WithIndex

WithIndex adds the index to the get backend switching rule params

func (*GetBackendSwitchingRuleParams) WithTimeout

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

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

Code gets the status code for the get backend switching rules default response

func (*GetBackendSwitchingRulesDefault) Error

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

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) Code added in v1.1.5

func (o *GetBackendSwitchingRulesOK) Code() int

Code gets the status code for the get backend switching rules o k response

func (*GetBackendSwitchingRulesOK) Error

func (*GetBackendSwitchingRulesOK) GetPayload

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

func (*GetBackendSwitchingRulesOKBody) Validate

func (o *GetBackendSwitchingRulesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get backend switching rules o k body

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

WithContext adds the context to the get backend switching rules params

func (*GetBackendSwitchingRulesParams) WithDefaults

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

WithFrontend adds the frontend to the get backend switching rules params

func (*GetBackendSwitchingRulesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get backend switching rules params

func (*GetBackendSwitchingRulesParams) WithTimeout

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

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) Code added in v1.1.5

Code gets the status code for the replace backend switching rule accepted response

func (*ReplaceBackendSwitchingRuleAccepted) Error

func (*ReplaceBackendSwitchingRuleAccepted) GetPayload

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

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

IsSuccess returns true when this replace backend switching rule accepted response has a 2xx status code

func (*ReplaceBackendSwitchingRuleAccepted) String added in v1.1.0

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) Code added in v1.1.5

Code gets the status code for the replace backend switching rule bad request response

func (*ReplaceBackendSwitchingRuleBadRequest) Error

func (*ReplaceBackendSwitchingRuleBadRequest) GetPayload

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

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

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

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

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

Code gets the status code for the replace backend switching rule default response

func (*ReplaceBackendSwitchingRuleDefault) Error

func (*ReplaceBackendSwitchingRuleDefault) GetPayload

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

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

IsSuccess returns true when this replace backend switching rule default response has a 2xx status code

func (*ReplaceBackendSwitchingRuleDefault) String added in v1.1.0

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) Code added in v1.1.5

Code gets the status code for the replace backend switching rule not found response

func (*ReplaceBackendSwitchingRuleNotFound) Error

func (*ReplaceBackendSwitchingRuleNotFound) GetPayload

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

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

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

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) Code added in v1.1.5

Code gets the status code for the replace backend switching rule o k response

func (*ReplaceBackendSwitchingRuleOK) Error

func (*ReplaceBackendSwitchingRuleOK) GetPayload

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

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

SetContext adds the context to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) SetData

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

WithContext adds the context to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithData

WithData adds the data to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithDefaults

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

WithForceReload adds the forceReload to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithFrontend

WithFrontend adds the frontend to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithIndex

WithIndex adds the index to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WithTimeout

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

WithVersion adds the version to the replace backend switching rule params

func (*ReplaceBackendSwitchingRuleParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL