Documentation ¶
Index ¶
- type Client
- func (a *Client) GetCurrentUserSettings(params *GetCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserSettingsOK, error)
- func (a *Client) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*PatchCurrentUserSettingsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetCurrentUserSettingsDefault
- type GetCurrentUserSettingsOK
- type GetCurrentUserSettingsParams
- func NewGetCurrentUserSettingsParams() *GetCurrentUserSettingsParams
- func NewGetCurrentUserSettingsParamsWithContext(ctx context.Context) *GetCurrentUserSettingsParams
- func NewGetCurrentUserSettingsParamsWithHTTPClient(client *http.Client) *GetCurrentUserSettingsParams
- func NewGetCurrentUserSettingsParamsWithTimeout(timeout time.Duration) *GetCurrentUserSettingsParams
- func (o *GetCurrentUserSettingsParams) SetContext(ctx context.Context)
- func (o *GetCurrentUserSettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetCurrentUserSettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetCurrentUserSettingsParams) WithContext(ctx context.Context) *GetCurrentUserSettingsParams
- func (o *GetCurrentUserSettingsParams) WithHTTPClient(client *http.Client) *GetCurrentUserSettingsParams
- func (o *GetCurrentUserSettingsParams) WithTimeout(timeout time.Duration) *GetCurrentUserSettingsParams
- func (o *GetCurrentUserSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCurrentUserSettingsReader
- type GetCurrentUserSettingsUnauthorized
- type PatchCurrentUserSettingsDefault
- type PatchCurrentUserSettingsOK
- type PatchCurrentUserSettingsParams
- func NewPatchCurrentUserSettingsParams() *PatchCurrentUserSettingsParams
- func NewPatchCurrentUserSettingsParamsWithContext(ctx context.Context) *PatchCurrentUserSettingsParams
- func NewPatchCurrentUserSettingsParamsWithHTTPClient(client *http.Client) *PatchCurrentUserSettingsParams
- func NewPatchCurrentUserSettingsParamsWithTimeout(timeout time.Duration) *PatchCurrentUserSettingsParams
- func (o *PatchCurrentUserSettingsParams) SetContext(ctx context.Context)
- func (o *PatchCurrentUserSettingsParams) SetHTTPClient(client *http.Client)
- func (o *PatchCurrentUserSettingsParams) SetPatch(patch interface{})
- func (o *PatchCurrentUserSettingsParams) SetTimeout(timeout time.Duration)
- func (o *PatchCurrentUserSettingsParams) WithContext(ctx context.Context) *PatchCurrentUserSettingsParams
- func (o *PatchCurrentUserSettingsParams) WithHTTPClient(client *http.Client) *PatchCurrentUserSettingsParams
- func (o *PatchCurrentUserSettingsParams) WithPatch(patch interface{}) *PatchCurrentUserSettingsParams
- func (o *PatchCurrentUserSettingsParams) WithTimeout(timeout time.Duration) *PatchCurrentUserSettingsParams
- func (o *PatchCurrentUserSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchCurrentUserSettingsReader
- type PatchCurrentUserSettingsUnauthorized
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 settings API
func (*Client) GetCurrentUserSettings ¶
func (a *Client) GetCurrentUserSettings(params *GetCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserSettingsOK, error)
GetCurrentUserSettings returns settings of the current user
func (*Client) PatchCurrentUserSettings ¶
func (a *Client) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*PatchCurrentUserSettingsOK, error)
PatchCurrentUserSettings updates settings of the current user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetCurrentUserSettings(params *GetCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserSettingsOK, error) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*PatchCurrentUserSettingsOK, 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 settings API client.
type GetCurrentUserSettingsDefault ¶
type GetCurrentUserSettingsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetCurrentUserSettingsDefault handles this case with default header values.
errorResponse
func NewGetCurrentUserSettingsDefault ¶
func NewGetCurrentUserSettingsDefault(code int) *GetCurrentUserSettingsDefault
NewGetCurrentUserSettingsDefault creates a GetCurrentUserSettingsDefault with default headers values
func (*GetCurrentUserSettingsDefault) Code ¶
func (o *GetCurrentUserSettingsDefault) Code() int
Code gets the status code for the get current user settings default response
func (*GetCurrentUserSettingsDefault) Error ¶
func (o *GetCurrentUserSettingsDefault) Error() string
func (*GetCurrentUserSettingsDefault) GetPayload ¶
func (o *GetCurrentUserSettingsDefault) GetPayload() *models.ErrorResponse
type GetCurrentUserSettingsOK ¶
type GetCurrentUserSettingsOK struct {
Payload *models.UserSettings
}
GetCurrentUserSettingsOK handles this case with default header values.
UserSettings
func NewGetCurrentUserSettingsOK ¶
func NewGetCurrentUserSettingsOK() *GetCurrentUserSettingsOK
NewGetCurrentUserSettingsOK creates a GetCurrentUserSettingsOK with default headers values
func (*GetCurrentUserSettingsOK) Error ¶
func (o *GetCurrentUserSettingsOK) Error() string
func (*GetCurrentUserSettingsOK) GetPayload ¶
func (o *GetCurrentUserSettingsOK) GetPayload() *models.UserSettings
type GetCurrentUserSettingsParams ¶
type GetCurrentUserSettingsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCurrentUserSettingsParams contains all the parameters to send to the API endpoint for the get current user settings operation typically these are written to a http.Request
func NewGetCurrentUserSettingsParams ¶
func NewGetCurrentUserSettingsParams() *GetCurrentUserSettingsParams
NewGetCurrentUserSettingsParams creates a new GetCurrentUserSettingsParams object with the default values initialized.
func NewGetCurrentUserSettingsParamsWithContext ¶
func NewGetCurrentUserSettingsParamsWithContext(ctx context.Context) *GetCurrentUserSettingsParams
NewGetCurrentUserSettingsParamsWithContext creates a new GetCurrentUserSettingsParams object with the default values initialized, and the ability to set a context for a request
func NewGetCurrentUserSettingsParamsWithHTTPClient ¶
func NewGetCurrentUserSettingsParamsWithHTTPClient(client *http.Client) *GetCurrentUserSettingsParams
NewGetCurrentUserSettingsParamsWithHTTPClient creates a new GetCurrentUserSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCurrentUserSettingsParamsWithTimeout ¶
func NewGetCurrentUserSettingsParamsWithTimeout(timeout time.Duration) *GetCurrentUserSettingsParams
NewGetCurrentUserSettingsParamsWithTimeout creates a new GetCurrentUserSettingsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCurrentUserSettingsParams) SetContext ¶
func (o *GetCurrentUserSettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get current user settings params
func (*GetCurrentUserSettingsParams) SetHTTPClient ¶
func (o *GetCurrentUserSettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get current user settings params
func (*GetCurrentUserSettingsParams) SetTimeout ¶
func (o *GetCurrentUserSettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get current user settings params
func (*GetCurrentUserSettingsParams) WithContext ¶
func (o *GetCurrentUserSettingsParams) WithContext(ctx context.Context) *GetCurrentUserSettingsParams
WithContext adds the context to the get current user settings params
func (*GetCurrentUserSettingsParams) WithHTTPClient ¶
func (o *GetCurrentUserSettingsParams) WithHTTPClient(client *http.Client) *GetCurrentUserSettingsParams
WithHTTPClient adds the HTTPClient to the get current user settings params
func (*GetCurrentUserSettingsParams) WithTimeout ¶
func (o *GetCurrentUserSettingsParams) WithTimeout(timeout time.Duration) *GetCurrentUserSettingsParams
WithTimeout adds the timeout to the get current user settings params
func (*GetCurrentUserSettingsParams) WriteToRequest ¶
func (o *GetCurrentUserSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCurrentUserSettingsReader ¶
type GetCurrentUserSettingsReader struct {
// contains filtered or unexported fields
}
GetCurrentUserSettingsReader is a Reader for the GetCurrentUserSettings structure.
func (*GetCurrentUserSettingsReader) ReadResponse ¶
func (o *GetCurrentUserSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCurrentUserSettingsUnauthorized ¶
type GetCurrentUserSettingsUnauthorized struct { }
GetCurrentUserSettingsUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewGetCurrentUserSettingsUnauthorized ¶
func NewGetCurrentUserSettingsUnauthorized() *GetCurrentUserSettingsUnauthorized
NewGetCurrentUserSettingsUnauthorized creates a GetCurrentUserSettingsUnauthorized with default headers values
func (*GetCurrentUserSettingsUnauthorized) Error ¶
func (o *GetCurrentUserSettingsUnauthorized) Error() string
type PatchCurrentUserSettingsDefault ¶
type PatchCurrentUserSettingsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
PatchCurrentUserSettingsDefault handles this case with default header values.
errorResponse
func NewPatchCurrentUserSettingsDefault ¶
func NewPatchCurrentUserSettingsDefault(code int) *PatchCurrentUserSettingsDefault
NewPatchCurrentUserSettingsDefault creates a PatchCurrentUserSettingsDefault with default headers values
func (*PatchCurrentUserSettingsDefault) Code ¶
func (o *PatchCurrentUserSettingsDefault) Code() int
Code gets the status code for the patch current user settings default response
func (*PatchCurrentUserSettingsDefault) Error ¶
func (o *PatchCurrentUserSettingsDefault) Error() string
func (*PatchCurrentUserSettingsDefault) GetPayload ¶
func (o *PatchCurrentUserSettingsDefault) GetPayload() *models.ErrorResponse
type PatchCurrentUserSettingsOK ¶
type PatchCurrentUserSettingsOK struct {
Payload *models.UserSettings
}
PatchCurrentUserSettingsOK handles this case with default header values.
UserSettings
func NewPatchCurrentUserSettingsOK ¶
func NewPatchCurrentUserSettingsOK() *PatchCurrentUserSettingsOK
NewPatchCurrentUserSettingsOK creates a PatchCurrentUserSettingsOK with default headers values
func (*PatchCurrentUserSettingsOK) Error ¶
func (o *PatchCurrentUserSettingsOK) Error() string
func (*PatchCurrentUserSettingsOK) GetPayload ¶
func (o *PatchCurrentUserSettingsOK) GetPayload() *models.UserSettings
type PatchCurrentUserSettingsParams ¶
type PatchCurrentUserSettingsParams struct { /*Patch*/ Patch interface{} Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchCurrentUserSettingsParams contains all the parameters to send to the API endpoint for the patch current user settings operation typically these are written to a http.Request
func NewPatchCurrentUserSettingsParams ¶
func NewPatchCurrentUserSettingsParams() *PatchCurrentUserSettingsParams
NewPatchCurrentUserSettingsParams creates a new PatchCurrentUserSettingsParams object with the default values initialized.
func NewPatchCurrentUserSettingsParamsWithContext ¶
func NewPatchCurrentUserSettingsParamsWithContext(ctx context.Context) *PatchCurrentUserSettingsParams
NewPatchCurrentUserSettingsParamsWithContext creates a new PatchCurrentUserSettingsParams object with the default values initialized, and the ability to set a context for a request
func NewPatchCurrentUserSettingsParamsWithHTTPClient ¶
func NewPatchCurrentUserSettingsParamsWithHTTPClient(client *http.Client) *PatchCurrentUserSettingsParams
NewPatchCurrentUserSettingsParamsWithHTTPClient creates a new PatchCurrentUserSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPatchCurrentUserSettingsParamsWithTimeout ¶
func NewPatchCurrentUserSettingsParamsWithTimeout(timeout time.Duration) *PatchCurrentUserSettingsParams
NewPatchCurrentUserSettingsParamsWithTimeout creates a new PatchCurrentUserSettingsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PatchCurrentUserSettingsParams) SetContext ¶
func (o *PatchCurrentUserSettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the patch current user settings params
func (*PatchCurrentUserSettingsParams) SetHTTPClient ¶
func (o *PatchCurrentUserSettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch current user settings params
func (*PatchCurrentUserSettingsParams) SetPatch ¶
func (o *PatchCurrentUserSettingsParams) SetPatch(patch interface{})
SetPatch adds the patch to the patch current user settings params
func (*PatchCurrentUserSettingsParams) SetTimeout ¶
func (o *PatchCurrentUserSettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch current user settings params
func (*PatchCurrentUserSettingsParams) WithContext ¶
func (o *PatchCurrentUserSettingsParams) WithContext(ctx context.Context) *PatchCurrentUserSettingsParams
WithContext adds the context to the patch current user settings params
func (*PatchCurrentUserSettingsParams) WithHTTPClient ¶
func (o *PatchCurrentUserSettingsParams) WithHTTPClient(client *http.Client) *PatchCurrentUserSettingsParams
WithHTTPClient adds the HTTPClient to the patch current user settings params
func (*PatchCurrentUserSettingsParams) WithPatch ¶
func (o *PatchCurrentUserSettingsParams) WithPatch(patch interface{}) *PatchCurrentUserSettingsParams
WithPatch adds the patch to the patch current user settings params
func (*PatchCurrentUserSettingsParams) WithTimeout ¶
func (o *PatchCurrentUserSettingsParams) WithTimeout(timeout time.Duration) *PatchCurrentUserSettingsParams
WithTimeout adds the timeout to the patch current user settings params
func (*PatchCurrentUserSettingsParams) WriteToRequest ¶
func (o *PatchCurrentUserSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchCurrentUserSettingsReader ¶
type PatchCurrentUserSettingsReader struct {
// contains filtered or unexported fields
}
PatchCurrentUserSettingsReader is a Reader for the PatchCurrentUserSettings structure.
func (*PatchCurrentUserSettingsReader) ReadResponse ¶
func (o *PatchCurrentUserSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchCurrentUserSettingsUnauthorized ¶
type PatchCurrentUserSettingsUnauthorized struct { }
PatchCurrentUserSettingsUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewPatchCurrentUserSettingsUnauthorized ¶
func NewPatchCurrentUserSettingsUnauthorized() *PatchCurrentUserSettingsUnauthorized
NewPatchCurrentUserSettingsUnauthorized creates a PatchCurrentUserSettingsUnauthorized with default headers values
func (*PatchCurrentUserSettingsUnauthorized) Error ¶
func (o *PatchCurrentUserSettingsUnauthorized) Error() string