tcp_check

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for tcp check API

func (*Client) CreateTCPCheck

CreateTCPCheck adds a new TCP check

Adds a new TCP check of the specified type in the specified parent.

func (*Client) DeleteTCPCheck

DeleteTCPCheck deletes a TCP check

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

func (*Client) GetTCPCheck

func (a *Client) GetTCPCheck(params *GetTCPCheckParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPCheckOK, error)

GetTCPCheck returns one TCP check

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

func (*Client) GetTCPChecks

func (a *Client) GetTCPChecks(params *GetTCPChecksParams, authInfo runtime.ClientAuthInfoWriter) (*GetTCPChecksOK, error)

GetTCPChecks returns an array of TCP checks

Returns all TCP checks that are configured in specified parent.

func (*Client) ReplaceTCPCheck

ReplaceTCPCheck replaces a TCP check

Replaces a TCP Check 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

ClientService is the interface for Client methods

func New

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

New creates a new tcp check API client.

type CreateTCPCheckAccepted

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

	Payload *models.TCPCheck
}

CreateTCPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateTCPCheckAccepted

func NewCreateTCPCheckAccepted() *CreateTCPCheckAccepted

NewCreateTCPCheckAccepted creates a CreateTCPCheckAccepted with default headers values

func (*CreateTCPCheckAccepted) Error

func (o *CreateTCPCheckAccepted) Error() string

func (*CreateTCPCheckAccepted) GetPayload

func (o *CreateTCPCheckAccepted) GetPayload() *models.TCPCheck

type CreateTCPCheckBadRequest

type CreateTCPCheckBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateTCPCheckBadRequest handles this case with default header values.

Bad request

func NewCreateTCPCheckBadRequest

func NewCreateTCPCheckBadRequest() *CreateTCPCheckBadRequest

NewCreateTCPCheckBadRequest creates a CreateTCPCheckBadRequest with default headers values

func (*CreateTCPCheckBadRequest) Error

func (o *CreateTCPCheckBadRequest) Error() string

func (*CreateTCPCheckBadRequest) GetPayload

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

type CreateTCPCheckConflict

type CreateTCPCheckConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateTCPCheckConflict handles this case with default header values.

The specified resource already exists

func NewCreateTCPCheckConflict

func NewCreateTCPCheckConflict() *CreateTCPCheckConflict

NewCreateTCPCheckConflict creates a CreateTCPCheckConflict with default headers values

func (*CreateTCPCheckConflict) Error

func (o *CreateTCPCheckConflict) Error() string

func (*CreateTCPCheckConflict) GetPayload

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

type CreateTCPCheckCreated

type CreateTCPCheckCreated struct {
	Payload *models.TCPCheck
}

CreateTCPCheckCreated handles this case with default header values.

TCP check created

func NewCreateTCPCheckCreated

func NewCreateTCPCheckCreated() *CreateTCPCheckCreated

NewCreateTCPCheckCreated creates a CreateTCPCheckCreated with default headers values

func (*CreateTCPCheckCreated) Error

func (o *CreateTCPCheckCreated) Error() string

func (*CreateTCPCheckCreated) GetPayload

func (o *CreateTCPCheckCreated) GetPayload() *models.TCPCheck

type CreateTCPCheckDefault

type CreateTCPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateTCPCheckDefault handles this case with default header values.

General Error

func NewCreateTCPCheckDefault

func NewCreateTCPCheckDefault(code int) *CreateTCPCheckDefault

NewCreateTCPCheckDefault creates a CreateTCPCheckDefault with default headers values

func (*CreateTCPCheckDefault) Code

func (o *CreateTCPCheckDefault) Code() int

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

func (*CreateTCPCheckDefault) Error

func (o *CreateTCPCheckDefault) Error() string

func (*CreateTCPCheckDefault) GetPayload

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

type CreateTCPCheckParams

