user_preferences_controller

package
v0.0.0-...-7b3e9a7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 10 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 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

type PostUserPreferencesBadRequest struct {
	Payload *models.APIResult
}

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 (*PostUserPreferencesBadRequest) GetPayload

type PostUserPreferencesConflict

type PostUserPreferencesConflict struct {
	Payload *models.APIResult
}

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 (*PostUserPreferencesConflict) GetPayload

func (o *PostUserPreferencesConflict) GetPayload() *models.APIResult

type PostUserPreferencesForbidden

type PostUserPreferencesForbidden struct {
	Payload *models.APIResult
}

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 (*PostUserPreferencesForbidden) GetPayload

type PostUserPreferencesInternalServerError

type PostUserPreferencesInternalServerError struct {
	Payload *models.APIResult
}

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 (*PostUserPreferencesInternalServerError) GetPayload

type PostUserPreferencesNotFound

type PostUserPreferencesNotFound struct {
	Payload *models.APIResult
}

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 (*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

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

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

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

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 {
	Payload *models.APIResult
}

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 (*PostUserPreferencesUnauthorized) GetPayload

type UpdateUserPreferencesBadRequest

type UpdateUserPreferencesBadRequest struct {
	Payload *models.APIResult
}

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 (*UpdateUserPreferencesBadRequest) GetPayload

type UpdateUserPreferencesConflict

type UpdateUserPreferencesConflict struct {
	Payload *models.APIResult
}

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 (*UpdateUserPreferencesConflict) GetPayload

type UpdateUserPreferencesForbidden

type UpdateUserPreferencesForbidden struct {
	Payload *models.APIResult
}

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 (*UpdateUserPreferencesForbidden) GetPayload

type UpdateUserPreferencesInternalServerError

type UpdateUserPreferencesInternalServerError struct {
	Payload *models.APIResult
}

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 (*UpdateUserPreferencesInternalServerError) GetPayload

type UpdateUserPreferencesNotFound

type UpdateUserPreferencesNotFound struct {
	Payload *models.APIResult
}

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 (*UpdateUserPreferencesNotFound) GetPayload

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

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

WithContext adds the context to the update user preferences params

func (*UpdateUserPreferencesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update user preferences params

func (*UpdateUserPreferencesParams) WithResource

WithResource adds the resource 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.APIResult
}

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 (*UpdateUserPreferencesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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