user_preferences

package
v0.0.0-...-4958bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 user preferences API

func (*Client) GetUserPreferences

func (a *Client) GetUserPreferences(opts ...ClientOption) (*GetUserPreferencesOK, error)

GetUserPreferences gets user preferences

func (*Client) GetUserPreferencesWithParams

func (a *Client) GetUserPreferencesWithParams(params *GetUserPreferencesParams, opts ...ClientOption) (*GetUserPreferencesOK, error)

func (*Client) PatchUserPreferences

func (a *Client) PatchUserPreferences(body *models.PatchPrefsCmd, opts ...ClientOption) (*PatchUserPreferencesOK, error)

PatchUserPreferences patches user preferences

func (*Client) PatchUserPreferencesWithParams

func (a *Client) PatchUserPreferencesWithParams(params *PatchUserPreferencesParams, opts ...ClientOption) (*PatchUserPreferencesOK, error)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateUserPreferences

func (a *Client) UpdateUserPreferences(body *models.UpdatePrefsCmd, opts ...ClientOption) (*UpdateUserPreferencesOK, error)

UpdateUserPreferences updates user preferences

Omitting a key (`theme`, `homeDashboardId`, `timezone`) will cause the current value to be replaced with the system default value.

func (*Client) UpdateUserPreferencesWithParams

