tcp_response_rule

package
v1.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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, opts ...ClientOption) (*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, opts ...ClientOption) (*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 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 tcp response rule API client.

type CreateTCPResponseRuleAccepted

type CreateTCPResponseRuleAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.TCPResponseRule
}

CreateTCPResponseRuleAccepted describes a response with status code 202, 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) Code added in v1.1.5

Code gets the status code for the create Tcp response rule accepted response

func (*CreateTCPResponseRuleAccepted) Error

func (*CreateTCPResponseRuleAccepted) GetPayload

func (*CreateTCPResponseRuleAccepted) IsClientError added in v1.1.0

func (o *CreateTCPResponseRuleAccepted) IsClientError() bool

IsClientError returns true when this create Tcp response rule accepted response has a 4xx status code

func (*CreateTCPResponseRuleAccepted) IsCode added in v1.1.0

func (o *CreateTCPResponseRuleAccepted) IsCode(code int) bool

IsCode returns true when this create Tcp response rule accepted response a status code equal to that given

func (*CreateTCPResponseRuleAccepted) IsRedirect added in v1.1.0

func (o *CreateTCPResponseRuleAccepted) IsRedirect() bool

IsRedirect returns true when this create Tcp response rule accepted response has a 3xx status code

func (*CreateTCPResponseRuleAccepted) IsServerError added in v1.1.0

func (o *CreateTCPResponseRuleAccepted) IsServerError() bool

IsServerError returns true when this create Tcp response rule accepted response has a 5xx status code

func (*CreateTCPResponseRuleAccepted) IsSuccess added in v1.1.0

func (o *CreateTCPResponseRuleAccepted) IsSuccess() bool

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

func (*CreateTCPResponseRuleAccepted) String added in v1.1.0

type CreateTCPResponseRuleBadRequest

type CreateTCPResponseRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateTCPResponseRuleBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateTCPResponseRuleBadRequest

func NewCreateTCPResponseRuleBadRequest() *CreateTCPResponseRuleBadRequest

NewCreateTCPResponseRuleBadRequest creates a CreateTCPResponseRuleBadRequest with default headers values

func (*CreateTCPResponseRuleBadRequest) Code added in v1.1.5

Code gets the status code for the create Tcp response rule bad request response

func (*CreateTCPResponseRuleBadRequest) Error

func (*CreateTCPResponseRuleBadRequest) GetPayload

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

func (*CreateTCPResponseRuleBadRequest) IsClientError added in v1.1.0

func (o *CreateTCPResponseRuleBadRequest) IsClientError() bool

IsClientError returns true when this create Tcp response rule bad request response has a 4xx status code

func (*CreateTCPResponseRuleBadRequest) IsCode added in v1.1.0

func (o *CreateTCPResponseRuleBadRequest) IsCode(code int) bool

IsCode returns true when this create Tcp response rule bad request response a status code equal to that given

func (*CreateTCPResponseRuleBadRequest) IsRedirect added in v1.1.0

