tcp_request_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 request rule API

func (*Client) CreateTCPRequestRule

CreateTCPRequestRule adds a new TCP request rule

Adds a new TCP Request Rule of the specified type in the specified parent.

func (*Client) DeleteTCPRequestRule

DeleteTCPRequestRule deletes a TCP request rule

Deletes a TCP Request Rule configuration by it's index from the specified parent.

func (*Client) GetTCPRequestRule

func (a *Client) GetTCPRequestRule(params *GetTCPRequestRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPRequestRuleOK, error)

GetTCPRequestRule returns one TCP request rule

Returns one TCP Request Rule configuration by it's index in the specified parent.

func (*Client) GetTCPRequestRules

func (a *Client) GetTCPRequestRules(params *GetTCPRequestRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPRequestRulesOK, error)

GetTCPRequestRules returns an array of all TCP request rules

Returns all TCP Request Rules that are configured in specified parent and parent type.

func (*Client) ReplaceTCPRequestRule

ReplaceTCPRequestRule replaces a TCP request rule

Replaces a TCP Request Rule configuration by it's index in the specified parent.

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 request rule API client.

type CreateTCPRequestRuleAccepted

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

	Payload *models.TCPRequestRule
}

CreateTCPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateTCPRequestRuleAccepted

func NewCreateTCPRequestRuleAccepted() *CreateTCPRequestRuleAccepted

NewCreateTCPRequestRuleAccepted creates a CreateTCPRequestRuleAccepted with default headers values

func (*CreateTCPRequestRuleAccepted) Error

func (*CreateTCPRequestRuleAccepted) GetPayload added in v0.2.0

type CreateTCPRequestRuleBadRequest

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

	Payload *models.Error
}

CreateTCPRequestRuleBadRequest handles this case with default header values.

Bad request

func NewCreateTCPRequestRuleBadRequest

func NewCreateTCPRequestRuleBadRequest() *CreateTCPRequestRuleBadRequest

NewCreateTCPRequestRuleBadRequest creates a CreateTCPRequestRuleBadRequest with default headers values

func (*CreateTCPRequestRuleBadRequest) Error

func (*CreateTCPRequestRuleBadRequest) GetPayload added in v0.2.0

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

type CreateTCPRequestRuleConflict

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

	Payload *models.Error
}

CreateTCPRequestRuleConflict handles this case with default header values.

The specified resource already exists

func NewCreateTCPRequestRuleConflict

func NewCreateTCPRequestRuleConflict() *CreateTCPRequestRuleConflict

NewCreateTCPRequestRuleConflict creates a CreateTCPRequestRuleConflict with default headers values

func (*CreateTCPRequestRuleConflict) Error

func (*CreateTCPRequestRuleConflict) GetPayload added in v0.2.0

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

type CreateTCPRequestRuleCreated

type CreateTCPRequestRuleCreated struct {
	Payload *models.TCPRequestRule
}

CreateTCPRequestRuleCreated handles this case with default header values.

TCP Request Rule created

func NewCreateTCPRequestRuleCreated

func NewCreateTCPRequestRuleCreated() *CreateTCPRequestRuleCreated

NewCreateTCPRequestRuleCreated creates a CreateTCPRequestRuleCreated with default headers values

func (*CreateTCPRequestRuleCreated) Error

func (*CreateTCPRequestRuleCreated) GetPayload added in v0.2.0

type CreateTCPRequestRuleDefault

type CreateTCPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateTCPRequestRuleDefault handles this case with default header values.

General Error

func NewCreateTCPRequestRuleDefault

func NewCreateTCPRequestRuleDefault(code int) *CreateTCPRequestRuleDefault

NewCreateTCPRequestRuleDefault creates a CreateTCPRequestRuleDefault with default headers values

func (*CreateTCPRequestRuleDefault) Code

func (o *CreateTCPRequestRuleDefault) Code() int

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

func (*CreateTCPRequestRuleDefault) Error

func (*CreateTCPRequestRuleDefault) GetPayload added in v0.2.0

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

type CreateTCPRequestRuleParams

