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 ClientOption
- 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) SetDefaults()
- 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) WithDefaults() *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) SetDefaults()
- 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) WithDefaults() *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, opts ...ClientOption) (*GetCurrentUserSettingsOK, error)
GetCurrentUserSettings returns settings of the current user
func (*Client) PatchCurrentUserSettings ¶
func (a *Client) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetCurrentUserSettings(params *GetCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserSettingsOK, error) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 describes a response with status code -1, 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 describes a response with status code 200, 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 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 NewGetCurrentUserSettingsParamsWithContext ¶
func NewGetCurrentUserSettingsParamsWithContext(ctx context.Context) *GetCurrentUserSettingsParams
NewGetCurrentUserSettingsParamsWithContext creates a new GetCurrentUserSettingsParams object with 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 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 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) SetDefaults ¶
func (o *GetCurrentUserSettingsParams) SetDefaults()
SetDefaults hydrates default values in the get current user settings params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *GetCurrentUserSettingsParams) WithDefaults() *GetCurrentUserSettingsParams
WithDefaults hydrates default values in the get current user settings params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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 describes a response with status code -1, 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 describes a response with status code 200, 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 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 NewPatchCurrentUserSettingsParamsWithContext ¶
func NewPatchCurrentUserSettingsParamsWithContext(ctx context.Context) *PatchCurrentUserSettingsParams
NewPatchCurrentUserSettingsParamsWithContext creates a new PatchCurrentUserSettingsParams object with 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 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 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) SetDefaults ¶
func (o *PatchCurrentUserSettingsParams) SetDefaults()
SetDefaults hydrates default values in the patch current user settings params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *PatchCurrentUserSettingsParams) WithDefaults() *PatchCurrentUserSettingsParams
WithDefaults hydrates default values in the patch current user settings params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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