func (a *Client) UpdateUserPreferencesWithParams(params *UpdateUserPreferencesParams, opts ...ClientOption) (*UpdateUserPreferencesOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	GetUserPreferences(opts ...ClientOption) (*GetUserPreferencesOK, error)
	GetUserPreferencesWithParams(params *GetUserPreferencesParams, opts ...ClientOption) (*GetUserPreferencesOK, error)

	PatchUserPreferences(body *models.PatchPrefsCmd, opts ...ClientOption) (*PatchUserPreferencesOK, error)
	PatchUserPreferencesWithParams(params *PatchUserPreferencesParams, opts ...ClientOption) (*PatchUserPreferencesOK, error)

	UpdateUserPreferences(body *models.UpdatePrefsCmd, opts ...ClientOption) (*UpdateUserPreferencesOK, error)
	UpdateUserPreferencesWithParams(params *UpdateUserPreferencesParams, opts ...ClientOption) (*UpdateUserPreferencesOK, 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 user preferences API client.

type GetUserPreferencesInternalServerError

type GetUserPreferencesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetUserPreferencesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserPreferencesInternalServerError

func NewGetUserPreferencesInternalServerError() *GetUserPreferencesInternalServerError

NewGetUserPreferencesInternalServerError creates a GetUserPreferencesInternalServerError with default headers values

func (*GetUserPreferencesInternalServerError) Code

Code gets the status code for the get user preferences internal server error response

func (*GetUserPreferencesInternalServerError) Error

func (*GetUserPreferencesInternalServerError) GetPayload

func (*GetUserPreferencesInternalServerError) IsClientError

func (o *GetUserPreferencesInternalServerError) IsClientError() bool

IsClientError returns true when this get user preferences internal server error response has a 4xx status code

func (*GetUserPreferencesInternalServerError) IsCode

IsCode returns true when this get user preferences internal server error response a status code equal to that given

func (*GetUserPreferencesInternalServerError) IsRedirect

IsRedirect returns true when this get user preferences internal server error response has a 3xx status code

func (*GetUserPreferencesInternalServerError) IsServerError

func (o *GetUserPreferencesInternalServerError) IsServerError() bool

IsServerError returns true when this get user preferences internal server error response has a 5xx status code

func (*GetUserPreferencesInternalServerError) IsSuccess

IsSuccess returns true when this get user preferences internal server error response has a 2xx status code

func (*GetUserPreferencesInternalServerError) String

type GetUserPreferencesOK

type GetUserPreferencesOK struct {
	Payload *models.Preferences
}

GetUserPreferencesOK describes a response with status code 200, with default header values.

(empty)

func NewGetUserPreferencesOK

func NewGetUserPreferencesOK() *GetUserPreferencesOK

NewGetUserPreferencesOK creates a GetUserPreferencesOK with default headers values

func (*GetUserPreferencesOK) Code

func (o *GetUserPreferencesOK) Code() int

Code gets the status code for the get user preferences Ok response

func (*GetUserPreferencesOK) Error

func (o *GetUserPreferencesOK) Error() string

func (*GetUserPreferencesOK) GetPayload

func (o *GetUserPreferencesOK) GetPayload() *models.Preferences

func (*GetUserPreferencesOK) IsClientError

func (o *GetUserPreferencesOK) IsClientError() bool

IsClientError returns true when this get user preferences Ok response has a 4xx status code

func (*GetUserPreferencesOK) IsCode

func (o *GetUserPreferencesOK) IsCode(code int) bool

IsCode returns true when this get user preferences Ok response a status code equal to that given

func (*GetUserPreferencesOK) IsRedirect

func (o *GetUserPreferencesOK) IsRedirect() bool

IsRedirect returns true when this get user preferences Ok response has a 3xx status code

func (*GetUserPreferencesOK) IsServerError

func (o *GetUserPreferencesOK) IsServerError() bool

IsServerError returns true when this get user preferences Ok response has a 5xx status code

func (*GetUserPreferencesOK) IsSuccess

func (o *GetUserPreferencesOK) IsSuccess() bool

IsSuccess returns true when this get user preferences Ok response has a 2xx status code

func (*GetUserPreferencesOK) String

func (o *GetUserPreferencesOK) String() string

type GetUserPreferencesParams

type GetUserPreferencesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUserPreferencesParams contains all the parameters to send to the API endpoint

for the get user preferences operation.

Typically these are written to a http.Request.

func NewGetUserPreferencesParams

func NewGetUserPreferencesParams() *GetUserPreferencesParams

NewGetUserPreferencesParams creates a new GetUserPreferencesParams 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 NewGetUserPreferencesParamsWithContext

func NewGetUserPreferencesParamsWithContext(ctx context.Context) *GetUserPreferencesParams

NewGetUserPreferencesParamsWithContext creates a new GetUserPreferencesParams object with the ability to set a context for a request.

func NewGetUserPreferencesParamsWithHTTPClient

func NewGetUserPreferencesParamsWithHTTPClient(client *http.Client) *GetUserPreferencesParams

NewGetUserPreferencesParamsWithHTTPClient creates a new GetUserPreferencesParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserPreferencesParamsWithTimeout

func NewGetUserPreferencesParamsWithTimeout(timeout time.Duration) *GetUserPreferencesParams

NewGetUserPreferencesParamsWithTimeout creates a new GetUserPreferencesParams object with the ability to set a timeout on a request.

func (*GetUserPreferencesParams) SetContext

func (o *GetUserPreferencesParams) SetContext(ctx context.Context)

SetContext adds the context to the get user preferences params

func (*GetUserPreferencesParams) SetDefaults

func (o *GetUserPreferencesParams) SetDefaults()

SetDefaults hydrates default values in the get user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserPreferencesParams) SetHTTPClient

func (o *GetUserPreferencesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user preferences params

func (*GetUserPreferencesParams) SetTimeout

func (o *GetUserPreferencesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get user preferences params

func (*GetUserPreferencesParams) WithContext

WithContext adds the context to the get user preferences params

func (*GetUserPreferencesParams) WithDefaults

WithDefaults hydrates default values in the get user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserPreferencesParams) WithHTTPClient

func (o *GetUserPreferencesParams) WithHTTPClient(client *http.Client) *GetUserPreferencesParams

WithHTTPClient adds the HTTPClient to the get user preferences params

func (*GetUserPreferencesParams) WithTimeout

WithTimeout adds the timeout to the get user preferences params

func (*GetUserPreferencesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserPreferencesReader

type GetUserPreferencesReader struct {
	// contains filtered or unexported fields
}

GetUserPreferencesReader is a Reader for the GetUserPreferences structure.

func (*GetUserPreferencesReader) ReadResponse

func (o *GetUserPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUserPreferencesUnauthorized

type GetUserPreferencesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserPreferencesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserPreferencesUnauthorized

func NewGetUserPreferencesUnauthorized() *GetUserPreferencesUnauthorized

NewGetUserPreferencesUnauthorized creates a GetUserPreferencesUnauthorized with default headers values

func (*GetUserPreferencesUnauthorized) Code

Code gets the status code for the get user preferences unauthorized response

func (*GetUserPreferencesUnauthorized) Error

func (*GetUserPreferencesUnauthorized) GetPayload

func (*GetUserPreferencesUnauthorized) IsClientError

func (o *GetUserPreferencesUnauthorized) IsClientError() bool

IsClientError returns true when this get user preferences unauthorized response has a 4xx status code

func (*GetUserPreferencesUnauthorized) IsCode

func (o *GetUserPreferencesUnauthorized) IsCode(code int) bool

IsCode returns true when this get user preferences unauthorized response a status code equal to that given

func (*GetUserPreferencesUnauthorized) IsRedirect

func (o *GetUserPreferencesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get user preferences unauthorized response has a 3xx status code

func (*GetUserPreferencesUnauthorized) IsServerError

func (o *GetUserPreferencesUnauthorized) IsServerError() bool

IsServerError returns true when this get user preferences unauthorized response has a 5xx status code

func (*GetUserPreferencesUnauthorized) IsSuccess

func (o *GetUserPreferencesUnauthorized) IsSuccess() bool

IsSuccess returns true when this get user preferences unauthorized response has a 2xx status code

func (*GetUserPreferencesUnauthorized) String

type PatchUserPreferencesBadRequest

type PatchUserPreferencesBadRequest struct {
	Payload *models.ErrorResponseBody
}

PatchUserPreferencesBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewPatchUserPreferencesBadRequest

func NewPatchUserPreferencesBadRequest() *PatchUserPreferencesBadRequest

NewPatchUserPreferencesBadRequest creates a PatchUserPreferencesBadRequest with default headers values

func (*PatchUserPreferencesBadRequest) Code

Code gets the status code for the patch user preferences bad request response

func (*PatchUserPreferencesBadRequest) Error

func (*PatchUserPreferencesBadRequest) GetPayload

func (*PatchUserPreferencesBadRequest) IsClientError

func (o *PatchUserPreferencesBadRequest) IsClientError() bool

IsClientError returns true when this patch user preferences bad request response has a 4xx status code

func (*PatchUserPreferencesBadRequest) IsCode

func (o *PatchUserPreferencesBadRequest) IsCode(code int) bool

IsCode returns true when this patch user preferences bad request response a status code equal to that given

func (*PatchUserPreferencesBadRequest) IsRedirect

func (o *PatchUserPreferencesBadRequest) IsRedirect() bool

IsRedirect returns true when this patch user preferences bad request response has a 3xx status code

func (*PatchUserPreferencesBadRequest) IsServerError

func (o *PatchUserPreferencesBadRequest) IsServerError() bool

IsServerError returns true when this patch user preferences bad request response has a 5xx status code

func (*PatchUserPreferencesBadRequest) IsSuccess

func (o *PatchUserPreferencesBadRequest) IsSuccess() bool

IsSuccess returns true when this patch user preferences bad request response has a 2xx status code

func (*PatchUserPreferencesBadRequest) String

type PatchUserPreferencesInternalServerError

type PatchUserPreferencesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

PatchUserPreferencesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewPatchUserPreferencesInternalServerError

func NewPatchUserPreferencesInternalServerError() *PatchUserPreferencesInternalServerError

NewPatchUserPreferencesInternalServerError creates a PatchUserPreferencesInternalServerError with default headers values

func (*PatchUserPreferencesInternalServerError) Code

Code gets the status code for the patch user preferences internal server error response

func (*PatchUserPreferencesInternalServerError) Error

func (*PatchUserPreferencesInternalServerError) GetPayload

func (*PatchUserPreferencesInternalServerError) IsClientError

func (o *PatchUserPreferencesInternalServerError) IsClientError() bool

IsClientError returns true when this patch user preferences internal server error response has a 4xx status code

func (*PatchUserPreferencesInternalServerError) IsCode

IsCode returns true when this patch user preferences internal server error response a status code equal to that given

func (*PatchUserPreferencesInternalServerError) IsRedirect

IsRedirect returns true when this patch user preferences internal server error response has a 3xx status code

func (*PatchUserPreferencesInternalServerError) IsServerError

func (o *PatchUserPreferencesInternalServerError) IsServerError() bool

IsServerError returns true when this patch user preferences internal server error response has a 5xx status code

func (*PatchUserPreferencesInternalServerError) IsSuccess

IsSuccess returns true when this patch user preferences internal server error response has a 2xx status code

func (*PatchUserPreferencesInternalServerError) String

type PatchUserPreferencesOK

type PatchUserPreferencesOK struct {
	Payload *models.SuccessResponseBody
}

PatchUserPreferencesOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewPatchUserPreferencesOK

func NewPatchUserPreferencesOK() *PatchUserPreferencesOK

NewPatchUserPreferencesOK creates a PatchUserPreferencesOK with default headers values

func (*PatchUserPreferencesOK) Code

func (o *PatchUserPreferencesOK) Code() int

Code gets the status code for the patch user preferences Ok response

func (*PatchUserPreferencesOK) Error

func (o *PatchUserPreferencesOK) Error() string

func (*PatchUserPreferencesOK) GetPayload

func (*PatchUserPreferencesOK) IsClientError

func (o *PatchUserPreferencesOK) IsClientError() bool

IsClientError returns true when this patch user preferences Ok response has a 4xx status code

func (*PatchUserPreferencesOK) IsCode

func (o *PatchUserPreferencesOK) IsCode(code int) bool

IsCode returns true when this patch user preferences Ok response a status code equal to that given

func (*PatchUserPreferencesOK) IsRedirect

func (o *PatchUserPreferencesOK) IsRedirect() bool

IsRedirect returns true when this patch user preferences Ok response has a 3xx status code

func (*PatchUserPreferencesOK) IsServerError

func (o *PatchUserPreferencesOK) IsServerError() bool

IsServerError returns true when this patch user preferences Ok response has a 5xx status code

func (*PatchUserPreferencesOK) IsSuccess

func (o *PatchUserPreferencesOK) IsSuccess() bool

IsSuccess returns true when this patch user preferences Ok response has a 2xx status code

func (*PatchUserPreferencesOK) String

func (o *PatchUserPreferencesOK) String() string

type PatchUserPreferencesParams

type PatchUserPreferencesParams struct {

	// Body.
	Body *models.PatchPrefsCmd

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchUserPreferencesParams contains all the parameters to send to the API endpoint

for the patch user preferences operation.

Typically these are written to a http.Request.

func NewPatchUserPreferencesParams

func NewPatchUserPreferencesParams() *PatchUserPreferencesParams

NewPatchUserPreferencesParams creates a new PatchUserPreferencesParams 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 NewPatchUserPreferencesParamsWithContext

func NewPatchUserPreferencesParamsWithContext(ctx context.Context) *PatchUserPreferencesParams

NewPatchUserPreferencesParamsWithContext creates a new PatchUserPreferencesParams object with the ability to set a context for a request.

func NewPatchUserPreferencesParamsWithHTTPClient

func NewPatchUserPreferencesParamsWithHTTPClient(client *http.Client) *PatchUserPreferencesParams

NewPatchUserPreferencesParamsWithHTTPClient creates a new PatchUserPreferencesParams object with the ability to set a custom HTTPClient for a request.

func NewPatchUserPreferencesParamsWithTimeout

func NewPatchUserPreferencesParamsWithTimeout(timeout time.Duration) *PatchUserPreferencesParams

NewPatchUserPreferencesParamsWithTimeout creates a new PatchUserPreferencesParams object with the ability to set a timeout on a request.

func (*PatchUserPreferencesParams) SetBody

SetBody adds the body to the patch user preferences params

func (*PatchUserPreferencesParams) SetContext

func (o *PatchUserPreferencesParams) SetContext(ctx context.Context)

SetContext adds the context to the patch user preferences params

func (*PatchUserPreferencesParams) SetDefaults

func (o *PatchUserPreferencesParams) SetDefaults()

SetDefaults hydrates default values in the patch user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*PatchUserPreferencesParams) SetHTTPClient

func (o *PatchUserPreferencesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the patch user preferences params

func (*PatchUserPreferencesParams) SetTimeout

func (o *PatchUserPreferencesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the patch user preferences params

func (*PatchUserPreferencesParams) WithBody

WithBody adds the body to the patch user preferences params

func (*PatchUserPreferencesParams) WithContext

WithContext adds the context to the patch user preferences params

func (*PatchUserPreferencesParams) WithDefaults

WithDefaults hydrates default values in the patch user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*PatchUserPreferencesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch user preferences params

func (*PatchUserPreferencesParams) WithTimeout

WithTimeout adds the timeout to the patch user preferences params

func (*PatchUserPreferencesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchUserPreferencesReader

type PatchUserPreferencesReader struct {
	// contains filtered or unexported fields
}

PatchUserPreferencesReader is a Reader for the PatchUserPreferences structure.

func (*PatchUserPreferencesReader) ReadResponse

func (o *PatchUserPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PatchUserPreferencesUnauthorized

type PatchUserPreferencesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

PatchUserPreferencesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewPatchUserPreferencesUnauthorized

func NewPatchUserPreferencesUnauthorized() *PatchUserPreferencesUnauthorized

NewPatchUserPreferencesUnauthorized creates a PatchUserPreferencesUnauthorized with default headers values

func (*PatchUserPreferencesUnauthorized) Code

Code gets the status code for the patch user preferences unauthorized response

func (*PatchUserPreferencesUnauthorized) Error

func (*PatchUserPreferencesUnauthorized) GetPayload

func (*PatchUserPreferencesUnauthorized) IsClientError

func (o *PatchUserPreferencesUnauthorized) IsClientError() bool

IsClientError returns true when this patch user preferences unauthorized response has a 4xx status code

func (*PatchUserPreferencesUnauthorized) IsCode

func (o *PatchUserPreferencesUnauthorized) IsCode(code int) bool

IsCode returns true when this patch user preferences unauthorized response a status code equal to that given

func (*PatchUserPreferencesUnauthorized) IsRedirect

func (o *PatchUserPreferencesUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch user preferences unauthorized response has a 3xx status code

func (*PatchUserPreferencesUnauthorized) IsServerError

func (o *PatchUserPreferencesUnauthorized) IsServerError() bool

IsServerError returns true when this patch user preferences unauthorized response has a 5xx status code

func (*PatchUserPreferencesUnauthorized) IsSuccess

func (o *PatchUserPreferencesUnauthorized) IsSuccess() bool

IsSuccess returns true when this patch user preferences unauthorized response has a 2xx status code

func (*PatchUserPreferencesUnauthorized) String

type UpdateUserPreferencesBadRequest

type UpdateUserPreferencesBadRequest struct {
	Payload *models.ErrorResponseBody
}

UpdateUserPreferencesBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewUpdateUserPreferencesBadRequest

func NewUpdateUserPreferencesBadRequest() *UpdateUserPreferencesBadRequest

NewUpdateUserPreferencesBadRequest creates a UpdateUserPreferencesBadRequest with default headers values

func (*UpdateUserPreferencesBadRequest) Code

Code gets the status code for the update user preferences bad request response

func (*UpdateUserPreferencesBadRequest) Error

func (*UpdateUserPreferencesBadRequest) GetPayload

func (*UpdateUserPreferencesBadRequest) IsClientError

func (o *UpdateUserPreferencesBadRequest) IsClientError() bool

IsClientError returns true when this update user preferences bad request response has a 4xx status code

func (*UpdateUserPreferencesBadRequest) IsCode

func (o *UpdateUserPreferencesBadRequest) IsCode(code int) bool

IsCode returns true when this update user preferences bad request response a status code equal to that given

func (*UpdateUserPreferencesBadRequest) IsRedirect

func (o *UpdateUserPreferencesBadRequest) IsRedirect() bool

IsRedirect returns true when this update user preferences bad request response has a 3xx status code

func (*UpdateUserPreferencesBadRequest) IsServerError

func (o *UpdateUserPreferencesBadRequest) IsServerError() bool

IsServerError returns true when this update user preferences bad request response has a 5xx status code

func (*UpdateUserPreferencesBadRequest) IsSuccess

func (o *UpdateUserPreferencesBadRequest) IsSuccess() bool

IsSuccess returns true when this update user preferences bad request response has a 2xx status code

func (*UpdateUserPreferencesBadRequest) String

type UpdateUserPreferencesInternalServerError

type UpdateUserPreferencesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateUserPreferencesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateUserPreferencesInternalServerError

func NewUpdateUserPreferencesInternalServerError() *UpdateUserPreferencesInternalServerError

NewUpdateUserPreferencesInternalServerError creates a UpdateUserPreferencesInternalServerError with default headers values

func (*UpdateUserPreferencesInternalServerError) Code

Code gets the status code for the update user preferences internal server error response

func (*UpdateUserPreferencesInternalServerError) Error

func (*UpdateUserPreferencesInternalServerError) GetPayload

func (*UpdateUserPreferencesInternalServerError) IsClientError

IsClientError returns true when this update user preferences internal server error response has a 4xx status code

func (*UpdateUserPreferencesInternalServerError) IsCode

IsCode returns true when this update user preferences internal server error response a status code equal to that given

func (*UpdateUserPreferencesInternalServerError) IsRedirect

IsRedirect returns true when this update user preferences internal server error response has a 3xx status code

func (*UpdateUserPreferencesInternalServerError) IsServerError

IsServerError returns true when this update user preferences internal server error response has a 5xx status code

func (*UpdateUserPreferencesInternalServerError) IsSuccess

IsSuccess returns true when this update user preferences internal server error response has a 2xx status code

func (*UpdateUserPreferencesInternalServerError) String

type UpdateUserPreferencesOK

type UpdateUserPreferencesOK struct {
	Payload *models.SuccessResponseBody
}

UpdateUserPreferencesOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewUpdateUserPreferencesOK

func NewUpdateUserPreferencesOK() *UpdateUserPreferencesOK

NewUpdateUserPreferencesOK creates a UpdateUserPreferencesOK with default headers values

func (*UpdateUserPreferencesOK) Code

func (o *UpdateUserPreferencesOK) Code() int

Code gets the status code for the update user preferences Ok response

func (*UpdateUserPreferencesOK) Error

func (o *UpdateUserPreferencesOK) Error() string

func (*UpdateUserPreferencesOK) GetPayload

func (*UpdateUserPreferencesOK) IsClientError

func (o *UpdateUserPreferencesOK) IsClientError() bool

IsClientError returns true when this update user preferences Ok response has a 4xx status code

func (*UpdateUserPreferencesOK) IsCode

func (o *UpdateUserPreferencesOK) IsCode(code int) bool

IsCode returns true when this update user preferences Ok response a status code equal to that given

func (*UpdateUserPreferencesOK) IsRedirect

func (o *UpdateUserPreferencesOK) IsRedirect() bool

IsRedirect returns true when this update user preferences Ok response has a 3xx status code

func (*UpdateUserPreferencesOK) IsServerError

func (o *UpdateUserPreferencesOK) IsServerError() bool

IsServerError returns true when this update user preferences Ok response has a 5xx status code

func (*UpdateUserPreferencesOK) IsSuccess

func (o *UpdateUserPreferencesOK) IsSuccess() bool

IsSuccess returns true when this update user preferences Ok response has a 2xx status code

func (*UpdateUserPreferencesOK) String

func (o *UpdateUserPreferencesOK) String() string

type UpdateUserPreferencesParams

type UpdateUserPreferencesParams struct {

	// Body.
	Body *models.UpdatePrefsCmd

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateUserPreferencesParams contains all the parameters to send to the API endpoint

for the update user preferences operation.

Typically these are written to a http.Request.

func NewUpdateUserPreferencesParams

func NewUpdateUserPreferencesParams() *UpdateUserPreferencesParams

NewUpdateUserPreferencesParams creates a new UpdateUserPreferencesParams 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 NewUpdateUserPreferencesParamsWithContext

func NewUpdateUserPreferencesParamsWithContext(ctx context.Context) *UpdateUserPreferencesParams

NewUpdateUserPreferencesParamsWithContext creates a new UpdateUserPreferencesParams object with the ability to set a context for a request.

func NewUpdateUserPreferencesParamsWithHTTPClient

func NewUpdateUserPreferencesParamsWithHTTPClient(client *http.Client) *UpdateUserPreferencesParams

NewUpdateUserPreferencesParamsWithHTTPClient creates a new UpdateUserPreferencesParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserPreferencesParamsWithTimeout

func NewUpdateUserPreferencesParamsWithTimeout(timeout time.Duration) *UpdateUserPreferencesParams

NewUpdateUserPreferencesParamsWithTimeout creates a new UpdateUserPreferencesParams object with the ability to set a timeout on a request.

func (*UpdateUserPreferencesParams) SetBody

SetBody adds the body to the update user preferences params

func (*UpdateUserPreferencesParams) SetContext

func (o *UpdateUserPreferencesParams) SetContext(ctx context.Context)

SetContext adds the context to the update user preferences params

func (*UpdateUserPreferencesParams) SetDefaults

func (o *UpdateUserPreferencesParams) SetDefaults()

SetDefaults hydrates default values in the update user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserPreferencesParams) SetHTTPClient

func (o *UpdateUserPreferencesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update user preferences params

func (*UpdateUserPreferencesParams) SetTimeout

func (o *UpdateUserPreferencesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update user preferences params

func (*UpdateUserPreferencesParams) WithBody

WithBody adds the body to the update user preferences params

func (*UpdateUserPreferencesParams) WithContext

WithContext adds the context to the update user preferences params

func (*UpdateUserPreferencesParams) WithDefaults

WithDefaults hydrates default values in the update user preferences params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserPreferencesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update user preferences params

func (*UpdateUserPreferencesParams) WithTimeout

WithTimeout adds the timeout to the update user preferences params

func (*UpdateUserPreferencesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserPreferencesReader

type UpdateUserPreferencesReader struct {
	// contains filtered or unexported fields
}

UpdateUserPreferencesReader is a Reader for the UpdateUserPreferences structure.

func (*UpdateUserPreferencesReader) ReadResponse

func (o *UpdateUserPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateUserPreferencesUnauthorized

type UpdateUserPreferencesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateUserPreferencesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateUserPreferencesUnauthorized

func NewUpdateUserPreferencesUnauthorized() *UpdateUserPreferencesUnauthorized

NewUpdateUserPreferencesUnauthorized creates a UpdateUserPreferencesUnauthorized with default headers values

func (*UpdateUserPreferencesUnauthorized) Code

Code gets the status code for the update user preferences unauthorized response

func (*UpdateUserPreferencesUnauthorized) Error

func (*UpdateUserPreferencesUnauthorized) GetPayload

func (*UpdateUserPreferencesUnauthorized) IsClientError

func (o *UpdateUserPreferencesUnauthorized) IsClientError() bool

IsClientError returns true when this update user preferences unauthorized response has a 4xx status code

func (*UpdateUserPreferencesUnauthorized) IsCode

func (o *UpdateUserPreferencesUnauthorized) IsCode(code int) bool

IsCode returns true when this update user preferences unauthorized response a status code equal to that given

func (*UpdateUserPreferencesUnauthorized) IsRedirect

func (o *UpdateUserPreferencesUnauthorized) IsRedirect() bool

IsRedirect returns true when this update user preferences unauthorized response has a 3xx status code

func (*UpdateUserPreferencesUnauthorized) IsServerError

func (o *UpdateUserPreferencesUnauthorized) IsServerError() bool

IsServerError returns true when this update user preferences unauthorized response has a 5xx status code

func (*UpdateUserPreferencesUnauthorized) IsSuccess

func (o *UpdateUserPreferencesUnauthorized) IsSuccess() bool

IsSuccess returns true when this update user preferences unauthorized response has a 2xx status code

func (*UpdateUserPreferencesUnauthorized) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL