tcp_response_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 tcp response rule API

func (*Client) CreateTCPResponseRule

CreateTCPResponseRule adds a new TCP response rule

Adds a new TCP Response Rule of the specified type in the specified backend.

func (*Client) DeleteTCPResponseRule

DeleteTCPResponseRule deletes a TCP response rule

Deletes a TCP Response Rule configuration by it's index from the specified backend.

func (*Client) GetTCPResponseRule

func (a *Client) GetTCPResponseRule(params *GetTCPResponseRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPResponseRuleOK, error)

GetTCPResponseRule returns one TCP response rule

Returns one TCP Response Rule configuration by it's index in the specified backend.

func (*Client) GetTCPResponseRules

func (a *Client) GetTCPResponseRules(params *GetTCPResponseRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPResponseRulesOK, error)

GetTCPResponseRules returns an array of all TCP response rules

Returns all TCP Response Rules that are configured in specified backend.

func (*Client) ReplaceTCPResponseRule

ReplaceTCPResponseRule replaces a TCP response rule

Replaces a TCP Response 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 tcp response rule API client.

type CreateTCPResponseRuleAccepted

type CreateTCPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.TCPResponseRule
}

CreateTCPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateTCPResponseRuleAccepted

func NewCreateTCPResponseRuleAccepted() *CreateTCPResponseRuleAccepted

NewCreateTCPResponseRuleAccepted creates a CreateTCPResponseRuleAccepted with default headers values

func (*CreateTCPResponseRuleAccepted) Error

func (*CreateTCPResponseRuleAccepted) GetPayload added in v0.2.0

type CreateTCPResponseRuleBadRequest

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

	Payload *models.Error
}

CreateTCPResponseRuleBadRequest handles this case with default header values.

Bad request

func NewCreateTCPResponseRuleBadRequest

func NewCreateTCPResponseRuleBadRequest() *CreateTCPResponseRuleBadRequest

NewCreateTCPResponseRuleBadRequest creates a CreateTCPResponseRuleBadRequest with default headers values

func (*CreateTCPResponseRuleBadRequest) Error

func (*CreateTCPResponseRuleBadRequest) GetPayload added in v0.2.0

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

type CreateTCPResponseRuleConflict

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

	Payload *models.Error
}

CreateTCPResponseRuleConflict handles this case with default header values.

The specified resource already exists

func NewCreateTCPResponseRuleConflict

func NewCreateTCPResponseRuleConflict() *CreateTCPResponseRuleConflict

NewCreateTCPResponseRuleConflict creates a CreateTCPResponseRuleConflict with default headers values

func (*CreateTCPResponseRuleConflict) Error

func (*CreateTCPResponseRuleConflict) GetPayload added in v0.2.0

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

type CreateTCPResponseRuleCreated

type CreateTCPResponseRuleCreated struct {
	Payload *models.TCPResponseRule
}

CreateTCPResponseRuleCreated handles this case with default header values.

TCP Response Rule created

func NewCreateTCPResponseRuleCreated

func NewCreateTCPResponseRuleCreated() *CreateTCPResponseRuleCreated

NewCreateTCPResponseRuleCreated creates a CreateTCPResponseRuleCreated with default headers values

func (*CreateTCPResponseRuleCreated) Error

func (*CreateTCPResponseRuleCreated) GetPayload added in v0.2.0

type CreateTCPResponseRuleDefault

type CreateTCPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateTCPResponseRuleDefault handles this case with default header values.

General Error

func NewCreateTCPResponseRuleDefault

func NewCreateTCPResponseRuleDefault(code int) *CreateTCPResponseRuleDefault

NewCreateTCPResponseRuleDefault creates a CreateTCPResponseRuleDefault with default headers values

func (*CreateTCPResponseRuleDefault) Code

Code gets the status code for the create TCP response rule default response

func (*CreateTCPResponseRuleDefault) Error

func (*CreateTCPResponseRuleDefault) GetPayload added in v0.2.0

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

type CreateTCPResponseRuleParams

type CreateTCPResponseRuleParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Data*/
	Data *models.TCPResponseRule
	/*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
}

CreateTCPResponseRuleParams contains all the parameters to send to the API endpoint for the create TCP response rule operation typically these are written to a http.Request

func NewCreateTCPResponseRuleParams

func NewCreateTCPResponseRuleParams() *CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParams creates a new CreateTCPResponseRuleParams object with the default values initialized.

func NewCreateTCPResponseRuleParamsWithContext

func NewCreateTCPResponseRuleParamsWithContext(ctx context.Context) *CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParamsWithContext creates a new CreateTCPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateTCPResponseRuleParamsWithHTTPClient

func NewCreateTCPResponseRuleParamsWithHTTPClient(client *http.Client) *CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParamsWithHTTPClient creates a new CreateTCPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateTCPResponseRuleParamsWithTimeout

func NewCreateTCPResponseRuleParamsWithTimeout(timeout time.Duration) *CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParamsWithTimeout creates a new CreateTCPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateTCPResponseRuleParams) SetBackend

func (o *CreateTCPResponseRuleParams) SetBackend(backend string)

SetBackend adds the backend to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetContext

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

SetContext adds the context to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetData

SetData adds the data to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create TCP response rule params

func (*CreateTCPResponseRuleParams) SetVersion

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

SetVersion adds the version to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithBackend

WithBackend adds the backend to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithContext

WithContext adds the context to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithData

WithData adds the data to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WithVersion

WithVersion adds the version to the create TCP response rule params

func (*CreateTCPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTCPResponseRuleReader

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

CreateTCPResponseRuleReader is a Reader for the CreateTCPResponseRule structure.

func (*CreateTCPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTCPResponseRuleAccepted

type DeleteTCPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeleteTCPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteTCPResponseRuleAccepted

func NewDeleteTCPResponseRuleAccepted() *DeleteTCPResponseRuleAccepted

NewDeleteTCPResponseRuleAccepted creates a DeleteTCPResponseRuleAccepted with default headers values

func (*DeleteTCPResponseRuleAccepted) Error

type DeleteTCPResponseRuleDefault

type DeleteTCPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteTCPResponseRuleDefault handles this case with default header values.

General Error

func NewDeleteTCPResponseRuleDefault

func NewDeleteTCPResponseRuleDefault(code int) *DeleteTCPResponseRuleDefault

NewDeleteTCPResponseRuleDefault creates a DeleteTCPResponseRuleDefault with default headers values

func (*DeleteTCPResponseRuleDefault) Code

Code gets the status code for the delete TCP response rule default response

func (*DeleteTCPResponseRuleDefault) Error

func (*DeleteTCPResponseRuleDefault) GetPayload added in v0.2.0

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

type DeleteTCPResponseRuleNoContent

type DeleteTCPResponseRuleNoContent struct {
}

DeleteTCPResponseRuleNoContent handles this case with default header values.

TCP Response Rule deleted

func NewDeleteTCPResponseRuleNoContent

func NewDeleteTCPResponseRuleNoContent() *DeleteTCPResponseRuleNoContent

NewDeleteTCPResponseRuleNoContent creates a DeleteTCPResponseRuleNoContent with default headers values

func (*DeleteTCPResponseRuleNoContent) Error

type DeleteTCPResponseRuleNotFound

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

	Payload *models.Error
}

DeleteTCPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteTCPResponseRuleNotFound

func NewDeleteTCPResponseRuleNotFound() *DeleteTCPResponseRuleNotFound

NewDeleteTCPResponseRuleNotFound creates a DeleteTCPResponseRuleNotFound with default headers values

func (*DeleteTCPResponseRuleNotFound) Error

func (*DeleteTCPResponseRuleNotFound) GetPayload added in v0.2.0

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

type DeleteTCPResponseRuleParams

type DeleteTCPResponseRuleParams struct {

	/*Backend
	  Parent 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
	  TCP Response 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
}

DeleteTCPResponseRuleParams contains all the parameters to send to the API endpoint for the delete TCP response rule operation typically these are written to a http.Request

func NewDeleteTCPResponseRuleParams

func NewDeleteTCPResponseRuleParams() *DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParams creates a new DeleteTCPResponseRuleParams object with the default values initialized.

func NewDeleteTCPResponseRuleParamsWithContext

func NewDeleteTCPResponseRuleParamsWithContext(ctx context.Context) *DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParamsWithContext creates a new DeleteTCPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteTCPResponseRuleParamsWithHTTPClient

func NewDeleteTCPResponseRuleParamsWithHTTPClient(client *http.Client) *DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParamsWithHTTPClient creates a new DeleteTCPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteTCPResponseRuleParamsWithTimeout

func NewDeleteTCPResponseRuleParamsWithTimeout(timeout time.Duration) *DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParamsWithTimeout creates a new DeleteTCPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteTCPResponseRuleParams) SetBackend

func (o *DeleteTCPResponseRuleParams) SetBackend(backend string)

SetBackend adds the backend to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetContext

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

SetContext adds the context to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetIndex

func (o *DeleteTCPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) SetVersion

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

SetVersion adds the version to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithBackend

WithBackend adds the backend to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithContext

WithContext adds the context to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithIndex

WithIndex adds the index to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WithVersion

WithVersion adds the version to the delete TCP response rule params

func (*DeleteTCPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTCPResponseRuleReader

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

DeleteTCPResponseRuleReader is a Reader for the DeleteTCPResponseRule structure.

func (*DeleteTCPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPResponseRuleDefault

type GetTCPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetTCPResponseRuleDefault handles this case with default header values.

General Error

func NewGetTCPResponseRuleDefault

func NewGetTCPResponseRuleDefault(code int) *GetTCPResponseRuleDefault

NewGetTCPResponseRuleDefault creates a GetTCPResponseRuleDefault with default headers values

func (*GetTCPResponseRuleDefault) Code

func (o *GetTCPResponseRuleDefault) Code() int

Code gets the status code for the get TCP response rule default response

func (*GetTCPResponseRuleDefault) Error

func (o *GetTCPResponseRuleDefault) Error() string

func (*GetTCPResponseRuleDefault) GetPayload added in v0.2.0

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

type GetTCPResponseRuleNotFound

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

	Payload *models.Error
}

GetTCPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewGetTCPResponseRuleNotFound

func NewGetTCPResponseRuleNotFound() *GetTCPResponseRuleNotFound

NewGetTCPResponseRuleNotFound creates a GetTCPResponseRuleNotFound with default headers values

func (*GetTCPResponseRuleNotFound) Error

func (*GetTCPResponseRuleNotFound) GetPayload added in v0.2.0

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

type GetTCPResponseRuleOK

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

	Payload *GetTCPResponseRuleOKBody
}

GetTCPResponseRuleOK handles this case with default header values.

Successful operation

func NewGetTCPResponseRuleOK

func NewGetTCPResponseRuleOK() *GetTCPResponseRuleOK

NewGetTCPResponseRuleOK creates a GetTCPResponseRuleOK with default headers values

func (*GetTCPResponseRuleOK) Error

func (o *GetTCPResponseRuleOK) Error() string

func (*GetTCPResponseRuleOK) GetPayload added in v0.2.0

type GetTCPResponseRuleOKBody

type GetTCPResponseRuleOKBody struct {

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

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

GetTCPResponseRuleOKBody get TCP response rule o k body swagger:model GetTCPResponseRuleOKBody

func (*GetTCPResponseRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPResponseRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPResponseRuleOKBody) Validate

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

Validate validates this get TCP response rule o k body

type GetTCPResponseRuleParams

type GetTCPResponseRuleParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Index
	  TCP Response 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
}

GetTCPResponseRuleParams contains all the parameters to send to the API endpoint for the get TCP response rule operation typically these are written to a http.Request

func NewGetTCPResponseRuleParams

func NewGetTCPResponseRuleParams() *GetTCPResponseRuleParams

NewGetTCPResponseRuleParams creates a new GetTCPResponseRuleParams object with the default values initialized.

func NewGetTCPResponseRuleParamsWithContext

func NewGetTCPResponseRuleParamsWithContext(ctx context.Context) *GetTCPResponseRuleParams

NewGetTCPResponseRuleParamsWithContext creates a new GetTCPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewGetTCPResponseRuleParamsWithHTTPClient

func NewGetTCPResponseRuleParamsWithHTTPClient(client *http.Client) *GetTCPResponseRuleParams

NewGetTCPResponseRuleParamsWithHTTPClient creates a new GetTCPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTCPResponseRuleParamsWithTimeout

func NewGetTCPResponseRuleParamsWithTimeout(timeout time.Duration) *GetTCPResponseRuleParams

NewGetTCPResponseRuleParamsWithTimeout creates a new GetTCPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTCPResponseRuleParams) SetBackend

func (o *GetTCPResponseRuleParams) SetBackend(backend string)

SetBackend adds the backend to the get TCP response rule params

func (*GetTCPResponseRuleParams) SetContext

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

SetContext adds the context to the get TCP response rule params

func (*GetTCPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP response rule params

func (*GetTCPResponseRuleParams) SetIndex

func (o *GetTCPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the get TCP response rule params

func (*GetTCPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP response rule params

func (*GetTCPResponseRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithBackend

func (o *GetTCPResponseRuleParams) WithBackend(backend string) *GetTCPResponseRuleParams

WithBackend adds the backend to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithContext

WithContext adds the context to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithHTTPClient

func (o *GetTCPResponseRuleParams) WithHTTPClient(client *http.Client) *GetTCPResponseRuleParams

WithHTTPClient adds the HTTPClient to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithIndex

WithIndex adds the index to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the get TCP response rule params

func (*GetTCPResponseRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP response rule params

func (*GetTCPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTCPResponseRuleReader

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

GetTCPResponseRuleReader is a Reader for the GetTCPResponseRule structure.

func (*GetTCPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPResponseRulesDefault

type GetTCPResponseRulesDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetTCPResponseRulesDefault handles this case with default header values.

General Error

func NewGetTCPResponseRulesDefault

func NewGetTCPResponseRulesDefault(code int) *GetTCPResponseRulesDefault

NewGetTCPResponseRulesDefault creates a GetTCPResponseRulesDefault with default headers values

func (*GetTCPResponseRulesDefault) Code

func (o *GetTCPResponseRulesDefault) Code() int

Code gets the status code for the get TCP response rules default response

func (*GetTCPResponseRulesDefault) Error

func (*GetTCPResponseRulesDefault) GetPayload added in v0.2.0

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

type GetTCPResponseRulesOK

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

	Payload *GetTCPResponseRulesOKBody
}

GetTCPResponseRulesOK handles this case with default header values.

Successful operation

func NewGetTCPResponseRulesOK

func NewGetTCPResponseRulesOK() *GetTCPResponseRulesOK

NewGetTCPResponseRulesOK creates a GetTCPResponseRulesOK with default headers values

func (*GetTCPResponseRulesOK) Error

func (o *GetTCPResponseRulesOK) Error() string

func (*GetTCPResponseRulesOK) GetPayload added in v0.2.0

type GetTCPResponseRulesOKBody

type GetTCPResponseRulesOKBody struct {

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

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

GetTCPResponseRulesOKBody get TCP response rules o k body swagger:model GetTCPResponseRulesOKBody

func (*GetTCPResponseRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPResponseRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPResponseRulesOKBody) Validate

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

Validate validates this get TCP response rules o k body

type GetTCPResponseRulesParams

type GetTCPResponseRulesParams struct {

	/*Backend
	  Parent 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
}

GetTCPResponseRulesParams contains all the parameters to send to the API endpoint for the get TCP response rules operation typically these are written to a http.Request

func NewGetTCPResponseRulesParams

func NewGetTCPResponseRulesParams() *GetTCPResponseRulesParams

NewGetTCPResponseRulesParams creates a new GetTCPResponseRulesParams object with the default values initialized.

func NewGetTCPResponseRulesParamsWithContext

func NewGetTCPResponseRulesParamsWithContext(ctx context.Context) *GetTCPResponseRulesParams

NewGetTCPResponseRulesParamsWithContext creates a new GetTCPResponseRulesParams object with the default values initialized, and the ability to set a context for a request

func NewGetTCPResponseRulesParamsWithHTTPClient

func NewGetTCPResponseRulesParamsWithHTTPClient(client *http.Client) *GetTCPResponseRulesParams

NewGetTCPResponseRulesParamsWithHTTPClient creates a new GetTCPResponseRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTCPResponseRulesParamsWithTimeout

func NewGetTCPResponseRulesParamsWithTimeout(timeout time.Duration) *GetTCPResponseRulesParams

NewGetTCPResponseRulesParamsWithTimeout creates a new GetTCPResponseRulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTCPResponseRulesParams) SetBackend

func (o *GetTCPResponseRulesParams) SetBackend(backend string)

SetBackend adds the backend to the get TCP response rules params

func (*GetTCPResponseRulesParams) SetContext

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

SetContext adds the context to the get TCP response rules params

func (*GetTCPResponseRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP response rules params

func (*GetTCPResponseRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP response rules params

func (*GetTCPResponseRulesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP response rules params

func (*GetTCPResponseRulesParams) WithBackend

WithBackend adds the backend to the get TCP response rules params

func (*GetTCPResponseRulesParams) WithContext

WithContext adds the context to the get TCP response rules params

func (*GetTCPResponseRulesParams) WithHTTPClient

func (o *GetTCPResponseRulesParams) WithHTTPClient(client *http.Client) *GetTCPResponseRulesParams

WithHTTPClient adds the HTTPClient to the get TCP response rules params

func (*GetTCPResponseRulesParams) WithTimeout

WithTimeout adds the timeout to the get TCP response rules params

func (*GetTCPResponseRulesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP response rules params

func (*GetTCPResponseRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTCPResponseRulesReader

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

GetTCPResponseRulesReader is a Reader for the GetTCPResponseRules structure.

func (*GetTCPResponseRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceTCPResponseRuleAccepted

type ReplaceTCPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.TCPResponseRule
}

ReplaceTCPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceTCPResponseRuleAccepted

func NewReplaceTCPResponseRuleAccepted() *ReplaceTCPResponseRuleAccepted

NewReplaceTCPResponseRuleAccepted creates a ReplaceTCPResponseRuleAccepted with default headers values

func (*ReplaceTCPResponseRuleAccepted) Error

func (*ReplaceTCPResponseRuleAccepted) GetPayload added in v0.2.0

type ReplaceTCPResponseRuleBadRequest

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

	Payload *models.Error
}

ReplaceTCPResponseRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceTCPResponseRuleBadRequest

func NewReplaceTCPResponseRuleBadRequest() *ReplaceTCPResponseRuleBadRequest

NewReplaceTCPResponseRuleBadRequest creates a ReplaceTCPResponseRuleBadRequest with default headers values

func (*ReplaceTCPResponseRuleBadRequest) Error

func (*ReplaceTCPResponseRuleBadRequest) GetPayload added in v0.2.0

type ReplaceTCPResponseRuleDefault

type ReplaceTCPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceTCPResponseRuleDefault handles this case with default header values.

General Error

func NewReplaceTCPResponseRuleDefault

func NewReplaceTCPResponseRuleDefault(code int) *ReplaceTCPResponseRuleDefault

NewReplaceTCPResponseRuleDefault creates a ReplaceTCPResponseRuleDefault with default headers values

func (*ReplaceTCPResponseRuleDefault) Code

Code gets the status code for the replace TCP response rule default response

func (*ReplaceTCPResponseRuleDefault) Error

func (*ReplaceTCPResponseRuleDefault) GetPayload added in v0.2.0

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

type ReplaceTCPResponseRuleNotFound

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

	Payload *models.Error
}

ReplaceTCPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceTCPResponseRuleNotFound

func NewReplaceTCPResponseRuleNotFound() *ReplaceTCPResponseRuleNotFound

NewReplaceTCPResponseRuleNotFound creates a ReplaceTCPResponseRuleNotFound with default headers values

func (*ReplaceTCPResponseRuleNotFound) Error

func (*ReplaceTCPResponseRuleNotFound) GetPayload added in v0.2.0

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

type ReplaceTCPResponseRuleOK

type ReplaceTCPResponseRuleOK struct {
	Payload *models.TCPResponseRule
}

ReplaceTCPResponseRuleOK handles this case with default header values.

TCP Response Rule replaced

func NewReplaceTCPResponseRuleOK

func NewReplaceTCPResponseRuleOK() *ReplaceTCPResponseRuleOK

NewReplaceTCPResponseRuleOK creates a ReplaceTCPResponseRuleOK with default headers values

func (*ReplaceTCPResponseRuleOK) Error

func (o *ReplaceTCPResponseRuleOK) Error() string

func (*ReplaceTCPResponseRuleOK) GetPayload added in v0.2.0

type ReplaceTCPResponseRuleParams

type ReplaceTCPResponseRuleParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Data*/
	Data *models.TCPResponseRule
	/*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
	  TCP Response 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
}

ReplaceTCPResponseRuleParams contains all the parameters to send to the API endpoint for the replace TCP response rule operation typically these are written to a http.Request

func NewReplaceTCPResponseRuleParams

func NewReplaceTCPResponseRuleParams() *ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParams creates a new ReplaceTCPResponseRuleParams object with the default values initialized.

func NewReplaceTCPResponseRuleParamsWithContext

func NewReplaceTCPResponseRuleParamsWithContext(ctx context.Context) *ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParamsWithContext creates a new ReplaceTCPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewReplaceTCPResponseRuleParamsWithHTTPClient

func NewReplaceTCPResponseRuleParamsWithHTTPClient(client *http.Client) *ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParamsWithHTTPClient creates a new ReplaceTCPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReplaceTCPResponseRuleParamsWithTimeout

func NewReplaceTCPResponseRuleParamsWithTimeout(timeout time.Duration) *ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParamsWithTimeout creates a new ReplaceTCPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReplaceTCPResponseRuleParams) SetBackend

func (o *ReplaceTCPResponseRuleParams) SetBackend(backend string)

SetBackend adds the backend to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetContext

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

SetContext adds the context to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetData

SetData adds the data to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetIndex

func (o *ReplaceTCPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) SetVersion

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

SetVersion adds the version to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithBackend

WithBackend adds the backend to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithContext

WithContext adds the context to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithData

WithData adds the data to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithIndex

WithIndex adds the index to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WithVersion

WithVersion adds the version to the replace TCP response rule params

func (*ReplaceTCPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceTCPResponseRuleReader

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

ReplaceTCPResponseRuleReader is a Reader for the ReplaceTCPResponseRule structure.

func (*ReplaceTCPResponseRuleReader) ReadResponse

func (o *ReplaceTCPResponseRuleReader) 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