session

package
v0.21.251 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 11 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 session API

func (*Client) DeleteSession

func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSessionOK, error)

DeleteSession deletes a session

Delete a session by id. Requires admin access.

func (*Client) DetailSession

func (a *Client) DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailSessionOK, error)

DetailSession retrieves a single session

Retrieves a single session by id. Requires admin access.

func (*Client) DetailSessionRoutePath

func (a *Client) DetailSessionRoutePath(params *DetailSessionRoutePathParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailSessionRoutePathOK, error)

DetailSessionRoutePath retrieves a single session s router path

Retrieves a single session's route path by id. Requires admin access.

func (*Client) ListSessions

func (a *Client) ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSessionsOK, error)
ListSessions lists sessions

Retrieves a list of active sessions resources; supports filtering, sorting, and pagination. Requires admin access.

Sessions are tied to an API session and are moved when an API session times out or logs out. Active sessions (i.e. Ziti SDK connected to an edge router) will keep the session and API session marked as active.

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) (*DeleteSessionOK, error)

	DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailSessionOK, error)

	DetailSessionRoutePath(params *DetailSessionRoutePathParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailSessionRoutePathOK, error)

	ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSessionsOK, 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 session API client.

type DeleteSessionBadRequest

type DeleteSessionBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteSessionBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteSessionBadRequest

func NewDeleteSessionBadRequest() *DeleteSessionBadRequest

NewDeleteSessionBadRequest creates a DeleteSessionBadRequest with default headers values

func (*DeleteSessionBadRequest) Error

func (o *DeleteSessionBadRequest) Error() string

func (*DeleteSessionBadRequest) GetPayload

type DeleteSessionConflict

type DeleteSessionConflict struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteSessionConflict describes a response with status code 409, with default header values.

The resource requested to be removed/altered cannot be as it is referenced by another object.

func NewDeleteSessionConflict

func NewDeleteSessionConflict() *DeleteSessionConflict

NewDeleteSessionConflict creates a DeleteSessionConflict with default headers values

func (*DeleteSessionConflict) Error

func (o *DeleteSessionConflict) Error() string

func (*DeleteSessionConflict) GetPayload

type DeleteSessionOK

type DeleteSessionOK struct {
	Payload *rest_model.Empty
}
DeleteSessionOK describes a response with status code 200, with default header values.

The delete request was successful and the resource has been removed

func NewDeleteSessionOK

func NewDeleteSessionOK() *DeleteSessionOK

NewDeleteSessionOK creates a DeleteSessionOK with default headers values

func (*DeleteSessionOK) Error

func (o *DeleteSessionOK) Error() string

func (*DeleteSessionOK) GetPayload

func (o *DeleteSessionOK) GetPayload() *rest_model.Empty

type DeleteSessionParams

type DeleteSessionParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID 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) SetID

func (o *DeleteSessionParams) SetID(id string)

SetID adds the id 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

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) WithID

WithID adds the id 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 DeleteSessionUnauthorized

type DeleteSessionUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteSessionUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteSessionUnauthorized

func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized

NewDeleteSessionUnauthorized creates a DeleteSessionUnauthorized with default headers values

func (*DeleteSessionUnauthorized) Error

func (o *DeleteSessionUnauthorized) Error() string

func (*DeleteSessionUnauthorized) GetPayload

type DetailSessionNotFound

type DetailSessionNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailSessionNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewDetailSessionNotFound

func NewDetailSessionNotFound() *DetailSessionNotFound

NewDetailSessionNotFound creates a DetailSessionNotFound with default headers values

func (*DetailSessionNotFound) Error

func (o *DetailSessionNotFound) Error() string

func (*DetailSessionNotFound) GetPayload

type DetailSessionOK

type DetailSessionOK struct {
	Payload *rest_model.DetailSessionManagementEnvelope
}
DetailSessionOK describes a response with status code 200, with default header values.

A single session

func NewDetailSessionOK

func NewDetailSessionOK() *DetailSessionOK

NewDetailSessionOK creates a DetailSessionOK with default headers values

func (*DetailSessionOK) Error

func (o *DetailSessionOK) Error() string

func (*DetailSessionOK) GetPayload

type DetailSessionParams

type DetailSessionParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailSessionParams contains all the parameters to send to the API endpoint

for the detail session operation.

Typically these are written to a http.Request.

func NewDetailSessionParams

func NewDetailSessionParams() *DetailSessionParams

NewDetailSessionParams creates a new DetailSessionParams 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 NewDetailSessionParamsWithContext

func NewDetailSessionParamsWithContext(ctx context.Context) *DetailSessionParams

NewDetailSessionParamsWithContext creates a new DetailSessionParams object with the ability to set a context for a request.

func NewDetailSessionParamsWithHTTPClient

func NewDetailSessionParamsWithHTTPClient(client *http.Client) *DetailSessionParams

NewDetailSessionParamsWithHTTPClient creates a new DetailSessionParams object with the ability to set a custom HTTPClient for a request.

func NewDetailSessionParamsWithTimeout

