Documentation ¶
Index ¶
- type Client
- func (a *Client) GetDefaults(params *GetDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultsOK, error)
- func (a *Client) ReplaceDefaults(params *ReplaceDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceDefaultsOK, *ReplaceDefaultsAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetDefaultsDefault
- type GetDefaultsOK
- type GetDefaultsOKBody
- type GetDefaultsParams
- func (o *GetDefaultsParams) SetContext(ctx context.Context)
- func (o *GetDefaultsParams) SetHTTPClient(client *http.Client)
- func (o *GetDefaultsParams) SetTimeout(timeout time.Duration)
- func (o *GetDefaultsParams) SetTransactionID(transactionID *string)
- func (o *GetDefaultsParams) WithContext(ctx context.Context) *GetDefaultsParams
- func (o *GetDefaultsParams) WithHTTPClient(client *http.Client) *GetDefaultsParams
- func (o *GetDefaultsParams) WithTimeout(timeout time.Duration) *GetDefaultsParams
- func (o *GetDefaultsParams) WithTransactionID(transactionID *string) *GetDefaultsParams
- func (o *GetDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDefaultsReader
- type ReplaceDefaultsAccepted
- type ReplaceDefaultsBadRequest
- type ReplaceDefaultsDefault
- type ReplaceDefaultsOK
- type ReplaceDefaultsParams
- func NewReplaceDefaultsParams() *ReplaceDefaultsParams
- func NewReplaceDefaultsParamsWithContext(ctx context.Context) *ReplaceDefaultsParams
- func NewReplaceDefaultsParamsWithHTTPClient(client *http.Client) *ReplaceDefaultsParams
- func NewReplaceDefaultsParamsWithTimeout(timeout time.Duration) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) SetContext(ctx context.Context)
- func (o *ReplaceDefaultsParams) SetData(data *models.Defaults)
- func (o *ReplaceDefaultsParams) SetForceReload(forceReload *bool)
- func (o *ReplaceDefaultsParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceDefaultsParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceDefaultsParams) SetTransactionID(transactionID *string)
- func (o *ReplaceDefaultsParams) SetVersion(version *int64)
- func (o *ReplaceDefaultsParams) WithContext(ctx context.Context) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithData(data *models.Defaults) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithForceReload(forceReload *bool) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithHTTPClient(client *http.Client) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithTimeout(timeout time.Duration) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithTransactionID(transactionID *string) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WithVersion(version *int64) *ReplaceDefaultsParams
- func (o *ReplaceDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceDefaultsReader
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 defaults API
func (*Client) GetDefaults ¶
func (a *Client) GetDefaults(params *GetDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultsOK, error)
GetDefaults returns defaults part of configuration
Returns defaults part of configuration.
func (*Client) ReplaceDefaults ¶
func (a *Client) ReplaceDefaults(params *ReplaceDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceDefaultsOK, *ReplaceDefaultsAccepted, error)
ReplaceDefaults replaces defaults
Replace defaults part of config
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetDefaults(params *GetDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultsOK, error) ReplaceDefaults(params *ReplaceDefaultsParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceDefaultsOK, *ReplaceDefaultsAccepted, 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 defaults API client.
type GetDefaultsDefault ¶
type GetDefaultsDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetDefaultsDefault handles this case with default header values.
General Error
func NewGetDefaultsDefault ¶
func NewGetDefaultsDefault(code int) *GetDefaultsDefault
NewGetDefaultsDefault creates a GetDefaultsDefault with default headers values
func (*GetDefaultsDefault) Code ¶
func (o *GetDefaultsDefault) Code() int
Code gets the status code for the get defaults default response
func (*GetDefaultsDefault) Error ¶
func (o *GetDefaultsDefault) Error() string
func (*GetDefaultsDefault) GetPayload ¶
func (o *GetDefaultsDefault) GetPayload() *models.Error
type GetDefaultsOK ¶
type GetDefaultsOK struct { /*Configuration file version */ ConfigurationVersion string Payload *GetDefaultsOKBody }
GetDefaultsOK handles this case with default header values.
Successful operation
func NewGetDefaultsOK ¶
func NewGetDefaultsOK() *GetDefaultsOK
NewGetDefaultsOK creates a GetDefaultsOK with default headers values
func (*GetDefaultsOK) Error ¶
func (o *GetDefaultsOK) Error() string
func (*GetDefaultsOK) GetPayload ¶
func (o *GetDefaultsOK) GetPayload() *GetDefaultsOKBody
type GetDefaultsOKBody ¶
type GetDefaultsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Defaults `json:"data,omitempty"` }
GetDefaultsOKBody get defaults o k body swagger:model GetDefaultsOKBody
func (*GetDefaultsOKBody) MarshalBinary ¶
func (o *GetDefaultsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetDefaultsOKBody) UnmarshalBinary ¶
func (o *GetDefaultsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetDefaultsParams ¶
type GetDefaultsParams 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 }
GetDefaultsParams contains all the parameters to send to the API endpoint for the get defaults operation typically these are written to a http.Request
func NewGetDefaultsParams ¶
func NewGetDefaultsParams() *GetDefaultsParams
NewGetDefaultsParams creates a new GetDefaultsParams object with the default values initialized.
func NewGetDefaultsParamsWithContext ¶
func NewGetDefaultsParamsWithContext(ctx context.Context) *GetDefaultsParams
NewGetDefaultsParamsWithContext creates a new GetDefaultsParams object with the default values initialized, and the ability to set a context for a request
func NewGetDefaultsParamsWithHTTPClient ¶
func NewGetDefaultsParamsWithHTTPClient(client *http.Client) *GetDefaultsParams
NewGetDefaultsParamsWithHTTPClient creates a new GetDefaultsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDefaultsParamsWithTimeout ¶
func NewGetDefaultsParamsWithTimeout(timeout time.Duration) *GetDefaultsParams
NewGetDefaultsParamsWithTimeout creates a new GetDefaultsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDefaultsParams) SetContext ¶
func (o *GetDefaultsParams) SetContext(ctx context.Context)
SetContext adds the context to the get defaults params
func (*GetDefaultsParams) SetHTTPClient ¶
func (o *GetDefaultsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get defaults params
func (*GetDefaultsParams) SetTimeout ¶
func (o *GetDefaultsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get defaults params
func (*GetDefaultsParams) SetTransactionID ¶
func (o *GetDefaultsParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get defaults params
func (*GetDefaultsParams) WithContext ¶
func (o *GetDefaultsParams) WithContext(ctx context.Context) *GetDefaultsParams
WithContext adds the context to the get defaults params
func (*GetDefaultsParams) WithHTTPClient ¶
func (o *GetDefaultsParams) WithHTTPClient(client *http.Client) *GetDefaultsParams
WithHTTPClient adds the HTTPClient to the get defaults params
func (*GetDefaultsParams) WithTimeout ¶
func (o *GetDefaultsParams) WithTimeout(timeout time.Duration) *GetDefaultsParams
WithTimeout adds the timeout to the get defaults params
func (*GetDefaultsParams) WithTransactionID ¶
func (o *GetDefaultsParams) WithTransactionID(transactionID *string) *GetDefaultsParams
WithTransactionID adds the transactionID to the get defaults params
func (*GetDefaultsParams) WriteToRequest ¶
func (o *GetDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDefaultsReader ¶
type GetDefaultsReader struct {
// contains filtered or unexported fields
}
GetDefaultsReader is a Reader for the GetDefaults structure.
func (*GetDefaultsReader) ReadResponse ¶
func (o *GetDefaultsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceDefaultsAccepted ¶
type ReplaceDefaultsAccepted struct { /*ID of the requested reload */ ReloadID string Payload *models.Defaults }
ReplaceDefaultsAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewReplaceDefaultsAccepted ¶
func NewReplaceDefaultsAccepted() *ReplaceDefaultsAccepted
NewReplaceDefaultsAccepted creates a ReplaceDefaultsAccepted with default headers values
func (*ReplaceDefaultsAccepted) Error ¶
func (o *ReplaceDefaultsAccepted) Error() string
func (*ReplaceDefaultsAccepted) GetPayload ¶
func (o *ReplaceDefaultsAccepted) GetPayload() *models.Defaults
type ReplaceDefaultsBadRequest ¶
type ReplaceDefaultsBadRequest struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceDefaultsBadRequest handles this case with default header values.
Bad request
func NewReplaceDefaultsBadRequest ¶
func NewReplaceDefaultsBadRequest() *ReplaceDefaultsBadRequest
NewReplaceDefaultsBadRequest creates a ReplaceDefaultsBadRequest with default headers values
func (*ReplaceDefaultsBadRequest) Error ¶
func (o *ReplaceDefaultsBadRequest) Error() string
func (*ReplaceDefaultsBadRequest) GetPayload ¶
func (o *ReplaceDefaultsBadRequest) GetPayload() *models.Error
type ReplaceDefaultsDefault ¶
type ReplaceDefaultsDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceDefaultsDefault handles this case with default header values.
General Error
func NewReplaceDefaultsDefault ¶
func NewReplaceDefaultsDefault(code int) *ReplaceDefaultsDefault
NewReplaceDefaultsDefault creates a ReplaceDefaultsDefault with default headers values
func (*ReplaceDefaultsDefault) Code ¶
func (o *ReplaceDefaultsDefault) Code() int
Code gets the status code for the replace defaults default response
func (*ReplaceDefaultsDefault) Error ¶
func (o *ReplaceDefaultsDefault) Error() string
func (*ReplaceDefaultsDefault) GetPayload ¶
func (o *ReplaceDefaultsDefault) GetPayload() *models.Error
type ReplaceDefaultsOK ¶
ReplaceDefaultsOK handles this case with default header values.
Defaults replaced
func NewReplaceDefaultsOK ¶
func NewReplaceDefaultsOK() *ReplaceDefaultsOK
NewReplaceDefaultsOK creates a ReplaceDefaultsOK with default headers values
func (*ReplaceDefaultsOK) Error ¶
func (o *ReplaceDefaultsOK) Error() string
func (*ReplaceDefaultsOK) GetPayload ¶
func (o *ReplaceDefaultsOK) GetPayload() *models.Defaults
type ReplaceDefaultsParams ¶
type ReplaceDefaultsParams struct { /*Data*/ Data *models.Defaults /*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 }
ReplaceDefaultsParams contains all the parameters to send to the API endpoint for the replace defaults operation typically these are written to a http.Request
func NewReplaceDefaultsParams ¶
func NewReplaceDefaultsParams() *ReplaceDefaultsParams
NewReplaceDefaultsParams creates a new ReplaceDefaultsParams object with the default values initialized.
func NewReplaceDefaultsParamsWithContext ¶
func NewReplaceDefaultsParamsWithContext(ctx context.Context) *ReplaceDefaultsParams
NewReplaceDefaultsParamsWithContext creates a new ReplaceDefaultsParams object with the default values initialized, and the ability to set a context for a request
func NewReplaceDefaultsParamsWithHTTPClient ¶
func NewReplaceDefaultsParamsWithHTTPClient(client *http.Client) *ReplaceDefaultsParams
NewReplaceDefaultsParamsWithHTTPClient creates a new ReplaceDefaultsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewReplaceDefaultsParamsWithTimeout ¶
func NewReplaceDefaultsParamsWithTimeout(timeout time.Duration) *ReplaceDefaultsParams
NewReplaceDefaultsParamsWithTimeout creates a new ReplaceDefaultsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ReplaceDefaultsParams) SetContext ¶
func (o *ReplaceDefaultsParams) SetContext(ctx context.Context)
SetContext adds the context to the replace defaults params
func (*ReplaceDefaultsParams) SetData ¶
func (o *ReplaceDefaultsParams) SetData(data *models.Defaults)
SetData adds the data to the replace defaults params
func (*ReplaceDefaultsParams) SetForceReload ¶
func (o *ReplaceDefaultsParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace defaults params
func (*ReplaceDefaultsParams) SetHTTPClient ¶
func (o *ReplaceDefaultsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace defaults params
func (*ReplaceDefaultsParams) SetTimeout ¶
func (o *ReplaceDefaultsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace defaults params
func (*ReplaceDefaultsParams) SetTransactionID ¶
func (o *ReplaceDefaultsParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace defaults params
func (*ReplaceDefaultsParams) SetVersion ¶
func (o *ReplaceDefaultsParams) SetVersion(version *int64)
SetVersion adds the version to the replace defaults params
func (*ReplaceDefaultsParams) WithContext ¶
func (o *ReplaceDefaultsParams) WithContext(ctx context.Context) *ReplaceDefaultsParams
WithContext adds the context to the replace defaults params
func (*ReplaceDefaultsParams) WithData ¶
func (o *ReplaceDefaultsParams) WithData(data *models.Defaults) *ReplaceDefaultsParams
WithData adds the data to the replace defaults params
func (*ReplaceDefaultsParams) WithForceReload ¶
func (o *ReplaceDefaultsParams) WithForceReload(forceReload *bool) *ReplaceDefaultsParams
WithForceReload adds the forceReload to the replace defaults params
func (*ReplaceDefaultsParams) WithHTTPClient ¶
func (o *ReplaceDefaultsParams) WithHTTPClient(client *http.Client) *ReplaceDefaultsParams
WithHTTPClient adds the HTTPClient to the replace defaults params
func (*ReplaceDefaultsParams) WithTimeout ¶
func (o *ReplaceDefaultsParams) WithTimeout(timeout time.Duration) *ReplaceDefaultsParams
WithTimeout adds the timeout to the replace defaults params
func (*ReplaceDefaultsParams) WithTransactionID ¶
func (o *ReplaceDefaultsParams) WithTransactionID(transactionID *string) *ReplaceDefaultsParams
WithTransactionID adds the transactionID to the replace defaults params
func (*ReplaceDefaultsParams) WithVersion ¶
func (o *ReplaceDefaultsParams) WithVersion(version *int64) *ReplaceDefaultsParams
WithVersion adds the version to the replace defaults params
func (*ReplaceDefaultsParams) WriteToRequest ¶
func (o *ReplaceDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceDefaultsReader ¶
type ReplaceDefaultsReader struct {
// contains filtered or unexported fields
}
ReplaceDefaultsReader is a Reader for the ReplaceDefaults structure.
func (*ReplaceDefaultsReader) ReadResponse ¶
func (o *ReplaceDefaultsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.