func (o *CreateTCPResponseRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this create Tcp response rule bad request response has a 3xx status code

func (*CreateTCPResponseRuleBadRequest) IsServerError added in v1.1.0

func (o *CreateTCPResponseRuleBadRequest) IsServerError() bool

IsServerError returns true when this create Tcp response rule bad request response has a 5xx status code

func (*CreateTCPResponseRuleBadRequest) IsSuccess added in v1.1.0

func (o *CreateTCPResponseRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this create Tcp response rule bad request response has a 2xx status code

func (*CreateTCPResponseRuleBadRequest) String added in v1.1.0

type CreateTCPResponseRuleConflict

type CreateTCPResponseRuleConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateTCPResponseRuleConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateTCPResponseRuleConflict

func NewCreateTCPResponseRuleConflict() *CreateTCPResponseRuleConflict

NewCreateTCPResponseRuleConflict creates a CreateTCPResponseRuleConflict with default headers values

func (*CreateTCPResponseRuleConflict) Code added in v1.1.5

Code gets the status code for the create Tcp response rule conflict response

func (*CreateTCPResponseRuleConflict) Error

func (*CreateTCPResponseRuleConflict) GetPayload

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

func (*CreateTCPResponseRuleConflict) IsClientError added in v1.1.0

func (o *CreateTCPResponseRuleConflict) IsClientError() bool

IsClientError returns true when this create Tcp response rule conflict response has a 4xx status code

func (*CreateTCPResponseRuleConflict) IsCode added in v1.1.0

func (o *CreateTCPResponseRuleConflict) IsCode(code int) bool

IsCode returns true when this create Tcp response rule conflict response a status code equal to that given

func (*CreateTCPResponseRuleConflict) IsRedirect added in v1.1.0

func (o *CreateTCPResponseRuleConflict) IsRedirect() bool

IsRedirect returns true when this create Tcp response rule conflict response has a 3xx status code

func (*CreateTCPResponseRuleConflict) IsServerError added in v1.1.0

func (o *CreateTCPResponseRuleConflict) IsServerError() bool

IsServerError returns true when this create Tcp response rule conflict response has a 5xx status code

func (*CreateTCPResponseRuleConflict) IsSuccess added in v1.1.0

func (o *CreateTCPResponseRuleConflict) IsSuccess() bool

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

func (*CreateTCPResponseRuleConflict) String added in v1.1.0

type CreateTCPResponseRuleCreated

type CreateTCPResponseRuleCreated struct {
	Payload *models.TCPResponseRule
}

CreateTCPResponseRuleCreated describes a response with status code 201, with default header values.

TCP Response Rule created

func NewCreateTCPResponseRuleCreated

func NewCreateTCPResponseRuleCreated() *CreateTCPResponseRuleCreated

NewCreateTCPResponseRuleCreated creates a CreateTCPResponseRuleCreated with default headers values

func (*CreateTCPResponseRuleCreated) Code added in v1.1.5

Code gets the status code for the create Tcp response rule created response

func (*CreateTCPResponseRuleCreated) Error

func (*CreateTCPResponseRuleCreated) GetPayload

func (*CreateTCPResponseRuleCreated) IsClientError added in v1.1.0

func (o *CreateTCPResponseRuleCreated) IsClientError() bool

IsClientError returns true when this create Tcp response rule created response has a 4xx status code

func (*CreateTCPResponseRuleCreated) IsCode added in v1.1.0

func (o *CreateTCPResponseRuleCreated) IsCode(code int) bool

IsCode returns true when this create Tcp response rule created response a status code equal to that given

func (*CreateTCPResponseRuleCreated) IsRedirect added in v1.1.0

func (o *CreateTCPResponseRuleCreated) IsRedirect() bool

IsRedirect returns true when this create Tcp response rule created response has a 3xx status code

func (*CreateTCPResponseRuleCreated) IsServerError added in v1.1.0

func (o *CreateTCPResponseRuleCreated) IsServerError() bool

IsServerError returns true when this create Tcp response rule created response has a 5xx status code

func (*CreateTCPResponseRuleCreated) IsSuccess added in v1.1.0

func (o *CreateTCPResponseRuleCreated) IsSuccess() bool

IsSuccess returns true when this create Tcp response rule created response has a 2xx status code

func (*CreateTCPResponseRuleCreated) String added in v1.1.0

type CreateTCPResponseRuleDefault

type CreateTCPResponseRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

CreateTCPResponseRuleDefault describes a response with status code -1, 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

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

func (*CreateTCPResponseRuleDefault) IsClientError added in v1.1.0

func (o *CreateTCPResponseRuleDefault) IsClientError() bool

IsClientError returns true when this create TCP response rule default response has a 4xx status code

func (*CreateTCPResponseRuleDefault) IsCode added in v1.1.0

func (o *CreateTCPResponseRuleDefault) IsCode(code int) bool

IsCode returns true when this create TCP response rule default response a status code equal to that given

func (*CreateTCPResponseRuleDefault) IsRedirect added in v1.1.0

func (o *CreateTCPResponseRuleDefault) IsRedirect() bool

IsRedirect returns true when this create TCP response rule default response has a 3xx status code

func (*CreateTCPResponseRuleDefault) IsServerError added in v1.1.0

func (o *CreateTCPResponseRuleDefault) IsServerError() bool

IsServerError returns true when this create TCP response rule default response has a 5xx status code

func (*CreateTCPResponseRuleDefault) IsSuccess added in v1.1.0

func (o *CreateTCPResponseRuleDefault) IsSuccess() bool

IsSuccess returns true when this create TCP response rule default response has a 2xx status code

func (*CreateTCPResponseRuleDefault) String added in v1.1.0

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 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 NewCreateTCPResponseRuleParamsWithContext

func NewCreateTCPResponseRuleParamsWithContext(ctx context.Context) *CreateTCPResponseRuleParams

NewCreateTCPResponseRuleParamsWithContext creates a new CreateTCPResponseRuleParams object with 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 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 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) SetDefaults

func (o *CreateTCPResponseRuleParams) SetDefaults()

SetDefaults hydrates default values in the create TCP response rule params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the create TCP response rule params (not the query body).

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

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 describes a response with status code 202, 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) Code added in v1.1.5

Code gets the status code for the delete Tcp response rule accepted response

func (*DeleteTCPResponseRuleAccepted) Error

func (*DeleteTCPResponseRuleAccepted) IsClientError added in v1.1.0

func (o *DeleteTCPResponseRuleAccepted) IsClientError() bool

IsClientError returns true when this delete Tcp response rule accepted response has a 4xx status code

func (*DeleteTCPResponseRuleAccepted) IsCode added in v1.1.0

func (o *DeleteTCPResponseRuleAccepted) IsCode(code int) bool

IsCode returns true when this delete Tcp response rule accepted response a status code equal to that given

func (*DeleteTCPResponseRuleAccepted) IsRedirect added in v1.1.0

func (o *DeleteTCPResponseRuleAccepted) IsRedirect() bool

IsRedirect returns true when this delete Tcp response rule accepted response has a 3xx status code

func (*DeleteTCPResponseRuleAccepted) IsServerError added in v1.1.0

func (o *DeleteTCPResponseRuleAccepted) IsServerError() bool

IsServerError returns true when this delete Tcp response rule accepted response has a 5xx status code

func (*DeleteTCPResponseRuleAccepted) IsSuccess added in v1.1.0

func (o *DeleteTCPResponseRuleAccepted) IsSuccess() bool

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

func (*DeleteTCPResponseRuleAccepted) String added in v1.1.0

type DeleteTCPResponseRuleDefault

type DeleteTCPResponseRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

DeleteTCPResponseRuleDefault describes a response with status code -1, 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

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

func (*DeleteTCPResponseRuleDefault) IsClientError added in v1.1.0

func (o *DeleteTCPResponseRuleDefault) IsClientError() bool

IsClientError returns true when this delete TCP response rule default response has a 4xx status code

func (*DeleteTCPResponseRuleDefault) IsCode added in v1.1.0

func (o *DeleteTCPResponseRuleDefault) IsCode(code int) bool

IsCode returns true when this delete TCP response rule default response a status code equal to that given

func (*DeleteTCPResponseRuleDefault) IsRedirect added in v1.1.0

func (o *DeleteTCPResponseRuleDefault) IsRedirect() bool

IsRedirect returns true when this delete TCP response rule default response has a 3xx status code

func (*DeleteTCPResponseRuleDefault) IsServerError added in v1.1.0

func (o *DeleteTCPResponseRuleDefault) IsServerError() bool

IsServerError returns true when this delete TCP response rule default response has a 5xx status code

func (*DeleteTCPResponseRuleDefault) IsSuccess added in v1.1.0

func (o *DeleteTCPResponseRuleDefault) IsSuccess() bool

IsSuccess returns true when this delete TCP response rule default response has a 2xx status code

func (*DeleteTCPResponseRuleDefault) String added in v1.1.0

type DeleteTCPResponseRuleNoContent

type DeleteTCPResponseRuleNoContent struct {
}

DeleteTCPResponseRuleNoContent describes a response with status code 204, with default header values.

TCP Response Rule deleted

func NewDeleteTCPResponseRuleNoContent

func NewDeleteTCPResponseRuleNoContent() *DeleteTCPResponseRuleNoContent

NewDeleteTCPResponseRuleNoContent creates a DeleteTCPResponseRuleNoContent with default headers values

func (*DeleteTCPResponseRuleNoContent) Code added in v1.1.5

Code gets the status code for the delete Tcp response rule no content response

func (*DeleteTCPResponseRuleNoContent) Error

func (*DeleteTCPResponseRuleNoContent) IsClientError added in v1.1.0

func (o *DeleteTCPResponseRuleNoContent) IsClientError() bool

IsClientError returns true when this delete Tcp response rule no content response has a 4xx status code

