backend_switching_rule

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 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) (*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) (*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 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 handles this case 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 (*CreateBackendSwitchingRuleAccepted) GetPayload

type CreateBackendSwitchingRuleBadRequest

type CreateBackendSwitchingRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateBackendSwitchingRuleBadRequest handles this case with default header values.

Bad request

func NewCreateBackendSwitchingRuleBadRequest

func NewCreateBackendSwitchingRuleBadRequest() *CreateBackendSwitchingRuleBadRequest

NewCreateBackendSwitchingRuleBadRequest creates a CreateBackendSwitchingRuleBadRequest with default headers values

func (*CreateBackendSwitchingRuleBadRequest) Error

func (*CreateBackendSwitchingRuleBadRequest) GetPayload

type CreateBackendSwitchingRuleConflict

type CreateBackendSwitchingRuleConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateBackendSwitchingRuleConflict handles this case 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 (*CreateBackendSwitchingRuleConflict) GetPayload

type CreateBackendSwitchingRuleCreated

type CreateBackendSwitchingRuleCreated struct {
	Payload *models.BackendSwitchingRule
}

CreateBackendSwitchingRuleCreated handles this case 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 (*CreateBackendSwitchingRuleCreated) GetPayload

type CreateBackendSwitchingRuleDefault

type CreateBackendSwitchingRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateBackendSwitchingRuleDefault handles this case 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

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 values initialized.

func NewCreateBackendSwitchingRuleParamsWithContext

func NewCreateBackendSwitchingRuleParamsWithContext(ctx context.Context) *CreateBackendSwitchingRuleParams

NewCreateBackendSwitchingRuleParamsWithContext creates a new CreateBackendSwitchingRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type DeleteBackendSwitchingRuleDefault

type DeleteBackendSwitchingRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteBackendSwitchingRuleDefault handles this case 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

type DeleteBackendSwitchingRuleNoContent

type DeleteBackendSwitchingRuleNoContent struct {
}

DeleteBackendSwitchingRuleNoContent handles this case with default header values.

Backend Switching Rule deleted

func NewDeleteBackendSwitchingRuleNoContent

func NewDeleteBackendSwitchingRuleNoContent() *DeleteBackendSwitchingRuleNoContent

NewDeleteBackendSwitchingRuleNoContent creates a DeleteBackendSwitchingRuleNoContent with default headers values

func (*DeleteBackendSwitchingRuleNoContent) Error

type DeleteBackendSwitchingRuleNotFound

type DeleteBackendSwitchingRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteBackendSwitchingRuleNotFound handles this case 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 (*DeleteBackendSwitchingRuleNotFound) GetPayload

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 values initialized.

func NewDeleteBackendSwitchingRuleParamsWithContext

func NewDeleteBackendSwitchingRuleParamsWithContext(ctx context.Context) *DeleteBackendSwitchingRuleParams

NewDeleteBackendSwitchingRuleParamsWithContext creates a new DeleteBackendSwitchingRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetBackendSwitchingRuleNotFound

type GetBackendSwitchingRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetBackendSwitchingRuleNotFound handles this case 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 (*GetBackendSwitchingRuleNotFound) GetPayload

func (o *GetBackendSwitchingRuleNotFound) GetPayload() *models.Error

type GetBackendSwitchingRuleOK

type GetBackendSwitchingRuleOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetBackendSwitchingRuleOKBody
}

GetBackendSwitchingRuleOK handles this case 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

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) 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 values initialized.

func NewGetBackendSwitchingRuleParamsWithContext

func NewGetBackendSwitchingRuleParamsWithContext(ctx context.Context) *GetBackendSwitchingRuleParams

NewGetBackendSwitchingRuleParamsWithContext creates a new GetBackendSwitchingRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetBackendSwitchingRulesOK

type GetBackendSwitchingRulesOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetBackendSwitchingRulesOKBody
}

GetBackendSwitchingRulesOK handles this case with default header values.

Successful operation

func NewGetBackendSwitchingRulesOK

func NewGetBackendSwitchingRulesOK() *GetBackendSwitchingRulesOK

NewGetBackendSwitchingRulesOK creates a GetBackendSwitchingRulesOK with default headers values

func (*GetBackendSwitchingRulesOK) Error

func (*GetBackendSwitchingRulesOK) GetPayload

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) 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 values initialized.

func NewGetBackendSwitchingRulesParamsWithContext

func NewGetBackendSwitchingRulesParamsWithContext(ctx context.Context) *GetBackendSwitchingRulesParams

NewGetBackendSwitchingRulesParamsWithContext creates a new GetBackendSwitchingRulesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 (*ReplaceBackendSwitchingRuleAccepted) GetPayload

type ReplaceBackendSwitchingRuleBadRequest

type ReplaceBackendSwitchingRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceBackendSwitchingRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceBackendSwitchingRuleBadRequest

func NewReplaceBackendSwitchingRuleBadRequest() *ReplaceBackendSwitchingRuleBadRequest

NewReplaceBackendSwitchingRuleBadRequest creates a ReplaceBackendSwitchingRuleBadRequest with default headers values

func (*ReplaceBackendSwitchingRuleBadRequest) Error

func (*ReplaceBackendSwitchingRuleBadRequest) GetPayload

type ReplaceBackendSwitchingRuleDefault

type ReplaceBackendSwitchingRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceBackendSwitchingRuleDefault handles this case 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

type ReplaceBackendSwitchingRuleNotFound

type ReplaceBackendSwitchingRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceBackendSwitchingRuleNotFound handles this case 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 (*ReplaceBackendSwitchingRuleNotFound) GetPayload

type ReplaceBackendSwitchingRuleOK

type ReplaceBackendSwitchingRuleOK struct {
	Payload *models.BackendSwitchingRule
}

ReplaceBackendSwitchingRuleOK handles this case 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 (*ReplaceBackendSwitchingRuleOK) GetPayload

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 values initialized.

func NewReplaceBackendSwitchingRuleParamsWithContext

func NewReplaceBackendSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceBackendSwitchingRuleParams

NewReplaceBackendSwitchingRuleParamsWithContext creates a new ReplaceBackendSwitchingRuleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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