type CreateTCPCheckParams struct {

	/*Data*/
	Data *models.TCPCheck
	/*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
}

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

func NewCreateTCPCheckParams

func NewCreateTCPCheckParams() *CreateTCPCheckParams

NewCreateTCPCheckParams creates a new CreateTCPCheckParams object with the default values initialized.

func NewCreateTCPCheckParamsWithContext

func NewCreateTCPCheckParamsWithContext(ctx context.Context) *CreateTCPCheckParams

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

func NewCreateTCPCheckParamsWithHTTPClient

func NewCreateTCPCheckParamsWithHTTPClient(client *http.Client) *CreateTCPCheckParams

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

func NewCreateTCPCheckParamsWithTimeout

func NewCreateTCPCheckParamsWithTimeout(timeout time.Duration) *CreateTCPCheckParams

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

func (*CreateTCPCheckParams) SetContext

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

SetContext adds the context to the create TCP check params

func (*CreateTCPCheckParams) SetData

func (o *CreateTCPCheckParams) SetData(data *models.TCPCheck)

SetData adds the data to the create TCP check params

func (*CreateTCPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the create TCP check params

func (*CreateTCPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create TCP check params

func (*CreateTCPCheckParams) SetParentName

func (o *CreateTCPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the create TCP check params

func (*CreateTCPCheckParams) SetParentType

func (o *CreateTCPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the create TCP check params

func (*CreateTCPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the create TCP check params

func (*CreateTCPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create TCP check params

func (*CreateTCPCheckParams) SetVersion

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

SetVersion adds the version to the create TCP check params

func (*CreateTCPCheckParams) WithContext

WithContext adds the context to the create TCP check params

func (*CreateTCPCheckParams) WithData

WithData adds the data to the create TCP check params

func (*CreateTCPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the create TCP check params

func (*CreateTCPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create TCP check params

func (*CreateTCPCheckParams) WithParentName

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

WithParentName adds the parentName to the create TCP check params

func (*CreateTCPCheckParams) WithParentType

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

WithParentType adds the parentType to the create TCP check params

func (*CreateTCPCheckParams) WithTimeout

func (o *CreateTCPCheckParams) WithTimeout(timeout time.Duration) *CreateTCPCheckParams

WithTimeout adds the timeout to the create TCP check params

func (*CreateTCPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create TCP check params

func (*CreateTCPCheckParams) WithVersion

func (o *CreateTCPCheckParams) WithVersion(version *int64) *CreateTCPCheckParams

WithVersion adds the version to the create TCP check params

func (*CreateTCPCheckParams) WriteToRequest

func (o *CreateTCPCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTCPCheckReader

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

CreateTCPCheckReader is a Reader for the CreateTCPCheck structure.

func (*CreateTCPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTCPCheckAccepted

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

DeleteTCPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteTCPCheckAccepted

func NewDeleteTCPCheckAccepted() *DeleteTCPCheckAccepted

NewDeleteTCPCheckAccepted creates a DeleteTCPCheckAccepted with default headers values

func (*DeleteTCPCheckAccepted) Error

func (o *DeleteTCPCheckAccepted) Error() string

type DeleteTCPCheckDefault

type DeleteTCPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteTCPCheckDefault handles this case with default header values.

General Error

func NewDeleteTCPCheckDefault

func NewDeleteTCPCheckDefault(code int) *DeleteTCPCheckDefault

NewDeleteTCPCheckDefault creates a DeleteTCPCheckDefault with default headers values

func (*DeleteTCPCheckDefault) Code

func (o *DeleteTCPCheckDefault) Code() int

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

func (*DeleteTCPCheckDefault) Error

func (o *DeleteTCPCheckDefault) Error() string

func (*DeleteTCPCheckDefault) GetPayload

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

type DeleteTCPCheckNoContent

type DeleteTCPCheckNoContent struct {
}

DeleteTCPCheckNoContent handles this case with default header values.

TCP check deleted

func NewDeleteTCPCheckNoContent

func NewDeleteTCPCheckNoContent() *DeleteTCPCheckNoContent

NewDeleteTCPCheckNoContent creates a DeleteTCPCheckNoContent with default headers values

func (*DeleteTCPCheckNoContent) Error

func (o *DeleteTCPCheckNoContent) Error() string

type DeleteTCPCheckNotFound

type DeleteTCPCheckNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteTCPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteTCPCheckNotFound

func NewDeleteTCPCheckNotFound() *DeleteTCPCheckNotFound

NewDeleteTCPCheckNotFound creates a DeleteTCPCheckNotFound with default headers values

func (*DeleteTCPCheckNotFound) Error

func (o *DeleteTCPCheckNotFound) Error() string

func (*DeleteTCPCheckNotFound) GetPayload

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

type DeleteTCPCheckParams

type DeleteTCPCheckParams 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 check 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
}

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

func NewDeleteTCPCheckParams

func NewDeleteTCPCheckParams() *DeleteTCPCheckParams

NewDeleteTCPCheckParams creates a new DeleteTCPCheckParams object with the default values initialized.

func NewDeleteTCPCheckParamsWithContext

func NewDeleteTCPCheckParamsWithContext(ctx context.Context) *DeleteTCPCheckParams

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

func NewDeleteTCPCheckParamsWithHTTPClient

func NewDeleteTCPCheckParamsWithHTTPClient(client *http.Client) *DeleteTCPCheckParams

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

func NewDeleteTCPCheckParamsWithTimeout

func NewDeleteTCPCheckParamsWithTimeout(timeout time.Duration) *DeleteTCPCheckParams

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

func (*DeleteTCPCheckParams) SetContext

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

SetContext adds the context to the delete TCP check params

func (*DeleteTCPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the delete TCP check params

func (*DeleteTCPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete TCP check params

func (*DeleteTCPCheckParams) SetIndex

func (o *DeleteTCPCheckParams) SetIndex(index int64)

SetIndex adds the index to the delete TCP check params

func (*DeleteTCPCheckParams) SetParentName

func (o *DeleteTCPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the delete TCP check params

func (*DeleteTCPCheckParams) SetParentType

func (o *DeleteTCPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete TCP check params

func (*DeleteTCPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the delete TCP check params

func (*DeleteTCPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete TCP check params

func (*DeleteTCPCheckParams) SetVersion

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

SetVersion adds the version to the delete TCP check params

func (*DeleteTCPCheckParams) WithContext

WithContext adds the context to the delete TCP check params

func (*DeleteTCPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the delete TCP check params

func (*DeleteTCPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete TCP check params

func (*DeleteTCPCheckParams) WithIndex

func (o *DeleteTCPCheckParams) WithIndex(index int64) *DeleteTCPCheckParams

WithIndex adds the index to the delete TCP check params

func (*DeleteTCPCheckParams) WithParentName

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

WithParentName adds the parentName to the delete TCP check params

func (*DeleteTCPCheckParams) WithParentType

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

WithParentType adds the parentType to the delete TCP check params

func (*DeleteTCPCheckParams) WithTimeout

func (o *DeleteTCPCheckParams) WithTimeout(timeout time.Duration) *DeleteTCPCheckParams

WithTimeout adds the timeout to the delete TCP check params

func (*DeleteTCPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete TCP check params

func (*DeleteTCPCheckParams) WithVersion

func (o *DeleteTCPCheckParams) WithVersion(version *int64) *DeleteTCPCheckParams

WithVersion adds the version to the delete TCP check params

func (*DeleteTCPCheckParams) WriteToRequest

func (o *DeleteTCPCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteTCPCheckReader

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

DeleteTCPCheckReader is a Reader for the DeleteTCPCheck structure.

func (*DeleteTCPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPCheckDefault

type GetTCPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetTCPCheckDefault handles this case with default header values.

General Error

func NewGetTCPCheckDefault

func NewGetTCPCheckDefault(code int) *GetTCPCheckDefault

NewGetTCPCheckDefault creates a GetTCPCheckDefault with default headers values

func (*GetTCPCheckDefault) Code

func (o *GetTCPCheckDefault) Code() int

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

func (*GetTCPCheckDefault) Error

func (o *GetTCPCheckDefault) Error() string

func (*GetTCPCheckDefault) GetPayload

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

type GetTCPCheckNotFound

type GetTCPCheckNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetTCPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewGetTCPCheckNotFound

func NewGetTCPCheckNotFound() *GetTCPCheckNotFound

NewGetTCPCheckNotFound creates a GetTCPCheckNotFound with default headers values

func (*GetTCPCheckNotFound) Error

func (o *GetTCPCheckNotFound) Error() string

func (*GetTCPCheckNotFound) GetPayload

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

type GetTCPCheckOK

type GetTCPCheckOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTCPCheckOKBody
}

GetTCPCheckOK handles this case with default header values.

Successful operation

func NewGetTCPCheckOK

func NewGetTCPCheckOK() *GetTCPCheckOK

NewGetTCPCheckOK creates a GetTCPCheckOK with default headers values

func (*GetTCPCheckOK) Error

func (o *GetTCPCheckOK) Error() string

func (*GetTCPCheckOK) GetPayload

func (o *GetTCPCheckOK) GetPayload() *GetTCPCheckOKBody

type GetTCPCheckOKBody

type GetTCPCheckOKBody struct {

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

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

GetTCPCheckOKBody get TCP check o k body swagger:model GetTCPCheckOKBody

func (*GetTCPCheckOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPCheckOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPCheckOKBody) Validate

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

Validate validates this get TCP check o k body

type GetTCPCheckParams

type GetTCPCheckParams struct {

	/*Index
	  TCP Check 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
}

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

func NewGetTCPCheckParams

func NewGetTCPCheckParams() *GetTCPCheckParams

NewGetTCPCheckParams creates a new GetTCPCheckParams object with the default values initialized.

func NewGetTCPCheckParamsWithContext

func NewGetTCPCheckParamsWithContext(ctx context.Context) *GetTCPCheckParams

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

func NewGetTCPCheckParamsWithHTTPClient

func NewGetTCPCheckParamsWithHTTPClient(client *http.Client) *GetTCPCheckParams

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

func NewGetTCPCheckParamsWithTimeout

func NewGetTCPCheckParamsWithTimeout(timeout time.Duration) *GetTCPCheckParams

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

func (*GetTCPCheckParams) SetContext

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

SetContext adds the context to the get TCP check params

func (*GetTCPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP check params

func (*GetTCPCheckParams) SetIndex

func (o *GetTCPCheckParams) SetIndex(index int64)

SetIndex adds the index to the get TCP check params

func (*GetTCPCheckParams) SetParentName

func (o *GetTCPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get TCP check params

func (*GetTCPCheckParams) SetParentType

func (o *GetTCPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the get TCP check params

func (*GetTCPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP check params

func (*GetTCPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP check params

func (*GetTCPCheckParams) WithContext

func (o *GetTCPCheckParams) WithContext(ctx context.Context) *GetTCPCheckParams

WithContext adds the context to the get TCP check params

func (*GetTCPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get TCP check params

func (*GetTCPCheckParams) WithIndex

func (o *GetTCPCheckParams) WithIndex(index int64) *GetTCPCheckParams

WithIndex adds the index to the get TCP check params

func (*GetTCPCheckParams) WithParentName

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

WithParentName adds the parentName to the get TCP check params

func (*GetTCPCheckParams) WithParentType

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

WithParentType adds the parentType to the get TCP check params

func (*GetTCPCheckParams) WithTimeout

func (o *GetTCPCheckParams) WithTimeout(timeout time.Duration) *GetTCPCheckParams

WithTimeout adds the timeout to the get TCP check params

func (*GetTCPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP check params

func (*GetTCPCheckParams) WriteToRequest

func (o *GetTCPCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTCPCheckReader

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

GetTCPCheckReader is a Reader for the GetTCPCheck structure.

func (*GetTCPCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTCPChecksDefault

type GetTCPChecksDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetTCPChecksDefault handles this case with default header values.

General Error

func NewGetTCPChecksDefault

func NewGetTCPChecksDefault(code int) *GetTCPChecksDefault

NewGetTCPChecksDefault creates a GetTCPChecksDefault with default headers values

func (*GetTCPChecksDefault) Code

func (o *GetTCPChecksDefault) Code() int

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

func (*GetTCPChecksDefault) Error

func (o *GetTCPChecksDefault) Error() string

func (*GetTCPChecksDefault) GetPayload

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

type GetTCPChecksOK

type GetTCPChecksOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTCPChecksOKBody
}

GetTCPChecksOK handles this case with default header values.

Successful operation

func NewGetTCPChecksOK

func NewGetTCPChecksOK() *GetTCPChecksOK

NewGetTCPChecksOK creates a GetTCPChecksOK with default headers values

func (*GetTCPChecksOK) Error

func (o *GetTCPChecksOK) Error() string

func (*GetTCPChecksOK) GetPayload

func (o *GetTCPChecksOK) GetPayload() *GetTCPChecksOKBody

type GetTCPChecksOKBody

type GetTCPChecksOKBody struct {

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

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

GetTCPChecksOKBody get TCP checks o k body swagger:model GetTCPChecksOKBody

func (*GetTCPChecksOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTCPChecksOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTCPChecksOKBody) Validate

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

Validate validates this get TCP checks o k body

type GetTCPChecksParams

type GetTCPChecksParams 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
}

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

func NewGetTCPChecksParams

func NewGetTCPChecksParams() *GetTCPChecksParams

NewGetTCPChecksParams creates a new GetTCPChecksParams object with the default values initialized.

func NewGetTCPChecksParamsWithContext

func NewGetTCPChecksParamsWithContext(ctx context.Context) *GetTCPChecksParams

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

func NewGetTCPChecksParamsWithHTTPClient

func NewGetTCPChecksParamsWithHTTPClient(client *http.Client) *GetTCPChecksParams

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

func NewGetTCPChecksParamsWithTimeout

func NewGetTCPChecksParamsWithTimeout(timeout time.Duration) *GetTCPChecksParams

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

func (*GetTCPChecksParams) SetContext

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

SetContext adds the context to the get TCP checks params

func (*GetTCPChecksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get TCP checks params

func (*GetTCPChecksParams) SetParentName

func (o *GetTCPChecksParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get TCP checks params

func (*GetTCPChecksParams) SetParentType

func (o *GetTCPChecksParams) SetParentType(parentType string)

SetParentType adds the parentType to the get TCP checks params

func (*GetTCPChecksParams) SetTimeout

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

SetTimeout adds the timeout to the get TCP checks params

func (*GetTCPChecksParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get TCP checks params

func (*GetTCPChecksParams) WithContext

WithContext adds the context to the get TCP checks params

func (*GetTCPChecksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get TCP checks params

func (*GetTCPChecksParams) WithParentName

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

WithParentName adds the parentName to the get TCP checks params

func (*GetTCPChecksParams) WithParentType

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

WithParentType adds the parentType to the get TCP checks params

func (*GetTCPChecksParams) WithTimeout

func (o *GetTCPChecksParams) WithTimeout(timeout time.Duration) *GetTCPChecksParams

WithTimeout adds the timeout to the get TCP checks params

func (*GetTCPChecksParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get TCP checks params

func (*GetTCPChecksParams) WriteToRequest

func (o *GetTCPChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTCPChecksReader

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

GetTCPChecksReader is a Reader for the GetTCPChecks structure.

func (*GetTCPChecksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceTCPCheckAccepted

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

	Payload *models.TCPCheck
}

ReplaceTCPCheckAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceTCPCheckAccepted

func NewReplaceTCPCheckAccepted() *ReplaceTCPCheckAccepted

NewReplaceTCPCheckAccepted creates a ReplaceTCPCheckAccepted with default headers values

func (*ReplaceTCPCheckAccepted) Error

func (o *ReplaceTCPCheckAccepted) Error() string

func (*ReplaceTCPCheckAccepted) GetPayload

func (o *ReplaceTCPCheckAccepted) GetPayload() *models.TCPCheck

type ReplaceTCPCheckBadRequest

type ReplaceTCPCheckBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceTCPCheckBadRequest handles this case with default header values.

Bad request

func NewReplaceTCPCheckBadRequest

func NewReplaceTCPCheckBadRequest() *ReplaceTCPCheckBadRequest

NewReplaceTCPCheckBadRequest creates a ReplaceTCPCheckBadRequest with default headers values

func (*ReplaceTCPCheckBadRequest) Error

func (o *ReplaceTCPCheckBadRequest) Error() string

func (*ReplaceTCPCheckBadRequest) GetPayload

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

type ReplaceTCPCheckDefault

type ReplaceTCPCheckDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceTCPCheckDefault handles this case with default header values.

General Error

func NewReplaceTCPCheckDefault

func NewReplaceTCPCheckDefault(code int) *ReplaceTCPCheckDefault

NewReplaceTCPCheckDefault creates a ReplaceTCPCheckDefault with default headers values

func (*ReplaceTCPCheckDefault) Code

func (o *ReplaceTCPCheckDefault) Code() int

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

func (*ReplaceTCPCheckDefault) Error

func (o *ReplaceTCPCheckDefault) Error() string

func (*ReplaceTCPCheckDefault) GetPayload

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

type ReplaceTCPCheckNotFound

type ReplaceTCPCheckNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceTCPCheckNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceTCPCheckNotFound

func NewReplaceTCPCheckNotFound() *ReplaceTCPCheckNotFound

NewReplaceTCPCheckNotFound creates a ReplaceTCPCheckNotFound with default headers values

func (*ReplaceTCPCheckNotFound) Error

func (o *ReplaceTCPCheckNotFound) Error() string

func (*ReplaceTCPCheckNotFound) GetPayload

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

type ReplaceTCPCheckOK

type ReplaceTCPCheckOK struct {
	Payload *models.TCPCheck
}

ReplaceTCPCheckOK handles this case with default header values.

TCP check replaced

func NewReplaceTCPCheckOK

func NewReplaceTCPCheckOK() *ReplaceTCPCheckOK

NewReplaceTCPCheckOK creates a ReplaceTCPCheckOK with default headers values

func (*ReplaceTCPCheckOK) Error

func (o *ReplaceTCPCheckOK) Error() string

func (*ReplaceTCPCheckOK) GetPayload

func (o *ReplaceTCPCheckOK) GetPayload() *models.TCPCheck

type ReplaceTCPCheckParams

type ReplaceTCPCheckParams struct {

	/*Data*/
	Data *models.TCPCheck
	/*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 Check 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
}

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

func NewReplaceTCPCheckParams

func NewReplaceTCPCheckParams() *ReplaceTCPCheckParams

NewReplaceTCPCheckParams creates a new ReplaceTCPCheckParams object with the default values initialized.

func NewReplaceTCPCheckParamsWithContext

func NewReplaceTCPCheckParamsWithContext(ctx context.Context) *ReplaceTCPCheckParams

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

func NewReplaceTCPCheckParamsWithHTTPClient

func NewReplaceTCPCheckParamsWithHTTPClient(client *http.Client) *ReplaceTCPCheckParams

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

func NewReplaceTCPCheckParamsWithTimeout

func NewReplaceTCPCheckParamsWithTimeout(timeout time.Duration) *ReplaceTCPCheckParams

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

func (*ReplaceTCPCheckParams) SetContext

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

SetContext adds the context to the replace TCP check params

func (*ReplaceTCPCheckParams) SetData

func (o *ReplaceTCPCheckParams) SetData(data *models.TCPCheck)

SetData adds the data to the replace TCP check params

func (*ReplaceTCPCheckParams) SetForceReload

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

SetForceReload adds the forceReload to the replace TCP check params

func (*ReplaceTCPCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace TCP check params

func (*ReplaceTCPCheckParams) SetIndex

func (o *ReplaceTCPCheckParams) SetIndex(index int64)

SetIndex adds the index to the replace TCP check params

func (*ReplaceTCPCheckParams) SetParentName

func (o *ReplaceTCPCheckParams) SetParentName(parentName *string)

SetParentName adds the parentName to the replace TCP check params

func (*ReplaceTCPCheckParams) SetParentType

func (o *ReplaceTCPCheckParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace TCP check params

func (*ReplaceTCPCheckParams) SetTimeout

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

SetTimeout adds the timeout to the replace TCP check params

func (*ReplaceTCPCheckParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace TCP check params

func (*ReplaceTCPCheckParams) SetVersion

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

SetVersion adds the version to the replace TCP check params

func (*ReplaceTCPCheckParams) WithContext

WithContext adds the context to the replace TCP check params

func (*ReplaceTCPCheckParams) WithData

WithData adds the data to the replace TCP check params

func (*ReplaceTCPCheckParams) WithForceReload

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

WithForceReload adds the forceReload to the replace TCP check params

func (*ReplaceTCPCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace TCP check params

func (*ReplaceTCPCheckParams) WithIndex

func (o *ReplaceTCPCheckParams) WithIndex(index int64) *ReplaceTCPCheckParams

WithIndex adds the index to the replace TCP check params

func (*ReplaceTCPCheckParams) WithParentName

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

WithParentName adds the parentName to the replace TCP check params

func (*ReplaceTCPCheckParams) WithParentType

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

WithParentType adds the parentType to the replace TCP check params

func (*ReplaceTCPCheckParams) WithTimeout

func (o *ReplaceTCPCheckParams) WithTimeout(timeout time.Duration) *ReplaceTCPCheckParams

WithTimeout adds the timeout to the replace TCP check params

func (*ReplaceTCPCheckParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace TCP check params

func (*ReplaceTCPCheckParams) WithVersion

func (o *ReplaceTCPCheckParams) WithVersion(version *int64) *ReplaceTCPCheckParams

WithVersion adds the version to the replace TCP check params

func (*ReplaceTCPCheckParams) WriteToRequest

func (o *ReplaceTCPCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ReplaceTCPCheckReader

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

ReplaceTCPCheckReader is a Reader for the ReplaceTCPCheck structure.

func (*ReplaceTCPCheckReader) ReadResponse

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