Documentation ¶
Index ¶
- type Client
- func (a *Client) PostUserPreferences(params *PostUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*PostUserPreferencesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUserPreferences(params *UpdateUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserPreferencesOK, error)
- type ClientService
- type PostUserPreferencesBadRequest
- type PostUserPreferencesConflict
- type PostUserPreferencesForbidden
- type PostUserPreferencesInternalServerError
- type PostUserPreferencesNotFound
- type PostUserPreferencesOK
- type PostUserPreferencesParams
- func NewPostUserPreferencesParams() *PostUserPreferencesParams
- func NewPostUserPreferencesParamsWithContext(ctx context.Context) *PostUserPreferencesParams
- func NewPostUserPreferencesParamsWithHTTPClient(client *http.Client) *PostUserPreferencesParams
- func NewPostUserPreferencesParamsWithTimeout(timeout time.Duration) *PostUserPreferencesParams
- func (o *PostUserPreferencesParams) SetContext(ctx context.Context)
- func (o *PostUserPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *PostUserPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *PostUserPreferencesParams) SetUsername(username string)
- func (o *PostUserPreferencesParams) WithContext(ctx context.Context) *PostUserPreferencesParams
- func (o *PostUserPreferencesParams) WithHTTPClient(client *http.Client) *PostUserPreferencesParams
- func (o *PostUserPreferencesParams) WithTimeout(timeout time.Duration) *PostUserPreferencesParams
- func (o *PostUserPreferencesParams) WithUsername(username string) *PostUserPreferencesParams
- func (o *PostUserPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostUserPreferencesReader
- type PostUserPreferencesUnauthorized
- type UpdateUserPreferencesBadRequest
- type UpdateUserPreferencesConflict
- type UpdateUserPreferencesForbidden
- type UpdateUserPreferencesInternalServerError
- type UpdateUserPreferencesNotFound
- type UpdateUserPreferencesOK
- type UpdateUserPreferencesParams
- func NewUpdateUserPreferencesParams() *UpdateUserPreferencesParams
- func NewUpdateUserPreferencesParamsWithContext(ctx context.Context) *UpdateUserPreferencesParams
- func NewUpdateUserPreferencesParamsWithHTTPClient(client *http.Client) *UpdateUserPreferencesParams
- func NewUpdateUserPreferencesParamsWithTimeout(timeout time.Duration) *UpdateUserPreferencesParams
- func (o *UpdateUserPreferencesParams) SetContext(ctx context.Context)
- func (o *UpdateUserPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserPreferencesParams) SetResource(resource *models.UserPreferences)
- func (o *UpdateUserPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserPreferencesParams) WithContext(ctx context.Context) *UpdateUserPreferencesParams
- func (o *UpdateUserPreferencesParams) WithHTTPClient(client *http.Client) *UpdateUserPreferencesParams
- func (o *UpdateUserPreferencesParams) WithResource(resource *models.UserPreferences) *UpdateUserPreferencesParams
- func (o *UpdateUserPreferencesParams) WithTimeout(timeout time.Duration) *UpdateUserPreferencesParams
- func (o *UpdateUserPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserPreferencesReader
- type UpdateUserPreferencesUnauthorized
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 controller API
func (*Client) PostUserPreferences ¶
func (a *Client) PostUserPreferences(params *PostUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*PostUserPreferencesOK, error)
PostUserPreferences retrieves the current user s session preferences the username parameter is not yet supported
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateUserPreferences ¶
func (a *Client) UpdateUserPreferences(params *UpdateUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserPreferencesOK, error)
UpdateUserPreferences updates
type ClientService ¶
type ClientService interface { PostUserPreferences(params *PostUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*PostUserPreferencesOK, error) UpdateUserPreferences(params *UpdateUserPreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*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 controller API client.
type PostUserPreferencesBadRequest ¶
PostUserPreferencesBadRequest handles this case with default header values.
Bad Request
func NewPostUserPreferencesBadRequest ¶
func NewPostUserPreferencesBadRequest() *PostUserPreferencesBadRequest
NewPostUserPreferencesBadRequest creates a PostUserPreferencesBadRequest with default headers values
func (*PostUserPreferencesBadRequest) Error ¶
func (o *PostUserPreferencesBadRequest) Error() string
func (*PostUserPreferencesBadRequest) GetPayload ¶
func (o *PostUserPreferencesBadRequest) GetPayload() *models.APIResult
type PostUserPreferencesConflict ¶
PostUserPreferencesConflict handles this case with default header values.
Conflict
func NewPostUserPreferencesConflict ¶
func NewPostUserPreferencesConflict() *PostUserPreferencesConflict
NewPostUserPreferencesConflict creates a PostUserPreferencesConflict with default headers values
func (*PostUserPreferencesConflict) Error ¶
func (o *PostUserPreferencesConflict) Error() string
func (*PostUserPreferencesConflict) GetPayload ¶
func (o *PostUserPreferencesConflict) GetPayload() *models.APIResult
type PostUserPreferencesForbidden ¶
PostUserPreferencesForbidden handles this case with default header values.
Forbidden
func NewPostUserPreferencesForbidden ¶
func NewPostUserPreferencesForbidden() *PostUserPreferencesForbidden
NewPostUserPreferencesForbidden creates a PostUserPreferencesForbidden with default headers values
func (*PostUserPreferencesForbidden) Error ¶
func (o *PostUserPreferencesForbidden) Error() string
func (*PostUserPreferencesForbidden) GetPayload ¶
func (o *PostUserPreferencesForbidden) GetPayload() *models.APIResult
type PostUserPreferencesInternalServerError ¶
PostUserPreferencesInternalServerError handles this case with default header values.
Internal Server Error
func NewPostUserPreferencesInternalServerError ¶
func NewPostUserPreferencesInternalServerError() *PostUserPreferencesInternalServerError
NewPostUserPreferencesInternalServerError creates a PostUserPreferencesInternalServerError with default headers values
func (*PostUserPreferencesInternalServerError) Error ¶
func (o *PostUserPreferencesInternalServerError) Error() string
func (*PostUserPreferencesInternalServerError) GetPayload ¶
func (o *PostUserPreferencesInternalServerError) GetPayload() *models.APIResult
type PostUserPreferencesNotFound ¶
PostUserPreferencesNotFound handles this case with default header values.
Not Found
func NewPostUserPreferencesNotFound ¶
func NewPostUserPreferencesNotFound() *PostUserPreferencesNotFound
NewPostUserPreferencesNotFound creates a PostUserPreferencesNotFound with default headers values
func (*PostUserPreferencesNotFound) Error ¶
func (o *PostUserPreferencesNotFound) Error() string
func (*PostUserPreferencesNotFound) GetPayload ¶
func (o *PostUserPreferencesNotFound) GetPayload() *models.APIResult
type PostUserPreferencesOK ¶
type PostUserPreferencesOK struct {
Payload *models.APIResultUserPreferences
}
PostUserPreferencesOK handles this case with default header values.
OK
func NewPostUserPreferencesOK ¶
func NewPostUserPreferencesOK() *PostUserPreferencesOK
NewPostUserPreferencesOK creates a PostUserPreferencesOK with default headers values
func (*PostUserPreferencesOK) Error ¶
func (o *PostUserPreferencesOK) Error() string
func (*PostUserPreferencesOK) GetPayload ¶
func (o *PostUserPreferencesOK) GetPayload() *models.APIResultUserPreferences
type PostUserPreferencesParams ¶
type PostUserPreferencesParams struct { /*Username username */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostUserPreferencesParams contains all the parameters to send to the API endpoint for the post user preferences operation typically these are written to a http.Request
func NewPostUserPreferencesParams ¶
func NewPostUserPreferencesParams() *PostUserPreferencesParams
NewPostUserPreferencesParams creates a new PostUserPreferencesParams object with the default values initialized.
func NewPostUserPreferencesParamsWithContext ¶
func NewPostUserPreferencesParamsWithContext(ctx context.Context) *PostUserPreferencesParams
NewPostUserPreferencesParamsWithContext creates a new PostUserPreferencesParams object with the default values initialized, and the ability to set a context for a request
func NewPostUserPreferencesParamsWithHTTPClient ¶
func NewPostUserPreferencesParamsWithHTTPClient(client *http.Client) *PostUserPreferencesParams
NewPostUserPreferencesParamsWithHTTPClient creates a new PostUserPreferencesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostUserPreferencesParamsWithTimeout ¶
func NewPostUserPreferencesParamsWithTimeout(timeout time.Duration) *PostUserPreferencesParams
NewPostUserPreferencesParamsWithTimeout creates a new PostUserPreferencesParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostUserPreferencesParams) SetContext ¶
func (o *PostUserPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the post user preferences params
func (*PostUserPreferencesParams) SetHTTPClient ¶
func (o *PostUserPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post user preferences params
func (*PostUserPreferencesParams) SetTimeout ¶
func (o *PostUserPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post user preferences params
func (*PostUserPreferencesParams) SetUsername ¶
func (o *PostUserPreferencesParams) SetUsername(username string)
SetUsername adds the username to the post user preferences params
func (*PostUserPreferencesParams) WithContext ¶
func (o *PostUserPreferencesParams) WithContext(ctx context.Context) *PostUserPreferencesParams
WithContext adds the context to the post user preferences params
func (*PostUserPreferencesParams) WithHTTPClient ¶
func (o *PostUserPreferencesParams) WithHTTPClient(client *http.Client) *PostUserPreferencesParams
WithHTTPClient adds the HTTPClient to the post user preferences params
func (*PostUserPreferencesParams) WithTimeout ¶
func (o *PostUserPreferencesParams) WithTimeout(timeout time.Duration) *PostUserPreferencesParams
WithTimeout adds the timeout to the post user preferences params
func (*PostUserPreferencesParams) WithUsername ¶
func (o *PostUserPreferencesParams) WithUsername(username string) *PostUserPreferencesParams
WithUsername adds the username to the post user preferences params
func (*PostUserPreferencesParams) WriteToRequest ¶
func (o *PostUserPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostUserPreferencesReader ¶
type PostUserPreferencesReader struct {
// contains filtered or unexported fields
}
PostUserPreferencesReader is a Reader for the PostUserPreferences structure.
func (*PostUserPreferencesReader) ReadResponse ¶
func (o *PostUserPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostUserPreferencesUnauthorized ¶
type PostUserPreferencesUnauthorized struct {
}PostUserPreferencesUnauthorized handles this case with default header values.
Unauthorized
func NewPostUserPreferencesUnauthorized ¶
func NewPostUserPreferencesUnauthorized() *PostUserPreferencesUnauthorized
NewPostUserPreferencesUnauthorized creates a PostUserPreferencesUnauthorized with default headers values
func (*PostUserPreferencesUnauthorized) Error ¶
func (o *PostUserPreferencesUnauthorized) Error() string
func (*PostUserPreferencesUnauthorized) GetPayload ¶
func (o *PostUserPreferencesUnauthorized) GetPayload() *models.APIResult
type UpdateUserPreferencesBadRequest ¶
UpdateUserPreferencesBadRequest handles this case with default header values.
Bad Request
func NewUpdateUserPreferencesBadRequest ¶
func NewUpdateUserPreferencesBadRequest() *UpdateUserPreferencesBadRequest
NewUpdateUserPreferencesBadRequest creates a UpdateUserPreferencesBadRequest with default headers values
func (*UpdateUserPreferencesBadRequest) Error ¶
func (o *UpdateUserPreferencesBadRequest) Error() string
func (*UpdateUserPreferencesBadRequest) GetPayload ¶
func (o *UpdateUserPreferencesBadRequest) GetPayload() *models.APIResult
type UpdateUserPreferencesConflict ¶
UpdateUserPreferencesConflict handles this case with default header values.
Conflict
func NewUpdateUserPreferencesConflict ¶
func NewUpdateUserPreferencesConflict() *UpdateUserPreferencesConflict
NewUpdateUserPreferencesConflict creates a UpdateUserPreferencesConflict with default headers values
func (*UpdateUserPreferencesConflict) Error ¶
func (o *UpdateUserPreferencesConflict) Error() string
func (*UpdateUserPreferencesConflict) GetPayload ¶
func (o *UpdateUserPreferencesConflict) GetPayload() *models.APIResult
type UpdateUserPreferencesForbidden ¶
UpdateUserPreferencesForbidden handles this case with default header values.
Forbidden
func NewUpdateUserPreferencesForbidden ¶
func NewUpdateUserPreferencesForbidden() *UpdateUserPreferencesForbidden
NewUpdateUserPreferencesForbidden creates a UpdateUserPreferencesForbidden with default headers values
func (*UpdateUserPreferencesForbidden) Error ¶
func (o *UpdateUserPreferencesForbidden) Error() string
func (*UpdateUserPreferencesForbidden) GetPayload ¶
func (o *UpdateUserPreferencesForbidden) GetPayload() *models.APIResult
type UpdateUserPreferencesInternalServerError ¶
UpdateUserPreferencesInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdateUserPreferencesInternalServerError ¶
func NewUpdateUserPreferencesInternalServerError() *UpdateUserPreferencesInternalServerError
NewUpdateUserPreferencesInternalServerError creates a UpdateUserPreferencesInternalServerError with default headers values
func (*UpdateUserPreferencesInternalServerError) Error ¶
func (o *UpdateUserPreferencesInternalServerError) Error() string
func (*UpdateUserPreferencesInternalServerError) GetPayload ¶
func (o *UpdateUserPreferencesInternalServerError) GetPayload() *models.APIResult
type UpdateUserPreferencesNotFound ¶
UpdateUserPreferencesNotFound handles this case with default header values.
Not Found
func NewUpdateUserPreferencesNotFound ¶
func NewUpdateUserPreferencesNotFound() *UpdateUserPreferencesNotFound
NewUpdateUserPreferencesNotFound creates a UpdateUserPreferencesNotFound with default headers values
func (*UpdateUserPreferencesNotFound) Error ¶
func (o *UpdateUserPreferencesNotFound) Error() string
func (*UpdateUserPreferencesNotFound) GetPayload ¶
func (o *UpdateUserPreferencesNotFound) GetPayload() *models.APIResult
type UpdateUserPreferencesOK ¶
type UpdateUserPreferencesOK struct {
Payload *models.APIResultUserPreferences
}
UpdateUserPreferencesOK handles this case with default header values.
OK
func NewUpdateUserPreferencesOK ¶
func NewUpdateUserPreferencesOK() *UpdateUserPreferencesOK
NewUpdateUserPreferencesOK creates a UpdateUserPreferencesOK with default headers values
func (*UpdateUserPreferencesOK) Error ¶
func (o *UpdateUserPreferencesOK) Error() string
func (*UpdateUserPreferencesOK) GetPayload ¶
func (o *UpdateUserPreferencesOK) GetPayload() *models.APIResultUserPreferences
type UpdateUserPreferencesParams ¶
type UpdateUserPreferencesParams struct { /*Resource resource */ Resource *models.UserPreferences 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 values initialized.
func NewUpdateUserPreferencesParamsWithContext ¶
func NewUpdateUserPreferencesParamsWithContext(ctx context.Context) *UpdateUserPreferencesParams
NewUpdateUserPreferencesParamsWithContext creates a new UpdateUserPreferencesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdateUserPreferencesParams) SetContext ¶
func (o *UpdateUserPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the update user preferences params
func (*UpdateUserPreferencesParams) SetHTTPClient ¶
func (o *UpdateUserPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update user preferences params
func (*UpdateUserPreferencesParams) SetResource ¶
func (o *UpdateUserPreferencesParams) SetResource(resource *models.UserPreferences)
SetResource adds the resource 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) WithContext ¶
func (o *UpdateUserPreferencesParams) WithContext(ctx context.Context) *UpdateUserPreferencesParams
WithContext adds the context to the update user preferences params
func (*UpdateUserPreferencesParams) WithHTTPClient ¶
func (o *UpdateUserPreferencesParams) WithHTTPClient(client *http.Client) *UpdateUserPreferencesParams
WithHTTPClient adds the HTTPClient to the update user preferences params
func (*UpdateUserPreferencesParams) WithResource ¶
func (o *UpdateUserPreferencesParams) WithResource(resource *models.UserPreferences) *UpdateUserPreferencesParams
WithResource adds the resource to the update user preferences params
func (*UpdateUserPreferencesParams) WithTimeout ¶
func (o *UpdateUserPreferencesParams) WithTimeout(timeout time.Duration) *UpdateUserPreferencesParams
WithTimeout adds the timeout to the update user preferences params
func (*UpdateUserPreferencesParams) WriteToRequest ¶
func (o *UpdateUserPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}UpdateUserPreferencesUnauthorized handles this case with default header values.
Unauthorized
func NewUpdateUserPreferencesUnauthorized ¶
func NewUpdateUserPreferencesUnauthorized() *UpdateUserPreferencesUnauthorized
NewUpdateUserPreferencesUnauthorized creates a UpdateUserPreferencesUnauthorized with default headers values
func (*UpdateUserPreferencesUnauthorized) Error ¶
func (o *UpdateUserPreferencesUnauthorized) Error() string
func (*UpdateUserPreferencesUnauthorized) GetPayload ¶
func (o *UpdateUserPreferencesUnauthorized) GetPayload() *models.APIResult