func (*DeleteTCPResponseRuleNoContent) IsCode added in v1.1.0

func (o *DeleteTCPResponseRuleNoContent) IsCode(code int) bool

IsCode returns true when this delete Tcp response rule no content response a status code equal to that given

func (*DeleteTCPResponseRuleNoContent) IsRedirect added in v1.1.0

func (o *DeleteTCPResponseRuleNoContent) IsRedirect() bool

IsRedirect returns true when this delete Tcp response rule no content response has a 3xx status code

func (*DeleteTCPResponseRuleNoContent) IsServerError added in v1.1.0

func (o *DeleteTCPResponseRuleNoContent) IsServerError() bool

IsServerError returns true when this delete Tcp response rule no content response has a 5xx status code

func (*DeleteTCPResponseRuleNoContent) IsSuccess added in v1.1.0

func (o *DeleteTCPResponseRuleNoContent) IsSuccess() bool

IsSuccess returns true when this delete Tcp response rule no content response has a 2xx status code

func (*DeleteTCPResponseRuleNoContent) String added in v1.1.0

type DeleteTCPResponseRuleNotFound

type DeleteTCPResponseRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteTCPResponseRuleNotFound describes a response with status code 404, 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) Code added in v1.1.5

Code gets the status code for the delete Tcp response rule not found response

func (*DeleteTCPResponseRuleNotFound) Error

func (*DeleteTCPResponseRuleNotFound) GetPayload

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

func (*DeleteTCPResponseRuleNotFound) IsClientError added in v1.1.0

func (o *DeleteTCPResponseRuleNotFound) IsClientError() bool

IsClientError returns true when this delete Tcp response rule not found response has a 4xx status code

func (*DeleteTCPResponseRuleNotFound) IsCode added in v1.1.0

func (o *DeleteTCPResponseRuleNotFound) IsCode(code int) bool

IsCode returns true when this delete Tcp response rule not found response a status code equal to that given

func (*DeleteTCPResponseRuleNotFound) IsRedirect added in v1.1.0

func (o *DeleteTCPResponseRuleNotFound) IsRedirect() bool

IsRedirect returns true when this delete Tcp response rule not found response has a 3xx status code

func (*DeleteTCPResponseRuleNotFound) IsServerError added in v1.1.0

func (o *DeleteTCPResponseRuleNotFound) IsServerError() bool

IsServerError returns true when this delete Tcp response rule not found response has a 5xx status code

func (*DeleteTCPResponseRuleNotFound) IsSuccess added in v1.1.0

func (o *DeleteTCPResponseRuleNotFound) IsSuccess() bool

IsSuccess returns true when this delete Tcp response rule not found response has a 2xx status code

func (*DeleteTCPResponseRuleNotFound) String added in v1.1.0

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 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 NewDeleteTCPResponseRuleParamsWithContext

func NewDeleteTCPResponseRuleParamsWithContext(ctx context.Context) *DeleteTCPResponseRuleParams

NewDeleteTCPResponseRuleParamsWithContext creates a new DeleteTCPResponseRuleParams object with 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 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 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) SetDefaults

func (o *DeleteTCPResponseRuleParams) SetDefaults()

SetDefaults hydrates default values in the delete TCP response rule params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the delete TCP response rule params (not the query body).

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

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 string

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

GetTCPResponseRuleDefault describes a response with status code -1, 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

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

func (*GetTCPResponseRuleDefault) IsClientError added in v1.1.0

func (o *GetTCPResponseRuleDefault) IsClientError() bool

IsClientError returns true when this get TCP response rule default response has a 4xx status code

func (*GetTCPResponseRuleDefault) IsCode added in v1.1.0

func (o *GetTCPResponseRuleDefault) IsCode(code int) bool

IsCode returns true when this get TCP response rule default response a status code equal to that given

func (*GetTCPResponseRuleDefault) IsRedirect added in v1.1.0

func (o *GetTCPResponseRuleDefault) IsRedirect() bool

IsRedirect returns true when this get TCP response rule default response has a 3xx status code

func (*GetTCPResponseRuleDefault) IsServerError added in v1.1.0

func (o *GetTCPResponseRuleDefault) IsServerError() bool

IsServerError returns true when this get TCP response rule default response has a 5xx status code

func (*GetTCPResponseRuleDefault) IsSuccess added in v1.1.0

