server_switching_rule

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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) (*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) (*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 ClientService added in v0.2.0

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 handles this case 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 added in v0.2.0

type CreateServerSwitchingRuleBadRequest

type CreateServerSwitchingRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateServerSwitchingRuleBadRequest handles this case 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 added in v0.2.0

type CreateServerSwitchingRuleConflict

type CreateServerSwitchingRuleConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateServerSwitchingRuleConflict handles this case 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 added in v0.2.0

type CreateServerSwitchingRuleCreated

type CreateServerSwitchingRuleCreated struct {
	Payload *models.ServerSwitchingRule
}

CreateServerSwitchingRuleCreated handles this case 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 added in v0.2.0

type CreateServerSwitchingRuleDefault

type CreateServerSwitchingRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateServerSwitchingRuleDefault handles this case 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 added in v0.2.0

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

func NewCreateServerSwitchingRuleParamsWithContext

func NewCreateServerSwitchingRuleParamsWithContext(ctx context.Context) *CreateServerSwitchingRuleParams

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

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

DeleteServerSwitchingRuleDefault handles this case 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 added in v0.2.0

type DeleteServerSwitchingRuleNoContent

type DeleteServerSwitchingRuleNoContent struct {
}

DeleteServerSwitchingRuleNoContent handles this case 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 int64

	Payload *models.Error
}

DeleteServerSwitchingRuleNotFound handles this case 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 added in v0.2.0

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

func NewDeleteServerSwitchingRuleParamsWithContext

func NewDeleteServerSwitchingRuleParamsWithContext(ctx context.Context) *DeleteServerSwitchingRuleParams

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

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

GetServerSwitchingRuleDefault handles this case 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 added in v0.2.0

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

type GetServerSwitchingRuleNotFound

type GetServerSwitchingRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetServerSwitchingRuleNotFound handles this case 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 added in v0.2.0

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

type GetServerSwitchingRuleOK

type GetServerSwitchingRuleOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetServerSwitchingRuleOKBody
}

GetServerSwitchingRuleOK handles this case 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 added in v0.2.0

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

func NewGetServerSwitchingRuleParamsWithContext

func NewGetServerSwitchingRuleParamsWithContext(ctx context.Context) *GetServerSwitchingRuleParams

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

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

GetServerSwitchingRulesDefault handles this case 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 added in v0.2.0

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

type GetServerSwitchingRulesOK

type GetServerSwitchingRulesOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetServerSwitchingRulesOKBody
}

GetServerSwitchingRulesOK handles this case 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 added in v0.2.0

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

func NewGetServerSwitchingRulesParamsWithContext

func NewGetServerSwitchingRulesParamsWithContext(ctx context.Context) *GetServerSwitchingRulesParams

NewGetServerSwitchingRulesParamsWithContext creates a new GetServerSwitchingRulesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 added in v0.2.0

type ReplaceServerSwitchingRuleBadRequest

type ReplaceServerSwitchingRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceServerSwitchingRuleBadRequest handles this case 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 added in v0.2.0

type ReplaceServerSwitchingRuleDefault

type ReplaceServerSwitchingRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceServerSwitchingRuleDefault handles this case 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 added in v0.2.0

type ReplaceServerSwitchingRuleNotFound

type ReplaceServerSwitchingRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceServerSwitchingRuleNotFound handles this case 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 added in v0.2.0

type ReplaceServerSwitchingRuleOK

type ReplaceServerSwitchingRuleOK struct {
	Payload *models.ServerSwitchingRule
}

ReplaceServerSwitchingRuleOK handles this case 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 added in v0.2.0

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

func NewReplaceServerSwitchingRuleParamsWithContext

func NewReplaceServerSwitchingRuleParamsWithContext(ctx context.Context) *ReplaceServerSwitchingRuleParams

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