settings

package
v2.14.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 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) (*GetCurrentUserSettingsOK, error)

GetCurrentUserSettings returns settings of the current user

func (*Client) PatchCurrentUserSettings

func (a *Client) PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*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 ClientService

type ClientService interface {
	GetCurrentUserSettings(params *GetCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserSettingsOK, error)

	PatchCurrentUserSettings(params *PatchCurrentUserSettingsParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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 handles this case 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 values initialized.

func NewGetCurrentUserSettingsParamsWithContext

func NewGetCurrentUserSettingsParamsWithContext(ctx context.Context) *GetCurrentUserSettingsParams

NewGetCurrentUserSettingsParamsWithContext creates a new GetCurrentUserSettingsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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 values initialized.

func NewPatchCurrentUserSettingsParamsWithContext

func NewPatchCurrentUserSettingsParamsWithContext(ctx context.Context) *PatchCurrentUserSettingsParams

NewPatchCurrentUserSettingsParamsWithContext creates a new PatchCurrentUserSettingsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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