Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSessionNoContent, error)
- func (a *Client) ListUserSessions(params *ListUserSessionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUserSessionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteSessionForbidden
- func (o *DeleteSessionForbidden) Code() int
- func (o *DeleteSessionForbidden) Error() string
- func (o *DeleteSessionForbidden) GetPayload() *models.Error
- func (o *DeleteSessionForbidden) IsClientError() bool
- func (o *DeleteSessionForbidden) IsCode(code int) bool
- func (o *DeleteSessionForbidden) IsRedirect() bool
- func (o *DeleteSessionForbidden) IsServerError() bool
- func (o *DeleteSessionForbidden) IsSuccess() bool
- func (o *DeleteSessionForbidden) String() string
- type DeleteSessionNoContent
- func (o *DeleteSessionNoContent) Code() int
- func (o *DeleteSessionNoContent) Error() string
- func (o *DeleteSessionNoContent) IsClientError() bool
- func (o *DeleteSessionNoContent) IsCode(code int) bool
- func (o *DeleteSessionNoContent) IsRedirect() bool
- func (o *DeleteSessionNoContent) IsServerError() bool
- func (o *DeleteSessionNoContent) IsSuccess() bool
- func (o *DeleteSessionNoContent) String() string
- type DeleteSessionNotFound
- func (o *DeleteSessionNotFound) Code() int
- func (o *DeleteSessionNotFound) Error() string
- func (o *DeleteSessionNotFound) GetPayload() *models.Error
- func (o *DeleteSessionNotFound) IsClientError() bool
- func (o *DeleteSessionNotFound) IsCode(code int) bool
- func (o *DeleteSessionNotFound) IsRedirect() bool
- func (o *DeleteSessionNotFound) IsServerError() bool
- func (o *DeleteSessionNotFound) IsSuccess() bool
- func (o *DeleteSessionNotFound) String() string
- type DeleteSessionParams
- func (o *DeleteSessionParams) SetContext(ctx context.Context)
- func (o *DeleteSessionParams) SetDefaults()
- func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSessionParams) SetSessionID(sessionID string)
- func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
- func (o *DeleteSessionParams) WithDefaults() *DeleteSessionParams
- func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
- func (o *DeleteSessionParams) WithSessionID(sessionID string) *DeleteSessionParams
- func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
- func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSessionReader
- type DeleteSessionTooManyRequests
- func (o *DeleteSessionTooManyRequests) Code() int
- func (o *DeleteSessionTooManyRequests) Error() string
- func (o *DeleteSessionTooManyRequests) GetPayload() *models.Error
- func (o *DeleteSessionTooManyRequests) IsClientError() bool
- func (o *DeleteSessionTooManyRequests) IsCode(code int) bool
- func (o *DeleteSessionTooManyRequests) IsRedirect() bool
- func (o *DeleteSessionTooManyRequests) IsServerError() bool
- func (o *DeleteSessionTooManyRequests) IsSuccess() bool
- func (o *DeleteSessionTooManyRequests) String() string
- type DeleteSessionUnauthorized
- func (o *DeleteSessionUnauthorized) Code() int
- func (o *DeleteSessionUnauthorized) Error() string
- func (o *DeleteSessionUnauthorized) GetPayload() *models.Error
- func (o *DeleteSessionUnauthorized) IsClientError() bool
- func (o *DeleteSessionUnauthorized) IsCode(code int) bool
- func (o *DeleteSessionUnauthorized) IsRedirect() bool
- func (o *DeleteSessionUnauthorized) IsServerError() bool
- func (o *DeleteSessionUnauthorized) IsSuccess() bool
- func (o *DeleteSessionUnauthorized) String() string
- type ListUserSessionsForbidden
- func (o *ListUserSessionsForbidden) Code() int
- func (o *ListUserSessionsForbidden) Error() string
- func (o *ListUserSessionsForbidden) GetPayload() *models.Error
- func (o *ListUserSessionsForbidden) IsClientError() bool
- func (o *ListUserSessionsForbidden) IsCode(code int) bool
- func (o *ListUserSessionsForbidden) IsRedirect() bool
- func (o *ListUserSessionsForbidden) IsServerError() bool
- func (o *ListUserSessionsForbidden) IsSuccess() bool
- func (o *ListUserSessionsForbidden) String() string
- type ListUserSessionsNotFound
- func (o *ListUserSessionsNotFound) Code() int
- func (o *ListUserSessionsNotFound) Error() string
- func (o *ListUserSessionsNotFound) GetPayload() *models.Error
- func (o *ListUserSessionsNotFound) IsClientError() bool
- func (o *ListUserSessionsNotFound) IsCode(code int) bool
- func (o *ListUserSessionsNotFound) IsRedirect() bool
- func (o *ListUserSessionsNotFound) IsServerError() bool
- func (o *ListUserSessionsNotFound) IsSuccess() bool
- func (o *ListUserSessionsNotFound) String() string
- type ListUserSessionsOK
- func (o *ListUserSessionsOK) Code() int
- func (o *ListUserSessionsOK) Error() string
- func (o *ListUserSessionsOK) GetPayload() *models.ListUserSessions
- func (o *ListUserSessionsOK) IsClientError() bool
- func (o *ListUserSessionsOK) IsCode(code int) bool
- func (o *ListUserSessionsOK) IsRedirect() bool
- func (o *ListUserSessionsOK) IsServerError() bool
- func (o *ListUserSessionsOK) IsSuccess() bool
- func (o *ListUserSessionsOK) String() string
- type ListUserSessionsParams
- func NewListUserSessionsParams() *ListUserSessionsParams
- func NewListUserSessionsParamsWithContext(ctx context.Context) *ListUserSessionsParams
- func NewListUserSessionsParamsWithHTTPClient(client *http.Client) *ListUserSessionsParams
- func NewListUserSessionsParamsWithTimeout(timeout time.Duration) *ListUserSessionsParams
- func (o *ListUserSessionsParams) SetContext(ctx context.Context)
- func (o *ListUserSessionsParams) SetDefaults()
- func (o *ListUserSessionsParams) SetHTTPClient(client *http.Client)
- func (o *ListUserSessionsParams) SetTimeout(timeout time.Duration)
- func (o *ListUserSessionsParams) WithContext(ctx context.Context) *ListUserSessionsParams
- func (o *ListUserSessionsParams) WithDefaults() *ListUserSessionsParams
- func (o *ListUserSessionsParams) WithHTTPClient(client *http.Client) *ListUserSessionsParams
- func (o *ListUserSessionsParams) WithTimeout(timeout time.Duration) *ListUserSessionsParams
- func (o *ListUserSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUserSessionsReader
- type ListUserSessionsTooManyRequests
- func (o *ListUserSessionsTooManyRequests) Code() int
- func (o *ListUserSessionsTooManyRequests) Error() string
- func (o *ListUserSessionsTooManyRequests) GetPayload() *models.Error
- func (o *ListUserSessionsTooManyRequests) IsClientError() bool
- func (o *ListUserSessionsTooManyRequests) IsCode(code int) bool
- func (o *ListUserSessionsTooManyRequests) IsRedirect() bool
- func (o *ListUserSessionsTooManyRequests) IsServerError() bool
- func (o *ListUserSessionsTooManyRequests) IsSuccess() bool
- func (o *ListUserSessionsTooManyRequests) String() string
- type ListUserSessionsUnauthorized
- func (o *ListUserSessionsUnauthorized) Code() int
- func (o *ListUserSessionsUnauthorized) Error() string
- func (o *ListUserSessionsUnauthorized) GetPayload() *models.Error
- func (o *ListUserSessionsUnauthorized) IsClientError() bool
- func (o *ListUserSessionsUnauthorized) IsCode(code int) bool
- func (o *ListUserSessionsUnauthorized) IsRedirect() bool
- func (o *ListUserSessionsUnauthorized) IsServerError() bool
- func (o *ListUserSessionsUnauthorized) IsSuccess() bool
- func (o *ListUserSessionsUnauthorized) String() string
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 sessions API
func (*Client) DeleteSession ¶
func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSessionNoContent, error)
DeleteSession deletes user session
func (*Client) ListUserSessions ¶
func (a *Client) ListUserSessions(params *ListUserSessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserSessionsOK, error)
ListUserSessions lists user sessions
User sessions.
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 { DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSessionNoContent, error) ListUserSessions(params *ListUserSessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserSessionsOK, 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 sessions API client.
type DeleteSessionForbidden ¶
DeleteSessionForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteSessionForbidden ¶
func NewDeleteSessionForbidden() *DeleteSessionForbidden
NewDeleteSessionForbidden creates a DeleteSessionForbidden with default headers values
func (*DeleteSessionForbidden) Code ¶
func (o *DeleteSessionForbidden) Code() int
Code gets the status code for the delete session forbidden response
func (*DeleteSessionForbidden) Error ¶
func (o *DeleteSessionForbidden) Error() string
func (*DeleteSessionForbidden) GetPayload ¶
func (o *DeleteSessionForbidden) GetPayload() *models.Error
func (*DeleteSessionForbidden) IsClientError ¶
func (o *DeleteSessionForbidden) IsClientError() bool
IsClientError returns true when this delete session forbidden response has a 4xx status code
func (*DeleteSessionForbidden) IsCode ¶
func (o *DeleteSessionForbidden) IsCode(code int) bool
IsCode returns true when this delete session forbidden response a status code equal to that given
func (*DeleteSessionForbidden) IsRedirect ¶
func (o *DeleteSessionForbidden) IsRedirect() bool
IsRedirect returns true when this delete session forbidden response has a 3xx status code
func (*DeleteSessionForbidden) IsServerError ¶
func (o *DeleteSessionForbidden) IsServerError() bool
IsServerError returns true when this delete session forbidden response has a 5xx status code
func (*DeleteSessionForbidden) IsSuccess ¶
func (o *DeleteSessionForbidden) IsSuccess() bool
IsSuccess returns true when this delete session forbidden response has a 2xx status code
func (*DeleteSessionForbidden) String ¶
func (o *DeleteSessionForbidden) String() string
type DeleteSessionNoContent ¶
type DeleteSessionNoContent struct { }
DeleteSessionNoContent describes a response with status code 204, with default header values.
Session has been deleted
func NewDeleteSessionNoContent ¶
func NewDeleteSessionNoContent() *DeleteSessionNoContent
NewDeleteSessionNoContent creates a DeleteSessionNoContent with default headers values
func (*DeleteSessionNoContent) Code ¶
func (o *DeleteSessionNoContent) Code() int
Code gets the status code for the delete session no content response
func (*DeleteSessionNoContent) Error ¶
func (o *DeleteSessionNoContent) Error() string
func (*DeleteSessionNoContent) IsClientError ¶
func (o *DeleteSessionNoContent) IsClientError() bool
IsClientError returns true when this delete session no content response has a 4xx status code
func (*DeleteSessionNoContent) IsCode ¶
func (o *DeleteSessionNoContent) IsCode(code int) bool
IsCode returns true when this delete session no content response a status code equal to that given
func (*DeleteSessionNoContent) IsRedirect ¶
func (o *DeleteSessionNoContent) IsRedirect() bool
IsRedirect returns true when this delete session no content response has a 3xx status code
func (*DeleteSessionNoContent) IsServerError ¶
func (o *DeleteSessionNoContent) IsServerError() bool
IsServerError returns true when this delete session no content response has a 5xx status code
func (*DeleteSessionNoContent) IsSuccess ¶
func (o *DeleteSessionNoContent) IsSuccess() bool
IsSuccess returns true when this delete session no content response has a 2xx status code
func (*DeleteSessionNoContent) String ¶
func (o *DeleteSessionNoContent) String() string
type DeleteSessionNotFound ¶
DeleteSessionNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteSessionNotFound ¶
func NewDeleteSessionNotFound() *DeleteSessionNotFound
NewDeleteSessionNotFound creates a DeleteSessionNotFound with default headers values
func (*DeleteSessionNotFound) Code ¶
func (o *DeleteSessionNotFound) Code() int
Code gets the status code for the delete session not found response
func (*DeleteSessionNotFound) Error ¶
func (o *DeleteSessionNotFound) Error() string
func (*DeleteSessionNotFound) GetPayload ¶
func (o *DeleteSessionNotFound) GetPayload() *models.Error
func (*DeleteSessionNotFound) IsClientError ¶
func (o *DeleteSessionNotFound) IsClientError() bool
IsClientError returns true when this delete session not found response has a 4xx status code
func (*DeleteSessionNotFound) IsCode ¶
func (o *DeleteSessionNotFound) IsCode(code int) bool
IsCode returns true when this delete session not found response a status code equal to that given
func (*DeleteSessionNotFound) IsRedirect ¶
func (o *DeleteSessionNotFound) IsRedirect() bool
IsRedirect returns true when this delete session not found response has a 3xx status code
func (*DeleteSessionNotFound) IsServerError ¶
func (o *DeleteSessionNotFound) IsServerError() bool
IsServerError returns true when this delete session not found response has a 5xx status code
func (*DeleteSessionNotFound) IsSuccess ¶
func (o *DeleteSessionNotFound) IsSuccess() bool
IsSuccess returns true when this delete session not found response has a 2xx status code
func (*DeleteSessionNotFound) String ¶
func (o *DeleteSessionNotFound) String() string
type DeleteSessionParams ¶
type DeleteSessionParams struct { /* SessionID. Session id Default: "default" */ SessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSessionParams contains all the parameters to send to the API endpoint
for the delete session operation. Typically these are written to a http.Request.
func NewDeleteSessionParams ¶
func NewDeleteSessionParams() *DeleteSessionParams
NewDeleteSessionParams creates a new DeleteSessionParams 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 NewDeleteSessionParamsWithContext ¶
func NewDeleteSessionParamsWithContext(ctx context.Context) *DeleteSessionParams
NewDeleteSessionParamsWithContext creates a new DeleteSessionParams object with the ability to set a context for a request.
func NewDeleteSessionParamsWithHTTPClient ¶
func NewDeleteSessionParamsWithHTTPClient(client *http.Client) *DeleteSessionParams
NewDeleteSessionParamsWithHTTPClient creates a new DeleteSessionParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSessionParamsWithTimeout ¶
func NewDeleteSessionParamsWithTimeout(timeout time.Duration) *DeleteSessionParams
NewDeleteSessionParamsWithTimeout creates a new DeleteSessionParams object with the ability to set a timeout on a request.
func (*DeleteSessionParams) SetContext ¶
func (o *DeleteSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete session params
func (*DeleteSessionParams) SetDefaults ¶
func (o *DeleteSessionParams) SetDefaults()
SetDefaults hydrates default values in the delete session params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSessionParams) SetHTTPClient ¶
func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) SetSessionID ¶
func (o *DeleteSessionParams) SetSessionID(sessionID string)
SetSessionID adds the sessionId to the delete session params
func (*DeleteSessionParams) SetTimeout ¶
func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WithContext ¶
func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
WithContext adds the context to the delete session params
func (*DeleteSessionParams) WithDefaults ¶
func (o *DeleteSessionParams) WithDefaults() *DeleteSessionParams
WithDefaults hydrates default values in the delete session params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSessionParams) WithHTTPClient ¶
func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
WithHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) WithSessionID ¶
func (o *DeleteSessionParams) WithSessionID(sessionID string) *DeleteSessionParams
WithSessionID adds the sessionID to the delete session params
func (*DeleteSessionParams) WithTimeout ¶
func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
WithTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WriteToRequest ¶
func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSessionReader ¶
type DeleteSessionReader struct {
// contains filtered or unexported fields
}
DeleteSessionReader is a Reader for the DeleteSession structure.
func (*DeleteSessionReader) ReadResponse ¶
func (o *DeleteSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSessionTooManyRequests ¶
DeleteSessionTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewDeleteSessionTooManyRequests ¶
func NewDeleteSessionTooManyRequests() *DeleteSessionTooManyRequests
NewDeleteSessionTooManyRequests creates a DeleteSessionTooManyRequests with default headers values
func (*DeleteSessionTooManyRequests) Code ¶
func (o *DeleteSessionTooManyRequests) Code() int
Code gets the status code for the delete session too many requests response
func (*DeleteSessionTooManyRequests) Error ¶
func (o *DeleteSessionTooManyRequests) Error() string
func (*DeleteSessionTooManyRequests) GetPayload ¶
func (o *DeleteSessionTooManyRequests) GetPayload() *models.Error
func (*DeleteSessionTooManyRequests) IsClientError ¶
func (o *DeleteSessionTooManyRequests) IsClientError() bool
IsClientError returns true when this delete session too many requests response has a 4xx status code
func (*DeleteSessionTooManyRequests) IsCode ¶
func (o *DeleteSessionTooManyRequests) IsCode(code int) bool
IsCode returns true when this delete session too many requests response a status code equal to that given
func (*DeleteSessionTooManyRequests) IsRedirect ¶
func (o *DeleteSessionTooManyRequests) IsRedirect() bool
IsRedirect returns true when this delete session too many requests response has a 3xx status code
func (*DeleteSessionTooManyRequests) IsServerError ¶
func (o *DeleteSessionTooManyRequests) IsServerError() bool
IsServerError returns true when this delete session too many requests response has a 5xx status code
func (*DeleteSessionTooManyRequests) IsSuccess ¶
func (o *DeleteSessionTooManyRequests) IsSuccess() bool
IsSuccess returns true when this delete session too many requests response has a 2xx status code
func (*DeleteSessionTooManyRequests) String ¶
func (o *DeleteSessionTooManyRequests) String() string
type DeleteSessionUnauthorized ¶
type DeleteSessionUnauthorized struct {
}DeleteSessionUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteSessionUnauthorized ¶
func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized
NewDeleteSessionUnauthorized creates a DeleteSessionUnauthorized with default headers values
func (*DeleteSessionUnauthorized) Code ¶
func (o *DeleteSessionUnauthorized) Code() int
Code gets the status code for the delete session unauthorized response
func (*DeleteSessionUnauthorized) Error ¶
func (o *DeleteSessionUnauthorized) Error() string
func (*DeleteSessionUnauthorized) GetPayload ¶
func (o *DeleteSessionUnauthorized) GetPayload() *models.Error
func (*DeleteSessionUnauthorized) IsClientError ¶
func (o *DeleteSessionUnauthorized) IsClientError() bool
IsClientError returns true when this delete session unauthorized response has a 4xx status code
func (*DeleteSessionUnauthorized) IsCode ¶
func (o *DeleteSessionUnauthorized) IsCode(code int) bool
IsCode returns true when this delete session unauthorized response a status code equal to that given
func (*DeleteSessionUnauthorized) IsRedirect ¶
func (o *DeleteSessionUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete session unauthorized response has a 3xx status code
func (*DeleteSessionUnauthorized) IsServerError ¶
func (o *DeleteSessionUnauthorized) IsServerError() bool
IsServerError returns true when this delete session unauthorized response has a 5xx status code
func (*DeleteSessionUnauthorized) IsSuccess ¶
func (o *DeleteSessionUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete session unauthorized response has a 2xx status code
func (*DeleteSessionUnauthorized) String ¶
func (o *DeleteSessionUnauthorized) String() string
type ListUserSessionsForbidden ¶
ListUserSessionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListUserSessionsForbidden ¶
func NewListUserSessionsForbidden() *ListUserSessionsForbidden
NewListUserSessionsForbidden creates a ListUserSessionsForbidden with default headers values
func (*ListUserSessionsForbidden) Code ¶
func (o *ListUserSessionsForbidden) Code() int
Code gets the status code for the list user sessions forbidden response
func (*ListUserSessionsForbidden) Error ¶
func (o *ListUserSessionsForbidden) Error() string
func (*ListUserSessionsForbidden) GetPayload ¶
func (o *ListUserSessionsForbidden) GetPayload() *models.Error
func (*ListUserSessionsForbidden) IsClientError ¶
func (o *ListUserSessionsForbidden) IsClientError() bool
IsClientError returns true when this list user sessions forbidden response has a 4xx status code
func (*ListUserSessionsForbidden) IsCode ¶
func (o *ListUserSessionsForbidden) IsCode(code int) bool
IsCode returns true when this list user sessions forbidden response a status code equal to that given
func (*ListUserSessionsForbidden) IsRedirect ¶
func (o *ListUserSessionsForbidden) IsRedirect() bool
IsRedirect returns true when this list user sessions forbidden response has a 3xx status code
func (*ListUserSessionsForbidden) IsServerError ¶
func (o *ListUserSessionsForbidden) IsServerError() bool
IsServerError returns true when this list user sessions forbidden response has a 5xx status code
func (*ListUserSessionsForbidden) IsSuccess ¶
func (o *ListUserSessionsForbidden) IsSuccess() bool
IsSuccess returns true when this list user sessions forbidden response has a 2xx status code
func (*ListUserSessionsForbidden) String ¶
func (o *ListUserSessionsForbidden) String() string
type ListUserSessionsNotFound ¶
ListUserSessionsNotFound describes a response with status code 404, with default header values.
Not found
func NewListUserSessionsNotFound ¶
func NewListUserSessionsNotFound() *ListUserSessionsNotFound
NewListUserSessionsNotFound creates a ListUserSessionsNotFound with default headers values
func (*ListUserSessionsNotFound) Code ¶
func (o *ListUserSessionsNotFound) Code() int
Code gets the status code for the list user sessions not found response
func (*ListUserSessionsNotFound) Error ¶
func (o *ListUserSessionsNotFound) Error() string
func (*ListUserSessionsNotFound) GetPayload ¶
func (o *ListUserSessionsNotFound) GetPayload() *models.Error
func (*ListUserSessionsNotFound) IsClientError ¶
func (o *ListUserSessionsNotFound) IsClientError() bool
IsClientError returns true when this list user sessions not found response has a 4xx status code
func (*ListUserSessionsNotFound) IsCode ¶
func (o *ListUserSessionsNotFound) IsCode(code int) bool
IsCode returns true when this list user sessions not found response a status code equal to that given
func (*ListUserSessionsNotFound) IsRedirect ¶
func (o *ListUserSessionsNotFound) IsRedirect() bool
IsRedirect returns true when this list user sessions not found response has a 3xx status code
func (*ListUserSessionsNotFound) IsServerError ¶
func (o *ListUserSessionsNotFound) IsServerError() bool
IsServerError returns true when this list user sessions not found response has a 5xx status code
func (*ListUserSessionsNotFound) IsSuccess ¶
func (o *ListUserSessionsNotFound) IsSuccess() bool
IsSuccess returns true when this list user sessions not found response has a 2xx status code
func (*ListUserSessionsNotFound) String ¶
func (o *ListUserSessionsNotFound) String() string
type ListUserSessionsOK ¶
type ListUserSessionsOK struct {
Payload *models.ListUserSessions
}
ListUserSessionsOK describes a response with status code 200, with default header values.
User sessions
func NewListUserSessionsOK ¶
func NewListUserSessionsOK() *ListUserSessionsOK
NewListUserSessionsOK creates a ListUserSessionsOK with default headers values
func (*ListUserSessionsOK) Code ¶
func (o *ListUserSessionsOK) Code() int
Code gets the status code for the list user sessions o k response
func (*ListUserSessionsOK) Error ¶
func (o *ListUserSessionsOK) Error() string
func (*ListUserSessionsOK) GetPayload ¶
func (o *ListUserSessionsOK) GetPayload() *models.ListUserSessions
func (*ListUserSessionsOK) IsClientError ¶
func (o *ListUserSessionsOK) IsClientError() bool
IsClientError returns true when this list user sessions o k response has a 4xx status code
func (*ListUserSessionsOK) IsCode ¶
func (o *ListUserSessionsOK) IsCode(code int) bool
IsCode returns true when this list user sessions o k response a status code equal to that given
func (*ListUserSessionsOK) IsRedirect ¶
func (o *ListUserSessionsOK) IsRedirect() bool
IsRedirect returns true when this list user sessions o k response has a 3xx status code
func (*ListUserSessionsOK) IsServerError ¶
func (o *ListUserSessionsOK) IsServerError() bool
IsServerError returns true when this list user sessions o k response has a 5xx status code
func (*ListUserSessionsOK) IsSuccess ¶
func (o *ListUserSessionsOK) IsSuccess() bool
IsSuccess returns true when this list user sessions o k response has a 2xx status code
func (*ListUserSessionsOK) String ¶
func (o *ListUserSessionsOK) String() string
type ListUserSessionsParams ¶
type ListUserSessionsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUserSessionsParams contains all the parameters to send to the API endpoint
for the list user sessions operation. Typically these are written to a http.Request.
func NewListUserSessionsParams ¶
func NewListUserSessionsParams() *ListUserSessionsParams
NewListUserSessionsParams creates a new ListUserSessionsParams 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 NewListUserSessionsParamsWithContext ¶
func NewListUserSessionsParamsWithContext(ctx context.Context) *ListUserSessionsParams
NewListUserSessionsParamsWithContext creates a new ListUserSessionsParams object with the ability to set a context for a request.
func NewListUserSessionsParamsWithHTTPClient ¶
func NewListUserSessionsParamsWithHTTPClient(client *http.Client) *ListUserSessionsParams
NewListUserSessionsParamsWithHTTPClient creates a new ListUserSessionsParams object with the ability to set a custom HTTPClient for a request.
func NewListUserSessionsParamsWithTimeout ¶
func NewListUserSessionsParamsWithTimeout(timeout time.Duration) *ListUserSessionsParams
NewListUserSessionsParamsWithTimeout creates a new ListUserSessionsParams object with the ability to set a timeout on a request.
func (*ListUserSessionsParams) SetContext ¶
func (o *ListUserSessionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list user sessions params
func (*ListUserSessionsParams) SetDefaults ¶
func (o *ListUserSessionsParams) SetDefaults()
SetDefaults hydrates default values in the list user sessions params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserSessionsParams) SetHTTPClient ¶
func (o *ListUserSessionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list user sessions params
func (*ListUserSessionsParams) SetTimeout ¶
func (o *ListUserSessionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list user sessions params
func (*ListUserSessionsParams) WithContext ¶
func (o *ListUserSessionsParams) WithContext(ctx context.Context) *ListUserSessionsParams
WithContext adds the context to the list user sessions params
func (*ListUserSessionsParams) WithDefaults ¶
func (o *ListUserSessionsParams) WithDefaults() *ListUserSessionsParams
WithDefaults hydrates default values in the list user sessions params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserSessionsParams) WithHTTPClient ¶
func (o *ListUserSessionsParams) WithHTTPClient(client *http.Client) *ListUserSessionsParams
WithHTTPClient adds the HTTPClient to the list user sessions params
func (*ListUserSessionsParams) WithTimeout ¶
func (o *ListUserSessionsParams) WithTimeout(timeout time.Duration) *ListUserSessionsParams
WithTimeout adds the timeout to the list user sessions params
func (*ListUserSessionsParams) WriteToRequest ¶
func (o *ListUserSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUserSessionsReader ¶
type ListUserSessionsReader struct {
// contains filtered or unexported fields
}
ListUserSessionsReader is a Reader for the ListUserSessions structure.
func (*ListUserSessionsReader) ReadResponse ¶
func (o *ListUserSessionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUserSessionsTooManyRequests ¶
ListUserSessionsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListUserSessionsTooManyRequests ¶
func NewListUserSessionsTooManyRequests() *ListUserSessionsTooManyRequests
NewListUserSessionsTooManyRequests creates a ListUserSessionsTooManyRequests with default headers values
func (*ListUserSessionsTooManyRequests) Code ¶
func (o *ListUserSessionsTooManyRequests) Code() int
Code gets the status code for the list user sessions too many requests response
func (*ListUserSessionsTooManyRequests) Error ¶
func (o *ListUserSessionsTooManyRequests) Error() string
func (*ListUserSessionsTooManyRequests) GetPayload ¶
func (o *ListUserSessionsTooManyRequests) GetPayload() *models.Error
func (*ListUserSessionsTooManyRequests) IsClientError ¶
func (o *ListUserSessionsTooManyRequests) IsClientError() bool
IsClientError returns true when this list user sessions too many requests response has a 4xx status code
func (*ListUserSessionsTooManyRequests) IsCode ¶
func (o *ListUserSessionsTooManyRequests) IsCode(code int) bool
IsCode returns true when this list user sessions too many requests response a status code equal to that given
func (*ListUserSessionsTooManyRequests) IsRedirect ¶
func (o *ListUserSessionsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list user sessions too many requests response has a 3xx status code
func (*ListUserSessionsTooManyRequests) IsServerError ¶
func (o *ListUserSessionsTooManyRequests) IsServerError() bool
IsServerError returns true when this list user sessions too many requests response has a 5xx status code
func (*ListUserSessionsTooManyRequests) IsSuccess ¶
func (o *ListUserSessionsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list user sessions too many requests response has a 2xx status code
func (*ListUserSessionsTooManyRequests) String ¶
func (o *ListUserSessionsTooManyRequests) String() string
type ListUserSessionsUnauthorized ¶
type ListUserSessionsUnauthorized struct {
}ListUserSessionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListUserSessionsUnauthorized ¶
func NewListUserSessionsUnauthorized() *ListUserSessionsUnauthorized
NewListUserSessionsUnauthorized creates a ListUserSessionsUnauthorized with default headers values
func (*ListUserSessionsUnauthorized) Code ¶
func (o *ListUserSessionsUnauthorized) Code() int
Code gets the status code for the list user sessions unauthorized response
func (*ListUserSessionsUnauthorized) Error ¶
func (o *ListUserSessionsUnauthorized) Error() string
func (*ListUserSessionsUnauthorized) GetPayload ¶
func (o *ListUserSessionsUnauthorized) GetPayload() *models.Error
func (*ListUserSessionsUnauthorized) IsClientError ¶
func (o *ListUserSessionsUnauthorized) IsClientError() bool
IsClientError returns true when this list user sessions unauthorized response has a 4xx status code
func (*ListUserSessionsUnauthorized) IsCode ¶
func (o *ListUserSessionsUnauthorized) IsCode(code int) bool
IsCode returns true when this list user sessions unauthorized response a status code equal to that given
func (*ListUserSessionsUnauthorized) IsRedirect ¶
func (o *ListUserSessionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list user sessions unauthorized response has a 3xx status code
func (*ListUserSessionsUnauthorized) IsServerError ¶
func (o *ListUserSessionsUnauthorized) IsServerError() bool
IsServerError returns true when this list user sessions unauthorized response has a 5xx status code
func (*ListUserSessionsUnauthorized) IsSuccess ¶
func (o *ListUserSessionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list user sessions unauthorized response has a 2xx status code
func (*ListUserSessionsUnauthorized) String ¶
func (o *ListUserSessionsUnauthorized) String() string