user_session

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 session API

func (*Client) GetUserSessions

func (a *Client) GetUserSessions(params *GetUserSessionsParams, opts ...ClientOption) (*GetUserSessionsOK, error)

GetUserSessions get user sessions API

func (*Client) GetUserSessionsConnection

func (a *Client) GetUserSessionsConnection(params *GetUserSessionsConnectionParams, opts ...ClientOption) (*GetUserSessionsConnectionOK, error)

GetUserSessionsConnection get user sessions connection API

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 {
	GetUserSessions(params *GetUserSessionsParams, opts ...ClientOption) (*GetUserSessionsOK, error)

	GetUserSessionsConnection(params *GetUserSessionsConnectionParams, opts ...ClientOption) (*GetUserSessionsConnectionOK, 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 session API client.

type GetUserSessionsBadRequest

type GetUserSessionsBadRequest struct {
	Payload string
}
GetUserSessionsBadRequest describes a response with status code 400, with default header values.

GetUserSessionsBadRequest get user sessions bad request

func NewGetUserSessionsBadRequest

func NewGetUserSessionsBadRequest() *GetUserSessionsBadRequest

NewGetUserSessionsBadRequest creates a GetUserSessionsBadRequest with default headers values

func (*GetUserSessionsBadRequest) Error

func (o *GetUserSessionsBadRequest) Error() string

func (*GetUserSessionsBadRequest) GetPayload

func (o *GetUserSessionsBadRequest) GetPayload() string

type GetUserSessionsConnectionBadRequest

type GetUserSessionsConnectionBadRequest struct {
	Payload string
}
GetUserSessionsConnectionBadRequest describes a response with status code 400, with default header values.

GetUserSessionsConnectionBadRequest get user sessions connection bad request

func NewGetUserSessionsConnectionBadRequest

func NewGetUserSessionsConnectionBadRequest() *GetUserSessionsConnectionBadRequest

NewGetUserSessionsConnectionBadRequest creates a GetUserSessionsConnectionBadRequest with default headers values

func (*GetUserSessionsConnectionBadRequest) Error

func (*GetUserSessionsConnectionBadRequest) GetPayload

type GetUserSessionsConnectionOK

type GetUserSessionsConnectionOK struct {
	Payload *models.UserSessionConnection
}
GetUserSessionsConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetUserSessionsConnectionOK

func NewGetUserSessionsConnectionOK() *GetUserSessionsConnectionOK

NewGetUserSessionsConnectionOK creates a GetUserSessionsConnectionOK with default headers values

func (*GetUserSessionsConnectionOK) Error

func (*GetUserSessionsConnectionOK) GetPayload

type GetUserSessionsConnectionParams

type GetUserSessionsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUserSessionsConnectionRequestBody

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

GetUserSessionsConnectionParams contains all the parameters to send to the API endpoint

for the get user sessions connection operation.

Typically these are written to a http.Request.

func NewGetUserSessionsConnectionParams

func NewGetUserSessionsConnectionParams() *GetUserSessionsConnectionParams

NewGetUserSessionsConnectionParams creates a new GetUserSessionsConnectionParams 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 NewGetUserSessionsConnectionParamsWithContext

func NewGetUserSessionsConnectionParamsWithContext(ctx context.Context) *GetUserSessionsConnectionParams

NewGetUserSessionsConnectionParamsWithContext creates a new GetUserSessionsConnectionParams object with the ability to set a context for a request.

func NewGetUserSessionsConnectionParamsWithHTTPClient

func NewGetUserSessionsConnectionParamsWithHTTPClient(client *http.Client) *GetUserSessionsConnectionParams

NewGetUserSessionsConnectionParamsWithHTTPClient creates a new GetUserSessionsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserSessionsConnectionParamsWithTimeout

func NewGetUserSessionsConnectionParamsWithTimeout(timeout time.Duration) *GetUserSessionsConnectionParams

NewGetUserSessionsConnectionParamsWithTimeout creates a new GetUserSessionsConnectionParams object with the ability to set a timeout on a request.

func (*GetUserSessionsConnectionParams) SetContentLanguage

func (o *GetUserSessionsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get user sessions connection params

func (*GetUserSessionsConnectionParams) SetContext

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

SetContext adds the context to the get user sessions connection params

func (*GetUserSessionsConnectionParams) SetDefaults

func (o *GetUserSessionsConnectionParams) SetDefaults()

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

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

func (*GetUserSessionsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user sessions connection params

func (*GetUserSessionsConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get user sessions connection params

func (*GetUserSessionsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WithContentLanguage

func (o *GetUserSessionsConnectionParams) WithContentLanguage(contentLanguage *string) *GetUserSessionsConnectionParams

WithContentLanguage adds the contentLanguage to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WithContext

WithContext adds the context to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WithDefaults

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

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

func (*GetUserSessionsConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get user sessions connection params

func (*GetUserSessionsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserSessionsConnectionReader

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

GetUserSessionsConnectionReader is a Reader for the GetUserSessionsConnection structure.

func (*GetUserSessionsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserSessionsOK

type GetUserSessionsOK struct {
	Payload []*models.UserSession
}
GetUserSessionsOK describes a response with status code 200, with default header values.

Ok

func NewGetUserSessionsOK

func NewGetUserSessionsOK() *GetUserSessionsOK

NewGetUserSessionsOK creates a GetUserSessionsOK with default headers values

func (*GetUserSessionsOK) Error

func (o *GetUserSessionsOK) Error() string

func (*GetUserSessionsOK) GetPayload

func (o *GetUserSessionsOK) GetPayload() []*models.UserSession

type GetUserSessionsParams

type GetUserSessionsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUserSessionsRequestBody

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

GetUserSessionsParams contains all the parameters to send to the API endpoint

for the get user sessions operation.

Typically these are written to a http.Request.

func NewGetUserSessionsParams

func NewGetUserSessionsParams() *GetUserSessionsParams

NewGetUserSessionsParams creates a new GetUserSessionsParams 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 NewGetUserSessionsParamsWithContext

func NewGetUserSessionsParamsWithContext(ctx context.Context) *GetUserSessionsParams

NewGetUserSessionsParamsWithContext creates a new GetUserSessionsParams object with the ability to set a context for a request.

func NewGetUserSessionsParamsWithHTTPClient

func NewGetUserSessionsParamsWithHTTPClient(client *http.Client) *GetUserSessionsParams

NewGetUserSessionsParamsWithHTTPClient creates a new GetUserSessionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserSessionsParamsWithTimeout

func NewGetUserSessionsParamsWithTimeout(timeout time.Duration) *GetUserSessionsParams

NewGetUserSessionsParamsWithTimeout creates a new GetUserSessionsParams object with the ability to set a timeout on a request.

func (*GetUserSessionsParams) SetContentLanguage

func (o *GetUserSessionsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get user sessions params

func (*GetUserSessionsParams) SetContext

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

SetContext adds the context to the get user sessions params

func (*GetUserSessionsParams) SetDefaults

func (o *GetUserSessionsParams) SetDefaults()

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

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

func (*GetUserSessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user sessions params

func (*GetUserSessionsParams) SetRequestBody

func (o *GetUserSessionsParams) SetRequestBody(requestBody *models.GetUserSessionsRequestBody)

SetRequestBody adds the requestBody to the get user sessions params

func (*GetUserSessionsParams) SetTimeout

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

SetTimeout adds the timeout to the get user sessions params

func (*GetUserSessionsParams) WithContentLanguage

func (o *GetUserSessionsParams) WithContentLanguage(contentLanguage *string) *GetUserSessionsParams

WithContentLanguage adds the contentLanguage to the get user sessions params

func (*GetUserSessionsParams) WithContext

WithContext adds the context to the get user sessions params

func (*GetUserSessionsParams) WithDefaults

func (o *GetUserSessionsParams) WithDefaults() *GetUserSessionsParams

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

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

func (*GetUserSessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user sessions params

func (*GetUserSessionsParams) WithRequestBody

WithRequestBody adds the requestBody to the get user sessions params

func (*GetUserSessionsParams) WithTimeout

func (o *GetUserSessionsParams) WithTimeout(timeout time.Duration) *GetUserSessionsParams

WithTimeout adds the timeout to the get user sessions params

func (*GetUserSessionsParams) WriteToRequest

func (o *GetUserSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUserSessionsReader

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

GetUserSessionsReader is a Reader for the GetUserSessions structure.

func (*GetUserSessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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