settings

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 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

Code gets the status code for the get current user settings default response

func (*GetCurrentUserSettingsDefault) Error

func (*GetCurrentUserSettingsDefault) GetPayload

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

WithContext adds the context to the get current user settings params

func (*GetCurrentUserSettingsParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get current user settings params

func (*GetCurrentUserSettingsParams) WithTimeout

WithTimeout adds the timeout to the get current user settings params

func (*GetCurrentUserSettingsParams) WriteToRequest

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

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

Code gets the status code for the patch current user settings default response

func (*PatchCurrentUserSettingsDefault) Error

func (*PatchCurrentUserSettingsDefault) GetPayload

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

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

WithContext adds the context to the patch current user settings params

func (*PatchCurrentUserSettingsParams) WithDefaults

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

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

WithTimeout adds the timeout to the patch current user settings params

func (*PatchCurrentUserSettingsParams) WriteToRequest

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

Jump to

Keyboard shortcuts

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