Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateRing(params *CreateRingParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateRingCreated, *CreateRingAccepted, error)
- func (a *Client) DeleteRing(params *DeleteRingParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteRingAccepted, *DeleteRingNoContent, error)
- func (a *Client) GetRing(params *GetRingParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRingOK, error)
- func (a *Client) GetRings(params *GetRingsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRingsOK, error)
- func (a *Client) ReplaceRing(params *ReplaceRingParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceRingOK, *ReplaceRingAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateRingAccepted
- func (o *CreateRingAccepted) Code() int
- func (o *CreateRingAccepted) Error() string
- func (o *CreateRingAccepted) GetPayload() *models.Ring
- func (o *CreateRingAccepted) IsClientError() bool
- func (o *CreateRingAccepted) IsCode(code int) bool
- func (o *CreateRingAccepted) IsRedirect() bool
- func (o *CreateRingAccepted) IsServerError() bool
- func (o *CreateRingAccepted) IsSuccess() bool
- func (o *CreateRingAccepted) String() string
- type CreateRingBadRequest
- func (o *CreateRingBadRequest) Code() int
- func (o *CreateRingBadRequest) Error() string
- func (o *CreateRingBadRequest) GetPayload() *models.Error
- func (o *CreateRingBadRequest) IsClientError() bool
- func (o *CreateRingBadRequest) IsCode(code int) bool
- func (o *CreateRingBadRequest) IsRedirect() bool
- func (o *CreateRingBadRequest) IsServerError() bool
- func (o *CreateRingBadRequest) IsSuccess() bool
- func (o *CreateRingBadRequest) String() string
- type CreateRingConflict
- func (o *CreateRingConflict) Code() int
- func (o *CreateRingConflict) Error() string
- func (o *CreateRingConflict) GetPayload() *models.Error
- func (o *CreateRingConflict) IsClientError() bool
- func (o *CreateRingConflict) IsCode(code int) bool
- func (o *CreateRingConflict) IsRedirect() bool
- func (o *CreateRingConflict) IsServerError() bool
- func (o *CreateRingConflict) IsSuccess() bool
- func (o *CreateRingConflict) String() string
- type CreateRingCreated
- func (o *CreateRingCreated) Code() int
- func (o *CreateRingCreated) Error() string
- func (o *CreateRingCreated) GetPayload() *models.Ring
- func (o *CreateRingCreated) IsClientError() bool
- func (o *CreateRingCreated) IsCode(code int) bool
- func (o *CreateRingCreated) IsRedirect() bool
- func (o *CreateRingCreated) IsServerError() bool
- func (o *CreateRingCreated) IsSuccess() bool
- func (o *CreateRingCreated) String() string
- type CreateRingDefault
- func (o *CreateRingDefault) Code() int
- func (o *CreateRingDefault) Error() string
- func (o *CreateRingDefault) GetPayload() *models.Error
- func (o *CreateRingDefault) IsClientError() bool
- func (o *CreateRingDefault) IsCode(code int) bool
- func (o *CreateRingDefault) IsRedirect() bool
- func (o *CreateRingDefault) IsServerError() bool
- func (o *CreateRingDefault) IsSuccess() bool
- func (o *CreateRingDefault) String() string
- type CreateRingParams
- func (o *CreateRingParams) SetContext(ctx context.Context)
- func (o *CreateRingParams) SetData(data *models.Ring)
- func (o *CreateRingParams) SetDefaults()
- func (o *CreateRingParams) SetForceReload(forceReload *bool)
- func (o *CreateRingParams) SetHTTPClient(client *http.Client)
- func (o *CreateRingParams) SetTimeout(timeout time.Duration)
- func (o *CreateRingParams) SetTransactionID(transactionID *string)
- func (o *CreateRingParams) SetVersion(version *int64)
- func (o *CreateRingParams) WithContext(ctx context.Context) *CreateRingParams
- func (o *CreateRingParams) WithData(data *models.Ring) *CreateRingParams
- func (o *CreateRingParams) WithDefaults() *CreateRingParams
- func (o *CreateRingParams) WithForceReload(forceReload *bool) *CreateRingParams
- func (o *CreateRingParams) WithHTTPClient(client *http.Client) *CreateRingParams
- func (o *CreateRingParams) WithTimeout(timeout time.Duration) *CreateRingParams
- func (o *CreateRingParams) WithTransactionID(transactionID *string) *CreateRingParams
- func (o *CreateRingParams) WithVersion(version *int64) *CreateRingParams
- func (o *CreateRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRingReader
- type DeleteRingAccepted
- func (o *DeleteRingAccepted) Code() int
- func (o *DeleteRingAccepted) Error() string
- func (o *DeleteRingAccepted) IsClientError() bool
- func (o *DeleteRingAccepted) IsCode(code int) bool
- func (o *DeleteRingAccepted) IsRedirect() bool
- func (o *DeleteRingAccepted) IsServerError() bool
- func (o *DeleteRingAccepted) IsSuccess() bool
- func (o *DeleteRingAccepted) String() string
- type DeleteRingDefault
- func (o *DeleteRingDefault) Code() int
- func (o *DeleteRingDefault) Error() string
- func (o *DeleteRingDefault) GetPayload() *models.Error
- func (o *DeleteRingDefault) IsClientError() bool
- func (o *DeleteRingDefault) IsCode(code int) bool
- func (o *DeleteRingDefault) IsRedirect() bool
- func (o *DeleteRingDefault) IsServerError() bool
- func (o *DeleteRingDefault) IsSuccess() bool
- func (o *DeleteRingDefault) String() string
- type DeleteRingNoContent
- func (o *DeleteRingNoContent) Code() int
- func (o *DeleteRingNoContent) Error() string
- func (o *DeleteRingNoContent) IsClientError() bool
- func (o *DeleteRingNoContent) IsCode(code int) bool
- func (o *DeleteRingNoContent) IsRedirect() bool
- func (o *DeleteRingNoContent) IsServerError() bool
- func (o *DeleteRingNoContent) IsSuccess() bool
- func (o *DeleteRingNoContent) String() string
- type DeleteRingNotFound
- func (o *DeleteRingNotFound) Code() int
- func (o *DeleteRingNotFound) Error() string
- func (o *DeleteRingNotFound) GetPayload() *models.Error
- func (o *DeleteRingNotFound) IsClientError() bool
- func (o *DeleteRingNotFound) IsCode(code int) bool
- func (o *DeleteRingNotFound) IsRedirect() bool
- func (o *DeleteRingNotFound) IsServerError() bool
- func (o *DeleteRingNotFound) IsSuccess() bool
- func (o *DeleteRingNotFound) String() string
- type DeleteRingParams
- func (o *DeleteRingParams) SetContext(ctx context.Context)
- func (o *DeleteRingParams) SetDefaults()
- func (o *DeleteRingParams) SetForceReload(forceReload *bool)
- func (o *DeleteRingParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRingParams) SetName(name string)
- func (o *DeleteRingParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRingParams) SetTransactionID(transactionID *string)
- func (o *DeleteRingParams) SetVersion(version *int64)
- func (o *DeleteRingParams) WithContext(ctx context.Context) *DeleteRingParams
- func (o *DeleteRingParams) WithDefaults() *DeleteRingParams
- func (o *DeleteRingParams) WithForceReload(forceReload *bool) *DeleteRingParams
- func (o *DeleteRingParams) WithHTTPClient(client *http.Client) *DeleteRingParams
- func (o *DeleteRingParams) WithName(name string) *DeleteRingParams
- func (o *DeleteRingParams) WithTimeout(timeout time.Duration) *DeleteRingParams
- func (o *DeleteRingParams) WithTransactionID(transactionID *string) *DeleteRingParams
- func (o *DeleteRingParams) WithVersion(version *int64) *DeleteRingParams
- func (o *DeleteRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRingReader
- type GetRingDefault
- func (o *GetRingDefault) Code() int
- func (o *GetRingDefault) Error() string
- func (o *GetRingDefault) GetPayload() *models.Error
- func (o *GetRingDefault) IsClientError() bool
- func (o *GetRingDefault) IsCode(code int) bool
- func (o *GetRingDefault) IsRedirect() bool
- func (o *GetRingDefault) IsServerError() bool
- func (o *GetRingDefault) IsSuccess() bool
- func (o *GetRingDefault) String() string
- type GetRingNotFound
- func (o *GetRingNotFound) Code() int
- func (o *GetRingNotFound) Error() string
- func (o *GetRingNotFound) GetPayload() *models.Error
- func (o *GetRingNotFound) IsClientError() bool
- func (o *GetRingNotFound) IsCode(code int) bool
- func (o *GetRingNotFound) IsRedirect() bool
- func (o *GetRingNotFound) IsServerError() bool
- func (o *GetRingNotFound) IsSuccess() bool
- func (o *GetRingNotFound) String() string
- type GetRingOK
- func (o *GetRingOK) Code() int
- func (o *GetRingOK) Error() string
- func (o *GetRingOK) GetPayload() *GetRingOKBody
- func (o *GetRingOK) IsClientError() bool
- func (o *GetRingOK) IsCode(code int) bool
- func (o *GetRingOK) IsRedirect() bool
- func (o *GetRingOK) IsServerError() bool
- func (o *GetRingOK) IsSuccess() bool
- func (o *GetRingOK) String() string
- type GetRingOKBody
- type GetRingParams
- func (o *GetRingParams) SetContext(ctx context.Context)
- func (o *GetRingParams) SetDefaults()
- func (o *GetRingParams) SetHTTPClient(client *http.Client)
- func (o *GetRingParams) SetName(name string)
- func (o *GetRingParams) SetTimeout(timeout time.Duration)
- func (o *GetRingParams) SetTransactionID(transactionID *string)
- func (o *GetRingParams) WithContext(ctx context.Context) *GetRingParams
- func (o *GetRingParams) WithDefaults() *GetRingParams
- func (o *GetRingParams) WithHTTPClient(client *http.Client) *GetRingParams
- func (o *GetRingParams) WithName(name string) *GetRingParams
- func (o *GetRingParams) WithTimeout(timeout time.Duration) *GetRingParams
- func (o *GetRingParams) WithTransactionID(transactionID *string) *GetRingParams
- func (o *GetRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRingReader
- type GetRingsDefault
- func (o *GetRingsDefault) Code() int
- func (o *GetRingsDefault) Error() string
- func (o *GetRingsDefault) GetPayload() *models.Error
- func (o *GetRingsDefault) IsClientError() bool
- func (o *GetRingsDefault) IsCode(code int) bool
- func (o *GetRingsDefault) IsRedirect() bool
- func (o *GetRingsDefault) IsServerError() bool
- func (o *GetRingsDefault) IsSuccess() bool
- func (o *GetRingsDefault) String() string
- type GetRingsOK
- func (o *GetRingsOK) Code() int
- func (o *GetRingsOK) Error() string
- func (o *GetRingsOK) GetPayload() *GetRingsOKBody
- func (o *GetRingsOK) IsClientError() bool
- func (o *GetRingsOK) IsCode(code int) bool
- func (o *GetRingsOK) IsRedirect() bool
- func (o *GetRingsOK) IsServerError() bool
- func (o *GetRingsOK) IsSuccess() bool
- func (o *GetRingsOK) String() string
- type GetRingsOKBody
- type GetRingsParams
- func (o *GetRingsParams) SetContext(ctx context.Context)
- func (o *GetRingsParams) SetDefaults()
- func (o *GetRingsParams) SetHTTPClient(client *http.Client)
- func (o *GetRingsParams) SetTimeout(timeout time.Duration)
- func (o *GetRingsParams) SetTransactionID(transactionID *string)
- func (o *GetRingsParams) WithContext(ctx context.Context) *GetRingsParams
- func (o *GetRingsParams) WithDefaults() *GetRingsParams
- func (o *GetRingsParams) WithHTTPClient(client *http.Client) *GetRingsParams
- func (o *GetRingsParams) WithTimeout(timeout time.Duration) *GetRingsParams
- func (o *GetRingsParams) WithTransactionID(transactionID *string) *GetRingsParams
- func (o *GetRingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRingsReader
- type ReplaceRingAccepted
- func (o *ReplaceRingAccepted) Code() int
- func (o *ReplaceRingAccepted) Error() string
- func (o *ReplaceRingAccepted) GetPayload() *models.Ring
- func (o *ReplaceRingAccepted) IsClientError() bool
- func (o *ReplaceRingAccepted) IsCode(code int) bool
- func (o *ReplaceRingAccepted) IsRedirect() bool
- func (o *ReplaceRingAccepted) IsServerError() bool
- func (o *ReplaceRingAccepted) IsSuccess() bool
- func (o *ReplaceRingAccepted) String() string
- type ReplaceRingBadRequest
- func (o *ReplaceRingBadRequest) Code() int
- func (o *ReplaceRingBadRequest) Error() string
- func (o *ReplaceRingBadRequest) GetPayload() *models.Error
- func (o *ReplaceRingBadRequest) IsClientError() bool
- func (o *ReplaceRingBadRequest) IsCode(code int) bool
- func (o *ReplaceRingBadRequest) IsRedirect() bool
- func (o *ReplaceRingBadRequest) IsServerError() bool
- func (o *ReplaceRingBadRequest) IsSuccess() bool
- func (o *ReplaceRingBadRequest) String() string
- type ReplaceRingDefault
- func (o *ReplaceRingDefault) Code() int
- func (o *ReplaceRingDefault) Error() string
- func (o *ReplaceRingDefault) GetPayload() *models.Error
- func (o *ReplaceRingDefault) IsClientError() bool
- func (o *ReplaceRingDefault) IsCode(code int) bool
- func (o *ReplaceRingDefault) IsRedirect() bool
- func (o *ReplaceRingDefault) IsServerError() bool
- func (o *ReplaceRingDefault) IsSuccess() bool
- func (o *ReplaceRingDefault) String() string
- type ReplaceRingNotFound
- func (o *ReplaceRingNotFound) Code() int
- func (o *ReplaceRingNotFound) Error() string
- func (o *ReplaceRingNotFound) GetPayload() *models.Error
- func (o *ReplaceRingNotFound) IsClientError() bool
- func (o *ReplaceRingNotFound) IsCode(code int) bool
- func (o *ReplaceRingNotFound) IsRedirect() bool
- func (o *ReplaceRingNotFound) IsServerError() bool
- func (o *ReplaceRingNotFound) IsSuccess() bool
- func (o *ReplaceRingNotFound) String() string
- type ReplaceRingOK
- func (o *ReplaceRingOK) Code() int
- func (o *ReplaceRingOK) Error() string
- func (o *ReplaceRingOK) GetPayload() *models.Ring
- func (o *ReplaceRingOK) IsClientError() bool
- func (o *ReplaceRingOK) IsCode(code int) bool
- func (o *ReplaceRingOK) IsRedirect() bool
- func (o *ReplaceRingOK) IsServerError() bool
- func (o *ReplaceRingOK) IsSuccess() bool
- func (o *ReplaceRingOK) String() string
- type ReplaceRingParams
- func (o *ReplaceRingParams) SetContext(ctx context.Context)
- func (o *ReplaceRingParams) SetData(data *models.Ring)
- func (o *ReplaceRingParams) SetDefaults()
- func (o *ReplaceRingParams) SetForceReload(forceReload *bool)
- func (o *ReplaceRingParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceRingParams) SetName(name string)
- func (o *ReplaceRingParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceRingParams) SetTransactionID(transactionID *string)
- func (o *ReplaceRingParams) SetVersion(version *int64)
- func (o *ReplaceRingParams) WithContext(ctx context.Context) *ReplaceRingParams
- func (o *ReplaceRingParams) WithData(data *models.Ring) *ReplaceRingParams
- func (o *ReplaceRingParams) WithDefaults() *ReplaceRingParams
- func (o *ReplaceRingParams) WithForceReload(forceReload *bool) *ReplaceRingParams
- func (o *ReplaceRingParams) WithHTTPClient(client *http.Client) *ReplaceRingParams
- func (o *ReplaceRingParams) WithName(name string) *ReplaceRingParams
- func (o *ReplaceRingParams) WithTimeout(timeout time.Duration) *ReplaceRingParams
- func (o *ReplaceRingParams) WithTransactionID(transactionID *string) *ReplaceRingParams
- func (o *ReplaceRingParams) WithVersion(version *int64) *ReplaceRingParams
- func (o *ReplaceRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceRingReader
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 ring API
func (*Client) CreateRing ¶
func (a *Client) CreateRing(params *CreateRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRingCreated, *CreateRingAccepted, error)
CreateRing adds a ring
Adds a new ring to the configuration file.
func (*Client) DeleteRing ¶
func (a *Client) DeleteRing(params *DeleteRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRingAccepted, *DeleteRingNoContent, error)
DeleteRing deletes a ring
Deletes a ring from the configuration by it's name.
func (*Client) GetRing ¶
func (a *Client) GetRing(params *GetRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRingOK, error)
GetRing returns a ring
Returns one ring configuration by it's name.
func (*Client) GetRings ¶
func (a *Client) GetRings(params *GetRingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRingsOK, error)
GetRings returns an array of rings
Returns an array of all configured rings.
func (*Client) ReplaceRing ¶
func (a *Client) ReplaceRing(params *ReplaceRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceRingOK, *ReplaceRingAccepted, error)
ReplaceRing replaces a ring
Replaces a ring configuration by it's name.
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 { CreateRing(params *CreateRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRingCreated, *CreateRingAccepted, error) DeleteRing(params *DeleteRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRingAccepted, *DeleteRingNoContent, error) GetRing(params *GetRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRingOK, error) GetRings(params *GetRingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRingsOK, error) ReplaceRing(params *ReplaceRingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceRingOK, *ReplaceRingAccepted, 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 ring API client.
type CreateRingAccepted ¶
type CreateRingAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Ring }
CreateRingAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewCreateRingAccepted ¶
func NewCreateRingAccepted() *CreateRingAccepted
NewCreateRingAccepted creates a CreateRingAccepted with default headers values
func (*CreateRingAccepted) Code ¶ added in v1.1.5
func (o *CreateRingAccepted) Code() int
Code gets the status code for the create ring accepted response
func (*CreateRingAccepted) Error ¶
func (o *CreateRingAccepted) Error() string
func (*CreateRingAccepted) GetPayload ¶
func (o *CreateRingAccepted) GetPayload() *models.Ring
func (*CreateRingAccepted) IsClientError ¶ added in v1.1.0
func (o *CreateRingAccepted) IsClientError() bool
IsClientError returns true when this create ring accepted response has a 4xx status code
func (*CreateRingAccepted) IsCode ¶ added in v1.1.0
func (o *CreateRingAccepted) IsCode(code int) bool
IsCode returns true when this create ring accepted response a status code equal to that given
func (*CreateRingAccepted) IsRedirect ¶ added in v1.1.0
func (o *CreateRingAccepted) IsRedirect() bool
IsRedirect returns true when this create ring accepted response has a 3xx status code
func (*CreateRingAccepted) IsServerError ¶ added in v1.1.0
func (o *CreateRingAccepted) IsServerError() bool
IsServerError returns true when this create ring accepted response has a 5xx status code
func (*CreateRingAccepted) IsSuccess ¶ added in v1.1.0
func (o *CreateRingAccepted) IsSuccess() bool
IsSuccess returns true when this create ring accepted response has a 2xx status code
func (*CreateRingAccepted) String ¶ added in v1.1.0
func (o *CreateRingAccepted) String() string
type CreateRingBadRequest ¶
type CreateRingBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateRingBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateRingBadRequest ¶
func NewCreateRingBadRequest() *CreateRingBadRequest
NewCreateRingBadRequest creates a CreateRingBadRequest with default headers values
func (*CreateRingBadRequest) Code ¶ added in v1.1.5
func (o *CreateRingBadRequest) Code() int
Code gets the status code for the create ring bad request response
func (*CreateRingBadRequest) Error ¶
func (o *CreateRingBadRequest) Error() string
func (*CreateRingBadRequest) GetPayload ¶
func (o *CreateRingBadRequest) GetPayload() *models.Error
func (*CreateRingBadRequest) IsClientError ¶ added in v1.1.0
func (o *CreateRingBadRequest) IsClientError() bool
IsClientError returns true when this create ring bad request response has a 4xx status code
func (*CreateRingBadRequest) IsCode ¶ added in v1.1.0
func (o *CreateRingBadRequest) IsCode(code int) bool
IsCode returns true when this create ring bad request response a status code equal to that given
func (*CreateRingBadRequest) IsRedirect ¶ added in v1.1.0
func (o *CreateRingBadRequest) IsRedirect() bool
IsRedirect returns true when this create ring bad request response has a 3xx status code
func (*CreateRingBadRequest) IsServerError ¶ added in v1.1.0
func (o *CreateRingBadRequest) IsServerError() bool
IsServerError returns true when this create ring bad request response has a 5xx status code
func (*CreateRingBadRequest) IsSuccess ¶ added in v1.1.0
func (o *CreateRingBadRequest) IsSuccess() bool
IsSuccess returns true when this create ring bad request response has a 2xx status code
func (*CreateRingBadRequest) String ¶ added in v1.1.0
func (o *CreateRingBadRequest) String() string
type CreateRingConflict ¶
type CreateRingConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateRingConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateRingConflict ¶
func NewCreateRingConflict() *CreateRingConflict
NewCreateRingConflict creates a CreateRingConflict with default headers values
func (*CreateRingConflict) Code ¶ added in v1.1.5
func (o *CreateRingConflict) Code() int
Code gets the status code for the create ring conflict response
func (*CreateRingConflict) Error ¶
func (o *CreateRingConflict) Error() string
func (*CreateRingConflict) GetPayload ¶
func (o *CreateRingConflict) GetPayload() *models.Error
func (*CreateRingConflict) IsClientError ¶ added in v1.1.0
func (o *CreateRingConflict) IsClientError() bool
IsClientError returns true when this create ring conflict response has a 4xx status code
func (*CreateRingConflict) IsCode ¶ added in v1.1.0
func (o *CreateRingConflict) IsCode(code int) bool
IsCode returns true when this create ring conflict response a status code equal to that given
func (*CreateRingConflict) IsRedirect ¶ added in v1.1.0
func (o *CreateRingConflict) IsRedirect() bool
IsRedirect returns true when this create ring conflict response has a 3xx status code
func (*CreateRingConflict) IsServerError ¶ added in v1.1.0
func (o *CreateRingConflict) IsServerError() bool
IsServerError returns true when this create ring conflict response has a 5xx status code
func (*CreateRingConflict) IsSuccess ¶ added in v1.1.0
func (o *CreateRingConflict) IsSuccess() bool
IsSuccess returns true when this create ring conflict response has a 2xx status code
func (*CreateRingConflict) String ¶ added in v1.1.0
func (o *CreateRingConflict) String() string
type CreateRingCreated ¶
CreateRingCreated describes a response with status code 201, with default header values.
Ring created
func NewCreateRingCreated ¶
func NewCreateRingCreated() *CreateRingCreated
NewCreateRingCreated creates a CreateRingCreated with default headers values
func (*CreateRingCreated) Code ¶ added in v1.1.5
func (o *CreateRingCreated) Code() int
Code gets the status code for the create ring created response
func (*CreateRingCreated) Error ¶
func (o *CreateRingCreated) Error() string
func (*CreateRingCreated) GetPayload ¶
func (o *CreateRingCreated) GetPayload() *models.Ring
func (*CreateRingCreated) IsClientError ¶ added in v1.1.0
func (o *CreateRingCreated) IsClientError() bool
IsClientError returns true when this create ring created response has a 4xx status code
func (*CreateRingCreated) IsCode ¶ added in v1.1.0
func (o *CreateRingCreated) IsCode(code int) bool
IsCode returns true when this create ring created response a status code equal to that given
func (*CreateRingCreated) IsRedirect ¶ added in v1.1.0
func (o *CreateRingCreated) IsRedirect() bool
IsRedirect returns true when this create ring created response has a 3xx status code
func (*CreateRingCreated) IsServerError ¶ added in v1.1.0
func (o *CreateRingCreated) IsServerError() bool
IsServerError returns true when this create ring created response has a 5xx status code
func (*CreateRingCreated) IsSuccess ¶ added in v1.1.0
func (o *CreateRingCreated) IsSuccess() bool
IsSuccess returns true when this create ring created response has a 2xx status code
func (*CreateRingCreated) String ¶ added in v1.1.0
func (o *CreateRingCreated) String() string
type CreateRingDefault ¶
type CreateRingDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateRingDefault describes a response with status code -1, with default header values.
General Error
func NewCreateRingDefault ¶
func NewCreateRingDefault(code int) *CreateRingDefault
NewCreateRingDefault creates a CreateRingDefault with default headers values
func (*CreateRingDefault) Code ¶
func (o *CreateRingDefault) Code() int
Code gets the status code for the create ring default response
func (*CreateRingDefault) Error ¶
func (o *CreateRingDefault) Error() string
func (*CreateRingDefault) GetPayload ¶
func (o *CreateRingDefault) GetPayload() *models.Error
func (*CreateRingDefault) IsClientError ¶ added in v1.1.0
func (o *CreateRingDefault) IsClientError() bool
IsClientError returns true when this create ring default response has a 4xx status code
func (*CreateRingDefault) IsCode ¶ added in v1.1.0
func (o *CreateRingDefault) IsCode(code int) bool
IsCode returns true when this create ring default response a status code equal to that given
func (*CreateRingDefault) IsRedirect ¶ added in v1.1.0
func (o *CreateRingDefault) IsRedirect() bool
IsRedirect returns true when this create ring default response has a 3xx status code
func (*CreateRingDefault) IsServerError ¶ added in v1.1.0
func (o *CreateRingDefault) IsServerError() bool
IsServerError returns true when this create ring default response has a 5xx status code
func (*CreateRingDefault) IsSuccess ¶ added in v1.1.0
func (o *CreateRingDefault) IsSuccess() bool
IsSuccess returns true when this create ring default response has a 2xx status code
func (*CreateRingDefault) String ¶ added in v1.1.0
func (o *CreateRingDefault) String() string
type CreateRingParams ¶
type CreateRingParams struct { // Data. Data *models.Ring /* 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 /* 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 }
CreateRingParams contains all the parameters to send to the API endpoint
for the create ring operation. Typically these are written to a http.Request.
func NewCreateRingParams ¶
func NewCreateRingParams() *CreateRingParams
NewCreateRingParams creates a new CreateRingParams 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 NewCreateRingParamsWithContext ¶
func NewCreateRingParamsWithContext(ctx context.Context) *CreateRingParams
NewCreateRingParamsWithContext creates a new CreateRingParams object with the ability to set a context for a request.
func NewCreateRingParamsWithHTTPClient ¶
func NewCreateRingParamsWithHTTPClient(client *http.Client) *CreateRingParams
NewCreateRingParamsWithHTTPClient creates a new CreateRingParams object with the ability to set a custom HTTPClient for a request.
func NewCreateRingParamsWithTimeout ¶
func NewCreateRingParamsWithTimeout(timeout time.Duration) *CreateRingParams
NewCreateRingParamsWithTimeout creates a new CreateRingParams object with the ability to set a timeout on a request.
func (*CreateRingParams) SetContext ¶
func (o *CreateRingParams) SetContext(ctx context.Context)
SetContext adds the context to the create ring params
func (*CreateRingParams) SetData ¶
func (o *CreateRingParams) SetData(data *models.Ring)
SetData adds the data to the create ring params
func (*CreateRingParams) SetDefaults ¶
func (o *CreateRingParams) SetDefaults()
SetDefaults hydrates default values in the create ring params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRingParams) SetForceReload ¶
func (o *CreateRingParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create ring params
func (*CreateRingParams) SetHTTPClient ¶
func (o *CreateRingParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create ring params
func (*CreateRingParams) SetTimeout ¶
func (o *CreateRingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create ring params
func (*CreateRingParams) SetTransactionID ¶
func (o *CreateRingParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create ring params
func (*CreateRingParams) SetVersion ¶
func (o *CreateRingParams) SetVersion(version *int64)
SetVersion adds the version to the create ring params
func (*CreateRingParams) WithContext ¶
func (o *CreateRingParams) WithContext(ctx context.Context) *CreateRingParams
WithContext adds the context to the create ring params
func (*CreateRingParams) WithData ¶
func (o *CreateRingParams) WithData(data *models.Ring) *CreateRingParams
WithData adds the data to the create ring params
func (*CreateRingParams) WithDefaults ¶
func (o *CreateRingParams) WithDefaults() *CreateRingParams
WithDefaults hydrates default values in the create ring params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRingParams) WithForceReload ¶
func (o *CreateRingParams) WithForceReload(forceReload *bool) *CreateRingParams
WithForceReload adds the forceReload to the create ring params
func (*CreateRingParams) WithHTTPClient ¶
func (o *CreateRingParams) WithHTTPClient(client *http.Client) *CreateRingParams
WithHTTPClient adds the HTTPClient to the create ring params
func (*CreateRingParams) WithTimeout ¶
func (o *CreateRingParams) WithTimeout(timeout time.Duration) *CreateRingParams
WithTimeout adds the timeout to the create ring params
func (*CreateRingParams) WithTransactionID ¶
func (o *CreateRingParams) WithTransactionID(transactionID *string) *CreateRingParams
WithTransactionID adds the transactionID to the create ring params
func (*CreateRingParams) WithVersion ¶
func (o *CreateRingParams) WithVersion(version *int64) *CreateRingParams
WithVersion adds the version to the create ring params
func (*CreateRingParams) WriteToRequest ¶
func (o *CreateRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateRingReader ¶
type CreateRingReader struct {
// contains filtered or unexported fields
}
CreateRingReader is a Reader for the CreateRing structure.
func (*CreateRingReader) ReadResponse ¶
func (o *CreateRingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteRingAccepted ¶
type DeleteRingAccepted struct { /* ID of the requested reload */ ReloadID string }
DeleteRingAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewDeleteRingAccepted ¶
func NewDeleteRingAccepted() *DeleteRingAccepted
NewDeleteRingAccepted creates a DeleteRingAccepted with default headers values
func (*DeleteRingAccepted) Code ¶ added in v1.1.5
func (o *DeleteRingAccepted) Code() int
Code gets the status code for the delete ring accepted response
func (*DeleteRingAccepted) Error ¶
func (o *DeleteRingAccepted) Error() string
func (*DeleteRingAccepted) IsClientError ¶ added in v1.1.0
func (o *DeleteRingAccepted) IsClientError() bool
IsClientError returns true when this delete ring accepted response has a 4xx status code
func (*DeleteRingAccepted) IsCode ¶ added in v1.1.0
func (o *DeleteRingAccepted) IsCode(code int) bool
IsCode returns true when this delete ring accepted response a status code equal to that given
func (*DeleteRingAccepted) IsRedirect ¶ added in v1.1.0
func (o *DeleteRingAccepted) IsRedirect() bool
IsRedirect returns true when this delete ring accepted response has a 3xx status code
func (*DeleteRingAccepted) IsServerError ¶ added in v1.1.0
func (o *DeleteRingAccepted) IsServerError() bool
IsServerError returns true when this delete ring accepted response has a 5xx status code
func (*DeleteRingAccepted) IsSuccess ¶ added in v1.1.0
func (o *DeleteRingAccepted) IsSuccess() bool
IsSuccess returns true when this delete ring accepted response has a 2xx status code
func (*DeleteRingAccepted) String ¶ added in v1.1.0
func (o *DeleteRingAccepted) String() string
type DeleteRingDefault ¶
type DeleteRingDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteRingDefault describes a response with status code -1, with default header values.
General Error
func NewDeleteRingDefault ¶
func NewDeleteRingDefault(code int) *DeleteRingDefault
NewDeleteRingDefault creates a DeleteRingDefault with default headers values
func (*DeleteRingDefault) Code ¶
func (o *DeleteRingDefault) Code() int
Code gets the status code for the delete ring default response
func (*DeleteRingDefault) Error ¶
func (o *DeleteRingDefault) Error() string
func (*DeleteRingDefault) GetPayload ¶
func (o *DeleteRingDefault) GetPayload() *models.Error
func (*DeleteRingDefault) IsClientError ¶ added in v1.1.0
func (o *DeleteRingDefault) IsClientError() bool
IsClientError returns true when this delete ring default response has a 4xx status code
func (*DeleteRingDefault) IsCode ¶ added in v1.1.0
func (o *DeleteRingDefault) IsCode(code int) bool
IsCode returns true when this delete ring default response a status code equal to that given
func (*DeleteRingDefault) IsRedirect ¶ added in v1.1.0
func (o *DeleteRingDefault) IsRedirect() bool
IsRedirect returns true when this delete ring default response has a 3xx status code
func (*DeleteRingDefault) IsServerError ¶ added in v1.1.0
func (o *DeleteRingDefault) IsServerError() bool
IsServerError returns true when this delete ring default response has a 5xx status code
func (*DeleteRingDefault) IsSuccess ¶ added in v1.1.0
func (o *DeleteRingDefault) IsSuccess() bool
IsSuccess returns true when this delete ring default response has a 2xx status code
func (*DeleteRingDefault) String ¶ added in v1.1.0
func (o *DeleteRingDefault) String() string
type DeleteRingNoContent ¶
type DeleteRingNoContent struct { }
DeleteRingNoContent describes a response with status code 204, with default header values.
Ring deleted
func NewDeleteRingNoContent ¶
func NewDeleteRingNoContent() *DeleteRingNoContent
NewDeleteRingNoContent creates a DeleteRingNoContent with default headers values
func (*DeleteRingNoContent) Code ¶ added in v1.1.5
func (o *DeleteRingNoContent) Code() int
Code gets the status code for the delete ring no content response
func (*DeleteRingNoContent) Error ¶
func (o *DeleteRingNoContent) Error() string
func (*DeleteRingNoContent) IsClientError ¶ added in v1.1.0
func (o *DeleteRingNoContent) IsClientError() bool
IsClientError returns true when this delete ring no content response has a 4xx status code
func (*DeleteRingNoContent) IsCode ¶ added in v1.1.0
func (o *DeleteRingNoContent) IsCode(code int) bool
IsCode returns true when this delete ring no content response a status code equal to that given
func (*DeleteRingNoContent) IsRedirect ¶ added in v1.1.0
func (o *DeleteRingNoContent) IsRedirect() bool
IsRedirect returns true when this delete ring no content response has a 3xx status code
func (*DeleteRingNoContent) IsServerError ¶ added in v1.1.0
func (o *DeleteRingNoContent) IsServerError() bool
IsServerError returns true when this delete ring no content response has a 5xx status code
func (*DeleteRingNoContent) IsSuccess ¶ added in v1.1.0
func (o *DeleteRingNoContent) IsSuccess() bool
IsSuccess returns true when this delete ring no content response has a 2xx status code
func (*DeleteRingNoContent) String ¶ added in v1.1.0
func (o *DeleteRingNoContent) String() string
type DeleteRingNotFound ¶
type DeleteRingNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteRingNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewDeleteRingNotFound ¶
func NewDeleteRingNotFound() *DeleteRingNotFound
NewDeleteRingNotFound creates a DeleteRingNotFound with default headers values
func (*DeleteRingNotFound) Code ¶ added in v1.1.5
func (o *DeleteRingNotFound) Code() int
Code gets the status code for the delete ring not found response
func (*DeleteRingNotFound) Error ¶
func (o *DeleteRingNotFound) Error() string
func (*DeleteRingNotFound) GetPayload ¶
func (o *DeleteRingNotFound) GetPayload() *models.Error
func (*DeleteRingNotFound) IsClientError ¶ added in v1.1.0
func (o *DeleteRingNotFound) IsClientError() bool
IsClientError returns true when this delete ring not found response has a 4xx status code
func (*DeleteRingNotFound) IsCode ¶ added in v1.1.0
func (o *DeleteRingNotFound) IsCode(code int) bool
IsCode returns true when this delete ring not found response a status code equal to that given
func (*DeleteRingNotFound) IsRedirect ¶ added in v1.1.0
func (o *DeleteRingNotFound) IsRedirect() bool
IsRedirect returns true when this delete ring not found response has a 3xx status code
func (*DeleteRingNotFound) IsServerError ¶ added in v1.1.0
func (o *DeleteRingNotFound) IsServerError() bool
IsServerError returns true when this delete ring not found response has a 5xx status code
func (*DeleteRingNotFound) IsSuccess ¶ added in v1.1.0
func (o *DeleteRingNotFound) IsSuccess() bool
IsSuccess returns true when this delete ring not found response has a 2xx status code
func (*DeleteRingNotFound) String ¶ added in v1.1.0
func (o *DeleteRingNotFound) String() string
type DeleteRingParams ¶
type DeleteRingParams 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. Ring name */ Name 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 }
DeleteRingParams contains all the parameters to send to the API endpoint
for the delete ring operation. Typically these are written to a http.Request.
func NewDeleteRingParams ¶
func NewDeleteRingParams() *DeleteRingParams
NewDeleteRingParams creates a new DeleteRingParams 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 NewDeleteRingParamsWithContext ¶
func NewDeleteRingParamsWithContext(ctx context.Context) *DeleteRingParams
NewDeleteRingParamsWithContext creates a new DeleteRingParams object with the ability to set a context for a request.
func NewDeleteRingParamsWithHTTPClient ¶
func NewDeleteRingParamsWithHTTPClient(client *http.Client) *DeleteRingParams
NewDeleteRingParamsWithHTTPClient creates a new DeleteRingParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRingParamsWithTimeout ¶
func NewDeleteRingParamsWithTimeout(timeout time.Duration) *DeleteRingParams
NewDeleteRingParamsWithTimeout creates a new DeleteRingParams object with the ability to set a timeout on a request.
func (*DeleteRingParams) SetContext ¶
func (o *DeleteRingParams) SetContext(ctx context.Context)
SetContext adds the context to the delete ring params
func (*DeleteRingParams) SetDefaults ¶
func (o *DeleteRingParams) SetDefaults()
SetDefaults hydrates default values in the delete ring params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRingParams) SetForceReload ¶
func (o *DeleteRingParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete ring params
func (*DeleteRingParams) SetHTTPClient ¶
func (o *DeleteRingParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete ring params
func (*DeleteRingParams) SetName ¶
func (o *DeleteRingParams) SetName(name string)
SetName adds the name to the delete ring params
func (*DeleteRingParams) SetTimeout ¶
func (o *DeleteRingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete ring params
func (*DeleteRingParams) SetTransactionID ¶
func (o *DeleteRingParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete ring params
func (*DeleteRingParams) SetVersion ¶
func (o *DeleteRingParams) SetVersion(version *int64)
SetVersion adds the version to the delete ring params
func (*DeleteRingParams) WithContext ¶
func (o *DeleteRingParams) WithContext(ctx context.Context) *DeleteRingParams
WithContext adds the context to the delete ring params
func (*DeleteRingParams) WithDefaults ¶
func (o *DeleteRingParams) WithDefaults() *DeleteRingParams
WithDefaults hydrates default values in the delete ring params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRingParams) WithForceReload ¶
func (o *DeleteRingParams) WithForceReload(forceReload *bool) *DeleteRingParams
WithForceReload adds the forceReload to the delete ring params
func (*DeleteRingParams) WithHTTPClient ¶
func (o *DeleteRingParams) WithHTTPClient(client *http.Client) *DeleteRingParams
WithHTTPClient adds the HTTPClient to the delete ring params
func (*DeleteRingParams) WithName ¶
func (o *DeleteRingParams) WithName(name string) *DeleteRingParams
WithName adds the name to the delete ring params
func (*DeleteRingParams) WithTimeout ¶
func (o *DeleteRingParams) WithTimeout(timeout time.Duration) *DeleteRingParams
WithTimeout adds the timeout to the delete ring params
func (*DeleteRingParams) WithTransactionID ¶
func (o *DeleteRingParams) WithTransactionID(transactionID *string) *DeleteRingParams
WithTransactionID adds the transactionID to the delete ring params
func (*DeleteRingParams) WithVersion ¶
func (o *DeleteRingParams) WithVersion(version *int64) *DeleteRingParams
WithVersion adds the version to the delete ring params
func (*DeleteRingParams) WriteToRequest ¶
func (o *DeleteRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRingReader ¶
type DeleteRingReader struct {
// contains filtered or unexported fields
}
DeleteRingReader is a Reader for the DeleteRing structure.
func (*DeleteRingReader) ReadResponse ¶
func (o *DeleteRingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRingDefault ¶
type GetRingDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetRingDefault describes a response with status code -1, with default header values.
General Error
func NewGetRingDefault ¶
func NewGetRingDefault(code int) *GetRingDefault
NewGetRingDefault creates a GetRingDefault with default headers values
func (*GetRingDefault) Code ¶
func (o *GetRingDefault) Code() int
Code gets the status code for the get ring default response
func (*GetRingDefault) Error ¶
func (o *GetRingDefault) Error() string
func (*GetRingDefault) GetPayload ¶
func (o *GetRingDefault) GetPayload() *models.Error
func (*GetRingDefault) IsClientError ¶ added in v1.1.0
func (o *GetRingDefault) IsClientError() bool
IsClientError returns true when this get ring default response has a 4xx status code
func (*GetRingDefault) IsCode ¶ added in v1.1.0
func (o *GetRingDefault) IsCode(code int) bool
IsCode returns true when this get ring default response a status code equal to that given
func (*GetRingDefault) IsRedirect ¶ added in v1.1.0
func (o *GetRingDefault) IsRedirect() bool
IsRedirect returns true when this get ring default response has a 3xx status code
func (*GetRingDefault) IsServerError ¶ added in v1.1.0
func (o *GetRingDefault) IsServerError() bool
IsServerError returns true when this get ring default response has a 5xx status code
func (*GetRingDefault) IsSuccess ¶ added in v1.1.0
func (o *GetRingDefault) IsSuccess() bool
IsSuccess returns true when this get ring default response has a 2xx status code
func (*GetRingDefault) String ¶ added in v1.1.0
func (o *GetRingDefault) String() string
type GetRingNotFound ¶
type GetRingNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetRingNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewGetRingNotFound ¶
func NewGetRingNotFound() *GetRingNotFound
NewGetRingNotFound creates a GetRingNotFound with default headers values
func (*GetRingNotFound) Code ¶ added in v1.1.5
func (o *GetRingNotFound) Code() int
Code gets the status code for the get ring not found response
func (*GetRingNotFound) Error ¶
func (o *GetRingNotFound) Error() string
func (*GetRingNotFound) GetPayload ¶
func (o *GetRingNotFound) GetPayload() *models.Error
func (*GetRingNotFound) IsClientError ¶ added in v1.1.0
func (o *GetRingNotFound) IsClientError() bool
IsClientError returns true when this get ring not found response has a 4xx status code
func (*GetRingNotFound) IsCode ¶ added in v1.1.0
func (o *GetRingNotFound) IsCode(code int) bool
IsCode returns true when this get ring not found response a status code equal to that given
func (*GetRingNotFound) IsRedirect ¶ added in v1.1.0
func (o *GetRingNotFound) IsRedirect() bool
IsRedirect returns true when this get ring not found response has a 3xx status code
func (*GetRingNotFound) IsServerError ¶ added in v1.1.0
func (o *GetRingNotFound) IsServerError() bool
IsServerError returns true when this get ring not found response has a 5xx status code
func (*GetRingNotFound) IsSuccess ¶ added in v1.1.0
func (o *GetRingNotFound) IsSuccess() bool
IsSuccess returns true when this get ring not found response has a 2xx status code
func (*GetRingNotFound) String ¶ added in v1.1.0
func (o *GetRingNotFound) String() string
type GetRingOK ¶
type GetRingOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetRingOKBody }
GetRingOK describes a response with status code 200, with default header values.
Successful operation
func NewGetRingOK ¶
func NewGetRingOK() *GetRingOK
NewGetRingOK creates a GetRingOK with default headers values
func (*GetRingOK) GetPayload ¶
func (o *GetRingOK) GetPayload() *GetRingOKBody
func (*GetRingOK) IsClientError ¶ added in v1.1.0
IsClientError returns true when this get ring o k response has a 4xx status code
func (*GetRingOK) IsCode ¶ added in v1.1.0
IsCode returns true when this get ring o k response a status code equal to that given
func (*GetRingOK) IsRedirect ¶ added in v1.1.0
IsRedirect returns true when this get ring o k response has a 3xx status code
func (*GetRingOK) IsServerError ¶ added in v1.1.0
IsServerError returns true when this get ring o k response has a 5xx status code
type GetRingOKBody ¶
type GetRingOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Ring `json:"data,omitempty"` }
GetRingOKBody get ring o k body swagger:model GetRingOKBody
func (*GetRingOKBody) ContextValidate ¶
ContextValidate validate this get ring o k body based on the context it is used
func (*GetRingOKBody) MarshalBinary ¶
func (o *GetRingOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRingOKBody) UnmarshalBinary ¶
func (o *GetRingOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRingParams ¶
type GetRingParams struct { /* Name. Ring name */ Name 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 }
GetRingParams contains all the parameters to send to the API endpoint
for the get ring operation. Typically these are written to a http.Request.
func NewGetRingParams ¶
func NewGetRingParams() *GetRingParams
NewGetRingParams creates a new GetRingParams 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 NewGetRingParamsWithContext ¶
func NewGetRingParamsWithContext(ctx context.Context) *GetRingParams
NewGetRingParamsWithContext creates a new GetRingParams object with the ability to set a context for a request.
func NewGetRingParamsWithHTTPClient ¶
func NewGetRingParamsWithHTTPClient(client *http.Client) *GetRingParams
NewGetRingParamsWithHTTPClient creates a new GetRingParams object with the ability to set a custom HTTPClient for a request.
func NewGetRingParamsWithTimeout ¶
func NewGetRingParamsWithTimeout(timeout time.Duration) *GetRingParams
NewGetRingParamsWithTimeout creates a new GetRingParams object with the ability to set a timeout on a request.
func (*GetRingParams) SetContext ¶
func (o *GetRingParams) SetContext(ctx context.Context)
SetContext adds the context to the get ring params
func (*GetRingParams) SetDefaults ¶
func (o *GetRingParams) SetDefaults()
SetDefaults hydrates default values in the get ring params (not the query body).
All values with no default are reset to their zero value.
func (*GetRingParams) SetHTTPClient ¶
func (o *GetRingParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get ring params
func (*GetRingParams) SetName ¶
func (o *GetRingParams) SetName(name string)
SetName adds the name to the get ring params
func (*GetRingParams) SetTimeout ¶
func (o *GetRingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get ring params
func (*GetRingParams) SetTransactionID ¶
func (o *GetRingParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get ring params
func (*GetRingParams) WithContext ¶
func (o *GetRingParams) WithContext(ctx context.Context) *GetRingParams
WithContext adds the context to the get ring params
func (*GetRingParams) WithDefaults ¶
func (o *GetRingParams) WithDefaults() *GetRingParams
WithDefaults hydrates default values in the get ring params (not the query body).
All values with no default are reset to their zero value.
func (*GetRingParams) WithHTTPClient ¶
func (o *GetRingParams) WithHTTPClient(client *http.Client) *GetRingParams
WithHTTPClient adds the HTTPClient to the get ring params
func (*GetRingParams) WithName ¶
func (o *GetRingParams) WithName(name string) *GetRingParams
WithName adds the name to the get ring params
func (*GetRingParams) WithTimeout ¶
func (o *GetRingParams) WithTimeout(timeout time.Duration) *GetRingParams
WithTimeout adds the timeout to the get ring params
func (*GetRingParams) WithTransactionID ¶
func (o *GetRingParams) WithTransactionID(transactionID *string) *GetRingParams
WithTransactionID adds the transactionID to the get ring params
func (*GetRingParams) WriteToRequest ¶
func (o *GetRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRingReader ¶
type GetRingReader struct {
// contains filtered or unexported fields
}
GetRingReader is a Reader for the GetRing structure.
func (*GetRingReader) ReadResponse ¶
func (o *GetRingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRingsDefault ¶
type GetRingsDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetRingsDefault describes a response with status code -1, with default header values.
General Error
func NewGetRingsDefault ¶
func NewGetRingsDefault(code int) *GetRingsDefault
NewGetRingsDefault creates a GetRingsDefault with default headers values
func (*GetRingsDefault) Code ¶
func (o *GetRingsDefault) Code() int
Code gets the status code for the get rings default response
func (*GetRingsDefault) Error ¶
func (o *GetRingsDefault) Error() string
func (*GetRingsDefault) GetPayload ¶
func (o *GetRingsDefault) GetPayload() *models.Error
func (*GetRingsDefault) IsClientError ¶ added in v1.1.0
func (o *GetRingsDefault) IsClientError() bool
IsClientError returns true when this get rings default response has a 4xx status code
func (*GetRingsDefault) IsCode ¶ added in v1.1.0
func (o *GetRingsDefault) IsCode(code int) bool
IsCode returns true when this get rings default response a status code equal to that given
func (*GetRingsDefault) IsRedirect ¶ added in v1.1.0
func (o *GetRingsDefault) IsRedirect() bool
IsRedirect returns true when this get rings default response has a 3xx status code
func (*GetRingsDefault) IsServerError ¶ added in v1.1.0
func (o *GetRingsDefault) IsServerError() bool
IsServerError returns true when this get rings default response has a 5xx status code
func (*GetRingsDefault) IsSuccess ¶ added in v1.1.0
func (o *GetRingsDefault) IsSuccess() bool
IsSuccess returns true when this get rings default response has a 2xx status code
func (*GetRingsDefault) String ¶ added in v1.1.0
func (o *GetRingsDefault) String() string
type GetRingsOK ¶
type GetRingsOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetRingsOKBody }
GetRingsOK describes a response with status code 200, with default header values.
Successful operation
func NewGetRingsOK ¶
func NewGetRingsOK() *GetRingsOK
NewGetRingsOK creates a GetRingsOK with default headers values
func (*GetRingsOK) Code ¶ added in v1.1.5
func (o *GetRingsOK) Code() int
Code gets the status code for the get rings o k response
func (*GetRingsOK) Error ¶
func (o *GetRingsOK) Error() string
func (*GetRingsOK) GetPayload ¶
func (o *GetRingsOK) GetPayload() *GetRingsOKBody
func (*GetRingsOK) IsClientError ¶ added in v1.1.0
func (o *GetRingsOK) IsClientError() bool
IsClientError returns true when this get rings o k response has a 4xx status code
func (*GetRingsOK) IsCode ¶ added in v1.1.0
func (o *GetRingsOK) IsCode(code int) bool
IsCode returns true when this get rings o k response a status code equal to that given
func (*GetRingsOK) IsRedirect ¶ added in v1.1.0
func (o *GetRingsOK) IsRedirect() bool
IsRedirect returns true when this get rings o k response has a 3xx status code
func (*GetRingsOK) IsServerError ¶ added in v1.1.0
func (o *GetRingsOK) IsServerError() bool
IsServerError returns true when this get rings o k response has a 5xx status code
func (*GetRingsOK) IsSuccess ¶ added in v1.1.0
func (o *GetRingsOK) IsSuccess() bool
IsSuccess returns true when this get rings o k response has a 2xx status code
func (*GetRingsOK) String ¶ added in v1.1.0
func (o *GetRingsOK) String() string
type GetRingsOKBody ¶
type GetRingsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Rings `json:"data"` }
GetRingsOKBody get rings o k body swagger:model GetRingsOKBody
func (*GetRingsOKBody) ContextValidate ¶
ContextValidate validate this get rings o k body based on the context it is used
func (*GetRingsOKBody) MarshalBinary ¶
func (o *GetRingsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRingsOKBody) UnmarshalBinary ¶
func (o *GetRingsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRingsParams ¶
type GetRingsParams struct { /* 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 }
GetRingsParams contains all the parameters to send to the API endpoint
for the get rings operation. Typically these are written to a http.Request.
func NewGetRingsParams ¶
func NewGetRingsParams() *GetRingsParams
NewGetRingsParams creates a new GetRingsParams 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 NewGetRingsParamsWithContext ¶
func NewGetRingsParamsWithContext(ctx context.Context) *GetRingsParams
NewGetRingsParamsWithContext creates a new GetRingsParams object with the ability to set a context for a request.
func NewGetRingsParamsWithHTTPClient ¶
func NewGetRingsParamsWithHTTPClient(client *http.Client) *GetRingsParams
NewGetRingsParamsWithHTTPClient creates a new GetRingsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRingsParamsWithTimeout ¶
func NewGetRingsParamsWithTimeout(timeout time.Duration) *GetRingsParams
NewGetRingsParamsWithTimeout creates a new GetRingsParams object with the ability to set a timeout on a request.
func (*GetRingsParams) SetContext ¶
func (o *GetRingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get rings params
func (*GetRingsParams) SetDefaults ¶
func (o *GetRingsParams) SetDefaults()
SetDefaults hydrates default values in the get rings params (not the query body).
All values with no default are reset to their zero value.
func (*GetRingsParams) SetHTTPClient ¶
func (o *GetRingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get rings params
func (*GetRingsParams) SetTimeout ¶
func (o *GetRingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get rings params
func (*GetRingsParams) SetTransactionID ¶
func (o *GetRingsParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get rings params
func (*GetRingsParams) WithContext ¶
func (o *GetRingsParams) WithContext(ctx context.Context) *GetRingsParams
WithContext adds the context to the get rings params
func (*GetRingsParams) WithDefaults ¶
func (o *GetRingsParams) WithDefaults() *GetRingsParams
WithDefaults hydrates default values in the get rings params (not the query body).
All values with no default are reset to their zero value.
func (*GetRingsParams) WithHTTPClient ¶
func (o *GetRingsParams) WithHTTPClient(client *http.Client) *GetRingsParams
WithHTTPClient adds the HTTPClient to the get rings params
func (*GetRingsParams) WithTimeout ¶
func (o *GetRingsParams) WithTimeout(timeout time.Duration) *GetRingsParams
WithTimeout adds the timeout to the get rings params
func (*GetRingsParams) WithTransactionID ¶
func (o *GetRingsParams) WithTransactionID(transactionID *string) *GetRingsParams
WithTransactionID adds the transactionID to the get rings params
func (*GetRingsParams) WriteToRequest ¶
func (o *GetRingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRingsReader ¶
type GetRingsReader struct {
// contains filtered or unexported fields
}
GetRingsReader is a Reader for the GetRings structure.
func (*GetRingsReader) ReadResponse ¶
func (o *GetRingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceRingAccepted ¶
type ReplaceRingAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Ring }
ReplaceRingAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewReplaceRingAccepted ¶
func NewReplaceRingAccepted() *ReplaceRingAccepted
NewReplaceRingAccepted creates a ReplaceRingAccepted with default headers values
func (*ReplaceRingAccepted) Code ¶ added in v1.1.5
func (o *ReplaceRingAccepted) Code() int
Code gets the status code for the replace ring accepted response
func (*ReplaceRingAccepted) Error ¶
func (o *ReplaceRingAccepted) Error() string
func (*ReplaceRingAccepted) GetPayload ¶
func (o *ReplaceRingAccepted) GetPayload() *models.Ring
func (*ReplaceRingAccepted) IsClientError ¶ added in v1.1.0
func (o *ReplaceRingAccepted) IsClientError() bool
IsClientError returns true when this replace ring accepted response has a 4xx status code
func (*ReplaceRingAccepted) IsCode ¶ added in v1.1.0
func (o *ReplaceRingAccepted) IsCode(code int) bool
IsCode returns true when this replace ring accepted response a status code equal to that given
func (*ReplaceRingAccepted) IsRedirect ¶ added in v1.1.0
func (o *ReplaceRingAccepted) IsRedirect() bool
IsRedirect returns true when this replace ring accepted response has a 3xx status code
func (*ReplaceRingAccepted) IsServerError ¶ added in v1.1.0
func (o *ReplaceRingAccepted) IsServerError() bool
IsServerError returns true when this replace ring accepted response has a 5xx status code
func (*ReplaceRingAccepted) IsSuccess ¶ added in v1.1.0
func (o *ReplaceRingAccepted) IsSuccess() bool
IsSuccess returns true when this replace ring accepted response has a 2xx status code
func (*ReplaceRingAccepted) String ¶ added in v1.1.0
func (o *ReplaceRingAccepted) String() string
type ReplaceRingBadRequest ¶
type ReplaceRingBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceRingBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceRingBadRequest ¶
func NewReplaceRingBadRequest() *ReplaceRingBadRequest
NewReplaceRingBadRequest creates a ReplaceRingBadRequest with default headers values
func (*ReplaceRingBadRequest) Code ¶ added in v1.1.5
func (o *ReplaceRingBadRequest) Code() int
Code gets the status code for the replace ring bad request response
func (*ReplaceRingBadRequest) Error ¶
func (o *ReplaceRingBadRequest) Error() string
func (*ReplaceRingBadRequest) GetPayload ¶
func (o *ReplaceRingBadRequest) GetPayload() *models.Error
func (*ReplaceRingBadRequest) IsClientError ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) IsClientError() bool
IsClientError returns true when this replace ring bad request response has a 4xx status code
func (*ReplaceRingBadRequest) IsCode ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) IsCode(code int) bool
IsCode returns true when this replace ring bad request response a status code equal to that given
func (*ReplaceRingBadRequest) IsRedirect ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) IsRedirect() bool
IsRedirect returns true when this replace ring bad request response has a 3xx status code
func (*ReplaceRingBadRequest) IsServerError ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) IsServerError() bool
IsServerError returns true when this replace ring bad request response has a 5xx status code
func (*ReplaceRingBadRequest) IsSuccess ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) IsSuccess() bool
IsSuccess returns true when this replace ring bad request response has a 2xx status code
func (*ReplaceRingBadRequest) String ¶ added in v1.1.0
func (o *ReplaceRingBadRequest) String() string
type ReplaceRingDefault ¶
type ReplaceRingDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceRingDefault describes a response with status code -1, with default header values.
General Error
func NewReplaceRingDefault ¶
func NewReplaceRingDefault(code int) *ReplaceRingDefault
NewReplaceRingDefault creates a ReplaceRingDefault with default headers values
func (*ReplaceRingDefault) Code ¶
func (o *ReplaceRingDefault) Code() int
Code gets the status code for the replace ring default response
func (*ReplaceRingDefault) Error ¶
func (o *ReplaceRingDefault) Error() string
func (*ReplaceRingDefault) GetPayload ¶
func (o *ReplaceRingDefault) GetPayload() *models.Error
func (*ReplaceRingDefault) IsClientError ¶ added in v1.1.0
func (o *ReplaceRingDefault) IsClientError() bool
IsClientError returns true when this replace ring default response has a 4xx status code
func (*ReplaceRingDefault) IsCode ¶ added in v1.1.0
func (o *ReplaceRingDefault) IsCode(code int) bool
IsCode returns true when this replace ring default response a status code equal to that given
func (*ReplaceRingDefault) IsRedirect ¶ added in v1.1.0
func (o *ReplaceRingDefault) IsRedirect() bool
IsRedirect returns true when this replace ring default response has a 3xx status code
func (*ReplaceRingDefault) IsServerError ¶ added in v1.1.0
func (o *ReplaceRingDefault) IsServerError() bool
IsServerError returns true when this replace ring default response has a 5xx status code
func (*ReplaceRingDefault) IsSuccess ¶ added in v1.1.0
func (o *ReplaceRingDefault) IsSuccess() bool
IsSuccess returns true when this replace ring default response has a 2xx status code
func (*ReplaceRingDefault) String ¶ added in v1.1.0
func (o *ReplaceRingDefault) String() string
type ReplaceRingNotFound ¶
type ReplaceRingNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceRingNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewReplaceRingNotFound ¶
func NewReplaceRingNotFound() *ReplaceRingNotFound
NewReplaceRingNotFound creates a ReplaceRingNotFound with default headers values
func (*ReplaceRingNotFound) Code ¶ added in v1.1.5
func (o *ReplaceRingNotFound) Code() int
Code gets the status code for the replace ring not found response
func (*ReplaceRingNotFound) Error ¶
func (o *ReplaceRingNotFound) Error() string
func (*ReplaceRingNotFound) GetPayload ¶
func (o *ReplaceRingNotFound) GetPayload() *models.Error
func (*ReplaceRingNotFound) IsClientError ¶ added in v1.1.0
func (o *ReplaceRingNotFound) IsClientError() bool
IsClientError returns true when this replace ring not found response has a 4xx status code
func (*ReplaceRingNotFound) IsCode ¶ added in v1.1.0
func (o *ReplaceRingNotFound) IsCode(code int) bool
IsCode returns true when this replace ring not found response a status code equal to that given
func (*ReplaceRingNotFound) IsRedirect ¶ added in v1.1.0
func (o *ReplaceRingNotFound) IsRedirect() bool
IsRedirect returns true when this replace ring not found response has a 3xx status code
func (*ReplaceRingNotFound) IsServerError ¶ added in v1.1.0
func (o *ReplaceRingNotFound) IsServerError() bool
IsServerError returns true when this replace ring not found response has a 5xx status code
func (*ReplaceRingNotFound) IsSuccess ¶ added in v1.1.0
func (o *ReplaceRingNotFound) IsSuccess() bool
IsSuccess returns true when this replace ring not found response has a 2xx status code
func (*ReplaceRingNotFound) String ¶ added in v1.1.0
func (o *ReplaceRingNotFound) String() string
type ReplaceRingOK ¶
ReplaceRingOK describes a response with status code 200, with default header values.
Ring replaced
func NewReplaceRingOK ¶
func NewReplaceRingOK() *ReplaceRingOK
NewReplaceRingOK creates a ReplaceRingOK with default headers values
func (*ReplaceRingOK) Code ¶ added in v1.1.5
func (o *ReplaceRingOK) Code() int
Code gets the status code for the replace ring o k response
func (*ReplaceRingOK) Error ¶
func (o *ReplaceRingOK) Error() string
func (*ReplaceRingOK) GetPayload ¶
func (o *ReplaceRingOK) GetPayload() *models.Ring
func (*ReplaceRingOK) IsClientError ¶ added in v1.1.0
func (o *ReplaceRingOK) IsClientError() bool
IsClientError returns true when this replace ring o k response has a 4xx status code
func (*ReplaceRingOK) IsCode ¶ added in v1.1.0
func (o *ReplaceRingOK) IsCode(code int) bool
IsCode returns true when this replace ring o k response a status code equal to that given
func (*ReplaceRingOK) IsRedirect ¶ added in v1.1.0
func (o *ReplaceRingOK) IsRedirect() bool
IsRedirect returns true when this replace ring o k response has a 3xx status code
func (*ReplaceRingOK) IsServerError ¶ added in v1.1.0
func (o *ReplaceRingOK) IsServerError() bool
IsServerError returns true when this replace ring o k response has a 5xx status code
func (*ReplaceRingOK) IsSuccess ¶ added in v1.1.0
func (o *ReplaceRingOK) IsSuccess() bool
IsSuccess returns true when this replace ring o k response has a 2xx status code
func (*ReplaceRingOK) String ¶ added in v1.1.0
func (o *ReplaceRingOK) String() string
type ReplaceRingParams ¶
type ReplaceRingParams struct { // Data. Data *models.Ring /* 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. Ring name */ Name 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 }
ReplaceRingParams contains all the parameters to send to the API endpoint
for the replace ring operation. Typically these are written to a http.Request.
func NewReplaceRingParams ¶
func NewReplaceRingParams() *ReplaceRingParams
NewReplaceRingParams creates a new ReplaceRingParams 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 NewReplaceRingParamsWithContext ¶
func NewReplaceRingParamsWithContext(ctx context.Context) *ReplaceRingParams
NewReplaceRingParamsWithContext creates a new ReplaceRingParams object with the ability to set a context for a request.
func NewReplaceRingParamsWithHTTPClient ¶
func NewReplaceRingParamsWithHTTPClient(client *http.Client) *ReplaceRingParams
NewReplaceRingParamsWithHTTPClient creates a new ReplaceRingParams object with the ability to set a custom HTTPClient for a request.
func NewReplaceRingParamsWithTimeout ¶
func NewReplaceRingParamsWithTimeout(timeout time.Duration) *ReplaceRingParams
NewReplaceRingParamsWithTimeout creates a new ReplaceRingParams object with the ability to set a timeout on a request.
func (*ReplaceRingParams) SetContext ¶
func (o *ReplaceRingParams) SetContext(ctx context.Context)
SetContext adds the context to the replace ring params
func (*ReplaceRingParams) SetData ¶
func (o *ReplaceRingParams) SetData(data *models.Ring)
SetData adds the data to the replace ring params
func (*ReplaceRingParams) SetDefaults ¶
func (o *ReplaceRingParams) SetDefaults()
SetDefaults hydrates default values in the replace ring params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceRingParams) SetForceReload ¶
func (o *ReplaceRingParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace ring params
func (*ReplaceRingParams) SetHTTPClient ¶
func (o *ReplaceRingParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace ring params
func (*ReplaceRingParams) SetName ¶
func (o *ReplaceRingParams) SetName(name string)
SetName adds the name to the replace ring params
func (*ReplaceRingParams) SetTimeout ¶
func (o *ReplaceRingParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace ring params
func (*ReplaceRingParams) SetTransactionID ¶
func (o *ReplaceRingParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace ring params
func (*ReplaceRingParams) SetVersion ¶
func (o *ReplaceRingParams) SetVersion(version *int64)
SetVersion adds the version to the replace ring params
func (*ReplaceRingParams) WithContext ¶
func (o *ReplaceRingParams) WithContext(ctx context.Context) *ReplaceRingParams
WithContext adds the context to the replace ring params
func (*ReplaceRingParams) WithData ¶
func (o *ReplaceRingParams) WithData(data *models.Ring) *ReplaceRingParams
WithData adds the data to the replace ring params
func (*ReplaceRingParams) WithDefaults ¶
func (o *ReplaceRingParams) WithDefaults() *ReplaceRingParams
WithDefaults hydrates default values in the replace ring params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceRingParams) WithForceReload ¶
func (o *ReplaceRingParams) WithForceReload(forceReload *bool) *ReplaceRingParams
WithForceReload adds the forceReload to the replace ring params
func (*ReplaceRingParams) WithHTTPClient ¶
func (o *ReplaceRingParams) WithHTTPClient(client *http.Client) *ReplaceRingParams
WithHTTPClient adds the HTTPClient to the replace ring params
func (*ReplaceRingParams) WithName ¶
func (o *ReplaceRingParams) WithName(name string) *ReplaceRingParams
WithName adds the name to the replace ring params
func (*ReplaceRingParams) WithTimeout ¶
func (o *ReplaceRingParams) WithTimeout(timeout time.Duration) *ReplaceRingParams
WithTimeout adds the timeout to the replace ring params
func (*ReplaceRingParams) WithTransactionID ¶
func (o *ReplaceRingParams) WithTransactionID(transactionID *string) *ReplaceRingParams
WithTransactionID adds the transactionID to the replace ring params
func (*ReplaceRingParams) WithVersion ¶
func (o *ReplaceRingParams) WithVersion(version *int64) *ReplaceRingParams
WithVersion adds the version to the replace ring params
func (*ReplaceRingParams) WriteToRequest ¶
func (o *ReplaceRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceRingReader ¶
type ReplaceRingReader struct {
// contains filtered or unexported fields
}
ReplaceRingReader is a Reader for the ReplaceRing structure.
func (*ReplaceRingReader) ReadResponse ¶
func (o *ReplaceRingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.