server_switching_rule

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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 server switching rule API

func (*Client) CreateServerSwitchingRule

CreateServerSwitchingRule adds a new server switching rule

Adds a new Server Switching Rule of the specified type in the specified backend.

func (*Client) DeleteServerSwitchingRule

DeleteServerSwitchingRule deletes a server switching rule

Deletes a Server Switching Rule configuration by it's index from the specified backend.

func (*Client) GetServerSwitchingRule

func (a *Client) GetServerSwitchingRule(params *GetServerSwitchingRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRuleOK, error)

GetServerSwitchingRule returns one server switching rule

Returns one Server Switching Rule configuration by it's index in the specified backend.

func (*Client) GetServerSwitchingRules

func (a *Client) GetServerSwitchingRules(params *GetServerSwitchingRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerSwitchingRulesOK, error)

GetServerSwitchingRules returns an array of all server switching rules

Returns all Backend Switching Rules that are configured in specified backend.

func (*Client) ReplaceServerSwitchingRule

ReplaceServerSwitchingRule replaces a server switching rule

Replaces a Server Switching Rule configuration by it's index in the specified backend.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new server switching rule API client.

type CreateServerSwitchingRuleAccepted

type CreateServerSwitchingRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.ServerSwitchingRule
}
CreateServerSwitchingRuleAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateServerSwitchingRuleAccepted

func NewCreateServerSwitchingRuleAccepted() *CreateServerSwitchingRuleAccepted

NewCreateServerSwitchingRuleAccepted creates a CreateServerSwitchingRuleAccepted with default headers values

func (*CreateServerSwitchingRuleAccepted) Error

func (*CreateServerSwitchingRuleAccepted) GetPayload

type CreateServerSwitchingRuleBadRequest

type CreateServerSwitchingRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
CreateServerSwitchingRuleBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateServerSwitchingRuleBadRequest

func NewCreateServerSwitchingRuleBadRequest() *CreateServerSwitchingRuleBadRequest

NewCreateServerSwitchingRuleBadRequest creates a CreateServerSwitchingRuleBadRequest with default headers values

func (*CreateServerSwitchingRuleBadRequest) Error

func (*CreateServerSwitchingRuleBadRequest) GetPayload

type CreateServerSwitchingRuleConflict

type CreateServerSwitchingRuleConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
CreateServerSwitchingRuleConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateServerSwitchingRuleConflict

func NewCreateServerSwitchingRuleConflict() *CreateServerSwitchingRuleConflict

NewCreateServerSwitchingRuleConflict creates a CreateServerSwitchingRuleConflict with default headers values

func (*CreateServerSwitchingRuleConflict) Error

func (*CreateServerSwitchingRuleConflict) GetPayload

type CreateServerSwitchingRuleCreated

type CreateServerSwitchingRuleCreated struct {
	Payload *models.ServerSwitchingRule
}
CreateServerSwitchingRuleCreated describes a response with status code 201, with default header values.

Server Switching Rule created

func NewCreateServerSwitchingRuleCreated

func NewCreateServerSwitchingRuleCreated() *CreateServerSwitchingRuleCreated

NewCreateServerSwitchingRuleCreated creates a CreateServerSwitchingRuleCreated with default headers values

func (*CreateServerSwitchingRuleCreated) Error

func (*CreateServerSwitchingRuleCreated) GetPayload

type CreateServerSwitchingRuleDefault

type CreateServerSwitchingRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
CreateServerSwitchingRuleDefault describes a response with status code -1, with default header values.

General Error

func NewCreateServerSwitchingRuleDefault

func NewCreateServerSwitchingRuleDefault(code int) *CreateServerSwitchingRuleDefault

NewCreateServerSwitchingRuleDefault creates a CreateServerSwitchingRuleDefault with default headers values

func (*CreateServerSwitchingRuleDefault) Code

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

func (*CreateServerSwitchingRuleDefault) Error

func (*CreateServerSwitchingRuleDefault) GetPayload

type CreateServerSwitchingRuleParams

type CreateServerSwitchingRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	// Data.
	Data *models.ServerSwitchingRule

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateServerSwitchingRuleParams contains all the parameters to send to the API endpoint

for the create server switching rule operation.

