table

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 table API

func (*Client) CreateTable

CreateTable adds a new table

Adds a new table in the specified peer section in the configuration file.

func (*Client) DeleteTable

DeleteTable deletes a table

Deletes a table configuration by it's name in the specified peer section.

func (*Client) GetTable

func (a *Client) GetTable(params *GetTableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTableOK, error)

GetTable returns one table

Returns one table configuration by it's name in the specified peer section.

func (*Client) GetTables

func (a *Client) GetTables(params *GetTablesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTablesOK, error)

GetTables returns an array of tables

Returns an array of all tables that are configured in specified peer section.

func (*Client) ReplaceTable

ReplaceTable replaces a table

Replaces a table configuration by it's name in the specified peer section.

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

type ClientService interface {
	CreateTable(params *CreateTableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTableCreated, *CreateTableAccepted, error)

	DeleteTable(params *DeleteTableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTableAccepted, *DeleteTableNoContent, error)

	GetTable(params *GetTableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTableOK, error)

	GetTables(params *GetTablesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTablesOK, error)

	ReplaceTable(params *ReplaceTableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceTableOK, *ReplaceTableAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new table API client.

type CreateTableAccepted

type CreateTableAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Table
}

CreateTableAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateTableAccepted

func NewCreateTableAccepted() *CreateTableAccepted

NewCreateTableAccepted creates a CreateTableAccepted with default headers values

func (*CreateTableAccepted) Code

func (o *CreateTableAccepted) Code() int

Code gets the status code for the create table accepted response

func (*CreateTableAccepted) Error

func (o *CreateTableAccepted) Error() string

func (*CreateTableAccepted) GetPayload

func (o *CreateTableAccepted) GetPayload() *models.Table

func (*CreateTableAccepted) IsClientError

func (o *CreateTableAccepted) IsClientError() bool

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

func (*CreateTableAccepted) IsCode

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

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

func (*CreateTableAccepted) IsRedirect

func (o *CreateTableAccepted) IsRedirect() bool

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

func (*CreateTableAccepted) IsServerError

func (o *CreateTableAccepted) IsServerError() bool

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

func (*CreateTableAccepted) IsSuccess

func (o *CreateTableAccepted) IsSuccess() bool

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

func (*CreateTableAccepted) String

func (o *CreateTableAccepted) String() string

type CreateTableBadRequest

type CreateTableBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateTableBadRequest

func NewCreateTableBadRequest() *CreateTableBadRequest

NewCreateTableBadRequest creates a CreateTableBadRequest with default headers values

func (*CreateTableBadRequest) Code

func (o *CreateTableBadRequest) Code() int

Code gets the status code for the create table bad request response

func (*CreateTableBadRequest) Error

func (o *CreateTableBadRequest) Error() string

func (*CreateTableBadRequest) GetPayload

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

func (*CreateTableBadRequest) IsClientError

func (o *CreateTableBadRequest) IsClientError() bool

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

func (*CreateTableBadRequest) IsCode

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

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

func (*CreateTableBadRequest) IsRedirect

func (o *CreateTableBadRequest) IsRedirect() bool

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

func (*CreateTableBadRequest) IsServerError

func (o *CreateTableBadRequest) IsServerError() bool

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

func (*CreateTableBadRequest) IsSuccess

func (o *CreateTableBadRequest) IsSuccess() bool

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

func (*CreateTableBadRequest) String

func (o *CreateTableBadRequest) String() string

type CreateTableConflict

type CreateTableConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreateTableConflict

func NewCreateTableConflict() *CreateTableConflict

NewCreateTableConflict creates a CreateTableConflict with default headers values

func (*CreateTableConflict) Code

func (o *CreateTableConflict) Code() int

Code gets the status code for the create table conflict response

func (*CreateTableConflict) Error

func (o *CreateTableConflict) Error() string

func (*CreateTableConflict) GetPayload

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

func (*CreateTableConflict) IsClientError

func (o *CreateTableConflict) IsClientError() bool

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

func (*CreateTableConflict) IsCode

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

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

func (*CreateTableConflict) IsRedirect

func (o *CreateTableConflict) IsRedirect() bool

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

func (*CreateTableConflict) IsServerError

func (o *CreateTableConflict) IsServerError() bool

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

func (*CreateTableConflict) IsSuccess

func (o *CreateTableConflict) IsSuccess() bool

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

func (*CreateTableConflict) String

func (o *CreateTableConflict) String() string

type CreateTableCreated

type CreateTableCreated struct {
	Payload *models.Table
}

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

Table created

func NewCreateTableCreated

func NewCreateTableCreated() *CreateTableCreated

NewCreateTableCreated creates a CreateTableCreated with default headers values

func (*CreateTableCreated) Code

func (o *CreateTableCreated) Code() int

Code gets the status code for the create table created response

func (*CreateTableCreated) Error

func (o *CreateTableCreated) Error() string

func (*CreateTableCreated) GetPayload

func (o *CreateTableCreated) GetPayload() *models.Table

func (*CreateTableCreated) IsClientError

func (o *CreateTableCreated) IsClientError() bool

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

func (*CreateTableCreated) IsCode

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

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

func (*CreateTableCreated) IsRedirect

func (o *CreateTableCreated) IsRedirect() bool

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

func (*CreateTableCreated) IsServerError

func (o *CreateTableCreated) IsServerError() bool

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

func (*CreateTableCreated) IsSuccess

func (o *CreateTableCreated) IsSuccess() bool

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

func (*CreateTableCreated) String

func (o *CreateTableCreated) String() string

type CreateTableDefault

type CreateTableDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

CreateTableDefault describes a response with status code -1, with default header values.

General Error

func NewCreateTableDefault

func NewCreateTableDefault(code int) *CreateTableDefault

NewCreateTableDefault creates a CreateTableDefault with default headers values

func (*CreateTableDefault) Code

func (o *CreateTableDefault) Code() int

Code gets the status code for the create table default response

func (*CreateTableDefault) Error

func (o *CreateTableDefault) Error() string

func (*CreateTableDefault) GetPayload

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

func (*CreateTableDefault) IsClientError

func (o *CreateTableDefault) IsClientError() bool

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

func (*CreateTableDefault) IsCode

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

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

func (*CreateTableDefault) IsRedirect

func (o *CreateTableDefault) IsRedirect() bool

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

func (*CreateTableDefault) IsServerError

func (o *CreateTableDefault) IsServerError() bool

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

func (*CreateTableDefault) IsSuccess

func (o *CreateTableDefault) IsSuccess() bool

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

func (*CreateTableDefault) String

func (o *CreateTableDefault) String() string

type CreateTableParams

type CreateTableParams struct {

	// Data.
	Data *models.Table

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

	/* PeerSection.

	   Parent peer section name
	*/
	PeerSection 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
}

CreateTableParams contains all the parameters to send to the API endpoint

for the create table operation.

Typically these are written to a http.Request.

func NewCreateTableParams

func NewCreateTableParams() *CreateTableParams

NewCreateTableParams creates a new CreateTableParams 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 NewCreateTableParamsWithContext

func NewCreateTableParamsWithContext(ctx context.Context) *CreateTableParams

NewCreateTableParamsWithContext creates a new CreateTableParams object with the ability to set a context for a request.

func NewCreateTableParamsWithHTTPClient

func NewCreateTableParamsWithHTTPClient(client *http.Client) *CreateTableParams

NewCreateTableParamsWithHTTPClient creates a new CreateTableParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTableParamsWithTimeout

func NewCreateTableParamsWithTimeout(timeout time.Duration) *CreateTableParams

NewCreateTableParamsWithTimeout creates a new CreateTableParams object with the ability to set a timeout on a request.

func (*CreateTableParams) SetContext

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

SetContext adds the context to the create table params

func (*CreateTableParams) SetData

func (o *CreateTableParams) SetData(data *models.Table)

SetData adds the data to the create table params

func (*CreateTableParams) SetDefaults

func (o *CreateTableParams) SetDefaults()

SetDefaults hydrates default values in the create table params (not the query body).

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

func (*CreateTableParams) SetForceReload

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

SetForceReload adds the forceReload to the create table params

func (*CreateTableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create table params

func (*CreateTableParams) SetPeerSection

func (o *CreateTableParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the create table params

func (*CreateTableParams) SetTimeout

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

SetTimeout adds the timeout to the create table params

func (*CreateTableParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create table params

func (*CreateTableParams) SetVersion

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

SetVersion adds the version to the create table params

func (*CreateTableParams) WithContext

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

WithContext adds the context to the create table params

func (*CreateTableParams) WithData

func (o *CreateTableParams) WithData(data *models.Table) *CreateTableParams

WithData adds the data to the create table params

func (*CreateTableParams) WithDefaults

func (o *CreateTableParams) WithDefaults() *CreateTableParams

WithDefaults hydrates default values in the create table params (not the query body).

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

func (*CreateTableParams) WithForceReload

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

WithForceReload adds the forceReload to the create table params

func (*CreateTableParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create table params

func (*CreateTableParams) WithPeerSection

func (o *CreateTableParams) WithPeerSection(peerSection string) *CreateTableParams

WithPeerSection adds the peerSection to the create table params

func (*CreateTableParams) WithTimeout

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

WithTimeout adds the timeout to the create table params

func (*CreateTableParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create table params

func (*CreateTableParams) WithVersion

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

WithVersion adds the version to the create table params

func (*CreateTableParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTableReader

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

CreateTableReader is a Reader for the CreateTable structure.

func (*CreateTableReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTableAccepted

type DeleteTableAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteTableAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteTableAccepted

func NewDeleteTableAccepted() *DeleteTableAccepted

NewDeleteTableAccepted creates a DeleteTableAccepted with default headers values

func (*DeleteTableAccepted) Code

func (o *DeleteTableAccepted) Code() int

Code gets the status code for the delete table accepted response

func (*DeleteTableAccepted) Error

func (o *DeleteTableAccepted) Error() string

func (*DeleteTableAccepted) IsClientError

func (o *DeleteTableAccepted) IsClientError() bool

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

func (*DeleteTableAccepted) IsCode

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

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

func (*DeleteTableAccepted) IsRedirect

func (o *DeleteTableAccepted) IsRedirect() bool

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

func (*DeleteTableAccepted) IsServerError

func (o *DeleteTableAccepted) IsServerError() bool

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

func (*DeleteTableAccepted) IsSuccess

func (o *DeleteTableAccepted) IsSuccess() bool

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

func (*DeleteTableAccepted) String

func (o *DeleteTableAccepted) String() string

type DeleteTableDefault

type DeleteTableDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

DeleteTableDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteTableDefault

func NewDeleteTableDefault(code int) *DeleteTableDefault

NewDeleteTableDefault creates a DeleteTableDefault with default headers values

func (*DeleteTableDefault) Code

func (o *DeleteTableDefault) Code() int

Code gets the status code for the delete table default response

func (*DeleteTableDefault) Error

func (o *DeleteTableDefault) Error() string

func (*DeleteTableDefault) GetPayload

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

func (*DeleteTableDefault) IsClientError

func (o *DeleteTableDefault) IsClientError() bool

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

func (*DeleteTableDefault) IsCode

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

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

func (*DeleteTableDefault) IsRedirect

func (o *DeleteTableDefault) IsRedirect() bool

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

func (*DeleteTableDefault) IsServerError

func (o *DeleteTableDefault) IsServerError() bool

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

func (*DeleteTableDefault) IsSuccess

func (o *DeleteTableDefault) IsSuccess() bool

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

func (*DeleteTableDefault) String

func (o *DeleteTableDefault) String() string

type DeleteTableNoContent

type DeleteTableNoContent struct {
}

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

Table deleted

func NewDeleteTableNoContent

func NewDeleteTableNoContent() *DeleteTableNoContent

NewDeleteTableNoContent creates a DeleteTableNoContent with default headers values

func (*DeleteTableNoContent) Code

func (o *DeleteTableNoContent) Code() int

Code gets the status code for the delete table no content response

func (*DeleteTableNoContent) Error

func (o *DeleteTableNoContent) Error() string

func (*DeleteTableNoContent) IsClientError

func (o *DeleteTableNoContent) IsClientError() bool

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

func (*DeleteTableNoContent) IsCode

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

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

func (*DeleteTableNoContent) IsRedirect

func (o *DeleteTableNoContent) IsRedirect() bool

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

func (*DeleteTableNoContent) IsServerError

func (o *DeleteTableNoContent) IsServerError() bool

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

func (*DeleteTableNoContent) IsSuccess

func (o *DeleteTableNoContent) IsSuccess() bool

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

func (*DeleteTableNoContent) String

func (o *DeleteTableNoContent) String() string

type DeleteTableNotFound

type DeleteTableNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteTableNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteTableNotFound

func NewDeleteTableNotFound() *DeleteTableNotFound

NewDeleteTableNotFound creates a DeleteTableNotFound with default headers values

func (*DeleteTableNotFound) Code

func (o *DeleteTableNotFound) Code() int

Code gets the status code for the delete table not found response

func (*DeleteTableNotFound) Error

func (o *DeleteTableNotFound) Error() string

func (*DeleteTableNotFound) GetPayload

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

func (*DeleteTableNotFound) IsClientError

func (o *DeleteTableNotFound) IsClientError() bool

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

func (*DeleteTableNotFound) IsCode

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

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

func (*DeleteTableNotFound) IsRedirect

func (o *DeleteTableNotFound) IsRedirect() bool

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

func (*DeleteTableNotFound) IsServerError

func (o *DeleteTableNotFound) IsServerError() bool

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

func (*DeleteTableNotFound) IsSuccess

func (o *DeleteTableNotFound) IsSuccess() bool

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

func (*DeleteTableNotFound) String

func (o *DeleteTableNotFound) String() string

type DeleteTableParams

type DeleteTableParams 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

	/* Name.

	   Table name
	*/
	Name string

	/* PeerSection.

	   Parent peers name
	*/
	PeerSection 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
}

DeleteTableParams contains all the parameters to send to the API endpoint

for the delete table operation.

Typically these are written to a http.Request.

func NewDeleteTableParams

func NewDeleteTableParams() *DeleteTableParams

NewDeleteTableParams creates a new DeleteTableParams 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 NewDeleteTableParamsWithContext

func NewDeleteTableParamsWithContext(ctx context.Context) *DeleteTableParams

NewDeleteTableParamsWithContext creates a new DeleteTableParams object with the ability to set a context for a request.

func NewDeleteTableParamsWithHTTPClient

func NewDeleteTableParamsWithHTTPClient(client *http.Client) *DeleteTableParams

NewDeleteTableParamsWithHTTPClient creates a new DeleteTableParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTableParamsWithTimeout

func NewDeleteTableParamsWithTimeout(timeout time.Duration) *DeleteTableParams

NewDeleteTableParamsWithTimeout creates a new DeleteTableParams object with the ability to set a timeout on a request.

func (*DeleteTableParams) SetContext

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

SetContext adds the context to the delete table params

func (*DeleteTableParams) SetDefaults

func (o *DeleteTableParams) SetDefaults()

SetDefaults hydrates default values in the delete table params (not the query body).

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

func (*DeleteTableParams) SetForceReload

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

SetForceReload adds the forceReload to the delete table params

func (*DeleteTableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete table params

func (*DeleteTableParams) SetName

func (o *DeleteTableParams) SetName(name string)

SetName adds the name to the delete table params

func (*DeleteTableParams) SetPeerSection

func (o *DeleteTableParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the delete table params

func (*DeleteTableParams) SetTimeout

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

SetTimeout adds the timeout to the delete table params

func (*DeleteTableParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete table params

func (*DeleteTableParams) SetVersion

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

SetVersion adds the version to the delete table params

func (*DeleteTableParams) WithContext

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

WithContext adds the context to the delete table params

func (*DeleteTableParams) WithDefaults

func (o *DeleteTableParams) WithDefaults() *DeleteTableParams

WithDefaults hydrates default values in the delete table params (not the query body).

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

func (*DeleteTableParams) WithForceReload

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

WithForceReload adds the forceReload to the delete table params

func (*DeleteTableParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete table params

func (*DeleteTableParams) WithName

func (o *DeleteTableParams) WithName(name string) *DeleteTableParams

WithName adds the name to the delete table params

func (*DeleteTableParams) WithPeerSection

func (o *DeleteTableParams) WithPeerSection(peerSection string) *DeleteTableParams

WithPeerSection adds the peerSection to the delete table params

func (*DeleteTableParams) WithTimeout

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

WithTimeout adds the timeout to the delete table params

func (*DeleteTableParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete table params

func (*DeleteTableParams) WithVersion

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

WithVersion adds the version to the delete table params

func (*DeleteTableParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTableReader

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

DeleteTableReader is a Reader for the DeleteTable structure.

func (*DeleteTableReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTableDefault

type GetTableDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

GetTableDefault describes a response with status code -1, with default header values.

General Error

func NewGetTableDefault

func NewGetTableDefault(code int) *GetTableDefault

NewGetTableDefault creates a GetTableDefault with default headers values

func (*GetTableDefault) Code

func (o *GetTableDefault) Code() int

Code gets the status code for the get table default response

func (*GetTableDefault) Error

func (o *GetTableDefault) Error() string

func (*GetTableDefault) GetPayload

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

func (*GetTableDefault) IsClientError

func (o *GetTableDefault) IsClientError() bool

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

func (*GetTableDefault) IsCode

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

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

func (*GetTableDefault) IsRedirect

func (o *GetTableDefault) IsRedirect() bool

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

func (*GetTableDefault) IsServerError

func (o *GetTableDefault) IsServerError() bool

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

func (*GetTableDefault) IsSuccess

func (o *GetTableDefault) IsSuccess() bool

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

func (*GetTableDefault) String

func (o *GetTableDefault) String() string

type GetTableNotFound

type GetTableNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetTableNotFound describes a response with status code 404, with default header values.

The specified resource already exists

func NewGetTableNotFound

func NewGetTableNotFound() *GetTableNotFound

NewGetTableNotFound creates a GetTableNotFound with default headers values

func (*GetTableNotFound) Code

func (o *GetTableNotFound) Code() int

Code gets the status code for the get table not found response

func (*GetTableNotFound) Error

func (o *GetTableNotFound) Error() string

func (*GetTableNotFound) GetPayload

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

func (*GetTableNotFound) IsClientError

func (o *GetTableNotFound) IsClientError() bool

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

func (*GetTableNotFound) IsCode

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

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

func (*GetTableNotFound) IsRedirect

func (o *GetTableNotFound) IsRedirect() bool

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

func (*GetTableNotFound) IsServerError

func (o *GetTableNotFound) IsServerError() bool

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

func (*GetTableNotFound) IsSuccess

func (o *GetTableNotFound) IsSuccess() bool

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

func (*GetTableNotFound) String

func (o *GetTableNotFound) String() string

type GetTableOK

type GetTableOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTableOKBody
}

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

Successful operation

func NewGetTableOK

func NewGetTableOK() *GetTableOK

NewGetTableOK creates a GetTableOK with default headers values

func (*GetTableOK) Code

func (o *GetTableOK) Code() int

Code gets the status code for the get table o k response

func (*GetTableOK) Error

func (o *GetTableOK) Error() string

func (*GetTableOK) GetPayload

func (o *GetTableOK) GetPayload() *GetTableOKBody

func (*GetTableOK) IsClientError

func (o *GetTableOK) IsClientError() bool

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

func (*GetTableOK) IsCode

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

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

func (*GetTableOK) IsRedirect

func (o *GetTableOK) IsRedirect() bool

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

func (*GetTableOK) IsServerError

func (o *GetTableOK) IsServerError() bool

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

func (*GetTableOK) IsSuccess

func (o *GetTableOK) IsSuccess() bool

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

func (*GetTableOK) String

func (o *GetTableOK) String() string

type GetTableOKBody

type GetTableOKBody struct {

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

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

GetTableOKBody get table o k body swagger:model GetTableOKBody

func (*GetTableOKBody) ContextValidate

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

ContextValidate validate this get table o k body based on the context it is used

func (*GetTableOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTableOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTableOKBody) Validate

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

Validate validates this get table o k body

type GetTableParams

type GetTableParams struct {

	/* Name.

	   Table name
	*/
	Name string

	/* PeerSection.

	   Parent peers name
	*/
	PeerSection 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
}

GetTableParams contains all the parameters to send to the API endpoint

for the get table operation.

Typically these are written to a http.Request.

func NewGetTableParams

func NewGetTableParams() *GetTableParams

NewGetTableParams creates a new GetTableParams 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 NewGetTableParamsWithContext

func NewGetTableParamsWithContext(ctx context.Context) *GetTableParams

NewGetTableParamsWithContext creates a new GetTableParams object with the ability to set a context for a request.

func NewGetTableParamsWithHTTPClient

func NewGetTableParamsWithHTTPClient(client *http.Client) *GetTableParams

NewGetTableParamsWithHTTPClient creates a new GetTableParams object with the ability to set a custom HTTPClient for a request.

func NewGetTableParamsWithTimeout

func NewGetTableParamsWithTimeout(timeout time.Duration) *GetTableParams

NewGetTableParamsWithTimeout creates a new GetTableParams object with the ability to set a timeout on a request.

func (*GetTableParams) SetContext

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

SetContext adds the context to the get table params

func (*GetTableParams) SetDefaults

func (o *GetTableParams) SetDefaults()

SetDefaults hydrates default values in the get table params (not the query body).

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

func (*GetTableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get table params

func (*GetTableParams) SetName

func (o *GetTableParams) SetName(name string)

SetName adds the name to the get table params

func (*GetTableParams) SetPeerSection

func (o *GetTableParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get table params

func (*GetTableParams) SetTimeout

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

SetTimeout adds the timeout to the get table params

func (*GetTableParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get table params

func (*GetTableParams) WithContext

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

WithContext adds the context to the get table params

func (*GetTableParams) WithDefaults

func (o *GetTableParams) WithDefaults() *GetTableParams

WithDefaults hydrates default values in the get table params (not the query body).

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

func (*GetTableParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get table params

func (*GetTableParams) WithName

func (o *GetTableParams) WithName(name string) *GetTableParams

WithName adds the name to the get table params

func (*GetTableParams) WithPeerSection

func (o *GetTableParams) WithPeerSection(peerSection string) *GetTableParams

WithPeerSection adds the peerSection to the get table params

func (*GetTableParams) WithTimeout

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

WithTimeout adds the timeout to the get table params

func (*GetTableParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get table params

func (*GetTableParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTableReader

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

GetTableReader is a Reader for the GetTable structure.

func (*GetTableReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTablesDefault

type GetTablesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

GetTablesDefault describes a response with status code -1, with default header values.

General Error

func NewGetTablesDefault

func NewGetTablesDefault(code int) *GetTablesDefault

NewGetTablesDefault creates a GetTablesDefault with default headers values

func (*GetTablesDefault) Code

func (o *GetTablesDefault) Code() int

Code gets the status code for the get tables default response

func (*GetTablesDefault) Error

func (o *GetTablesDefault) Error() string

func (*GetTablesDefault) GetPayload

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

func (*GetTablesDefault) IsClientError

func (o *GetTablesDefault) IsClientError() bool

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

func (*GetTablesDefault) IsCode

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

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

func (*GetTablesDefault) IsRedirect

func (o *GetTablesDefault) IsRedirect() bool

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

func (*GetTablesDefault) IsServerError

func (o *GetTablesDefault) IsServerError() bool

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

func (*GetTablesDefault) IsSuccess

func (o *GetTablesDefault) IsSuccess() bool

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

func (*GetTablesDefault) String

func (o *GetTablesDefault) String() string

type GetTablesOK

type GetTablesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetTablesOKBody
}

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

Successful operation

func NewGetTablesOK

func NewGetTablesOK() *GetTablesOK

NewGetTablesOK creates a GetTablesOK with default headers values

func (*GetTablesOK) Code

func (o *GetTablesOK) Code() int

Code gets the status code for the get tables o k response

func (*GetTablesOK) Error

func (o *GetTablesOK) Error() string

func (*GetTablesOK) GetPayload

func (o *GetTablesOK) GetPayload() *GetTablesOKBody

func (*GetTablesOK) IsClientError

func (o *GetTablesOK) IsClientError() bool

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

func (*GetTablesOK) IsCode

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

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

func (*GetTablesOK) IsRedirect

func (o *GetTablesOK) IsRedirect() bool

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

func (*GetTablesOK) IsServerError

func (o *GetTablesOK) IsServerError() bool

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

func (*GetTablesOK) IsSuccess

func (o *GetTablesOK) IsSuccess() bool

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

func (*GetTablesOK) String

func (o *GetTablesOK) String() string

type GetTablesOKBody

type GetTablesOKBody struct {

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

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

GetTablesOKBody get tables o k body swagger:model GetTablesOKBody

func (*GetTablesOKBody) ContextValidate

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

ContextValidate validate this get tables o k body based on the context it is used

func (*GetTablesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetTablesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetTablesOKBody) Validate

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

Validate validates this get tables o k body

type GetTablesParams

type GetTablesParams struct {

	/* PeerSection.

	   Parent peer section name
	*/
	PeerSection 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
}

GetTablesParams contains all the parameters to send to the API endpoint

for the get tables operation.

Typically these are written to a http.Request.

func NewGetTablesParams

func NewGetTablesParams() *GetTablesParams

NewGetTablesParams creates a new GetTablesParams 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 NewGetTablesParamsWithContext

func NewGetTablesParamsWithContext(ctx context.Context) *GetTablesParams

NewGetTablesParamsWithContext creates a new GetTablesParams object with the ability to set a context for a request.

func NewGetTablesParamsWithHTTPClient

func NewGetTablesParamsWithHTTPClient(client *http.Client) *GetTablesParams

NewGetTablesParamsWithHTTPClient creates a new GetTablesParams object with the ability to set a custom HTTPClient for a request.

func NewGetTablesParamsWithTimeout

func NewGetTablesParamsWithTimeout(timeout time.Duration) *GetTablesParams

NewGetTablesParamsWithTimeout creates a new GetTablesParams object with the ability to set a timeout on a request.

func (*GetTablesParams) SetContext

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

SetContext adds the context to the get tables params

func (*GetTablesParams) SetDefaults

func (o *GetTablesParams) SetDefaults()

SetDefaults hydrates default values in the get tables params (not the query body).

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

func (*GetTablesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tables params

func (*GetTablesParams) SetPeerSection

func (o *GetTablesParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get tables params

func (*GetTablesParams) SetTimeout

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

SetTimeout adds the timeout to the get tables params

func (*GetTablesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get tables params

func (*GetTablesParams) WithContext

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

WithContext adds the context to the get tables params

func (*GetTablesParams) WithDefaults

func (o *GetTablesParams) WithDefaults() *GetTablesParams

WithDefaults hydrates default values in the get tables params (not the query body).

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

func (*GetTablesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tables params

func (*GetTablesParams) WithPeerSection

func (o *GetTablesParams) WithPeerSection(peerSection string) *GetTablesParams

WithPeerSection adds the peerSection to the get tables params

func (*GetTablesParams) WithTimeout

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

WithTimeout adds the timeout to the get tables params

func (*GetTablesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get tables params

func (*GetTablesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTablesReader

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

GetTablesReader is a Reader for the GetTables structure.

func (*GetTablesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceTableAccepted

type ReplaceTableAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Table
}

ReplaceTableAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceTableAccepted

func NewReplaceTableAccepted() *ReplaceTableAccepted

NewReplaceTableAccepted creates a ReplaceTableAccepted with default headers values

func (*ReplaceTableAccepted) Code

func (o *ReplaceTableAccepted) Code() int

Code gets the status code for the replace table accepted response

func (*ReplaceTableAccepted) Error

func (o *ReplaceTableAccepted) Error() string

func (*ReplaceTableAccepted) GetPayload

func (o *ReplaceTableAccepted) GetPayload() *models.Table

func (*ReplaceTableAccepted) IsClientError

func (o *ReplaceTableAccepted) IsClientError() bool

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

func (*ReplaceTableAccepted) IsCode

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

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

func (*ReplaceTableAccepted) IsRedirect

func (o *ReplaceTableAccepted) IsRedirect() bool

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

func (*ReplaceTableAccepted) IsServerError

func (o *ReplaceTableAccepted) IsServerError() bool

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

func (*ReplaceTableAccepted) IsSuccess

func (o *ReplaceTableAccepted) IsSuccess() bool

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

func (*ReplaceTableAccepted) String

func (o *ReplaceTableAccepted) String() string

type ReplaceTableBadRequest

type ReplaceTableBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceTableBadRequest

func NewReplaceTableBadRequest() *ReplaceTableBadRequest

NewReplaceTableBadRequest creates a ReplaceTableBadRequest with default headers values

func (*ReplaceTableBadRequest) Code

func (o *ReplaceTableBadRequest) Code() int

Code gets the status code for the replace table bad request response

func (*ReplaceTableBadRequest) Error

func (o *ReplaceTableBadRequest) Error() string

func (*ReplaceTableBadRequest) GetPayload

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

func (*ReplaceTableBadRequest) IsClientError

func (o *ReplaceTableBadRequest) IsClientError() bool

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

func (*ReplaceTableBadRequest) IsCode

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

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

func (*ReplaceTableBadRequest) IsRedirect

func (o *ReplaceTableBadRequest) IsRedirect() bool

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

func (*ReplaceTableBadRequest) IsServerError

func (o *ReplaceTableBadRequest) IsServerError() bool

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

func (*ReplaceTableBadRequest) IsSuccess

func (o *ReplaceTableBadRequest) IsSuccess() bool

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

func (*ReplaceTableBadRequest) String

func (o *ReplaceTableBadRequest) String() string

type ReplaceTableDefault

type ReplaceTableDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceTableDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceTableDefault

func NewReplaceTableDefault(code int) *ReplaceTableDefault

NewReplaceTableDefault creates a ReplaceTableDefault with default headers values

func (*ReplaceTableDefault) Code

func (o *ReplaceTableDefault) Code() int

Code gets the status code for the replace table default response

func (*ReplaceTableDefault) Error

func (o *ReplaceTableDefault) Error() string

func (*ReplaceTableDefault) GetPayload

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

func (*ReplaceTableDefault) IsClientError

func (o *ReplaceTableDefault) IsClientError() bool

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

func (*ReplaceTableDefault) IsCode

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

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

func (*ReplaceTableDefault) IsRedirect

func (o *ReplaceTableDefault) IsRedirect() bool

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

func (*ReplaceTableDefault) IsServerError

func (o *ReplaceTableDefault) IsServerError() bool

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

func (*ReplaceTableDefault) IsSuccess

func (o *ReplaceTableDefault) IsSuccess() bool

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

func (*ReplaceTableDefault) String

func (o *ReplaceTableDefault) String() string

type ReplaceTableNotFound

type ReplaceTableNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceTableNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceTableNotFound

func NewReplaceTableNotFound() *ReplaceTableNotFound

NewReplaceTableNotFound creates a ReplaceTableNotFound with default headers values

func (*ReplaceTableNotFound) Code

func (o *ReplaceTableNotFound) Code() int

Code gets the status code for the replace table not found response

func (*ReplaceTableNotFound) Error

func (o *ReplaceTableNotFound) Error() string

func (*ReplaceTableNotFound) GetPayload

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

func (*ReplaceTableNotFound) IsClientError

func (o *ReplaceTableNotFound) IsClientError() bool

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

func (*ReplaceTableNotFound) IsCode

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

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

func (*ReplaceTableNotFound) IsRedirect

func (o *ReplaceTableNotFound) IsRedirect() bool

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

func (*ReplaceTableNotFound) IsServerError

func (o *ReplaceTableNotFound) IsServerError() bool

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

func (*ReplaceTableNotFound) IsSuccess

func (o *ReplaceTableNotFound) IsSuccess() bool

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

func (*ReplaceTableNotFound) String

func (o *ReplaceTableNotFound) String() string

type ReplaceTableOK

type ReplaceTableOK struct {
	Payload *models.Table
}

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

Table replaced

func NewReplaceTableOK

func NewReplaceTableOK() *ReplaceTableOK

NewReplaceTableOK creates a ReplaceTableOK with default headers values

func (*ReplaceTableOK) Code

func (o *ReplaceTableOK) Code() int

Code gets the status code for the replace table o k response

func (*ReplaceTableOK) Error

func (o *ReplaceTableOK) Error() string

func (*ReplaceTableOK) GetPayload

func (o *ReplaceTableOK) GetPayload() *models.Table

func (*ReplaceTableOK) IsClientError

func (o *ReplaceTableOK) IsClientError() bool

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

func (*ReplaceTableOK) IsCode

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

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

func (*ReplaceTableOK) IsRedirect

func (o *ReplaceTableOK) IsRedirect() bool

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

func (*ReplaceTableOK) IsServerError

func (o *ReplaceTableOK) IsServerError() bool

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

func (*ReplaceTableOK) IsSuccess

func (o *ReplaceTableOK) IsSuccess() bool

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

func (*ReplaceTableOK) String

func (o *ReplaceTableOK) String() string

type ReplaceTableParams

type ReplaceTableParams struct {

	// Data.
	Data *models.Table

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

	/* Name.

	   Table name
	*/
	Name string

	/* PeerSection.

	   Parent peers name
	*/
	PeerSection 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
}

ReplaceTableParams contains all the parameters to send to the API endpoint

for the replace table operation.

Typically these are written to a http.Request.

func NewReplaceTableParams

func NewReplaceTableParams() *ReplaceTableParams

NewReplaceTableParams creates a new ReplaceTableParams 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 NewReplaceTableParamsWithContext

func NewReplaceTableParamsWithContext(ctx context.Context) *ReplaceTableParams

NewReplaceTableParamsWithContext creates a new ReplaceTableParams object with the ability to set a context for a request.

func NewReplaceTableParamsWithHTTPClient

func NewReplaceTableParamsWithHTTPClient(client *http.Client) *ReplaceTableParams

NewReplaceTableParamsWithHTTPClient creates a new ReplaceTableParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceTableParamsWithTimeout

func NewReplaceTableParamsWithTimeout(timeout time.Duration) *ReplaceTableParams

NewReplaceTableParamsWithTimeout creates a new ReplaceTableParams object with the ability to set a timeout on a request.

func (*ReplaceTableParams) SetContext

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

SetContext adds the context to the replace table params

func (*ReplaceTableParams) SetData

func (o *ReplaceTableParams) SetData(data *models.Table)

SetData adds the data to the replace table params

func (*ReplaceTableParams) SetDefaults

func (o *ReplaceTableParams) SetDefaults()

SetDefaults hydrates default values in the replace table params (not the query body).

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

func (*ReplaceTableParams) SetForceReload

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

SetForceReload adds the forceReload to the replace table params

func (*ReplaceTableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace table params

func (*ReplaceTableParams) SetName

func (o *ReplaceTableParams) SetName(name string)

SetName adds the name to the replace table params

func (*ReplaceTableParams) SetPeerSection

func (o *ReplaceTableParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the replace table params

func (*ReplaceTableParams) SetTimeout

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

SetTimeout adds the timeout to the replace table params

func (*ReplaceTableParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace table params

func (*ReplaceTableParams) SetVersion

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

SetVersion adds the version to the replace table params

func (*ReplaceTableParams) WithContext

WithContext adds the context to the replace table params

func (*ReplaceTableParams) WithData

func (o *ReplaceTableParams) WithData(data *models.Table) *ReplaceTableParams

WithData adds the data to the replace table params

func (*ReplaceTableParams) WithDefaults

func (o *ReplaceTableParams) WithDefaults() *ReplaceTableParams

WithDefaults hydrates default values in the replace table params (not the query body).

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

func (*ReplaceTableParams) WithForceReload

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

WithForceReload adds the forceReload to the replace table params

func (*ReplaceTableParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace table params

func (*ReplaceTableParams) WithName

func (o *ReplaceTableParams) WithName(name string) *ReplaceTableParams

WithName adds the name to the replace table params

func (*ReplaceTableParams) WithPeerSection

func (o *ReplaceTableParams) WithPeerSection(peerSection string) *ReplaceTableParams

WithPeerSection adds the peerSection to the replace table params

func (*ReplaceTableParams) WithTimeout

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

WithTimeout adds the timeout to the replace table params

func (*ReplaceTableParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace table params

func (*ReplaceTableParams) WithVersion

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

WithVersion adds the version to the replace table params

func (*ReplaceTableParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceTableReader

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

ReplaceTableReader is a Reader for the ReplaceTable structure.

func (*ReplaceTableReader) ReadResponse

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