peer_entry

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 peer entry API

func (*Client) CreatePeerEntry

CreatePeerEntry adds a new peer entry

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

func (*Client) DeletePeerEntry

DeletePeerEntry deletes a peer entry

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

func (*Client) GetPeerEntries

func (a *Client) GetPeerEntries(params *GetPeerEntriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerEntriesOK, error)

GetPeerEntries returns an array of peer entries

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

func (*Client) GetPeerEntry

func (a *Client) GetPeerEntry(params *GetPeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerEntryOK, error)

GetPeerEntry returns one peer entry

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

func (*Client) ReplacePeerEntry

ReplacePeerEntry replaces a peer entry

Replaces a peer entry 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

ClientService is the interface for Client methods

func New

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

New creates a new peer entry API client.

type CreatePeerEntryAccepted

type CreatePeerEntryAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.PeerEntry
}

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

Configuration change accepted and reload requested

func NewCreatePeerEntryAccepted

func NewCreatePeerEntryAccepted() *CreatePeerEntryAccepted

NewCreatePeerEntryAccepted creates a CreatePeerEntryAccepted with default headers values

func (*CreatePeerEntryAccepted) Code added in v1.1.5

func (o *CreatePeerEntryAccepted) Code() int

Code gets the status code for the create peer entry accepted response

func (*CreatePeerEntryAccepted) Error

func (o *CreatePeerEntryAccepted) Error() string

func (*CreatePeerEntryAccepted) GetPayload

func (o *CreatePeerEntryAccepted) GetPayload() *models.PeerEntry

func (*CreatePeerEntryAccepted) IsClientError added in v1.1.0

func (o *CreatePeerEntryAccepted) IsClientError() bool

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

func (*CreatePeerEntryAccepted) IsCode added in v1.1.0

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

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

func (*CreatePeerEntryAccepted) IsRedirect added in v1.1.0

func (o *CreatePeerEntryAccepted) IsRedirect() bool

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

func (*CreatePeerEntryAccepted) IsServerError added in v1.1.0

func (o *CreatePeerEntryAccepted) IsServerError() bool

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

func (*CreatePeerEntryAccepted) IsSuccess added in v1.1.0

func (o *CreatePeerEntryAccepted) IsSuccess() bool

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

func (*CreatePeerEntryAccepted) String added in v1.1.0

func (o *CreatePeerEntryAccepted) String() string

type CreatePeerEntryBadRequest

type CreatePeerEntryBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreatePeerEntryBadRequest

func NewCreatePeerEntryBadRequest() *CreatePeerEntryBadRequest

NewCreatePeerEntryBadRequest creates a CreatePeerEntryBadRequest with default headers values

func (*CreatePeerEntryBadRequest) Code added in v1.1.5

func (o *CreatePeerEntryBadRequest) Code() int

Code gets the status code for the create peer entry bad request response

func (*CreatePeerEntryBadRequest) Error

func (o *CreatePeerEntryBadRequest) Error() string

func (*CreatePeerEntryBadRequest) GetPayload

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

func (*CreatePeerEntryBadRequest) IsClientError added in v1.1.0

func (o *CreatePeerEntryBadRequest) IsClientError() bool

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

func (*CreatePeerEntryBadRequest) IsCode added in v1.1.0

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

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

func (*CreatePeerEntryBadRequest) IsRedirect added in v1.1.0

func (o *CreatePeerEntryBadRequest) IsRedirect() bool

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

func (*CreatePeerEntryBadRequest) IsServerError added in v1.1.0

func (o *CreatePeerEntryBadRequest) IsServerError() bool

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

func (*CreatePeerEntryBadRequest) IsSuccess added in v1.1.0

func (o *CreatePeerEntryBadRequest) IsSuccess() bool

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

func (*CreatePeerEntryBadRequest) String added in v1.1.0

func (o *CreatePeerEntryBadRequest) String() string

type CreatePeerEntryConflict

type CreatePeerEntryConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreatePeerEntryConflict

func NewCreatePeerEntryConflict() *CreatePeerEntryConflict

NewCreatePeerEntryConflict creates a CreatePeerEntryConflict with default headers values

func (*CreatePeerEntryConflict) Code added in v1.1.5

func (o *CreatePeerEntryConflict) Code() int

Code gets the status code for the create peer entry conflict response

func (*CreatePeerEntryConflict) Error

func (o *CreatePeerEntryConflict) Error() string

func (*CreatePeerEntryConflict) GetPayload

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

func (*CreatePeerEntryConflict) IsClientError added in v1.1.0

func (o *CreatePeerEntryConflict) IsClientError() bool

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

func (*CreatePeerEntryConflict) IsCode added in v1.1.0

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

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

func (*CreatePeerEntryConflict) IsRedirect added in v1.1.0

func (o *CreatePeerEntryConflict) IsRedirect() bool

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

func (*CreatePeerEntryConflict) IsServerError added in v1.1.0

func (o *CreatePeerEntryConflict) IsServerError() bool

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

func (*CreatePeerEntryConflict) IsSuccess added in v1.1.0

func (o *CreatePeerEntryConflict) IsSuccess() bool

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

func (*CreatePeerEntryConflict) String added in v1.1.0

func (o *CreatePeerEntryConflict) String() string

type CreatePeerEntryCreated

type CreatePeerEntryCreated struct {
	Payload *models.PeerEntry
}

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

PeerEntry created

func NewCreatePeerEntryCreated

func NewCreatePeerEntryCreated() *CreatePeerEntryCreated

