Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePeerEntry(params *CreatePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePeerEntryCreated, *CreatePeerEntryAccepted, error)
- func (a *Client) DeletePeerEntry(params *DeletePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePeerEntryAccepted, *DeletePeerEntryNoContent, error)
- func (a *Client) GetPeerEntries(params *GetPeerEntriesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPeerEntriesOK, error)
- func (a *Client) GetPeerEntry(params *GetPeerEntryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPeerEntryOK, error)
- func (a *Client) ReplacePeerEntry(params *ReplacePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplacePeerEntryOK, *ReplacePeerEntryAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreatePeerEntryAccepted
- func (o *CreatePeerEntryAccepted) Code() int
- func (o *CreatePeerEntryAccepted) Error() string
- func (o *CreatePeerEntryAccepted) GetPayload() *models.PeerEntry
- func (o *CreatePeerEntryAccepted) IsClientError() bool
- func (o *CreatePeerEntryAccepted) IsCode(code int) bool
- func (o *CreatePeerEntryAccepted) IsRedirect() bool
- func (o *CreatePeerEntryAccepted) IsServerError() bool
- func (o *CreatePeerEntryAccepted) IsSuccess() bool
- func (o *CreatePeerEntryAccepted) String() string
- type CreatePeerEntryBadRequest
- func (o *CreatePeerEntryBadRequest) Code() int
- func (o *CreatePeerEntryBadRequest) Error() string
- func (o *CreatePeerEntryBadRequest) GetPayload() *models.Error
- func (o *CreatePeerEntryBadRequest) IsClientError() bool
- func (o *CreatePeerEntryBadRequest) IsCode(code int) bool
- func (o *CreatePeerEntryBadRequest) IsRedirect() bool
- func (o *CreatePeerEntryBadRequest) IsServerError() bool
- func (o *CreatePeerEntryBadRequest) IsSuccess() bool
- func (o *CreatePeerEntryBadRequest) String() string
- type CreatePeerEntryConflict
- func (o *CreatePeerEntryConflict) Code() int
- func (o *CreatePeerEntryConflict) Error() string
- func (o *CreatePeerEntryConflict) GetPayload() *models.Error
- func (o *CreatePeerEntryConflict) IsClientError() bool
- func (o *CreatePeerEntryConflict) IsCode(code int) bool
- func (o *CreatePeerEntryConflict) IsRedirect() bool
- func (o *CreatePeerEntryConflict) IsServerError() bool
- func (o *CreatePeerEntryConflict) IsSuccess() bool
- func (o *CreatePeerEntryConflict) String() string
- type CreatePeerEntryCreated
- func (o *CreatePeerEntryCreated) Code() int
- func (o *CreatePeerEntryCreated) Error() string
- func (o *CreatePeerEntryCreated) GetPayload() *models.PeerEntry
- func (o *CreatePeerEntryCreated) IsClientError() bool
- func (o *CreatePeerEntryCreated) IsCode(code int) bool
- func (o *CreatePeerEntryCreated) IsRedirect() bool
- func (o *CreatePeerEntryCreated) IsServerError() bool
- func (o *CreatePeerEntryCreated) IsSuccess() bool
- func (o *CreatePeerEntryCreated) String() string
- type CreatePeerEntryDefault
- func (o *CreatePeerEntryDefault) Code() int
- func (o *CreatePeerEntryDefault) Error() string
- func (o *CreatePeerEntryDefault) GetPayload() *models.Error
- func (o *CreatePeerEntryDefault) IsClientError() bool
- func (o *CreatePeerEntryDefault) IsCode(code int) bool
- func (o *CreatePeerEntryDefault) IsRedirect() bool
- func (o *CreatePeerEntryDefault) IsServerError() bool
- func (o *CreatePeerEntryDefault) IsSuccess() bool
- func (o *CreatePeerEntryDefault) String() string
- type CreatePeerEntryParams
- func NewCreatePeerEntryParams() *CreatePeerEntryParams
- func NewCreatePeerEntryParamsWithContext(ctx context.Context) *CreatePeerEntryParams
- func NewCreatePeerEntryParamsWithHTTPClient(client *http.Client) *CreatePeerEntryParams
- func NewCreatePeerEntryParamsWithTimeout(timeout time.Duration) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) SetContext(ctx context.Context)
- func (o *CreatePeerEntryParams) SetData(data *models.PeerEntry)
- func (o *CreatePeerEntryParams) SetDefaults()
- func (o *CreatePeerEntryParams) SetForceReload(forceReload *bool)
- func (o *CreatePeerEntryParams) SetHTTPClient(client *http.Client)
- func (o *CreatePeerEntryParams) SetPeerSection(peerSection string)
- func (o *CreatePeerEntryParams) SetTimeout(timeout time.Duration)
- func (o *CreatePeerEntryParams) SetTransactionID(transactionID *string)
- func (o *CreatePeerEntryParams) SetVersion(version *int64)
- func (o *CreatePeerEntryParams) WithContext(ctx context.Context) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithData(data *models.PeerEntry) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithDefaults() *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithForceReload(forceReload *bool) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithHTTPClient(client *http.Client) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithPeerSection(peerSection string) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithTimeout(timeout time.Duration) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithTransactionID(transactionID *string) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WithVersion(version *int64) *CreatePeerEntryParams
- func (o *CreatePeerEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePeerEntryReader
- type DeletePeerEntryAccepted
- func (o *DeletePeerEntryAccepted) Code() int
- func (o *DeletePeerEntryAccepted) Error() string
- func (o *DeletePeerEntryAccepted) IsClientError() bool
- func (o *DeletePeerEntryAccepted) IsCode(code int) bool
- func (o *DeletePeerEntryAccepted) IsRedirect() bool
- func (o *DeletePeerEntryAccepted) IsServerError() bool
- func (o *DeletePeerEntryAccepted) IsSuccess() bool
- func (o *DeletePeerEntryAccepted) String() string
- type DeletePeerEntryDefault
- func (o *DeletePeerEntryDefault) Code() int
- func (o *DeletePeerEntryDefault) Error() string
- func (o *DeletePeerEntryDefault) GetPayload() *models.Error
- func (o *DeletePeerEntryDefault) IsClientError() bool
- func (o *DeletePeerEntryDefault) IsCode(code int) bool
- func (o *DeletePeerEntryDefault) IsRedirect() bool
- func (o *DeletePeerEntryDefault) IsServerError() bool
- func (o *DeletePeerEntryDefault) IsSuccess() bool
- func (o *DeletePeerEntryDefault) String() string
- type DeletePeerEntryNoContent
- func (o *DeletePeerEntryNoContent) Code() int
- func (o *DeletePeerEntryNoContent) Error() string
- func (o *DeletePeerEntryNoContent) IsClientError() bool
- func (o *DeletePeerEntryNoContent) IsCode(code int) bool
- func (o *DeletePeerEntryNoContent) IsRedirect() bool
- func (o *DeletePeerEntryNoContent) IsServerError() bool
- func (o *DeletePeerEntryNoContent) IsSuccess() bool
- func (o *DeletePeerEntryNoContent) String() string
- type DeletePeerEntryNotFound
- func (o *DeletePeerEntryNotFound) Code() int
- func (o *DeletePeerEntryNotFound) Error() string
- func (o *DeletePeerEntryNotFound) GetPayload() *models.Error
- func (o *DeletePeerEntryNotFound) IsClientError() bool
- func (o *DeletePeerEntryNotFound) IsCode(code int) bool
- func (o *DeletePeerEntryNotFound) IsRedirect() bool
- func (o *DeletePeerEntryNotFound) IsServerError() bool
- func (o *DeletePeerEntryNotFound) IsSuccess() bool
- func (o *DeletePeerEntryNotFound) String() string
- type DeletePeerEntryParams
- func NewDeletePeerEntryParams() *DeletePeerEntryParams
- func NewDeletePeerEntryParamsWithContext(ctx context.Context) *DeletePeerEntryParams
- func NewDeletePeerEntryParamsWithHTTPClient(client *http.Client) *DeletePeerEntryParams
- func NewDeletePeerEntryParamsWithTimeout(timeout time.Duration) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) SetContext(ctx context.Context)
- func (o *DeletePeerEntryParams) SetDefaults()
- func (o *DeletePeerEntryParams) SetForceReload(forceReload *bool)
- func (o *DeletePeerEntryParams) SetHTTPClient(client *http.Client)
- func (o *DeletePeerEntryParams) SetName(name string)
- func (o *DeletePeerEntryParams) SetPeerSection(peerSection string)
- func (o *DeletePeerEntryParams) SetTimeout(timeout time.Duration)
- func (o *DeletePeerEntryParams) SetTransactionID(transactionID *string)
- func (o *DeletePeerEntryParams) SetVersion(version *int64)
- func (o *DeletePeerEntryParams) WithContext(ctx context.Context) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithDefaults() *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithForceReload(forceReload *bool) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithHTTPClient(client *http.Client) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithName(name string) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithPeerSection(peerSection string) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithTimeout(timeout time.Duration) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithTransactionID(transactionID *string) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WithVersion(version *int64) *DeletePeerEntryParams
- func (o *DeletePeerEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePeerEntryReader
- type GetPeerEntriesDefault
- func (o *GetPeerEntriesDefault) Code() int
- func (o *GetPeerEntriesDefault) Error() string
- func (o *GetPeerEntriesDefault) GetPayload() *models.Error
- func (o *GetPeerEntriesDefault) IsClientError() bool
- func (o *GetPeerEntriesDefault) IsCode(code int) bool
- func (o *GetPeerEntriesDefault) IsRedirect() bool
- func (o *GetPeerEntriesDefault) IsServerError() bool
- func (o *GetPeerEntriesDefault) IsSuccess() bool
- func (o *GetPeerEntriesDefault) String() string
- type GetPeerEntriesOK
- func (o *GetPeerEntriesOK) Code() int
- func (o *GetPeerEntriesOK) Error() string
- func (o *GetPeerEntriesOK) GetPayload() *GetPeerEntriesOKBody
- func (o *GetPeerEntriesOK) IsClientError() bool
- func (o *GetPeerEntriesOK) IsCode(code int) bool
- func (o *GetPeerEntriesOK) IsRedirect() bool
- func (o *GetPeerEntriesOK) IsServerError() bool
- func (o *GetPeerEntriesOK) IsSuccess() bool
- func (o *GetPeerEntriesOK) String() string
- type GetPeerEntriesOKBody
- type GetPeerEntriesParams
- func NewGetPeerEntriesParams() *GetPeerEntriesParams
- func NewGetPeerEntriesParamsWithContext(ctx context.Context) *GetPeerEntriesParams
- func NewGetPeerEntriesParamsWithHTTPClient(client *http.Client) *GetPeerEntriesParams
- func NewGetPeerEntriesParamsWithTimeout(timeout time.Duration) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) SetContext(ctx context.Context)
- func (o *GetPeerEntriesParams) SetDefaults()
- func (o *GetPeerEntriesParams) SetHTTPClient(client *http.Client)
- func (o *GetPeerEntriesParams) SetPeerSection(peerSection string)
- func (o *GetPeerEntriesParams) SetTimeout(timeout time.Duration)
- func (o *GetPeerEntriesParams) SetTransactionID(transactionID *string)
- func (o *GetPeerEntriesParams) WithContext(ctx context.Context) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WithDefaults() *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WithHTTPClient(client *http.Client) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WithPeerSection(peerSection string) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WithTimeout(timeout time.Duration) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WithTransactionID(transactionID *string) *GetPeerEntriesParams
- func (o *GetPeerEntriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPeerEntriesReader
- type GetPeerEntryDefault
- func (o *GetPeerEntryDefault) Code() int
- func (o *GetPeerEntryDefault) Error() string
- func (o *GetPeerEntryDefault) GetPayload() *models.Error
- func (o *GetPeerEntryDefault) IsClientError() bool
- func (o *GetPeerEntryDefault) IsCode(code int) bool
- func (o *GetPeerEntryDefault) IsRedirect() bool
- func (o *GetPeerEntryDefault) IsServerError() bool
- func (o *GetPeerEntryDefault) IsSuccess() bool
- func (o *GetPeerEntryDefault) String() string
- type GetPeerEntryNotFound
- func (o *GetPeerEntryNotFound) Code() int
- func (o *GetPeerEntryNotFound) Error() string
- func (o *GetPeerEntryNotFound) GetPayload() *models.Error
- func (o *GetPeerEntryNotFound) IsClientError() bool
- func (o *GetPeerEntryNotFound) IsCode(code int) bool
- func (o *GetPeerEntryNotFound) IsRedirect() bool
- func (o *GetPeerEntryNotFound) IsServerError() bool
- func (o *GetPeerEntryNotFound) IsSuccess() bool
- func (o *GetPeerEntryNotFound) String() string
- type GetPeerEntryOK
- func (o *GetPeerEntryOK) Code() int
- func (o *GetPeerEntryOK) Error() string
- func (o *GetPeerEntryOK) GetPayload() *GetPeerEntryOKBody
- func (o *GetPeerEntryOK) IsClientError() bool
- func (o *GetPeerEntryOK) IsCode(code int) bool
- func (o *GetPeerEntryOK) IsRedirect() bool
- func (o *GetPeerEntryOK) IsServerError() bool
- func (o *GetPeerEntryOK) IsSuccess() bool
- func (o *GetPeerEntryOK) String() string
- type GetPeerEntryOKBody
- type GetPeerEntryParams
- func (o *GetPeerEntryParams) SetContext(ctx context.Context)
- func (o *GetPeerEntryParams) SetDefaults()
- func (o *GetPeerEntryParams) SetHTTPClient(client *http.Client)
- func (o *GetPeerEntryParams) SetName(name string)
- func (o *GetPeerEntryParams) SetPeerSection(peerSection string)
- func (o *GetPeerEntryParams) SetTimeout(timeout time.Duration)
- func (o *GetPeerEntryParams) SetTransactionID(transactionID *string)
- func (o *GetPeerEntryParams) WithContext(ctx context.Context) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithDefaults() *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithHTTPClient(client *http.Client) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithName(name string) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithPeerSection(peerSection string) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithTimeout(timeout time.Duration) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WithTransactionID(transactionID *string) *GetPeerEntryParams
- func (o *GetPeerEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPeerEntryReader
- type ReplacePeerEntryAccepted
- func (o *ReplacePeerEntryAccepted) Code() int
- func (o *ReplacePeerEntryAccepted) Error() string
- func (o *ReplacePeerEntryAccepted) GetPayload() *models.PeerEntry
- func (o *ReplacePeerEntryAccepted) IsClientError() bool
- func (o *ReplacePeerEntryAccepted) IsCode(code int) bool
- func (o *ReplacePeerEntryAccepted) IsRedirect() bool
- func (o *ReplacePeerEntryAccepted) IsServerError() bool
- func (o *ReplacePeerEntryAccepted) IsSuccess() bool
- func (o *ReplacePeerEntryAccepted) String() string
- type ReplacePeerEntryBadRequest
- func (o *ReplacePeerEntryBadRequest) Code() int
- func (o *ReplacePeerEntryBadRequest) Error() string
- func (o *ReplacePeerEntryBadRequest) GetPayload() *models.Error
- func (o *ReplacePeerEntryBadRequest) IsClientError() bool
- func (o *ReplacePeerEntryBadRequest) IsCode(code int) bool
- func (o *ReplacePeerEntryBadRequest) IsRedirect() bool
- func (o *ReplacePeerEntryBadRequest) IsServerError() bool
- func (o *ReplacePeerEntryBadRequest) IsSuccess() bool
- func (o *ReplacePeerEntryBadRequest) String() string
- type ReplacePeerEntryDefault
- func (o *ReplacePeerEntryDefault) Code() int
- func (o *ReplacePeerEntryDefault) Error() string
- func (o *ReplacePeerEntryDefault) GetPayload() *models.Error
- func (o *ReplacePeerEntryDefault) IsClientError() bool
- func (o *ReplacePeerEntryDefault) IsCode(code int) bool
- func (o *ReplacePeerEntryDefault) IsRedirect() bool
- func (o *ReplacePeerEntryDefault) IsServerError() bool
- func (o *ReplacePeerEntryDefault) IsSuccess() bool
- func (o *ReplacePeerEntryDefault) String() string
- type ReplacePeerEntryNotFound
- func (o *ReplacePeerEntryNotFound) Code() int
- func (o *ReplacePeerEntryNotFound) Error() string
- func (o *ReplacePeerEntryNotFound) GetPayload() *models.Error
- func (o *ReplacePeerEntryNotFound) IsClientError() bool
- func (o *ReplacePeerEntryNotFound) IsCode(code int) bool
- func (o *ReplacePeerEntryNotFound) IsRedirect() bool
- func (o *ReplacePeerEntryNotFound) IsServerError() bool
- func (o *ReplacePeerEntryNotFound) IsSuccess() bool
- func (o *ReplacePeerEntryNotFound) String() string
- type ReplacePeerEntryOK
- func (o *ReplacePeerEntryOK) Code() int
- func (o *ReplacePeerEntryOK) Error() string
- func (o *ReplacePeerEntryOK) GetPayload() *models.PeerEntry
- func (o *ReplacePeerEntryOK) IsClientError() bool
- func (o *ReplacePeerEntryOK) IsCode(code int) bool
- func (o *ReplacePeerEntryOK) IsRedirect() bool
- func (o *ReplacePeerEntryOK) IsServerError() bool
- func (o *ReplacePeerEntryOK) IsSuccess() bool
- func (o *ReplacePeerEntryOK) String() string
- type ReplacePeerEntryParams
- func NewReplacePeerEntryParams() *ReplacePeerEntryParams
- func NewReplacePeerEntryParamsWithContext(ctx context.Context) *ReplacePeerEntryParams
- func NewReplacePeerEntryParamsWithHTTPClient(client *http.Client) *ReplacePeerEntryParams
- func NewReplacePeerEntryParamsWithTimeout(timeout time.Duration) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) SetContext(ctx context.Context)
- func (o *ReplacePeerEntryParams) SetData(data *models.PeerEntry)
- func (o *ReplacePeerEntryParams) SetDefaults()
- func (o *ReplacePeerEntryParams) SetForceReload(forceReload *bool)
- func (o *ReplacePeerEntryParams) SetHTTPClient(client *http.Client)
- func (o *ReplacePeerEntryParams) SetName(name string)
- func (o *ReplacePeerEntryParams) SetPeerSection(peerSection string)
- func (o *ReplacePeerEntryParams) SetTimeout(timeout time.Duration)
- func (o *ReplacePeerEntryParams) SetTransactionID(transactionID *string)
- func (o *ReplacePeerEntryParams) SetVersion(version *int64)
- func (o *ReplacePeerEntryParams) WithContext(ctx context.Context) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithData(data *models.PeerEntry) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithDefaults() *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithForceReload(forceReload *bool) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithHTTPClient(client *http.Client) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithName(name string) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithPeerSection(peerSection string) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithTimeout(timeout time.Duration) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithTransactionID(transactionID *string) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WithVersion(version *int64) *ReplacePeerEntryParams
- func (o *ReplacePeerEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplacePeerEntryReader
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 ¶
func (a *Client) CreatePeerEntry(params *CreatePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePeerEntryCreated, *CreatePeerEntryAccepted, error)
CreatePeerEntry adds a new peer entry
Adds a new peer entry in the specified peer section in the configuration file.
func (*Client) DeletePeerEntry ¶
func (a *Client) DeletePeerEntry(params *DeletePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePeerEntryAccepted, *DeletePeerEntryNoContent, error)
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 ¶
func (a *Client) ReplacePeerEntry(params *ReplacePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplacePeerEntryOK, *ReplacePeerEntryAccepted, error)
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 ¶
type ClientService interface { CreatePeerEntry(params *CreatePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePeerEntryCreated, *CreatePeerEntryAccepted, error) DeletePeerEntry(params *DeletePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePeerEntryAccepted, *DeletePeerEntryNoContent, error) GetPeerEntries(params *GetPeerEntriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerEntriesOK, error) GetPeerEntry(params *GetPeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPeerEntryOK, error) ReplacePeerEntry(params *ReplacePeerEntryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplacePeerEntryOK, *ReplacePeerEntryAccepted, 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 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 ¶
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 ¶
func (o *CreatePeerEntryParams) WithContext(ctx context.Context) *CreatePeerEntryParams
WithContext adds the context to the create peer entry params
func (*CreatePeerEntryParams) WithData ¶
func (o *CreatePeerEntryParams) WithData(data *models.PeerEntry) *CreatePeerEntryParams
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 ¶
func (o *DeletePeerEntryParams) WithContext(ctx context.Context) *DeletePeerEntryParams
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 ¶
func (o *DeletePeerEntryParams) WithName(name string) *DeletePeerEntryParams
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 ¶
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
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 ¶
func (o *GetPeerEntriesParams) WithContext(ctx context.Context) *GetPeerEntriesParams
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 ¶
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
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 ¶
func (o *GetPeerEntryParams) WithContext(ctx context.Context) *GetPeerEntryParams
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 (o *ReplacePeerEntryBadRequest) Error() string
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 ¶
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 ¶
func (o *ReplacePeerEntryParams) WithContext(ctx context.Context) *ReplacePeerEntryParams
WithContext adds the context to the replace peer entry params
func (*ReplacePeerEntryParams) WithData ¶
func (o *ReplacePeerEntryParams) WithData(data *models.PeerEntry) *ReplacePeerEntryParams
WithData adds the data to the replace peer entry params
func (*ReplacePeerEntryParams) WithDefaults ¶
func (o *ReplacePeerEntryParams) WithDefaults() *ReplacePeerEntryParams
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 ¶
func (o *ReplacePeerEntryParams) WithName(name string) *ReplacePeerEntryParams
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 ¶
func (o *ReplacePeerEntryParams) WithTimeout(timeout time.Duration) *ReplacePeerEntryParams
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 ¶
func (o *ReplacePeerEntryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_peer_entry_parameters.go
- create_peer_entry_responses.go
- delete_peer_entry_parameters.go
- delete_peer_entry_responses.go
- get_peer_entries_parameters.go
- get_peer_entries_responses.go
- get_peer_entry_parameters.go
- get_peer_entry_responses.go
- peer_entry_client.go
- replace_peer_entry_parameters.go
- replace_peer_entry_responses.go