func (o *GetTCPResponseRuleDefault) IsSuccess() bool

IsSuccess returns true when this get TCP response rule default response has a 2xx status code

func (*GetTCPResponseRuleDefault) String added in v1.1.0

func (o *GetTCPResponseRuleDefault) String() string

type GetTCPResponseRuleNotFound

type GetTCPResponseRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetTCPResponseRuleNotFound describes a response with status code 404, 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) Code added in v1.1.5

func (o *GetTCPResponseRuleNotFound) Code() int

Code gets the status code for the get Tcp response rule not found response

func (*GetTCPResponseRuleNotFound) Error

func (*GetTCPResponseRuleNotFound) GetPayload

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

func (*GetTCPResponseRuleNotFound) IsClientError added in v1.1.0

func (o *GetTCPResponseRuleNotFound) IsClientError() bool

IsClientError returns true when this get Tcp response rule not found response has a 4xx status code

func (*GetTCPResponseRuleNotFound) IsCode added in v1.1.0

func (o *GetTCPResponseRuleNotFound) IsCode(code int) bool

IsCode returns true when this get Tcp response rule not found response a status code equal to that given

func (*GetTCPResponseRuleNotFound) IsRedirect added in v1.1.0

func (o *GetTCPResponseRuleNotFound) IsRedirect() bool

IsRedirect returns true when this get Tcp response rule not found response has a 3xx status code

func (*GetTCPResponseRuleNotFound) IsServerError added in v1.1.0

func (o *GetTCPResponseRuleNotFound) IsServerError() bool

IsServerError returns true when this get Tcp response rule not found response has a 5xx status code

func (*GetTCPResponseRuleNotFound) IsSuccess added in v1.1.0

func (o *GetTCPResponseRuleNotFound) IsSuccess() bool

IsSuccess returns true when this get Tcp response rule not found response has a 2xx status code

func (*GetTCPResponseRuleNotFound) String added in v1.1.0

func (o *GetTCPResponseRuleNotFound) String() string

type GetTCPResponseRuleOK

type GetTCPResponseRuleOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTCPResponseRuleOKBody
}

GetTCPResponseRuleOK describes a response with status code 200, with default header values.

Successful operation

func NewGetTCPResponseRuleOK

func NewGetTCPResponseRuleOK() *GetTCPResponseRuleOK

NewGetTCPResponseRuleOK creates a GetTCPResponseRuleOK with default headers values

func (*GetTCPResponseRuleOK) Code added in v1.1.5

func (o *GetTCPResponseRuleOK) Code() int

Code gets the status code for the get Tcp response rule o k response

func (*GetTCPResponseRuleOK) Error

func (o *GetTCPResponseRuleOK) Error() string

func (*GetTCPResponseRuleOK) GetPayload

func (*GetTCPResponseRuleOK) IsClientError added in v1.1.0

func (o *GetTCPResponseRuleOK) IsClientError() bool

IsClientError returns true when this get Tcp response rule o k response has a 4xx status code

func (*GetTCPResponseRuleOK) IsCode added in v1.1.0

func (o *GetTCPResponseRuleOK) IsCode(code int) bool

IsCode returns true when this get Tcp response rule o k response a status code equal to that given

func (*GetTCPResponseRuleOK) IsRedirect added in v1.1.0

func (o *GetTCPResponseRuleOK) IsRedirect() bool

IsRedirect returns true when this get Tcp response rule o k response has a 3xx status code

func (*GetTCPResponseRuleOK) IsServerError added in v1.1.0

func (o *GetTCPResponseRuleOK) IsServerError() bool

IsServerError returns true when this get Tcp response rule o k response has a 5xx status code

func (*GetTCPResponseRuleOK) IsSuccess added in v1.1.0

func (o *GetTCPResponseRuleOK) IsSuccess() bool

IsSuccess returns true when this get Tcp response rule o k response has a 2xx status code

func (*GetTCPResponseRuleOK) String added in v1.1.0

func (o *GetTCPResponseRuleOK) String() string

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) ContextValidate

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

ContextValidate validate this get TCP response rule o k body based on the context it is used

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 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 NewGetTCPResponseRuleParamsWithContext

func NewGetTCPResponseRuleParamsWithContext(ctx context.Context) *GetTCPResponseRuleParams

NewGetTCPResponseRuleParamsWithContext creates a new GetTCPResponseRuleParams object with 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 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 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) SetDefaults