NewCreatePeerEntryCreated creates a CreatePeerEntryCreated with default headers values

func (*CreatePeerEntryCreated) Code added in v1.1.5

func (o *CreatePeerEntryCreated) Code() int

Code gets the status code for the create peer entry created response

func (*CreatePeerEntryCreated) Error

func (o *CreatePeerEntryCreated) Error() string

func (*CreatePeerEntryCreated) GetPayload

func (o *CreatePeerEntryCreated) GetPayload() *models.PeerEntry

func (*CreatePeerEntryCreated) IsClientError added in v1.1.0

func (o *CreatePeerEntryCreated) IsClientError() bool

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

func (*CreatePeerEntryCreated) IsCode added in v1.1.0

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

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

func (*CreatePeerEntryCreated) IsRedirect added in v1.1.0

func (o *CreatePeerEntryCreated) IsRedirect() bool

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

func (*CreatePeerEntryCreated) IsServerError added in v1.1.0

func (o *CreatePeerEntryCreated) IsServerError() bool

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

func (*CreatePeerEntryCreated) IsSuccess added in v1.1.0

func (o *CreatePeerEntryCreated) IsSuccess() bool

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

func (*CreatePeerEntryCreated) String added in v1.1.0

func (o *CreatePeerEntryCreated) String() string

type CreatePeerEntryDefault

type CreatePeerEntryDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewCreatePeerEntryDefault

func NewCreatePeerEntryDefault(code int) *CreatePeerEntryDefault

NewCreatePeerEntryDefault creates a CreatePeerEntryDefault with default headers values

func (*CreatePeerEntryDefault) Code

func (o *CreatePeerEntryDefault) Code() int

Code gets the status code for the create peer entry default response

func (*CreatePeerEntryDefault) Error

func (o *CreatePeerEntryDefault) Error() string

func (*CreatePeerEntryDefault) GetPayload

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

func (*CreatePeerEntryDefault) IsClientError added in v1.1.0

func (o *CreatePeerEntryDefault) IsClientError() bool

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

func (*CreatePeerEntryDefault) IsCode added in v1.1.0

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

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

func (*CreatePeerEntryDefault) IsRedirect added in v1.1.0

func (o *CreatePeerEntryDefault) IsRedirect() bool

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

func (*CreatePeerEntryDefault) IsServerError added in v1.1.0

func (o *CreatePeerEntryDefault) IsServerError() bool

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

func (*CreatePeerEntryDefault) IsSuccess added in v1.1.0

func (o *CreatePeerEntryDefault) IsSuccess() bool

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

func (*CreatePeerEntryDefault) String added in v1.1.0

func (o *CreatePeerEntryDefault) String() string

type CreatePeerEntryParams