func NewDetailSessionParamsWithTimeout(timeout time.Duration) *DetailSessionParams

NewDetailSessionParamsWithTimeout creates a new DetailSessionParams object with the ability to set a timeout on a request.

func (*DetailSessionParams) SetContext

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

SetContext adds the context to the detail session params

func (*DetailSessionParams) SetDefaults

func (o *DetailSessionParams) SetDefaults()

SetDefaults hydrates default values in the detail session params (not the query body).

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

func (*DetailSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail session params

func (*DetailSessionParams) SetID

func (o *DetailSessionParams) SetID(id string)

SetID adds the id to the detail session params

func (*DetailSessionParams) SetTimeout

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

SetTimeout adds the timeout to the detail session params

func (*DetailSessionParams) WithContext

WithContext adds the context to the detail session params

func (*DetailSessionParams) WithDefaults

func (o *DetailSessionParams) WithDefaults() *DetailSessionParams

WithDefaults hydrates default values in the detail session params (not the query body).

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

func (*DetailSessionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail session params

func (*DetailSessionParams) WithID

WithID adds the id to the detail session params

func (*DetailSessionParams) WithTimeout

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

WithTimeout adds the timeout to the detail session params

func (*DetailSessionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DetailSessionReader

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

DetailSessionReader is a Reader for the DetailSession structure.

func (*DetailSessionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailSessionRoutePathNotFound

type DetailSessionRoutePathNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailSessionRoutePathNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewDetailSessionRoutePathNotFound

func NewDetailSessionRoutePathNotFound() *DetailSessionRoutePathNotFound

NewDetailSessionRoutePathNotFound creates a DetailSessionRoutePathNotFound with default headers values

func (*DetailSessionRoutePathNotFound) Error

func (*DetailSessionRoutePathNotFound) GetPayload

type DetailSessionRoutePathOK

type DetailSessionRoutePathOK struct {
	Payload *rest_model.DetailSessionRoutePathEnvelope
}
DetailSessionRoutePathOK describes a response with status code 200, with default header values.

A single session's route path

func NewDetailSessionRoutePathOK

func NewDetailSessionRoutePathOK() *DetailSessionRoutePathOK

NewDetailSessionRoutePathOK creates a DetailSessionRoutePathOK with default headers values

func (*DetailSessionRoutePathOK) Error

func (o *DetailSessionRoutePathOK) Error() string

func (*DetailSessionRoutePathOK) GetPayload

type DetailSessionRoutePathParams

type DetailSessionRoutePathParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailSessionRoutePathParams contains all the parameters to send to the API endpoint

for the detail session route path operation.

Typically these are written to a http.Request.

func NewDetailSessionRoutePathParams

func NewDetailSessionRoutePathParams() *DetailSessionRoutePathParams

NewDetailSessionRoutePathParams creates a new DetailSessionRoutePathParams 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 NewDetailSessionRoutePathParamsWithContext

func NewDetailSessionRoutePathParamsWithContext(ctx context.Context) *DetailSessionRoutePathParams

NewDetailSessionRoutePathParamsWithContext creates a new DetailSessionRoutePathParams object with the ability to set a context for a request.

func NewDetailSessionRoutePathParamsWithHTTPClient

func NewDetailSessionRoutePathParamsWithHTTPClient(client *http.Client) *DetailSessionRoutePathParams

NewDetailSessionRoutePathParamsWithHTTPClient creates a new DetailSessionRoutePathParams object with the ability to set a custom HTTPClient for a request.

func NewDetailSessionRoutePathParamsWithTimeout

func NewDetailSessionRoutePathParamsWithTimeout(timeout time.Duration) *DetailSessionRoutePathParams

NewDetailSessionRoutePathParamsWithTimeout creates a new DetailSessionRoutePathParams object with the ability to set a timeout on a request.

func (*DetailSessionRoutePathParams) SetContext

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

SetContext adds the context to the detail session route path params

func (*DetailSessionRoutePathParams) SetDefaults

func (o *DetailSessionRoutePathParams) SetDefaults()

SetDefaults hydrates default values in the detail session route path params (not the query body).

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

func (*DetailSessionRoutePathParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail session route path params

func (*DetailSessionRoutePathParams) SetID

func (o *DetailSessionRoutePathParams) SetID(id string)

SetID adds the id to the detail session route path params

func (*DetailSessionRoutePathParams) SetTimeout

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

SetTimeout adds the timeout to the detail session route path params

func (*DetailSessionRoutePathParams) WithContext

WithContext adds the context to the detail session route path params

func (*DetailSessionRoutePathParams) WithDefaults

WithDefaults hydrates default values in the detail session route path params (not the query body).

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

func (*DetailSessionRoutePathParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the detail session route path params

func (*DetailSessionRoutePathParams) WithID

WithID adds the id to the detail session route path params

func (*DetailSessionRoutePathParams) WithTimeout

WithTimeout adds the timeout to the detail session route path params

func (*DetailSessionRoutePathParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailSessionRoutePathReader

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

DetailSessionRoutePathReader is a Reader for the DetailSessionRoutePath structure.

func (*DetailSessionRoutePathReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailSessionRoutePathUnauthorized

type DetailSessionRoutePathUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailSessionRoutePathUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailSessionRoutePathUnauthorized

func NewDetailSessionRoutePathUnauthorized() *DetailSessionRoutePathUnauthorized

NewDetailSessionRoutePathUnauthorized creates a DetailSessionRoutePathUnauthorized with default headers values

func (*DetailSessionRoutePathUnauthorized) Error

func (*DetailSessionRoutePathUnauthorized) GetPayload

type DetailSessionUnauthorized

type DetailSessionUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailSessionUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailSessionUnauthorized

func NewDetailSessionUnauthorized() *DetailSessionUnauthorized

NewDetailSessionUnauthorized creates a DetailSessionUnauthorized with default headers values

func (*DetailSessionUnauthorized) Error

func (o *DetailSessionUnauthorized) Error() string

func (*DetailSessionUnauthorized) GetPayload

type ListSessionsBadRequest added in v0.19.176

type ListSessionsBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListSessionsBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewListSessionsBadRequest added in v0.19.176

func NewListSessionsBadRequest() *ListSessionsBadRequest

NewListSessionsBadRequest creates a ListSessionsBadRequest with default headers values

func (*ListSessionsBadRequest) Error added in v0.19.176

func (o *ListSessionsBadRequest) Error() string

func (*ListSessionsBadRequest) GetPayload added in v0.19.176

type ListSessionsOK

type ListSessionsOK struct {
	Payload *rest_model.ListSessionsManagementEnvelope
}
ListSessionsOK describes a response with status code 200, with default header values.

A list of sessions

func NewListSessionsOK

func NewListSessionsOK() *ListSessionsOK

NewListSessionsOK creates a ListSessionsOK with default headers values

func (*ListSessionsOK) Error

func (o *ListSessionsOK) Error() string

func (*ListSessionsOK) GetPayload

type ListSessionsParams

type ListSessionsParams struct {

	// Filter.
	Filter *string

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

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

ListSessionsParams contains all the parameters to send to the API endpoint

for the list sessions operation.

Typically these are written to a http.Request.

func NewListSessionsParams

func NewListSessionsParams() *ListSessionsParams

NewListSessionsParams creates a new ListSessionsParams 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 NewListSessionsParamsWithContext

func NewListSessionsParamsWithContext(ctx context.Context) *ListSessionsParams

NewListSessionsParamsWithContext creates a new ListSessionsParams object with the ability to set a context for a request.

func NewListSessionsParamsWithHTTPClient

func NewListSessionsParamsWithHTTPClient(client *http.Client) *ListSessionsParams

NewListSessionsParamsWithHTTPClient creates a new ListSessionsParams object with the ability to set a custom HTTPClient for a request.

func NewListSessionsParamsWithTimeout

func NewListSessionsParamsWithTimeout(timeout time.Duration) *ListSessionsParams

NewListSessionsParamsWithTimeout creates a new ListSessionsParams object with the ability to set a timeout on a request.

func (*ListSessionsParams) SetContext

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

SetContext adds the context to the list sessions params

func (*ListSessionsParams) SetDefaults

func (o *ListSessionsParams) SetDefaults()

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

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

func (*ListSessionsParams) SetFilter

func (o *ListSessionsParams) SetFilter(filter *string)

SetFilter adds the filter to the list sessions params

func (*ListSessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list sessions params

func (*ListSessionsParams) SetLimit

func (o *ListSessionsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list sessions params

func (*ListSessionsParams) SetOffset

func (o *ListSessionsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list sessions params

func (*ListSessionsParams) SetTimeout

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

SetTimeout adds the timeout to the list sessions params

func (*ListSessionsParams) WithContext

WithContext adds the context to the list sessions params

func (*ListSessionsParams) WithDefaults

func (o *ListSessionsParams) WithDefaults() *ListSessionsParams

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

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

func (*ListSessionsParams) WithFilter

func (o *ListSessionsParams) WithFilter(filter *string) *ListSessionsParams

WithFilter adds the filter to the list sessions params

func (*ListSessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list sessions params

func (*ListSessionsParams) WithLimit

func (o *ListSessionsParams) WithLimit(limit *int64) *ListSessionsParams

WithLimit adds the limit to the list sessions params

func (*ListSessionsParams) WithOffset

func (o *ListSessionsParams) WithOffset(offset *int64) *ListSessionsParams

WithOffset adds the offset to the list sessions params

func (*ListSessionsParams) WithTimeout

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

WithTimeout adds the timeout to the list sessions params

func (*ListSessionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSessionsReader

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

ListSessionsReader is a Reader for the ListSessions structure.

func (*ListSessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSessionsUnauthorized

type ListSessionsUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListSessionsUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListSessionsUnauthorized

func NewListSessionsUnauthorized() *ListSessionsUnauthorized

NewListSessionsUnauthorized creates a ListSessionsUnauthorized with default headers values

func (*ListSessionsUnauthorized) Error

func (o *ListSessionsUnauthorized) Error() string

func (*ListSessionsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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