func (o *GetTCPResponseRuleParams) SetDefaults()

SetDefaults hydrates default values in the get TCP response rule params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the get TCP response rule params (not the query body).

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

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 string

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

GetTCPResponseRulesDefault describes a response with status code -1, 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

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

func (*GetTCPResponseRulesDefault) IsClientError added in v1.1.0

func (o *GetTCPResponseRulesDefault) IsClientError() bool

IsClientError returns true when this get TCP response rules default response has a 4xx status code

func (*GetTCPResponseRulesDefault) IsCode added in v1.1.0

func (o *GetTCPResponseRulesDefault) IsCode(code int) bool

IsCode returns true when this get TCP response rules default response a status code equal to that given

func (*GetTCPResponseRulesDefault) IsRedirect added in v1.1.0

func (o *GetTCPResponseRulesDefault) IsRedirect() bool

IsRedirect returns true when this get TCP response rules default response has a 3xx status code

func (*GetTCPResponseRulesDefault) IsServerError added in v1.1.0

func (o *GetTCPResponseRulesDefault) IsServerError() bool

IsServerError returns true when this get TCP response rules default response has a 5xx status code

func (*GetTCPResponseRulesDefault) IsSuccess added in v1.1.0

func (o *GetTCPResponseRulesDefault) IsSuccess() bool

IsSuccess returns true when this get TCP response rules default response has a 2xx status code

func (*GetTCPResponseRulesDefault) String added in v1.1.0

func (o *GetTCPResponseRulesDefault) String() string

type GetTCPResponseRulesOK

type GetTCPResponseRulesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTCPResponseRulesOKBody
}

GetTCPResponseRulesOK describes a response with status code 200, with default header values.

Successful operation

func NewGetTCPResponseRulesOK

func NewGetTCPResponseRulesOK() *GetTCPResponseRulesOK

NewGetTCPResponseRulesOK creates a GetTCPResponseRulesOK with default headers values

func (*GetTCPResponseRulesOK) Code added in v1.1.5

func (o *GetTCPResponseRulesOK) Code() int

Code gets the status code for the get Tcp response rules o k response

func (*GetTCPResponseRulesOK) Error

func (o *GetTCPResponseRulesOK) Error() string

func (*GetTCPResponseRulesOK) GetPayload

func (*GetTCPResponseRulesOK) IsClientError added in v1.1.0

func (o *GetTCPResponseRulesOK) IsClientError() bool

IsClientError returns true when this get Tcp response rules o k response has a 4xx status code

func (*GetTCPResponseRulesOK) IsCode added in v1.1.0

func (o *GetTCPResponseRulesOK) IsCode(code int) bool

IsCode returns true when this get Tcp response rules o k response a status code equal to that given

func (*GetTCPResponseRulesOK) IsRedirect added in v1.1.0

func (o *GetTCPResponseRulesOK) IsRedirect() bool

IsRedirect returns true when this get Tcp response rules o k response has a 3xx status code

func (*GetTCPResponseRulesOK) IsServerError added in v1.1.0

func (o *GetTCPResponseRulesOK) IsServerError() bool

IsServerError returns true when this get Tcp response rules o k response has a 5xx status code

func (*GetTCPResponseRulesOK) IsSuccess added in v1.1.0

func (o *GetTCPResponseRulesOK) IsSuccess() bool

IsSuccess returns true when this get Tcp response rules o k response has a 2xx status code

func (*GetTCPResponseRulesOK) String added in v1.1.0

func (o *GetTCPResponseRulesOK) String() string

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) ContextValidate

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

ContextValidate validate this get TCP response rules o k body based on the context it is used

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 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 NewGetTCPResponseRulesParamsWithContext

func NewGetTCPResponseRulesParamsWithContext(ctx context.Context) *GetTCPResponseRulesParams

NewGetTCPResponseRulesParamsWithContext creates a new GetTCPResponseRulesParams object with 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 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 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) SetDefaults

func (o *GetTCPResponseRulesParams) SetDefaults()

SetDefaults hydrates default values in the get TCP response rules params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the get TCP response rules params (not the query body).

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

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 describes a response with status code 202, 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) Code added in v1.1.5

Code gets the status code for the replace Tcp response rule accepted response

func (*ReplaceTCPResponseRuleAccepted) Error