type CreatePeerEntryParams struct {

	// Data.
	Data *models.PeerEntry

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

CreatePeerEntryParams contains all the parameters to send to the API endpoint

for the create peer entry operation.

Typically these are written to a http.Request.

func NewCreatePeerEntryParams

func NewCreatePeerEntryParams() *CreatePeerEntryParams

NewCreatePeerEntryParams creates a new CreatePeerEntryParams 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 NewCreatePeerEntryParamsWithContext

func NewCreatePeerEntryParamsWithContext(ctx context.Context) *CreatePeerEntryParams

NewCreatePeerEntryParamsWithContext creates a new CreatePeerEntryParams object with the ability to set a context for a request.

func NewCreatePeerEntryParamsWithHTTPClient

func NewCreatePeerEntryParamsWithHTTPClient(client *http.Client) *CreatePeerEntryParams

NewCreatePeerEntryParamsWithHTTPClient creates a new CreatePeerEntryParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePeerEntryParamsWithTimeout

func NewCreatePeerEntryParamsWithTimeout(timeout time.Duration) *CreatePeerEntryParams

NewCreatePeerEntryParamsWithTimeout creates a new CreatePeerEntryParams object with the ability to set a timeout on a request.

func (*CreatePeerEntryParams) SetContext

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

SetContext adds the context to the create peer entry params

func (*CreatePeerEntryParams) SetData

func (o *CreatePeerEntryParams) SetData(data *models.PeerEntry)

SetData adds the data to the create peer entry params

func (*CreatePeerEntryParams) SetDefaults

func (o *CreatePeerEntryParams) SetDefaults()

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

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

func (*CreatePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the create peer entry params

func (*CreatePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create peer entry params

func (*CreatePeerEntryParams) SetPeerSection

func (o *CreatePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the create peer entry params

func (*CreatePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the create peer entry params

func (*CreatePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create peer entry params

func (*CreatePeerEntryParams) SetVersion

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

SetVersion adds the version to the create peer entry params

func (*CreatePeerEntryParams) WithContext

WithContext adds the context to the create peer entry params

func (*CreatePeerEntryParams) WithData

WithData adds the data to the create peer entry params

func (*CreatePeerEntryParams) WithDefaults

func (o *CreatePeerEntryParams) WithDefaults() *CreatePeerEntryParams

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

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

func (*CreatePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the create peer entry params

func (*CreatePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create peer entry params

func (*CreatePeerEntryParams) WithPeerSection

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

WithPeerSection adds the peerSection to the create peer entry params

func (*CreatePeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the create peer entry params

func (*CreatePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create peer entry params

func (*CreatePeerEntryParams) WithVersion

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

WithVersion adds the version to the create peer entry params

func (*CreatePeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePeerEntryReader

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

CreatePeerEntryReader is a Reader for the CreatePeerEntry structure.

func (*CreatePeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePeerEntryAccepted

type DeletePeerEntryAccepted struct {

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

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

Configuration change accepted and reload requested

func NewDeletePeerEntryAccepted

func NewDeletePeerEntryAccepted() *DeletePeerEntryAccepted

NewDeletePeerEntryAccepted creates a DeletePeerEntryAccepted with default headers values

func (*DeletePeerEntryAccepted) Code added in v1.1.5

func (o *DeletePeerEntryAccepted) Code() int

Code gets the status code for the delete peer entry accepted response

func (*DeletePeerEntryAccepted) Error

func (o *DeletePeerEntryAccepted) Error() string

func (*DeletePeerEntryAccepted) IsClientError added in v1.1.0

func (o *DeletePeerEntryAccepted) IsClientError() bool

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

func (*DeletePeerEntryAccepted) IsCode added in v1.1.0

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

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

func (*DeletePeerEntryAccepted) IsRedirect added in v1.1.0

func (o *DeletePeerEntryAccepted) IsRedirect() bool

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

func (*DeletePeerEntryAccepted) IsServerError added in v1.1.0

func (o *DeletePeerEntryAccepted) IsServerError() bool

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

func (*DeletePeerEntryAccepted) IsSuccess added in v1.1.0

func (o *DeletePeerEntryAccepted) IsSuccess() bool

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

func (*DeletePeerEntryAccepted) String added in v1.1.0

func (o *DeletePeerEntryAccepted) String() string

type DeletePeerEntryDefault

type DeletePeerEntryDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewDeletePeerEntryDefault

func NewDeletePeerEntryDefault(code int) *DeletePeerEntryDefault

NewDeletePeerEntryDefault creates a DeletePeerEntryDefault with default headers values

func (*DeletePeerEntryDefault) Code

func (o *DeletePeerEntryDefault) Code() int

Code gets the status code for the delete peer entry default response

func (*DeletePeerEntryDefault) Error

func (o *DeletePeerEntryDefault) Error() string

func (*DeletePeerEntryDefault) GetPayload

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

func (*DeletePeerEntryDefault) IsClientError added in v1.1.0

func (o *DeletePeerEntryDefault) IsClientError() bool

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

func (*DeletePeerEntryDefault) IsCode added in v1.1.0

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

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

func (*DeletePeerEntryDefault) IsRedirect added in v1.1.0

func (o *DeletePeerEntryDefault) IsRedirect() bool

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

func (*DeletePeerEntryDefault) IsServerError added in v1.1.0

func (o *DeletePeerEntryDefault) IsServerError() bool

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

func (*DeletePeerEntryDefault) IsSuccess added in v1.1.0

func (o *DeletePeerEntryDefault) IsSuccess() bool

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

func (*DeletePeerEntryDefault) String added in v1.1.0

func (o *DeletePeerEntryDefault) String() string

type DeletePeerEntryNoContent

type DeletePeerEntryNoContent struct {
}

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

PeerEntry deleted

func NewDeletePeerEntryNoContent

func NewDeletePeerEntryNoContent() *DeletePeerEntryNoContent

NewDeletePeerEntryNoContent creates a DeletePeerEntryNoContent with default headers values

func (*DeletePeerEntryNoContent) Code added in v1.1.5

func (o *DeletePeerEntryNoContent) Code() int

Code gets the status code for the delete peer entry no content response

func (*DeletePeerEntryNoContent) Error

func (o *DeletePeerEntryNoContent) Error() string

func (*DeletePeerEntryNoContent) IsClientError added in v1.1.0

func (o *DeletePeerEntryNoContent) IsClientError() bool

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

func (*DeletePeerEntryNoContent) IsCode added in v1.1.0

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

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

func (*DeletePeerEntryNoContent) IsRedirect added in v1.1.0

func (o *DeletePeerEntryNoContent) IsRedirect() bool

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

func (*DeletePeerEntryNoContent) IsServerError added in v1.1.0

func (o *DeletePeerEntryNoContent) IsServerError() bool

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

func (*DeletePeerEntryNoContent) IsSuccess added in v1.1.0

func (o *DeletePeerEntryNoContent) IsSuccess() bool

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

func (*DeletePeerEntryNoContent) String added in v1.1.0

func (o *DeletePeerEntryNoContent) String() string

type DeletePeerEntryNotFound

type DeletePeerEntryNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewDeletePeerEntryNotFound

func NewDeletePeerEntryNotFound() *DeletePeerEntryNotFound

NewDeletePeerEntryNotFound creates a DeletePeerEntryNotFound with default headers values

func (*DeletePeerEntryNotFound) Code added in v1.1.5

func (o *DeletePeerEntryNotFound) Code() int

Code gets the status code for the delete peer entry not found response

func (*DeletePeerEntryNotFound) Error

func (o *DeletePeerEntryNotFound) Error() string

func (*DeletePeerEntryNotFound) GetPayload

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

func (*DeletePeerEntryNotFound) IsClientError added in v1.1.0

func (o *DeletePeerEntryNotFound) IsClientError() bool

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

func (*DeletePeerEntryNotFound) IsCode added in v1.1.0

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

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

func (*DeletePeerEntryNotFound) IsRedirect added in v1.1.0

func (o *DeletePeerEntryNotFound) IsRedirect() bool

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

func (*DeletePeerEntryNotFound) IsServerError added in v1.1.0

func (o *DeletePeerEntryNotFound) IsServerError() bool

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

func (*DeletePeerEntryNotFound) IsSuccess added in v1.1.0

func (o *DeletePeerEntryNotFound) IsSuccess() bool

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

func (*DeletePeerEntryNotFound) String added in v1.1.0

func (o *DeletePeerEntryNotFound) String() string

type DeletePeerEntryParams

type DeletePeerEntryParams 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.

	   PeerEntry 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
}

DeletePeerEntryParams contains all the parameters to send to the API endpoint

for the delete peer entry operation.

Typically these are written to a http.Request.

func NewDeletePeerEntryParams

func NewDeletePeerEntryParams() *DeletePeerEntryParams

NewDeletePeerEntryParams creates a new DeletePeerEntryParams 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 NewDeletePeerEntryParamsWithContext

func NewDeletePeerEntryParamsWithContext(ctx context.Context) *DeletePeerEntryParams

NewDeletePeerEntryParamsWithContext creates a new DeletePeerEntryParams object with the ability to set a context for a request.

func NewDeletePeerEntryParamsWithHTTPClient

func NewDeletePeerEntryParamsWithHTTPClient(client *http.Client) *DeletePeerEntryParams

NewDeletePeerEntryParamsWithHTTPClient creates a new DeletePeerEntryParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePeerEntryParamsWithTimeout

func NewDeletePeerEntryParamsWithTimeout(timeout time.Duration) *DeletePeerEntryParams

NewDeletePeerEntryParamsWithTimeout creates a new DeletePeerEntryParams object with the ability to set a timeout on a request.

func (*DeletePeerEntryParams) SetContext

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

SetContext adds the context to the delete peer entry params

func (*DeletePeerEntryParams) SetDefaults

func (o *DeletePeerEntryParams) SetDefaults()

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

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

func (*DeletePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the delete peer entry params

func (*DeletePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete peer entry params

func (*DeletePeerEntryParams) SetName

func (o *DeletePeerEntryParams) SetName(name string)

SetName adds the name to the delete peer entry params

func (*DeletePeerEntryParams) SetPeerSection

func (o *DeletePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the delete peer entry params

func (*DeletePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the delete peer entry params

func (*DeletePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete peer entry params

func (*DeletePeerEntryParams) SetVersion

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

SetVersion adds the version to the delete peer entry params

func (*DeletePeerEntryParams) WithContext

WithContext adds the context to the delete peer entry params

func (*DeletePeerEntryParams) WithDefaults

func (o *DeletePeerEntryParams) WithDefaults() *DeletePeerEntryParams

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

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

func (*DeletePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the delete peer entry params

func (*DeletePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete peer entry params

func (*DeletePeerEntryParams) WithName

WithName adds the name to the delete peer entry params

func (*DeletePeerEntryParams) WithPeerSection

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

WithPeerSection adds the peerSection to the delete peer entry params

func (*DeletePeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the delete peer entry params

func (*DeletePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete peer entry params

func (*DeletePeerEntryParams) WithVersion

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

WithVersion adds the version to the delete peer entry params

func (*DeletePeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePeerEntryReader

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

DeletePeerEntryReader is a Reader for the DeletePeerEntry structure.

func (*DeletePeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerEntriesDefault

type GetPeerEntriesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetPeerEntriesDefault

func NewGetPeerEntriesDefault(code int) *GetPeerEntriesDefault

NewGetPeerEntriesDefault creates a GetPeerEntriesDefault with default headers values

func (*GetPeerEntriesDefault) Code

func (o *GetPeerEntriesDefault) Code() int

Code gets the status code for the get peer entries default response

func (*GetPeerEntriesDefault) Error

func (o *GetPeerEntriesDefault) Error() string

func (*GetPeerEntriesDefault) GetPayload

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

func (*GetPeerEntriesDefault) IsClientError added in v1.1.0

func (o *GetPeerEntriesDefault) IsClientError() bool

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

func (*GetPeerEntriesDefault) IsCode added in v1.1.0

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

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

func (*GetPeerEntriesDefault) IsRedirect added in v1.1.0

func (o *GetPeerEntriesDefault) IsRedirect() bool

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

func (*GetPeerEntriesDefault) IsServerError added in v1.1.0

func (o *GetPeerEntriesDefault) IsServerError() bool

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

func (*GetPeerEntriesDefault) IsSuccess added in v1.1.0

func (o *GetPeerEntriesDefault) IsSuccess() bool

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

func (*GetPeerEntriesDefault) String added in v1.1.0

func (o *GetPeerEntriesDefault) String() string

type GetPeerEntriesOK

type GetPeerEntriesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerEntriesOKBody
}

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

Successful operation

func NewGetPeerEntriesOK

func NewGetPeerEntriesOK() *GetPeerEntriesOK

NewGetPeerEntriesOK creates a GetPeerEntriesOK with default headers values

func (*GetPeerEntriesOK) Code added in v1.1.5

func (o *GetPeerEntriesOK) Code() int

Code gets the status code for the get peer entries o k response

func (*GetPeerEntriesOK) Error

func (o *GetPeerEntriesOK) Error() string

func (*GetPeerEntriesOK) GetPayload

func (o *GetPeerEntriesOK) GetPayload() *GetPeerEntriesOKBody

func (*GetPeerEntriesOK) IsClientError added in v1.1.0

func (o *GetPeerEntriesOK) IsClientError() bool

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

func (*GetPeerEntriesOK) IsCode added in v1.1.0

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

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

func (*GetPeerEntriesOK) IsRedirect added in v1.1.0

func (o *GetPeerEntriesOK) IsRedirect() bool

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

func (*GetPeerEntriesOK) IsServerError added in v1.1.0

func (o *GetPeerEntriesOK) IsServerError() bool

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

func (*GetPeerEntriesOK) IsSuccess added in v1.1.0

func (o *GetPeerEntriesOK) IsSuccess() bool

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

func (*GetPeerEntriesOK) String added in v1.1.0

func (o *GetPeerEntriesOK) String() string

type GetPeerEntriesOKBody

type GetPeerEntriesOKBody struct {

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

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

GetPeerEntriesOKBody get peer entries o k body swagger:model GetPeerEntriesOKBody

func (*GetPeerEntriesOKBody) ContextValidate

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

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

func (*GetPeerEntriesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerEntriesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerEntriesOKBody) Validate

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

Validate validates this get peer entries o k body

type GetPeerEntriesParams

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

GetPeerEntriesParams contains all the parameters to send to the API endpoint

for the get peer entries operation.

Typically these are written to a http.Request.

func NewGetPeerEntriesParams

func NewGetPeerEntriesParams() *GetPeerEntriesParams

NewGetPeerEntriesParams creates a new GetPeerEntriesParams 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 NewGetPeerEntriesParamsWithContext

func NewGetPeerEntriesParamsWithContext(ctx context.Context) *GetPeerEntriesParams

NewGetPeerEntriesParamsWithContext creates a new GetPeerEntriesParams object with the ability to set a context for a request.

func NewGetPeerEntriesParamsWithHTTPClient

func NewGetPeerEntriesParamsWithHTTPClient(client *http.Client) *GetPeerEntriesParams

NewGetPeerEntriesParamsWithHTTPClient creates a new GetPeerEntriesParams object with the ability to set a custom HTTPClient for a request.

func NewGetPeerEntriesParamsWithTimeout

func NewGetPeerEntriesParamsWithTimeout(timeout time.Duration) *GetPeerEntriesParams

NewGetPeerEntriesParamsWithTimeout creates a new GetPeerEntriesParams object with the ability to set a timeout on a request.

func (*GetPeerEntriesParams) SetContext

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

SetContext adds the context to the get peer entries params

func (*GetPeerEntriesParams) SetDefaults

func (o *GetPeerEntriesParams) SetDefaults()

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

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

func (*GetPeerEntriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer entries params

func (*GetPeerEntriesParams) SetPeerSection

func (o *GetPeerEntriesParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get peer entries params

func (*GetPeerEntriesParams) SetTimeout

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

SetTimeout adds the timeout to the get peer entries params

func (*GetPeerEntriesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get peer entries params

func (*GetPeerEntriesParams) WithContext

WithContext adds the context to the get peer entries params

func (*GetPeerEntriesParams) WithDefaults

func (o *GetPeerEntriesParams) WithDefaults() *GetPeerEntriesParams

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

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

func (*GetPeerEntriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer entries params

func (*GetPeerEntriesParams) WithPeerSection

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

WithPeerSection adds the peerSection to the get peer entries params

func (*GetPeerEntriesParams) WithTimeout

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

WithTimeout adds the timeout to the get peer entries params

func (*GetPeerEntriesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get peer entries params

func (*GetPeerEntriesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerEntriesReader

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

GetPeerEntriesReader is a Reader for the GetPeerEntries structure.

func (*GetPeerEntriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPeerEntryDefault

type GetPeerEntryDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetPeerEntryDefault

func NewGetPeerEntryDefault(code int) *GetPeerEntryDefault

NewGetPeerEntryDefault creates a GetPeerEntryDefault with default headers values

func (*GetPeerEntryDefault) Code

func (o *GetPeerEntryDefault) Code() int

Code gets the status code for the get peer entry default response

func (*GetPeerEntryDefault) Error

func (o *GetPeerEntryDefault) Error() string

func (*GetPeerEntryDefault) GetPayload

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

func (*GetPeerEntryDefault) IsClientError added in v1.1.0

func (o *GetPeerEntryDefault) IsClientError() bool

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

func (*GetPeerEntryDefault) IsCode added in v1.1.0

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

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

func (*GetPeerEntryDefault) IsRedirect added in v1.1.0

func (o *GetPeerEntryDefault) IsRedirect() bool

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

func (*GetPeerEntryDefault) IsServerError added in v1.1.0

func (o *GetPeerEntryDefault) IsServerError() bool

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

func (*GetPeerEntryDefault) IsSuccess added in v1.1.0

func (o *GetPeerEntryDefault) IsSuccess() bool

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

func (*GetPeerEntryDefault) String added in v1.1.0

func (o *GetPeerEntryDefault) String() string

type GetPeerEntryNotFound

type GetPeerEntryNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewGetPeerEntryNotFound

func NewGetPeerEntryNotFound() *GetPeerEntryNotFound

NewGetPeerEntryNotFound creates a GetPeerEntryNotFound with default headers values

func (*GetPeerEntryNotFound) Code added in v1.1.5

func (o *GetPeerEntryNotFound) Code() int

Code gets the status code for the get peer entry not found response

func (*GetPeerEntryNotFound) Error

func (o *GetPeerEntryNotFound) Error() string

func (*GetPeerEntryNotFound) GetPayload

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

func (*GetPeerEntryNotFound) IsClientError added in v1.1.0

func (o *GetPeerEntryNotFound) IsClientError() bool

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

func (*GetPeerEntryNotFound) IsCode added in v1.1.0

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

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

func (*GetPeerEntryNotFound) IsRedirect added in v1.1.0

func (o *GetPeerEntryNotFound) IsRedirect() bool

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

func (*GetPeerEntryNotFound) IsServerError added in v1.1.0

func (o *GetPeerEntryNotFound) IsServerError() bool

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

func (*GetPeerEntryNotFound) IsSuccess added in v1.1.0

func (o *GetPeerEntryNotFound) IsSuccess() bool

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

func (*GetPeerEntryNotFound) String added in v1.1.0

func (o *GetPeerEntryNotFound) String() string

type GetPeerEntryOK

type GetPeerEntryOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetPeerEntryOKBody
}

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

Successful operation

func NewGetPeerEntryOK

func NewGetPeerEntryOK() *GetPeerEntryOK

NewGetPeerEntryOK creates a GetPeerEntryOK with default headers values

func (*GetPeerEntryOK) Code added in v1.1.5

func (o *GetPeerEntryOK) Code() int

Code gets the status code for the get peer entry o k response

func (*GetPeerEntryOK) Error

func (o *GetPeerEntryOK) Error() string

func (*GetPeerEntryOK) GetPayload

func (o *GetPeerEntryOK) GetPayload() *GetPeerEntryOKBody

func (*GetPeerEntryOK) IsClientError added in v1.1.0

func (o *GetPeerEntryOK) IsClientError() bool

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

func (*GetPeerEntryOK) IsCode added in v1.1.0

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

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

func (*GetPeerEntryOK) IsRedirect added in v1.1.0

func (o *GetPeerEntryOK) IsRedirect() bool

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

func (*GetPeerEntryOK) IsServerError added in v1.1.0

func (o *GetPeerEntryOK) IsServerError() bool

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

func (*GetPeerEntryOK) IsSuccess added in v1.1.0

func (o *GetPeerEntryOK) IsSuccess() bool

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

func (*GetPeerEntryOK) String added in v1.1.0

func (o *GetPeerEntryOK) String() string

type GetPeerEntryOKBody

type GetPeerEntryOKBody struct {

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

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

GetPeerEntryOKBody get peer entry o k body swagger:model GetPeerEntryOKBody

func (*GetPeerEntryOKBody) ContextValidate

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

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

func (*GetPeerEntryOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPeerEntryOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPeerEntryOKBody) Validate

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

Validate validates this get peer entry o k body

type GetPeerEntryParams

type GetPeerEntryParams struct {

	/* Name.

	   PeerEntry 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
}

GetPeerEntryParams contains all the parameters to send to the API endpoint

for the get peer entry operation.

Typically these are written to a http.Request.

func NewGetPeerEntryParams

func NewGetPeerEntryParams() *GetPeerEntryParams

NewGetPeerEntryParams creates a new GetPeerEntryParams 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 NewGetPeerEntryParamsWithContext

func NewGetPeerEntryParamsWithContext(ctx context.Context) *GetPeerEntryParams

NewGetPeerEntryParamsWithContext creates a new GetPeerEntryParams object with the ability to set a context for a request.

func NewGetPeerEntryParamsWithHTTPClient

func NewGetPeerEntryParamsWithHTTPClient(client *http.Client) *GetPeerEntryParams

NewGetPeerEntryParamsWithHTTPClient creates a new GetPeerEntryParams object with the ability to set a custom HTTPClient for a request.

func NewGetPeerEntryParamsWithTimeout

func NewGetPeerEntryParamsWithTimeout(timeout time.Duration) *GetPeerEntryParams

NewGetPeerEntryParamsWithTimeout creates a new GetPeerEntryParams object with the ability to set a timeout on a request.

func (*GetPeerEntryParams) SetContext

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

SetContext adds the context to the get peer entry params

func (*GetPeerEntryParams) SetDefaults

func (o *GetPeerEntryParams) SetDefaults()

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

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

func (*GetPeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get peer entry params

func (*GetPeerEntryParams) SetName

func (o *GetPeerEntryParams) SetName(name string)

SetName adds the name to the get peer entry params

func (*GetPeerEntryParams) SetPeerSection

func (o *GetPeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the get peer entry params

func (*GetPeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the get peer entry params

func (*GetPeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get peer entry params

func (*GetPeerEntryParams) WithContext

WithContext adds the context to the get peer entry params

func (*GetPeerEntryParams) WithDefaults

func (o *GetPeerEntryParams) WithDefaults() *GetPeerEntryParams

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

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

func (*GetPeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get peer entry params

func (*GetPeerEntryParams) WithName

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

WithName adds the name to the get peer entry params

func (*GetPeerEntryParams) WithPeerSection

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

WithPeerSection adds the peerSection to the get peer entry params

func (*GetPeerEntryParams) WithTimeout

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

WithTimeout adds the timeout to the get peer entry params

func (*GetPeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get peer entry params

func (*GetPeerEntryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPeerEntryReader

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

GetPeerEntryReader is a Reader for the GetPeerEntry structure.

func (*GetPeerEntryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplacePeerEntryAccepted

type ReplacePeerEntryAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.PeerEntry
}

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

Configuration change accepted and reload requested

func NewReplacePeerEntryAccepted

func NewReplacePeerEntryAccepted() *ReplacePeerEntryAccepted

NewReplacePeerEntryAccepted creates a ReplacePeerEntryAccepted with default headers values

func (*ReplacePeerEntryAccepted) Code added in v1.1.5

func (o *ReplacePeerEntryAccepted) Code() int

Code gets the status code for the replace peer entry accepted response

func (*ReplacePeerEntryAccepted) Error

func (o *ReplacePeerEntryAccepted) Error() string

func (*ReplacePeerEntryAccepted) GetPayload

func (o *ReplacePeerEntryAccepted) GetPayload() *models.PeerEntry

func (*ReplacePeerEntryAccepted) IsClientError added in v1.1.0

func (o *ReplacePeerEntryAccepted) IsClientError() bool

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

func (*ReplacePeerEntryAccepted) IsCode added in v1.1.0

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

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

func (*ReplacePeerEntryAccepted) IsRedirect added in v1.1.0

func (o *ReplacePeerEntryAccepted) IsRedirect() bool

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

func (*ReplacePeerEntryAccepted) IsServerError added in v1.1.0

func (o *ReplacePeerEntryAccepted) IsServerError() bool

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

func (*ReplacePeerEntryAccepted) IsSuccess added in v1.1.0

func (o *ReplacePeerEntryAccepted) IsSuccess() bool

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

func (*ReplacePeerEntryAccepted) String added in v1.1.0

func (o *ReplacePeerEntryAccepted) String() string

type ReplacePeerEntryBadRequest

type ReplacePeerEntryBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplacePeerEntryBadRequest

func NewReplacePeerEntryBadRequest() *ReplacePeerEntryBadRequest

NewReplacePeerEntryBadRequest creates a ReplacePeerEntryBadRequest with default headers values

func (*ReplacePeerEntryBadRequest) Code added in v1.1.5

func (o *ReplacePeerEntryBadRequest) Code() int

Code gets the status code for the replace peer entry bad request response

func (*ReplacePeerEntryBadRequest) Error

func (*ReplacePeerEntryBadRequest) GetPayload

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

func (*ReplacePeerEntryBadRequest) IsClientError added in v1.1.0

func (o *ReplacePeerEntryBadRequest) IsClientError() bool

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

func (*ReplacePeerEntryBadRequest) IsCode added in v1.1.0

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

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

func (*ReplacePeerEntryBadRequest) IsRedirect added in v1.1.0

func (o *ReplacePeerEntryBadRequest) IsRedirect() bool

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

func (*ReplacePeerEntryBadRequest) IsServerError added in v1.1.0

func (o *ReplacePeerEntryBadRequest) IsServerError() bool

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

func (*ReplacePeerEntryBadRequest) IsSuccess added in v1.1.0

func (o *ReplacePeerEntryBadRequest) IsSuccess() bool

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

func (*ReplacePeerEntryBadRequest) String added in v1.1.0

func (o *ReplacePeerEntryBadRequest) String() string

type ReplacePeerEntryDefault

type ReplacePeerEntryDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplacePeerEntryDefault

func NewReplacePeerEntryDefault(code int) *ReplacePeerEntryDefault

NewReplacePeerEntryDefault creates a ReplacePeerEntryDefault with default headers values

func (*ReplacePeerEntryDefault) Code

func (o *ReplacePeerEntryDefault) Code() int

Code gets the status code for the replace peer entry default response

func (*ReplacePeerEntryDefault) Error

func (o *ReplacePeerEntryDefault) Error() string

func (*ReplacePeerEntryDefault) GetPayload

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

func (*ReplacePeerEntryDefault) IsClientError added in v1.1.0

func (o *ReplacePeerEntryDefault) IsClientError() bool

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

func (*ReplacePeerEntryDefault) IsCode added in v1.1.0

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

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

func (*ReplacePeerEntryDefault) IsRedirect added in v1.1.0

func (o *ReplacePeerEntryDefault) IsRedirect() bool

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

func (*ReplacePeerEntryDefault) IsServerError added in v1.1.0

func (o *ReplacePeerEntryDefault) IsServerError() bool

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

func (*ReplacePeerEntryDefault) IsSuccess added in v1.1.0

func (o *ReplacePeerEntryDefault) IsSuccess() bool

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

func (*ReplacePeerEntryDefault) String added in v1.1.0

func (o *ReplacePeerEntryDefault) String() string

type ReplacePeerEntryNotFound

type ReplacePeerEntryNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewReplacePeerEntryNotFound

func NewReplacePeerEntryNotFound() *ReplacePeerEntryNotFound

NewReplacePeerEntryNotFound creates a ReplacePeerEntryNotFound with default headers values

func (*ReplacePeerEntryNotFound) Code added in v1.1.5

func (o *ReplacePeerEntryNotFound) Code() int

Code gets the status code for the replace peer entry not found response

func (*ReplacePeerEntryNotFound) Error

func (o *ReplacePeerEntryNotFound) Error() string

func (*ReplacePeerEntryNotFound) GetPayload

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

func (*ReplacePeerEntryNotFound) IsClientError added in v1.1.0

func (o *ReplacePeerEntryNotFound) IsClientError() bool

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

func (*ReplacePeerEntryNotFound) IsCode added in v1.1.0

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

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

func (*ReplacePeerEntryNotFound) IsRedirect added in v1.1.0

func (o *ReplacePeerEntryNotFound) IsRedirect() bool

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

func (*ReplacePeerEntryNotFound) IsServerError added in v1.1.0

func (o *ReplacePeerEntryNotFound) IsServerError() bool

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

func (*ReplacePeerEntryNotFound) IsSuccess added in v1.1.0

func (o *ReplacePeerEntryNotFound) IsSuccess() bool

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

func (*ReplacePeerEntryNotFound) String added in v1.1.0

func (o *ReplacePeerEntryNotFound) String() string

type ReplacePeerEntryOK

type ReplacePeerEntryOK struct {
	Payload *models.PeerEntry
}

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

PeerEntry replaced

func NewReplacePeerEntryOK

func NewReplacePeerEntryOK() *ReplacePeerEntryOK

NewReplacePeerEntryOK creates a ReplacePeerEntryOK with default headers values

func (*ReplacePeerEntryOK) Code added in v1.1.5

func (o *ReplacePeerEntryOK) Code() int

Code gets the status code for the replace peer entry o k response

func (*ReplacePeerEntryOK) Error

func (o *ReplacePeerEntryOK) Error() string

func (*ReplacePeerEntryOK) GetPayload

func (o *ReplacePeerEntryOK) GetPayload() *models.PeerEntry

func (*ReplacePeerEntryOK) IsClientError added in v1.1.0

func (o *ReplacePeerEntryOK) IsClientError() bool

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

func (*ReplacePeerEntryOK) IsCode added in v1.1.0

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

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

func (*ReplacePeerEntryOK) IsRedirect added in v1.1.0

func (o *ReplacePeerEntryOK) IsRedirect() bool

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

func (*ReplacePeerEntryOK) IsServerError added in v1.1.0

func (o *ReplacePeerEntryOK) IsServerError() bool

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

func (*ReplacePeerEntryOK) IsSuccess added in v1.1.0

func (o *ReplacePeerEntryOK) IsSuccess() bool

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

func (*ReplacePeerEntryOK) String added in v1.1.0

func (o *ReplacePeerEntryOK) String() string

type ReplacePeerEntryParams

type ReplacePeerEntryParams struct {

	// Data.
	Data *models.PeerEntry

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

	   PeerEntry 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
}

ReplacePeerEntryParams contains all the parameters to send to the API endpoint

for the replace peer entry operation.

Typically these are written to a http.Request.

func NewReplacePeerEntryParams

func NewReplacePeerEntryParams() *ReplacePeerEntryParams

NewReplacePeerEntryParams creates a new ReplacePeerEntryParams 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 NewReplacePeerEntryParamsWithContext

func NewReplacePeerEntryParamsWithContext(ctx context.Context) *ReplacePeerEntryParams

NewReplacePeerEntryParamsWithContext creates a new ReplacePeerEntryParams object with the ability to set a context for a request.

func NewReplacePeerEntryParamsWithHTTPClient

func NewReplacePeerEntryParamsWithHTTPClient(client *http.Client) *ReplacePeerEntryParams

NewReplacePeerEntryParamsWithHTTPClient creates a new ReplacePeerEntryParams object with the ability to set a custom HTTPClient for a request.

func NewReplacePeerEntryParamsWithTimeout

func NewReplacePeerEntryParamsWithTimeout(timeout time.Duration) *ReplacePeerEntryParams

NewReplacePeerEntryParamsWithTimeout creates a new ReplacePeerEntryParams object with the ability to set a timeout on a request.

func (*ReplacePeerEntryParams) SetContext

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

SetContext adds the context to the replace peer entry params

func (*ReplacePeerEntryParams) SetData

func (o *ReplacePeerEntryParams) SetData(data *models.PeerEntry)

SetData adds the data to the replace peer entry params

func (*ReplacePeerEntryParams) SetDefaults

func (o *ReplacePeerEntryParams) SetDefaults()

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

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

func (*ReplacePeerEntryParams) SetForceReload

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

SetForceReload adds the forceReload to the replace peer entry params

func (*ReplacePeerEntryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace peer entry params

func (*ReplacePeerEntryParams) SetName

func (o *ReplacePeerEntryParams) SetName(name string)

SetName adds the name to the replace peer entry params

func (*ReplacePeerEntryParams) SetPeerSection

func (o *ReplacePeerEntryParams) SetPeerSection(peerSection string)

SetPeerSection adds the peerSection to the replace peer entry params

func (*ReplacePeerEntryParams) SetTimeout

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

SetTimeout adds the timeout to the replace peer entry params

func (*ReplacePeerEntryParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace peer entry params

func (*ReplacePeerEntryParams) SetVersion

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

SetVersion adds the version to the replace peer entry params

func (*ReplacePeerEntryParams) WithContext

WithContext adds the context to the replace peer entry params

func (*ReplacePeerEntryParams) WithData

WithData adds the data to the replace peer entry params

func (*ReplacePeerEntryParams) WithDefaults

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

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

func (*ReplacePeerEntryParams) WithForceReload

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

WithForceReload adds the forceReload to the replace peer entry params

func (*ReplacePeerEntryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace peer entry params

func (*ReplacePeerEntryParams) WithName

WithName adds the name to the replace peer entry params

func (*ReplacePeerEntryParams) WithPeerSection

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

WithPeerSection adds the peerSection to the replace peer entry params

func (*ReplacePeerEntryParams) WithTimeout

WithTimeout adds the timeout to the replace peer entry params

func (*ReplacePeerEntryParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace peer entry params

func (*ReplacePeerEntryParams) WithVersion

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

WithVersion adds the version to the replace peer entry params

func (*ReplacePeerEntryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplacePeerEntryReader

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

ReplacePeerEntryReader is a Reader for the ReplacePeerEntry structure.

func (*ReplacePeerEntryReader) ReadResponse

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