Typically these are written to a http.Request.

func NewCreateServerSwitchingRuleParams

func NewCreateServerSwitchingRuleParams() *CreateServerSwitchingRuleParams

NewCreateServerSwitchingRuleParams creates a new CreateServerSwitchingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateServerSwitchingRuleParamsWithContext

func NewCreateServerSwitchingRuleParamsWithContext(ctx context.Context) *CreateServerSwitchingRuleParams

NewCreateServerSwitchingRuleParamsWithContext creates a new CreateServerSwitchingRuleParams object with the ability to set a context for a request.

func NewCreateServerSwitchingRuleParamsWithHTTPClient

func NewCreateServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *CreateServerSwitchingRuleParams

NewCreateServerSwitchingRuleParamsWithHTTPClient creates a new CreateServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServerSwitchingRuleParamsWithTimeout

func NewCreateServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *CreateServerSwitchingRuleParams

NewCreateServerSwitchingRuleParamsWithTimeout creates a new CreateServerSwitchingRuleParams object with the ability to set a timeout on a request.

func (*CreateServerSwitchingRuleParams) SetBackend

func (o *CreateServerSwitchingRuleParams) SetBackend(backend string)

SetBackend adds the backend to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetContext

func (o *CreateServerSwitchingRuleParams) SetContext(ctx context.Context)

SetContext adds the context to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetData

SetData adds the data to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetDefaults

func (o *CreateServerSwitchingRuleParams) SetDefaults()

SetDefaults hydrates default values in the create server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServerSwitchingRuleParams) SetForceReload