func (*ReplaceTCPResponseRuleAccepted) GetPayload

func (*ReplaceTCPResponseRuleAccepted) IsClientError added in v1.1.0

func (o *ReplaceTCPResponseRuleAccepted) IsClientError() bool

IsClientError returns true when this replace Tcp response rule accepted response has a 4xx status code

func (*ReplaceTCPResponseRuleAccepted) IsCode added in v1.1.0

func (o *ReplaceTCPResponseRuleAccepted) IsCode(code int) bool

IsCode returns true when this replace Tcp response rule accepted response a status code equal to that given

func (*ReplaceTCPResponseRuleAccepted) IsRedirect added in v1.1.0

func (o *ReplaceTCPResponseRuleAccepted) IsRedirect() bool

IsRedirect returns true when this replace Tcp response rule accepted response has a 3xx status code

func (*ReplaceTCPResponseRuleAccepted) IsServerError added in v1.1.0

func (o *ReplaceTCPResponseRuleAccepted) IsServerError() bool

IsServerError returns true when this replace Tcp response rule accepted response has a 5xx status code

func (*ReplaceTCPResponseRuleAccepted) IsSuccess added in v1.1.0

func (o *ReplaceTCPResponseRuleAccepted) IsSuccess() bool

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

func (*ReplaceTCPResponseRuleAccepted) String added in v1.1.0

type ReplaceTCPResponseRuleBadRequest

type ReplaceTCPResponseRuleBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceTCPResponseRuleBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceTCPResponseRuleBadRequest

func NewReplaceTCPResponseRuleBadRequest() *ReplaceTCPResponseRuleBadRequest

NewReplaceTCPResponseRuleBadRequest creates a ReplaceTCPResponseRuleBadRequest with default headers values

func (*ReplaceTCPResponseRuleBadRequest) Code added in v1.1.5

Code gets the status code for the replace Tcp response rule bad request response

func (*ReplaceTCPResponseRuleBadRequest) Error

func (*ReplaceTCPResponseRuleBadRequest) GetPayload

func (*ReplaceTCPResponseRuleBadRequest) IsClientError added in v1.1.0

func (o *ReplaceTCPResponseRuleBadRequest) IsClientError() bool

IsClientError returns true when this replace Tcp response rule bad request response has a 4xx status code

func (*ReplaceTCPResponseRuleBadRequest) IsCode added in v1.1.0

func (o *ReplaceTCPResponseRuleBadRequest) IsCode(code int) bool

IsCode returns true when this replace Tcp response rule bad request response a status code equal to that given

func (*ReplaceTCPResponseRuleBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceTCPResponseRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this replace Tcp response rule bad request response has a 3xx status code

func (*ReplaceTCPResponseRuleBadRequest) IsServerError added in v1.1.0

func (o *ReplaceTCPResponseRuleBadRequest) IsServerError() bool

IsServerError returns true when this replace Tcp response rule bad request response has a 5xx status code

func (*ReplaceTCPResponseRuleBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceTCPResponseRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this replace Tcp response rule bad request response has a 2xx status code

func (*ReplaceTCPResponseRuleBadRequest) String added in v1.1.0

type ReplaceTCPResponseRuleDefault

type ReplaceTCPResponseRuleDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceTCPResponseRuleDefault describes a response with status code -1, 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

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

func (*ReplaceTCPResponseRuleDefault) IsClientError added in v1.1.0

func (o *ReplaceTCPResponseRuleDefault) IsClientError() bool

IsClientError returns true when this replace TCP response rule default response has a 4xx status code

func (*ReplaceTCPResponseRuleDefault) IsCode added in v1.1.0

func (o *ReplaceTCPResponseRuleDefault) IsCode(code int) bool

IsCode returns true when this replace TCP response rule default response a status code equal to that given

func (*ReplaceTCPResponseRuleDefault) IsRedirect added in v1.1.0

func (o *ReplaceTCPResponseRuleDefault) IsRedirect() bool

IsRedirect returns true when this replace TCP response rule default response has a 3xx status code

func (*ReplaceTCPResponseRuleDefault) IsServerError added in v1.1.0

func (o *ReplaceTCPResponseRuleDefault) IsServerError() bool

IsServerError returns true when this replace TCP response rule default response has a 5xx status code

func (*ReplaceTCPResponseRuleDefault) IsSuccess added in v1.1.0

func (o *ReplaceTCPResponseRuleDefault) IsSuccess() bool

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

func (*ReplaceTCPResponseRuleDefault) String added in v1.1.0

type ReplaceTCPResponseRuleNotFound

type ReplaceTCPResponseRuleNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceTCPResponseRuleNotFound describes a response with status code 404, 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) Code added in v1.1.5

Code gets the status code for the replace Tcp response rule not found response

func (*ReplaceTCPResponseRuleNotFound) Error

func (*ReplaceTCPResponseRuleNotFound) GetPayload

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

func (*ReplaceTCPResponseRuleNotFound) IsClientError added in v1.1.0

func (o *ReplaceTCPResponseRuleNotFound) IsClientError() bool

IsClientError returns true when this replace Tcp response rule not found response has a 4xx status code

func (*ReplaceTCPResponseRuleNotFound) IsCode added in v1.1.0

func (o *ReplaceTCPResponseRuleNotFound) IsCode(code int) bool

IsCode returns true when this replace Tcp response rule not found response a status code equal to that given

func (*ReplaceTCPResponseRuleNotFound) IsRedirect added in v1.1.0

func (o *ReplaceTCPResponseRuleNotFound) IsRedirect() bool

IsRedirect returns true when this replace Tcp response rule not found response has a 3xx status code

func (*ReplaceTCPResponseRuleNotFound) IsServerError added in v1.1.0

func (o *ReplaceTCPResponseRuleNotFound) IsServerError() bool

IsServerError returns true when this replace Tcp response rule not found response has a 5xx status code

func (*ReplaceTCPResponseRuleNotFound) IsSuccess added in v1.1.0

func (o *ReplaceTCPResponseRuleNotFound) IsSuccess() bool

IsSuccess returns true when this replace Tcp response rule not found response has a 2xx status code

func (*ReplaceTCPResponseRuleNotFound) String added in v1.1.0

type ReplaceTCPResponseRuleOK

type ReplaceTCPResponseRuleOK struct {
	Payload *models.TCPResponseRule
}

ReplaceTCPResponseRuleOK describes a response with status code 200, with default header values.

TCP Response Rule replaced

func NewReplaceTCPResponseRuleOK

func NewReplaceTCPResponseRuleOK() *ReplaceTCPResponseRuleOK

NewReplaceTCPResponseRuleOK creates a ReplaceTCPResponseRuleOK with default headers values

func (*ReplaceTCPResponseRuleOK) Code added in v1.1.5

func (o *ReplaceTCPResponseRuleOK) Code() int

Code gets the status code for the replace Tcp response rule o k response

func (*ReplaceTCPResponseRuleOK) Error

func (o *ReplaceTCPResponseRuleOK) Error() string

func (*ReplaceTCPResponseRuleOK) GetPayload

func (*ReplaceTCPResponseRuleOK) IsClientError added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) IsClientError() bool

IsClientError returns true when this replace Tcp response rule o k response has a 4xx status code

func (*ReplaceTCPResponseRuleOK) IsCode added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) IsCode(code int) bool

IsCode returns true when this replace Tcp response rule o k response a status code equal to that given

func (*ReplaceTCPResponseRuleOK) IsRedirect added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) IsRedirect() bool

IsRedirect returns true when this replace Tcp response rule o k response has a 3xx status code

func (*ReplaceTCPResponseRuleOK) IsServerError added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) IsServerError() bool

IsServerError returns true when this replace Tcp response rule o k response has a 5xx status code

func (*ReplaceTCPResponseRuleOK) IsSuccess added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) IsSuccess() bool

IsSuccess returns true when this replace Tcp response rule o k response has a 2xx status code

func (*ReplaceTCPResponseRuleOK) String added in v1.1.0

func (o *ReplaceTCPResponseRuleOK) String() string

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 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 NewReplaceTCPResponseRuleParamsWithContext

func NewReplaceTCPResponseRuleParamsWithContext(ctx context.Context) *ReplaceTCPResponseRuleParams

NewReplaceTCPResponseRuleParamsWithContext creates a new ReplaceTCPResponseRuleParams object with 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 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 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) SetDefaults

func (o *ReplaceTCPResponseRuleParams) SetDefaults()

SetDefaults hydrates default values in the replace TCP response rule params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the replace TCP response rule params (not the query body).

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

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