type CreateTCPRequestRuleParams struct {

	/*Data*/
	Data *models.TCPRequestRule
	/*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
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

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

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

	*/
	Version *int64

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

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

func NewCreateTCPRequestRuleParams

func NewCreateTCPRequestRuleParams() *CreateTCPRequestRuleParams

NewCreateTCPRequestRuleParams creates a new CreateTCPRequestRuleParams object with the default values initialized.

func NewCreateTCPRequestRuleParamsWithContext

func NewCreateTCPRequestRuleParamsWithContext(ctx context.Context) *CreateTCPRequestRuleParams

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

func NewCreateTCPRequestRuleParamsWithHTTPClient

func NewCreateTCPRequestRuleParamsWithHTTPClient(client *http.Client) *CreateTCPRequestRuleParams

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

func NewCreateTCPRequestRuleParamsWithTimeout

func NewCreateTCPRequestRuleParamsWithTimeout(timeout time.Duration) *CreateTCPRequestRuleParams

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

func (*CreateTCPRequestRuleParams) SetContext

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

SetContext adds the context to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetData

SetData adds the data to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetParentName

func (o *CreateTCPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetParentType

func (o *CreateTCPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create TCP request rule params

func (*CreateTCPRequestRuleParams) SetVersion

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

SetVersion adds the version to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithContext

WithContext adds the context to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithData

WithData adds the data to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithParentName

func (o *CreateTCPRequestRuleParams) WithParentName(parentName string) *CreateTCPRequestRuleParams

WithParentName adds the parentName to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithParentType

func (o *CreateTCPRequestRuleParams) WithParentType(parentType string) *CreateTCPRequestRuleParams

WithParentType adds the parentType to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WithVersion

WithVersion adds the version to the create TCP request rule params

func (*CreateTCPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTCPRequestRuleReader

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

CreateTCPRequestRuleReader is a Reader for the CreateTCPRequestRule structure.

func (*CreateTCPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTCPRequestRuleAccepted

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

DeleteTCPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteTCPRequestRuleAccepted

func NewDeleteTCPRequestRuleAccepted() *DeleteTCPRequestRuleAccepted

NewDeleteTCPRequestRuleAccepted creates a DeleteTCPRequestRuleAccepted with default headers values

func (*DeleteTCPRequestRuleAccepted) Error

type DeleteTCPRequestRuleDefault

type DeleteTCPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteTCPRequestRuleDefault handles this case with default header values.

General Error

func NewDeleteTCPRequestRuleDefault

func NewDeleteTCPRequestRuleDefault(code int) *DeleteTCPRequestRuleDefault

NewDeleteTCPRequestRuleDefault creates a DeleteTCPRequestRuleDefault with default headers values

func (*DeleteTCPRequestRuleDefault) Code

func (o *DeleteTCPRequestRuleDefault) Code() int

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

func (*DeleteTCPRequestRuleDefault) Error

func (*DeleteTCPRequestRuleDefault) GetPayload added in v0.2.0

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

type DeleteTCPRequestRuleNoContent

type DeleteTCPRequestRuleNoContent struct {
}

DeleteTCPRequestRuleNoContent handles this case with default header values.

TCP Request Rule deleted

func NewDeleteTCPRequestRuleNoContent

func NewDeleteTCPRequestRuleNoContent() *DeleteTCPRequestRuleNoContent

NewDeleteTCPRequestRuleNoContent creates a DeleteTCPRequestRuleNoContent with default headers values

func (*DeleteTCPRequestRuleNoContent) Error

type DeleteTCPRequestRuleNotFound

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

	Payload *models.Error
}

DeleteTCPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteTCPRequestRuleNotFound

func NewDeleteTCPRequestRuleNotFound() *DeleteTCPRequestRuleNotFound

NewDeleteTCPRequestRuleNotFound creates a DeleteTCPRequestRuleNotFound with default headers values

func (*DeleteTCPRequestRuleNotFound) Error

func (*DeleteTCPRequestRuleNotFound) GetPayload added in v0.2.0

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

type DeleteTCPRequestRuleParams

type DeleteTCPRequestRuleParams struct {

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

	*/
	ForceReload *bool
	/*Index
	  TCP Request Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

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

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

	*/
	Version *int64

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

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

func NewDeleteTCPRequestRuleParams

func NewDeleteTCPRequestRuleParams() *DeleteTCPRequestRuleParams

NewDeleteTCPRequestRuleParams creates a new DeleteTCPRequestRuleParams object with the default values initialized.

func NewDeleteTCPRequestRuleParamsWithContext

func NewDeleteTCPRequestRuleParamsWithContext(ctx context.Context) *DeleteTCPRequestRuleParams

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

func NewDeleteTCPRequestRuleParamsWithHTTPClient

func NewDeleteTCPRequestRuleParamsWithHTTPClient(client *http.Client) *DeleteTCPRequestRuleParams

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

func NewDeleteTCPRequestRuleParamsWithTimeout

func NewDeleteTCPRequestRuleParamsWithTimeout(timeout time.Duration) *DeleteTCPRequestRuleParams

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

func (*DeleteTCPRequestRuleParams) SetContext

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

SetContext adds the context to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetIndex

func (o *DeleteTCPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetParentName

func (o *DeleteTCPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetParentType

func (o *DeleteTCPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) SetVersion

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

SetVersion adds the version to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithContext

WithContext adds the context to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithIndex

WithIndex adds the index to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithParentName

func (o *DeleteTCPRequestRuleParams) WithParentName(parentName string) *DeleteTCPRequestRuleParams

WithParentName adds the parentName to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithParentType

func (o *DeleteTCPRequestRuleParams) WithParentType(parentType string) *DeleteTCPRequestRuleParams

WithParentType adds the parentType to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WithVersion

WithVersion adds the version to the delete TCP request rule params

func (*DeleteTCPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTCPRequestRuleReader

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

DeleteTCPRequestRuleReader is a Reader for the DeleteTCPRequestRule structure.

func (*DeleteTCPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPRequestRuleDefault

type GetTCPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetTCPRequestRuleDefault handles this case with default header values.

General Error

func NewGetTCPRequestRuleDefault

func NewGetTCPRequestRuleDefault(code int) *GetTCPRequestRuleDefault

NewGetTCPRequestRuleDefault creates a GetTCPRequestRuleDefault with default headers values

func (*GetTCPRequestRuleDefault) Code

func (o *GetTCPRequestRuleDefault) Code() int

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

func (*GetTCPRequestRuleDefault) Error

func (o *GetTCPRequestRuleDefault) Error() string

func (*GetTCPRequestRuleDefault) GetPayload added in v0.2.0

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

type GetTCPRequestRuleNotFound

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

	Payload *models.Error
}

GetTCPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewGetTCPRequestRuleNotFound

func NewGetTCPRequestRuleNotFound() *GetTCPRequestRuleNotFound

NewGetTCPRequestRuleNotFound creates a GetTCPRequestRuleNotFound with default headers values

func (*GetTCPRequestRuleNotFound) Error

func (o *GetTCPRequestRuleNotFound) Error() string

func (*GetTCPRequestRuleNotFound) GetPayload added in v0.2.0

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

type GetTCPRequestRuleOK

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

	Payload *GetTCPRequestRuleOKBody
}

GetTCPRequestRuleOK handles this case with default header values.

Successful operation

func NewGetTCPRequestRuleOK

func NewGetTCPRequestRuleOK() *GetTCPRequestRuleOK

NewGetTCPRequestRuleOK creates a GetTCPRequestRuleOK with default headers values

func (*GetTCPRequestRuleOK) Error

func (o *GetTCPRequestRuleOK) Error() string

func (*GetTCPRequestRuleOK) GetPayload added in v0.2.0

type GetTCPRequestRuleOKBody

type GetTCPRequestRuleOKBody struct {

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

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

GetTCPRequestRuleOKBody get TCP request rule o k body swagger:model GetTCPRequestRuleOKBody

func (*GetTCPRequestRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPRequestRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPRequestRuleOKBody) Validate

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

Validate validates this get TCP request rule o k body

type GetTCPRequestRuleParams

type GetTCPRequestRuleParams struct {

	/*Index
	  TCP Request Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

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

func NewGetTCPRequestRuleParams

func NewGetTCPRequestRuleParams() *GetTCPRequestRuleParams

NewGetTCPRequestRuleParams creates a new GetTCPRequestRuleParams object with the default values initialized.

func NewGetTCPRequestRuleParamsWithContext

func NewGetTCPRequestRuleParamsWithContext(ctx context.Context) *GetTCPRequestRuleParams

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

func NewGetTCPRequestRuleParamsWithHTTPClient

func NewGetTCPRequestRuleParamsWithHTTPClient(client *http.Client) *GetTCPRequestRuleParams

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

func NewGetTCPRequestRuleParamsWithTimeout

func NewGetTCPRequestRuleParamsWithTimeout(timeout time.Duration) *GetTCPRequestRuleParams

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

func (*GetTCPRequestRuleParams) SetContext

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

SetContext adds the context to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetIndex

func (o *GetTCPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetParentName

func (o *GetTCPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetParentType

func (o *GetTCPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP request rule params

func (*GetTCPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithContext

WithContext adds the context to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithIndex

WithIndex adds the index to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithParentName

func (o *GetTCPRequestRuleParams) WithParentName(parentName string) *GetTCPRequestRuleParams

WithParentName adds the parentName to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithParentType

func (o *GetTCPRequestRuleParams) WithParentType(parentType string) *GetTCPRequestRuleParams

WithParentType adds the parentType to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the get TCP request rule params

func (*GetTCPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP request rule params

func (*GetTCPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTCPRequestRuleReader

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

GetTCPRequestRuleReader is a Reader for the GetTCPRequestRule structure.

func (*GetTCPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPRequestRulesDefault

type GetTCPRequestRulesDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetTCPRequestRulesDefault handles this case with default header values.

General Error

func NewGetTCPRequestRulesDefault

func NewGetTCPRequestRulesDefault(code int) *GetTCPRequestRulesDefault

NewGetTCPRequestRulesDefault creates a GetTCPRequestRulesDefault with default headers values

func (*GetTCPRequestRulesDefault) Code

func (o *GetTCPRequestRulesDefault) Code() int

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

func (*GetTCPRequestRulesDefault) Error

func (o *GetTCPRequestRulesDefault) Error() string

func (*GetTCPRequestRulesDefault) GetPayload added in v0.2.0

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

type GetTCPRequestRulesOK

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

	Payload *GetTCPRequestRulesOKBody
}

GetTCPRequestRulesOK handles this case with default header values.

Successful operation

func NewGetTCPRequestRulesOK

func NewGetTCPRequestRulesOK() *GetTCPRequestRulesOK

NewGetTCPRequestRulesOK creates a GetTCPRequestRulesOK with default headers values

func (*GetTCPRequestRulesOK) Error

func (o *GetTCPRequestRulesOK) Error() string

func (*GetTCPRequestRulesOK) GetPayload added in v0.2.0

type GetTCPRequestRulesOKBody

type GetTCPRequestRulesOKBody struct {

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

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

GetTCPRequestRulesOKBody get TCP request rules o k body swagger:model GetTCPRequestRulesOKBody

func (*GetTCPRequestRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPRequestRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPRequestRulesOKBody) Validate

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

Validate validates this get TCP request rules o k body

type GetTCPRequestRulesParams

type GetTCPRequestRulesParams struct {

	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType 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
}

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

func NewGetTCPRequestRulesParams

func NewGetTCPRequestRulesParams() *GetTCPRequestRulesParams

NewGetTCPRequestRulesParams creates a new GetTCPRequestRulesParams object with the default values initialized.

func NewGetTCPRequestRulesParamsWithContext

func NewGetTCPRequestRulesParamsWithContext(ctx context.Context) *GetTCPRequestRulesParams

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

func NewGetTCPRequestRulesParamsWithHTTPClient

func NewGetTCPRequestRulesParamsWithHTTPClient(client *http.Client) *GetTCPRequestRulesParams

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

func NewGetTCPRequestRulesParamsWithTimeout

func NewGetTCPRequestRulesParamsWithTimeout(timeout time.Duration) *GetTCPRequestRulesParams

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

func (*GetTCPRequestRulesParams) SetContext

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

SetContext adds the context to the get TCP request rules params

func (*GetTCPRequestRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP request rules params

func (*GetTCPRequestRulesParams) SetParentName

func (o *GetTCPRequestRulesParams) SetParentName(parentName string)

SetParentName adds the parentName to the get TCP request rules params

func (*GetTCPRequestRulesParams) SetParentType

func (o *GetTCPRequestRulesParams) SetParentType(parentType string)

SetParentType adds the parentType to the get TCP request rules params

func (*GetTCPRequestRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP request rules params

func (*GetTCPRequestRulesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithContext

WithContext adds the context to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithParentName

func (o *GetTCPRequestRulesParams) WithParentName(parentName string) *GetTCPRequestRulesParams

WithParentName adds the parentName to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithParentType

func (o *GetTCPRequestRulesParams) WithParentType(parentType string) *GetTCPRequestRulesParams

WithParentType adds the parentType to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithTimeout

WithTimeout adds the timeout to the get TCP request rules params

func (*GetTCPRequestRulesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP request rules params

func (*GetTCPRequestRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTCPRequestRulesReader

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

GetTCPRequestRulesReader is a Reader for the GetTCPRequestRules structure.

func (*GetTCPRequestRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceTCPRequestRuleAccepted

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

	Payload *models.TCPRequestRule
}

ReplaceTCPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceTCPRequestRuleAccepted

func NewReplaceTCPRequestRuleAccepted() *ReplaceTCPRequestRuleAccepted

NewReplaceTCPRequestRuleAccepted creates a ReplaceTCPRequestRuleAccepted with default headers values

func (*ReplaceTCPRequestRuleAccepted) Error

func (*ReplaceTCPRequestRuleAccepted) GetPayload added in v0.2.0

type ReplaceTCPRequestRuleBadRequest

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

	Payload *models.Error
}

ReplaceTCPRequestRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceTCPRequestRuleBadRequest

func NewReplaceTCPRequestRuleBadRequest() *ReplaceTCPRequestRuleBadRequest

NewReplaceTCPRequestRuleBadRequest creates a ReplaceTCPRequestRuleBadRequest with default headers values

func (*ReplaceTCPRequestRuleBadRequest) Error

func (*ReplaceTCPRequestRuleBadRequest) GetPayload added in v0.2.0

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

type ReplaceTCPRequestRuleDefault

type ReplaceTCPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceTCPRequestRuleDefault handles this case with default header values.

General Error

func NewReplaceTCPRequestRuleDefault

func NewReplaceTCPRequestRuleDefault(code int) *ReplaceTCPRequestRuleDefault

NewReplaceTCPRequestRuleDefault creates a ReplaceTCPRequestRuleDefault with default headers values

func (*ReplaceTCPRequestRuleDefault) Code

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

func (*ReplaceTCPRequestRuleDefault) Error

func (*ReplaceTCPRequestRuleDefault) GetPayload added in v0.2.0

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

type ReplaceTCPRequestRuleNotFound

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

	Payload *models.Error
}

ReplaceTCPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceTCPRequestRuleNotFound

func NewReplaceTCPRequestRuleNotFound() *ReplaceTCPRequestRuleNotFound

NewReplaceTCPRequestRuleNotFound creates a ReplaceTCPRequestRuleNotFound with default headers values

func (*ReplaceTCPRequestRuleNotFound) Error

func (*ReplaceTCPRequestRuleNotFound) GetPayload added in v0.2.0

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

type ReplaceTCPRequestRuleOK

type ReplaceTCPRequestRuleOK struct {
	Payload *models.TCPRequestRule
}

ReplaceTCPRequestRuleOK handles this case with default header values.

TCP Request Rule replaced

func NewReplaceTCPRequestRuleOK

func NewReplaceTCPRequestRuleOK() *ReplaceTCPRequestRuleOK

NewReplaceTCPRequestRuleOK creates a ReplaceTCPRequestRuleOK with default headers values

func (*ReplaceTCPRequestRuleOK) Error

func (o *ReplaceTCPRequestRuleOK) Error() string

func (*ReplaceTCPRequestRuleOK) GetPayload added in v0.2.0

type ReplaceTCPRequestRuleParams

type ReplaceTCPRequestRuleParams struct {

	/*Data*/
	Data *models.TCPRequestRule
	/*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 Request Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

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

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

	*/
	Version *int64

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

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

func NewReplaceTCPRequestRuleParams

func NewReplaceTCPRequestRuleParams() *ReplaceTCPRequestRuleParams

NewReplaceTCPRequestRuleParams creates a new ReplaceTCPRequestRuleParams object with the default values initialized.

func NewReplaceTCPRequestRuleParamsWithContext

func NewReplaceTCPRequestRuleParamsWithContext(ctx context.Context) *ReplaceTCPRequestRuleParams

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

func NewReplaceTCPRequestRuleParamsWithHTTPClient

func NewReplaceTCPRequestRuleParamsWithHTTPClient(client *http.Client) *ReplaceTCPRequestRuleParams

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

func NewReplaceTCPRequestRuleParamsWithTimeout

func NewReplaceTCPRequestRuleParamsWithTimeout(timeout time.Duration) *ReplaceTCPRequestRuleParams

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

func (*ReplaceTCPRequestRuleParams) SetContext

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

SetContext adds the context to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetData

SetData adds the data to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetIndex

func (o *ReplaceTCPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetParentName

func (o *ReplaceTCPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetParentType

func (o *ReplaceTCPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) SetVersion

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

SetVersion adds the version to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithContext

WithContext adds the context to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithData

WithData adds the data to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithIndex

WithIndex adds the index to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithParentName

func (o *ReplaceTCPRequestRuleParams) WithParentName(parentName string) *ReplaceTCPRequestRuleParams

WithParentName adds the parentName to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithParentType

func (o *ReplaceTCPRequestRuleParams) WithParentType(parentType string) *ReplaceTCPRequestRuleParams

WithParentType adds the parentType to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WithVersion

WithVersion adds the version to the replace TCP request rule params

func (*ReplaceTCPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceTCPRequestRuleReader

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

ReplaceTCPRequestRuleReader is a Reader for the ReplaceTCPRequestRule structure.

func (*ReplaceTCPRequestRuleReader) ReadResponse

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