func (o *CreateServerSwitchingRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetHTTPClient

func (o *CreateServerSwitchingRuleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetTimeout

func (o *CreateServerSwitchingRuleParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetTransactionID

func (o *CreateServerSwitchingRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create server switching rule params

func (*CreateServerSwitchingRuleParams) SetVersion

func (o *CreateServerSwitchingRuleParams) SetVersion(version *int64)

SetVersion adds the version to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithBackend

WithBackend adds the backend to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithContext

WithContext adds the context to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithData

WithData adds the data to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithDefaults

WithDefaults hydrates default values in the create server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServerSwitchingRuleParams) WithForceReload

func (o *CreateServerSwitchingRuleParams) WithForceReload(forceReload *bool) *CreateServerSwitchingRuleParams

WithForceReload adds the forceReload to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithTimeout

WithTimeout adds the timeout to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithTransactionID

func (o *CreateServerSwitchingRuleParams) WithTransactionID(transactionID *string) *CreateServerSwitchingRuleParams

WithTransactionID adds the transactionID to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WithVersion

WithVersion adds the version to the create server switching rule params

func (*CreateServerSwitchingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServerSwitchingRuleReader

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

CreateServerSwitchingRuleReader is a Reader for the CreateServerSwitchingRule structure.

func (*CreateServerSwitchingRuleReader) ReadResponse

func (o *CreateServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteServerSwitchingRuleAccepted

type DeleteServerSwitchingRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}
DeleteServerSwitchingRuleAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteServerSwitchingRuleAccepted

func NewDeleteServerSwitchingRuleAccepted() *DeleteServerSwitchingRuleAccepted

NewDeleteServerSwitchingRuleAccepted creates a DeleteServerSwitchingRuleAccepted with default headers values

func (*DeleteServerSwitchingRuleAccepted) Error

type DeleteServerSwitchingRuleDefault

type DeleteServerSwitchingRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
DeleteServerSwitchingRuleDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteServerSwitchingRuleDefault

func NewDeleteServerSwitchingRuleDefault(code int) *DeleteServerSwitchingRuleDefault

NewDeleteServerSwitchingRuleDefault creates a DeleteServerSwitchingRuleDefault with default headers values

func (*DeleteServerSwitchingRuleDefault) Code

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

func (*DeleteServerSwitchingRuleDefault) Error

func (*DeleteServerSwitchingRuleDefault) GetPayload

type DeleteServerSwitchingRuleNoContent

type DeleteServerSwitchingRuleNoContent struct {
}
DeleteServerSwitchingRuleNoContent describes a response with status code 204, with default header values.

Server Switching Rule deleted

func NewDeleteServerSwitchingRuleNoContent

func NewDeleteServerSwitchingRuleNoContent() *DeleteServerSwitchingRuleNoContent

NewDeleteServerSwitchingRuleNoContent creates a DeleteServerSwitchingRuleNoContent with default headers values

func (*DeleteServerSwitchingRuleNoContent) Error

type DeleteServerSwitchingRuleNotFound

type DeleteServerSwitchingRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
DeleteServerSwitchingRuleNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteServerSwitchingRuleNotFound

func NewDeleteServerSwitchingRuleNotFound() *DeleteServerSwitchingRuleNotFound

NewDeleteServerSwitchingRuleNotFound creates a DeleteServerSwitchingRuleNotFound with default headers values

func (*DeleteServerSwitchingRuleNotFound) Error

func (*DeleteServerSwitchingRuleNotFound) GetPayload

type DeleteServerSwitchingRuleParams

type DeleteServerSwitchingRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Index.

	   Switching Rule Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteServerSwitchingRuleParams contains all the parameters to send to the API endpoint

for the delete server switching rule operation.

Typically these are written to a http.Request.

func NewDeleteServerSwitchingRuleParams

func NewDeleteServerSwitchingRuleParams() *DeleteServerSwitchingRuleParams

NewDeleteServerSwitchingRuleParams creates a new DeleteServerSwitchingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteServerSwitchingRuleParamsWithContext

func NewDeleteServerSwitchingRuleParamsWithContext(ctx context.Context) *DeleteServerSwitchingRuleParams

NewDeleteServerSwitchingRuleParamsWithContext creates a new DeleteServerSwitchingRuleParams object with the ability to set a context for a request.

func NewDeleteServerSwitchingRuleParamsWithHTTPClient

func NewDeleteServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *DeleteServerSwitchingRuleParams

NewDeleteServerSwitchingRuleParamsWithHTTPClient creates a new DeleteServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServerSwitchingRuleParamsWithTimeout

func NewDeleteServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *DeleteServerSwitchingRuleParams

NewDeleteServerSwitchingRuleParamsWithTimeout creates a new DeleteServerSwitchingRuleParams object with the ability to set a timeout on a request.

func (*DeleteServerSwitchingRuleParams) SetBackend

func (o *DeleteServerSwitchingRuleParams) SetBackend(backend string)

SetBackend adds the backend to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetContext

func (o *DeleteServerSwitchingRuleParams) SetContext(ctx context.Context)

SetContext adds the context to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetDefaults

func (o *DeleteServerSwitchingRuleParams) SetDefaults()

SetDefaults hydrates default values in the delete server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteServerSwitchingRuleParams) SetForceReload

func (o *DeleteServerSwitchingRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetHTTPClient

func (o *DeleteServerSwitchingRuleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetIndex

func (o *DeleteServerSwitchingRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetTimeout

func (o *DeleteServerSwitchingRuleParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetTransactionID

func (o *DeleteServerSwitchingRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) SetVersion

func (o *DeleteServerSwitchingRuleParams) SetVersion(version *int64)

SetVersion adds the version to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithBackend

WithBackend adds the backend to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithContext

WithContext adds the context to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithDefaults

WithDefaults hydrates default values in the delete server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteServerSwitchingRuleParams) WithForceReload

func (o *DeleteServerSwitchingRuleParams) WithForceReload(forceReload *bool) *DeleteServerSwitchingRuleParams

WithForceReload adds the forceReload to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithIndex

WithIndex adds the index to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithTimeout

WithTimeout adds the timeout to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithTransactionID

func (o *DeleteServerSwitchingRuleParams) WithTransactionID(transactionID *string) *DeleteServerSwitchingRuleParams

WithTransactionID adds the transactionID to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WithVersion

WithVersion adds the version to the delete server switching rule params

func (*DeleteServerSwitchingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServerSwitchingRuleReader

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

DeleteServerSwitchingRuleReader is a Reader for the DeleteServerSwitchingRule structure.

func (*DeleteServerSwitchingRuleReader) ReadResponse

func (o *DeleteServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetServerSwitchingRuleDefault

type GetServerSwitchingRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
GetServerSwitchingRuleDefault describes a response with status code -1, with default header values.

General Error

func NewGetServerSwitchingRuleDefault

func NewGetServerSwitchingRuleDefault(code int) *GetServerSwitchingRuleDefault

NewGetServerSwitchingRuleDefault creates a GetServerSwitchingRuleDefault with default headers values

func (*GetServerSwitchingRuleDefault) Code

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

func (*GetServerSwitchingRuleDefault) Error

func (*GetServerSwitchingRuleDefault) GetPayload

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

type GetServerSwitchingRuleNotFound

type GetServerSwitchingRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
GetServerSwitchingRuleNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetServerSwitchingRuleNotFound

func NewGetServerSwitchingRuleNotFound() *GetServerSwitchingRuleNotFound

NewGetServerSwitchingRuleNotFound creates a GetServerSwitchingRuleNotFound with default headers values

func (*GetServerSwitchingRuleNotFound) Error

func (*GetServerSwitchingRuleNotFound) GetPayload

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

type GetServerSwitchingRuleOK

type GetServerSwitchingRuleOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetServerSwitchingRuleOKBody
}
GetServerSwitchingRuleOK describes a response with status code 200, with default header values.

Successful operation

func NewGetServerSwitchingRuleOK

func NewGetServerSwitchingRuleOK() *GetServerSwitchingRuleOK

NewGetServerSwitchingRuleOK creates a GetServerSwitchingRuleOK with default headers values

func (*GetServerSwitchingRuleOK) Error

func (o *GetServerSwitchingRuleOK) Error() string

func (*GetServerSwitchingRuleOK) GetPayload

type GetServerSwitchingRuleOKBody

type GetServerSwitchingRuleOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.ServerSwitchingRule `json:"data,omitempty"`
}

GetServerSwitchingRuleOKBody get server switching rule o k body swagger:model GetServerSwitchingRuleOKBody

func (*GetServerSwitchingRuleOKBody) ContextValidate

func (o *GetServerSwitchingRuleOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get server switching rule o k body based on the context it is used

func (*GetServerSwitchingRuleOKBody) MarshalBinary

func (o *GetServerSwitchingRuleOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServerSwitchingRuleOKBody) UnmarshalBinary

func (o *GetServerSwitchingRuleOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServerSwitchingRuleOKBody) Validate

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

Validate validates this get server switching rule o k body

type GetServerSwitchingRuleParams

type GetServerSwitchingRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	/* Index.

	   Switching Rule Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetServerSwitchingRuleParams contains all the parameters to send to the API endpoint

for the get server switching rule operation.

Typically these are written to a http.Request.

func NewGetServerSwitchingRuleParams

func NewGetServerSwitchingRuleParams() *GetServerSwitchingRuleParams

NewGetServerSwitchingRuleParams creates a new GetServerSwitchingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetServerSwitchingRuleParamsWithContext

func NewGetServerSwitchingRuleParamsWithContext(ctx context.Context) *GetServerSwitchingRuleParams

NewGetServerSwitchingRuleParamsWithContext creates a new GetServerSwitchingRuleParams object with the ability to set a context for a request.

func NewGetServerSwitchingRuleParamsWithHTTPClient

func NewGetServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRuleParams

NewGetServerSwitchingRuleParamsWithHTTPClient creates a new GetServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewGetServerSwitchingRuleParamsWithTimeout

func NewGetServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRuleParams

NewGetServerSwitchingRuleParamsWithTimeout creates a new GetServerSwitchingRuleParams object with the ability to set a timeout on a request.

func (*GetServerSwitchingRuleParams) SetBackend

func (o *GetServerSwitchingRuleParams) SetBackend(backend string)

SetBackend adds the backend to the get server switching rule params

func (*GetServerSwitchingRuleParams) SetContext

func (o *GetServerSwitchingRuleParams) SetContext(ctx context.Context)

SetContext adds the context to the get server switching rule params

func (*GetServerSwitchingRuleParams) SetDefaults

func (o *GetServerSwitchingRuleParams) SetDefaults()

SetDefaults hydrates default values in the get server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*GetServerSwitchingRuleParams) SetHTTPClient

func (o *GetServerSwitchingRuleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get server switching rule params

func (*GetServerSwitchingRuleParams) SetIndex

func (o *GetServerSwitchingRuleParams) SetIndex(index int64)

SetIndex adds the index to the get server switching rule params

func (*GetServerSwitchingRuleParams) SetTimeout

func (o *GetServerSwitchingRuleParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get server switching rule params

func (*GetServerSwitchingRuleParams) SetTransactionID

func (o *GetServerSwitchingRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithBackend

WithBackend adds the backend to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithContext

WithContext adds the context to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithDefaults

WithDefaults hydrates default values in the get server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*GetServerSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithIndex

WithIndex adds the index to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithTimeout

WithTimeout adds the timeout to the get server switching rule params

func (*GetServerSwitchingRuleParams) WithTransactionID

func (o *GetServerSwitchingRuleParams) WithTransactionID(transactionID *string) *GetServerSwitchingRuleParams

WithTransactionID adds the transactionID to the get server switching rule params

func (*GetServerSwitchingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServerSwitchingRuleReader

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

GetServerSwitchingRuleReader is a Reader for the GetServerSwitchingRule structure.

func (*GetServerSwitchingRuleReader) ReadResponse

func (o *GetServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetServerSwitchingRulesDefault

type GetServerSwitchingRulesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
GetServerSwitchingRulesDefault describes a response with status code -1, with default header values.

General Error

func NewGetServerSwitchingRulesDefault

func NewGetServerSwitchingRulesDefault(code int) *GetServerSwitchingRulesDefault

NewGetServerSwitchingRulesDefault creates a GetServerSwitchingRulesDefault with default headers values

func (*GetServerSwitchingRulesDefault) Code

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

func (*GetServerSwitchingRulesDefault) Error

func (*GetServerSwitchingRulesDefault) GetPayload

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

type GetServerSwitchingRulesOK

type GetServerSwitchingRulesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetServerSwitchingRulesOKBody
}
GetServerSwitchingRulesOK describes a response with status code 200, with default header values.

Successful operation

func NewGetServerSwitchingRulesOK

func NewGetServerSwitchingRulesOK() *GetServerSwitchingRulesOK

NewGetServerSwitchingRulesOK creates a GetServerSwitchingRulesOK with default headers values

func (*GetServerSwitchingRulesOK) Error

func (o *GetServerSwitchingRulesOK) Error() string

func (*GetServerSwitchingRulesOK) GetPayload

type GetServerSwitchingRulesOKBody

type GetServerSwitchingRulesOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.ServerSwitchingRules `json:"data"`
}

GetServerSwitchingRulesOKBody get server switching rules o k body swagger:model GetServerSwitchingRulesOKBody

func (*GetServerSwitchingRulesOKBody) ContextValidate

func (o *GetServerSwitchingRulesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get server switching rules o k body based on the context it is used

func (*GetServerSwitchingRulesOKBody) MarshalBinary

func (o *GetServerSwitchingRulesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServerSwitchingRulesOKBody) UnmarshalBinary

func (o *GetServerSwitchingRulesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServerSwitchingRulesOKBody) Validate

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

Validate validates this get server switching rules o k body

type GetServerSwitchingRulesParams

type GetServerSwitchingRulesParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetServerSwitchingRulesParams contains all the parameters to send to the API endpoint

for the get server switching rules operation.

Typically these are written to a http.Request.

func NewGetServerSwitchingRulesParams

func NewGetServerSwitchingRulesParams() *GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParams creates a new GetServerSwitchingRulesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetServerSwitchingRulesParamsWithContext

func NewGetServerSwitchingRulesParamsWithContext(ctx context.Context) *GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParamsWithContext creates a new GetServerSwitchingRulesParams object with the ability to set a context for a request.

func NewGetServerSwitchingRulesParamsWithHTTPClient

func NewGetServerSwitchingRulesParamsWithHTTPClient(client *http.Client) *GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParamsWithHTTPClient creates a new GetServerSwitchingRulesParams object with the ability to set a custom HTTPClient for a request.

func NewGetServerSwitchingRulesParamsWithTimeout

func NewGetServerSwitchingRulesParamsWithTimeout(timeout time.Duration) *GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParamsWithTimeout creates a new GetServerSwitchingRulesParams object with the ability to set a timeout on a request.

func (*GetServerSwitchingRulesParams) SetBackend

func (o *GetServerSwitchingRulesParams) SetBackend(backend string)

SetBackend adds the backend to the get server switching rules params

func (*GetServerSwitchingRulesParams) SetContext

func (o *GetServerSwitchingRulesParams) SetContext(ctx context.Context)

SetContext adds the context to the get server switching rules params

func (*GetServerSwitchingRulesParams) SetDefaults

func (o *GetServerSwitchingRulesParams) SetDefaults()

SetDefaults hydrates default values in the get server switching rules params (not the query body).

All values with no default are reset to their zero value.

func (*GetServerSwitchingRulesParams) SetHTTPClient

func (o *GetServerSwitchingRulesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get server switching rules params

func (*GetServerSwitchingRulesParams) SetTimeout

func (o *GetServerSwitchingRulesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get server switching rules params

func (*GetServerSwitchingRulesParams) SetTransactionID

func (o *GetServerSwitchingRulesParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get server switching rules params

func (*GetServerSwitchingRulesParams) WithBackend

WithBackend adds the backend to the get server switching rules params

func (*GetServerSwitchingRulesParams) WithContext

WithContext adds the context to the get server switching rules params

func (*GetServerSwitchingRulesParams) WithDefaults

WithDefaults hydrates default values in the get server switching rules params (not the query body).

All values with no default are reset to their zero value.

func (*GetServerSwitchingRulesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get server switching rules params

func (*GetServerSwitchingRulesParams) WithTimeout

WithTimeout adds the timeout to the get server switching rules params

func (*GetServerSwitchingRulesParams) WithTransactionID

func (o *GetServerSwitchingRulesParams) WithTransactionID(transactionID *string) *GetServerSwitchingRulesParams

WithTransactionID adds the transactionID to the get server switching rules params

func (*GetServerSwitchingRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServerSwitchingRulesReader

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

GetServerSwitchingRulesReader is a Reader for the GetServerSwitchingRules structure.

func (*GetServerSwitchingRulesReader) ReadResponse

func (o *GetServerSwitchingRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ReplaceServerSwitchingRuleAccepted

type ReplaceServerSwitchingRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.ServerSwitchingRule
}
ReplaceServerSwitchingRuleAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceServerSwitchingRuleAccepted

func NewReplaceServerSwitchingRuleAccepted() *ReplaceServerSwitchingRuleAccepted

NewReplaceServerSwitchingRuleAccepted creates a ReplaceServerSwitchingRuleAccepted with default headers values

func (*ReplaceServerSwitchingRuleAccepted) Error

func (*ReplaceServerSwitchingRuleAccepted) GetPayload

type ReplaceServerSwitchingRuleBadRequest

type ReplaceServerSwitchingRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
ReplaceServerSwitchingRuleBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceServerSwitchingRuleBadRequest

func NewReplaceServerSwitchingRuleBadRequest() *ReplaceServerSwitchingRuleBadRequest

NewReplaceServerSwitchingRuleBadRequest creates a ReplaceServerSwitchingRuleBadRequest with default headers values

func (*ReplaceServerSwitchingRuleBadRequest) Error

func (*ReplaceServerSwitchingRuleBadRequest) GetPayload

type ReplaceServerSwitchingRuleDefault

type ReplaceServerSwitchingRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
ReplaceServerSwitchingRuleDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceServerSwitchingRuleDefault

func NewReplaceServerSwitchingRuleDefault(code int) *ReplaceServerSwitchingRuleDefault

NewReplaceServerSwitchingRuleDefault creates a ReplaceServerSwitchingRuleDefault with default headers values

func (*ReplaceServerSwitchingRuleDefault) Code

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

func (*ReplaceServerSwitchingRuleDefault) Error

func (*ReplaceServerSwitchingRuleDefault) GetPayload

type ReplaceServerSwitchingRuleNotFound

type ReplaceServerSwitchingRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}
ReplaceServerSwitchingRuleNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceServerSwitchingRuleNotFound

func NewReplaceServerSwitchingRuleNotFound() *ReplaceServerSwitchingRuleNotFound

NewReplaceServerSwitchingRuleNotFound creates a ReplaceServerSwitchingRuleNotFound with default headers values

func (*ReplaceServerSwitchingRuleNotFound) Error

func (*ReplaceServerSwitchingRuleNotFound) GetPayload

type ReplaceServerSwitchingRuleOK

type ReplaceServerSwitchingRuleOK struct {
	Payload *models.ServerSwitchingRule
}
ReplaceServerSwitchingRuleOK describes a response with status code 200, with default header values.

Server Switching Rule replaced

func NewReplaceServerSwitchingRuleOK

func NewReplaceServerSwitchingRuleOK() *ReplaceServerSwitchingRuleOK

NewReplaceServerSwitchingRuleOK creates a ReplaceServerSwitchingRuleOK with default headers values

func (*ReplaceServerSwitchingRuleOK) Error

func (*ReplaceServerSwitchingRuleOK) GetPayload

type ReplaceServerSwitchingRuleParams

type ReplaceServerSwitchingRuleParams struct {

	/* Backend.

	   Backend name
	*/
	Backend string

	// Data.
	Data *models.ServerSwitchingRule

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Index.

	   Switching Rule Index
	*/
	Index int64

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReplaceServerSwitchingRuleParams contains all the parameters to send to the API endpoint

for the replace server switching rule operation.

Typically these are written to a http.Request.

func NewReplaceServerSwitchingRuleParams

func NewReplaceServerSwitchingRuleParams() *ReplaceServerSwitchingRuleParams

NewReplaceServerSwitchingRuleParams creates a new ReplaceServerSwitchingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewReplaceServerSwitchingRuleParamsWithContext

func NewReplaceServerSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams

NewReplaceServerSwitchingRuleParamsWithContext creates a new ReplaceServerSwitchingRuleParams object with the ability to set a context for a request.

func NewReplaceServerSwitchingRuleParamsWithHTTPClient

func NewReplaceServerSwitchingRuleParamsWithHTTPClient(client *http.Client) *ReplaceServerSwitchingRuleParams

NewReplaceServerSwitchingRuleParamsWithHTTPClient creates a new ReplaceServerSwitchingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceServerSwitchingRuleParamsWithTimeout

func NewReplaceServerSwitchingRuleParamsWithTimeout(timeout time.Duration) *ReplaceServerSwitchingRuleParams

NewReplaceServerSwitchingRuleParamsWithTimeout creates a new ReplaceServerSwitchingRuleParams object with the ability to set a timeout on a request.

func (*ReplaceServerSwitchingRuleParams) SetBackend

func (o *ReplaceServerSwitchingRuleParams) SetBackend(backend string)

SetBackend adds the backend to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetContext

SetContext adds the context to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetData

SetData adds the data to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetDefaults

func (o *ReplaceServerSwitchingRuleParams) SetDefaults()

SetDefaults hydrates default values in the replace server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*ReplaceServerSwitchingRuleParams) SetForceReload

func (o *ReplaceServerSwitchingRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetHTTPClient

func (o *ReplaceServerSwitchingRuleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetIndex

func (o *ReplaceServerSwitchingRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetTimeout

func (o *ReplaceServerSwitchingRuleParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetTransactionID

func (o *ReplaceServerSwitchingRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) SetVersion

func (o *ReplaceServerSwitchingRuleParams) SetVersion(version *int64)

SetVersion adds the version to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithBackend

WithBackend adds the backend to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithContext

WithContext adds the context to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithData

WithData adds the data to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithDefaults

WithDefaults hydrates default values in the replace server switching rule params (not the query body).

All values with no default are reset to their zero value.

func (*ReplaceServerSwitchingRuleParams) WithForceReload

WithForceReload adds the forceReload to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithIndex

WithIndex adds the index to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithTimeout

WithTimeout adds the timeout to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithTransactionID

func (o *ReplaceServerSwitchingRuleParams) WithTransactionID(transactionID *string) *ReplaceServerSwitchingRuleParams

WithTransactionID adds the transactionID to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WithVersion

WithVersion adds the version to the replace server switching rule params

func (*ReplaceServerSwitchingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceServerSwitchingRuleReader

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

ReplaceServerSwitchingRuleReader is a Reader for the ReplaceServerSwitchingRule structure.

func (*ReplaceServerSwitchingRuleReader) ReadResponse

func (o *ReplaceServerSwitchingRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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