session

package
v0.26.53 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 1

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

func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSessionCreated, error)

CreateSession creates a session resource

Create a session resource.

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.

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.

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.

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSessionCreated, error)

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

	DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailSessionOK, 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.

func NewClientWithBasicAuth added in v0.26.53

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new session API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v0.26.53

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new session API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateSessionBadRequest

type CreateSessionBadRequest struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateSessionBadRequest 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 NewCreateSessionBadRequest

func NewCreateSessionBadRequest() *CreateSessionBadRequest

NewCreateSessionBadRequest creates a CreateSessionBadRequest with default headers values

func (*CreateSessionBadRequest) Code added in v0.26.53

func (o *CreateSessionBadRequest) Code() int

Code gets the status code for the create session bad request response

func (*CreateSessionBadRequest) Error

func (o *CreateSessionBadRequest) Error() string

func (*CreateSessionBadRequest) GetPayload

func (*CreateSessionBadRequest) IsClientError added in v0.26.53

func (o *CreateSessionBadRequest) IsClientError() bool

IsClientError returns true when this create session bad request response has a 4xx status code

func (*CreateSessionBadRequest) IsCode added in v0.26.53

func (o *CreateSessionBadRequest) IsCode(code int) bool

IsCode returns true when this create session bad request response a status code equal to that given

func (*CreateSessionBadRequest) IsRedirect added in v0.26.53

func (o *CreateSessionBadRequest) IsRedirect() bool

IsRedirect returns true when this create session bad request response has a 3xx status code

func (*CreateSessionBadRequest) IsServerError added in v0.26.53

func (o *CreateSessionBadRequest) IsServerError() bool

IsServerError returns true when this create session bad request response has a 5xx status code

func (*CreateSessionBadRequest) IsSuccess added in v0.26.53

func (o *CreateSessionBadRequest) IsSuccess() bool

IsSuccess returns true when this create session bad request response has a 2xx status code

func (*CreateSessionBadRequest) String added in v0.26.53

func (o *CreateSessionBadRequest) String() string

type CreateSessionCreated

type CreateSessionCreated struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.SessionCreateEnvelope
}

CreateSessionCreated describes a response with status code 201, with default header values.

The create request was successful and the resource has been added at the following location

func NewCreateSessionCreated

func NewCreateSessionCreated() *CreateSessionCreated

NewCreateSessionCreated creates a CreateSessionCreated with default headers values

func (*CreateSessionCreated) Code added in v0.26.53

func (o *CreateSessionCreated) Code() int

Code gets the status code for the create session created response

func (*CreateSessionCreated) Error

func (o *CreateSessionCreated) Error() string

func (*CreateSessionCreated) GetPayload

func (*CreateSessionCreated) IsClientError added in v0.26.53

func (o *CreateSessionCreated) IsClientError() bool

IsClientError returns true when this create session created response has a 4xx status code

func (*CreateSessionCreated) IsCode added in v0.26.53

func (o *CreateSessionCreated) IsCode(code int) bool

IsCode returns true when this create session created response a status code equal to that given

func (*CreateSessionCreated) IsRedirect added in v0.26.53

func (o *CreateSessionCreated) IsRedirect() bool

IsRedirect returns true when this create session created response has a 3xx status code

func (*CreateSessionCreated) IsServerError added in v0.26.53

func (o *CreateSessionCreated) IsServerError() bool

IsServerError returns true when this create session created response has a 5xx status code

func (*CreateSessionCreated) IsSuccess added in v0.26.53

func (o *CreateSessionCreated) IsSuccess() bool

IsSuccess returns true when this create session created response has a 2xx status code

func (*CreateSessionCreated) String added in v0.26.53

func (o *CreateSessionCreated) String() string

type CreateSessionNotFound added in v0.25.36

type CreateSessionNotFound struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateSessionNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewCreateSessionNotFound added in v0.25.36

func NewCreateSessionNotFound() *CreateSessionNotFound

NewCreateSessionNotFound creates a CreateSessionNotFound with default headers values

func (*CreateSessionNotFound) Code added in v0.26.53

func (o *CreateSessionNotFound) Code() int

Code gets the status code for the create session not found response

func (*CreateSessionNotFound) Error added in v0.25.36

func (o *CreateSessionNotFound) Error() string

func (*CreateSessionNotFound) GetPayload added in v0.25.36

func (*CreateSessionNotFound) IsClientError added in v0.26.53

func (o *CreateSessionNotFound) IsClientError() bool

IsClientError returns true when this create session not found response has a 4xx status code

func (*CreateSessionNotFound) IsCode added in v0.26.53

func (o *CreateSessionNotFound) IsCode(code int) bool

IsCode returns true when this create session not found response a status code equal to that given

func (*CreateSessionNotFound) IsRedirect added in v0.26.53

func (o *CreateSessionNotFound) IsRedirect() bool

IsRedirect returns true when this create session not found response has a 3xx status code

func (*CreateSessionNotFound) IsServerError added in v0.26.53

func (o *CreateSessionNotFound) IsServerError() bool

IsServerError returns true when this create session not found response has a 5xx status code

func (*CreateSessionNotFound) IsSuccess added in v0.26.53

func (o *CreateSessionNotFound) IsSuccess() bool

IsSuccess returns true when this create session not found response has a 2xx status code

func (*CreateSessionNotFound) String added in v0.26.53

func (o *CreateSessionNotFound) String() string

type CreateSessionParams

type CreateSessionParams struct {

	/* Session.

	   A session to create
	*/
	Session *rest_model.SessionCreate

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

CreateSessionParams contains all the parameters to send to the API endpoint

for the create session operation.

Typically these are written to a http.Request.

func NewCreateSessionParams

func NewCreateSessionParams() *CreateSessionParams

NewCreateSessionParams creates a new CreateSessionParams 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 NewCreateSessionParamsWithContext

func NewCreateSessionParamsWithContext(ctx context.Context) *CreateSessionParams

NewCreateSessionParamsWithContext creates a new CreateSessionParams object with the ability to set a context for a request.

func NewCreateSessionParamsWithHTTPClient

func NewCreateSessionParamsWithHTTPClient(client *http.Client) *CreateSessionParams

NewCreateSessionParamsWithHTTPClient creates a new CreateSessionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSessionParamsWithTimeout

func NewCreateSessionParamsWithTimeout(timeout time.Duration) *CreateSessionParams

NewCreateSessionParamsWithTimeout creates a new CreateSessionParams object with the ability to set a timeout on a request.

func (*CreateSessionParams) SetContext

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

SetContext adds the context to the create session params

func (*CreateSessionParams) SetDefaults

func (o *CreateSessionParams) SetDefaults()

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

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

func (*CreateSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) SetSession

func (o *CreateSessionParams) SetSession(session *rest_model.SessionCreate)

SetSession adds the session to the create session params

func (*CreateSessionParams) SetTimeout

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

SetTimeout adds the timeout to the create session params

func (*CreateSessionParams) WithContext

WithContext adds the context to the create session params

func (*CreateSessionParams) WithDefaults

func (o *CreateSessionParams) WithDefaults() *CreateSessionParams

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

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

func (*CreateSessionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) WithSession

WithSession adds the session to the create session params

func (*CreateSessionParams) WithTimeout

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

WithTimeout adds the timeout to the create session params

func (*CreateSessionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSessionReader

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

CreateSessionReader is a Reader for the CreateSession structure.

func (*CreateSessionReader) ReadResponse

func (o *CreateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type CreateSessionServiceUnavailable added in v0.26.37

type CreateSessionServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateSessionServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewCreateSessionServiceUnavailable added in v0.26.37

func NewCreateSessionServiceUnavailable() *CreateSessionServiceUnavailable

NewCreateSessionServiceUnavailable creates a CreateSessionServiceUnavailable with default headers values

func (*CreateSessionServiceUnavailable) Code added in v0.26.53

Code gets the status code for the create session service unavailable response

func (*CreateSessionServiceUnavailable) Error added in v0.26.37

func (*CreateSessionServiceUnavailable) GetPayload added in v0.26.37

func (*CreateSessionServiceUnavailable) IsClientError added in v0.26.53

func (o *CreateSessionServiceUnavailable) IsClientError() bool

IsClientError returns true when this create session service unavailable response has a 4xx status code

func (*CreateSessionServiceUnavailable) IsCode added in v0.26.53

func (o *CreateSessionServiceUnavailable) IsCode(code int) bool

IsCode returns true when this create session service unavailable response a status code equal to that given

func (*CreateSessionServiceUnavailable) IsRedirect added in v0.26.53

func (o *CreateSessionServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this create session service unavailable response has a 3xx status code

func (*CreateSessionServiceUnavailable) IsServerError added in v0.26.53

func (o *CreateSessionServiceUnavailable) IsServerError() bool

IsServerError returns true when this create session service unavailable response has a 5xx status code

func (*CreateSessionServiceUnavailable) IsSuccess added in v0.26.53

func (o *CreateSessionServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this create session service unavailable response has a 2xx status code

func (*CreateSessionServiceUnavailable) String added in v0.26.53

type CreateSessionTooManyRequests added in v0.26.0

type CreateSessionTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateSessionTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewCreateSessionTooManyRequests added in v0.26.0

func NewCreateSessionTooManyRequests() *CreateSessionTooManyRequests

NewCreateSessionTooManyRequests creates a CreateSessionTooManyRequests with default headers values

func (*CreateSessionTooManyRequests) Code added in v0.26.53

Code gets the status code for the create session too many requests response

func (*CreateSessionTooManyRequests) Error added in v0.26.0

func (*CreateSessionTooManyRequests) GetPayload added in v0.26.0

func (*CreateSessionTooManyRequests) IsClientError added in v0.26.53

func (o *CreateSessionTooManyRequests) IsClientError() bool

IsClientError returns true when this create session too many requests response has a 4xx status code

func (*CreateSessionTooManyRequests) IsCode added in v0.26.53

func (o *CreateSessionTooManyRequests) IsCode(code int) bool

IsCode returns true when this create session too many requests response a status code equal to that given

func (*CreateSessionTooManyRequests) IsRedirect added in v0.26.53

func (o *CreateSessionTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create session too many requests response has a 3xx status code

func (*CreateSessionTooManyRequests) IsServerError added in v0.26.53

func (o *CreateSessionTooManyRequests) IsServerError() bool

IsServerError returns true when this create session too many requests response has a 5xx status code

func (*CreateSessionTooManyRequests) IsSuccess added in v0.26.53

func (o *CreateSessionTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create session too many requests response has a 2xx status code

func (*CreateSessionTooManyRequests) String added in v0.26.53

type CreateSessionUnauthorized

type CreateSessionUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

CreateSessionUnauthorized describes a response with status code 401, with default header values.

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

func NewCreateSessionUnauthorized

func NewCreateSessionUnauthorized() *CreateSessionUnauthorized

NewCreateSessionUnauthorized creates a CreateSessionUnauthorized with default headers values

func (*CreateSessionUnauthorized) Code added in v0.26.53

func (o *CreateSessionUnauthorized) Code() int

Code gets the status code for the create session unauthorized response

func (*CreateSessionUnauthorized) Error

func (o *CreateSessionUnauthorized) Error() string

func (*CreateSessionUnauthorized) GetPayload

func (*CreateSessionUnauthorized) IsClientError added in v0.26.53

func (o *CreateSessionUnauthorized) IsClientError() bool

IsClientError returns true when this create session unauthorized response has a 4xx status code

func (*CreateSessionUnauthorized) IsCode added in v0.26.53

func (o *CreateSessionUnauthorized) IsCode(code int) bool

IsCode returns true when this create session unauthorized response a status code equal to that given

func (*CreateSessionUnauthorized) IsRedirect added in v0.26.53

func (o *CreateSessionUnauthorized) IsRedirect() bool

IsRedirect returns true when this create session unauthorized response has a 3xx status code

func (*CreateSessionUnauthorized) IsServerError added in v0.26.53

func (o *CreateSessionUnauthorized) IsServerError() bool

IsServerError returns true when this create session unauthorized response has a 5xx status code

func (*CreateSessionUnauthorized) IsSuccess added in v0.26.53

func (o *CreateSessionUnauthorized) IsSuccess() bool

IsSuccess returns true when this create session unauthorized response has a 2xx status code

func (*CreateSessionUnauthorized) String added in v0.26.53

func (o *CreateSessionUnauthorized) String() string

type DeleteSessionBadRequest

type DeleteSessionBadRequest struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	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) Code added in v0.26.53

func (o *DeleteSessionBadRequest) Code() int

Code gets the status code for the delete session bad request response

func (*DeleteSessionBadRequest) Error

func (o *DeleteSessionBadRequest) Error() string

func (*DeleteSessionBadRequest) GetPayload

func (*DeleteSessionBadRequest) IsClientError added in v0.26.53

func (o *DeleteSessionBadRequest) IsClientError() bool

IsClientError returns true when this delete session bad request response has a 4xx status code

func (*DeleteSessionBadRequest) IsCode added in v0.26.53

func (o *DeleteSessionBadRequest) IsCode(code int) bool

IsCode returns true when this delete session bad request response a status code equal to that given

func (*DeleteSessionBadRequest) IsRedirect added in v0.26.53

func (o *DeleteSessionBadRequest) IsRedirect() bool

IsRedirect returns true when this delete session bad request response has a 3xx status code

func (*DeleteSessionBadRequest) IsServerError added in v0.26.53

func (o *DeleteSessionBadRequest) IsServerError() bool

IsServerError returns true when this delete session bad request response has a 5xx status code

func (*DeleteSessionBadRequest) IsSuccess added in v0.26.53

func (o *DeleteSessionBadRequest) IsSuccess() bool

IsSuccess returns true when this delete session bad request response has a 2xx status code

func (*DeleteSessionBadRequest) String added in v0.26.53

func (o *DeleteSessionBadRequest) String() string

type DeleteSessionConflict

type DeleteSessionConflict struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	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) Code added in v0.26.53

func (o *DeleteSessionConflict) Code() int

Code gets the status code for the delete session conflict response

func (*DeleteSessionConflict) Error

func (o *DeleteSessionConflict) Error() string

func (*DeleteSessionConflict) GetPayload

func (*DeleteSessionConflict) IsClientError added in v0.26.53

func (o *DeleteSessionConflict) IsClientError() bool

IsClientError returns true when this delete session conflict response has a 4xx status code

func (*DeleteSessionConflict) IsCode added in v0.26.53

func (o *DeleteSessionConflict) IsCode(code int) bool

IsCode returns true when this delete session conflict response a status code equal to that given

func (*DeleteSessionConflict) IsRedirect added in v0.26.53

func (o *DeleteSessionConflict) IsRedirect() bool

IsRedirect returns true when this delete session conflict response has a 3xx status code

func (*DeleteSessionConflict) IsServerError added in v0.26.53

func (o *DeleteSessionConflict) IsServerError() bool

IsServerError returns true when this delete session conflict response has a 5xx status code

func (*DeleteSessionConflict) IsSuccess added in v0.26.53

func (o *DeleteSessionConflict) IsSuccess() bool

IsSuccess returns true when this delete session conflict response has a 2xx status code

func (*DeleteSessionConflict) String added in v0.26.53

func (o *DeleteSessionConflict) String() string

type DeleteSessionOK

type DeleteSessionOK struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	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) Code added in v0.26.53

func (o *DeleteSessionOK) Code() int

Code gets the status code for the delete session o k response

func (*DeleteSessionOK) Error

func (o *DeleteSessionOK) Error() string

func (*DeleteSessionOK) GetPayload

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

func (*DeleteSessionOK) IsClientError added in v0.26.53

func (o *DeleteSessionOK) IsClientError() bool

IsClientError returns true when this delete session o k response has a 4xx status code

func (*DeleteSessionOK) IsCode added in v0.26.53

func (o *DeleteSessionOK) IsCode(code int) bool

IsCode returns true when this delete session o k response a status code equal to that given

func (*DeleteSessionOK) IsRedirect added in v0.26.53

func (o *DeleteSessionOK) IsRedirect() bool

IsRedirect returns true when this delete session o k response has a 3xx status code

func (*DeleteSessionOK) IsServerError added in v0.26.53

func (o *DeleteSessionOK) IsServerError() bool

IsServerError returns true when this delete session o k response has a 5xx status code

func (*DeleteSessionOK) IsSuccess added in v0.26.53

func (o *DeleteSessionOK) IsSuccess() bool

IsSuccess returns true when this delete session o k response has a 2xx status code

func (*DeleteSessionOK) String added in v0.26.53

func (o *DeleteSessionOK) String() string

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

ReadResponse reads a server response into the received o.

type DeleteSessionServiceUnavailable added in v0.26.37

type DeleteSessionServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewDeleteSessionServiceUnavailable added in v0.26.37

func NewDeleteSessionServiceUnavailable() *DeleteSessionServiceUnavailable

NewDeleteSessionServiceUnavailable creates a DeleteSessionServiceUnavailable with default headers values

func (*DeleteSessionServiceUnavailable) Code added in v0.26.53

Code gets the status code for the delete session service unavailable response

func (*DeleteSessionServiceUnavailable) Error added in v0.26.37

func (*DeleteSessionServiceUnavailable) GetPayload added in v0.26.37

func (*DeleteSessionServiceUnavailable) IsClientError added in v0.26.53

func (o *DeleteSessionServiceUnavailable) IsClientError() bool

IsClientError returns true when this delete session service unavailable response has a 4xx status code

func (*DeleteSessionServiceUnavailable) IsCode added in v0.26.53

func (o *DeleteSessionServiceUnavailable) IsCode(code int) bool

IsCode returns true when this delete session service unavailable response a status code equal to that given

func (*DeleteSessionServiceUnavailable) IsRedirect added in v0.26.53

func (o *DeleteSessionServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this delete session service unavailable response has a 3xx status code

func (*DeleteSessionServiceUnavailable) IsServerError added in v0.26.53

func (o *DeleteSessionServiceUnavailable) IsServerError() bool

IsServerError returns true when this delete session service unavailable response has a 5xx status code

func (*DeleteSessionServiceUnavailable) IsSuccess added in v0.26.53

func (o *DeleteSessionServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this delete session service unavailable response has a 2xx status code

func (*DeleteSessionServiceUnavailable) String added in v0.26.53

type DeleteSessionTooManyRequests added in v0.26.0

type DeleteSessionTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewDeleteSessionTooManyRequests added in v0.26.0

func NewDeleteSessionTooManyRequests() *DeleteSessionTooManyRequests

NewDeleteSessionTooManyRequests creates a DeleteSessionTooManyRequests with default headers values

func (*DeleteSessionTooManyRequests) Code added in v0.26.53

Code gets the status code for the delete session too many requests response

func (*DeleteSessionTooManyRequests) Error added in v0.26.0

func (*DeleteSessionTooManyRequests) GetPayload added in v0.26.0

func (*DeleteSessionTooManyRequests) IsClientError added in v0.26.53

func (o *DeleteSessionTooManyRequests) IsClientError() bool

IsClientError returns true when this delete session too many requests response has a 4xx status code

func (*DeleteSessionTooManyRequests) IsCode added in v0.26.53

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 added in v0.26.53

func (o *DeleteSessionTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete session too many requests response has a 3xx status code

func (*DeleteSessionTooManyRequests) IsServerError added in v0.26.53

func (o *DeleteSessionTooManyRequests) IsServerError() bool

IsServerError returns true when this delete session too many requests response has a 5xx status code

func (*DeleteSessionTooManyRequests) IsSuccess added in v0.26.53

func (o *DeleteSessionTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete session too many requests response has a 2xx status code

func (*DeleteSessionTooManyRequests) String added in v0.26.53

type DeleteSessionUnauthorized

type DeleteSessionUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionUnauthorized describes a response with status code 401, with default header values.

The 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) Code added in v0.26.53

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 (*DeleteSessionUnauthorized) IsClientError added in v0.26.53

func (o *DeleteSessionUnauthorized) IsClientError() bool

IsClientError returns true when this delete session unauthorized response has a 4xx status code

func (*DeleteSessionUnauthorized) IsCode added in v0.26.53

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 added in v0.26.53

func (o *DeleteSessionUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete session unauthorized response has a 3xx status code

func (*DeleteSessionUnauthorized) IsServerError added in v0.26.53

func (o *DeleteSessionUnauthorized) IsServerError() bool

IsServerError returns true when this delete session unauthorized response has a 5xx status code

func (*DeleteSessionUnauthorized) IsSuccess added in v0.26.53

func (o *DeleteSessionUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete session unauthorized response has a 2xx status code

func (*DeleteSessionUnauthorized) String added in v0.26.53

func (o *DeleteSessionUnauthorized) String() string

type DetailSessionNotFound

type DetailSessionNotFound struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	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) Code added in v0.26.53

func (o *DetailSessionNotFound) Code() int

Code gets the status code for the detail session not found response

func (*DetailSessionNotFound) Error

func (o *DetailSessionNotFound) Error() string

func (*DetailSessionNotFound) GetPayload

func (*DetailSessionNotFound) IsClientError added in v0.26.53

func (o *DetailSessionNotFound) IsClientError() bool

IsClientError returns true when this detail session not found response has a 4xx status code

func (*DetailSessionNotFound) IsCode added in v0.26.53

func (o *DetailSessionNotFound) IsCode(code int) bool

IsCode returns true when this detail session not found response a status code equal to that given

func (*DetailSessionNotFound) IsRedirect added in v0.26.53

func (o *DetailSessionNotFound) IsRedirect() bool

IsRedirect returns true when this detail session not found response has a 3xx status code

func (*DetailSessionNotFound) IsServerError added in v0.26.53

func (o *DetailSessionNotFound) IsServerError() bool

IsServerError returns true when this detail session not found response has a 5xx status code

func (*DetailSessionNotFound) IsSuccess added in v0.26.53

func (o *DetailSessionNotFound) IsSuccess() bool

IsSuccess returns true when this detail session not found response has a 2xx status code

func (*DetailSessionNotFound) String added in v0.26.53

func (o *DetailSessionNotFound) String() string

type DetailSessionOK

type DetailSessionOK struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.DetailSessionEnvelope
}

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) Code added in v0.26.53

func (o *DetailSessionOK) Code() int

Code gets the status code for the detail session o k response

func (*DetailSessionOK) Error

func (o *DetailSessionOK) Error() string

func (*DetailSessionOK) GetPayload

func (*DetailSessionOK) IsClientError added in v0.26.53

func (o *DetailSessionOK) IsClientError() bool

IsClientError returns true when this detail session o k response has a 4xx status code

func (*DetailSessionOK) IsCode added in v0.26.53

func (o *DetailSessionOK) IsCode(code int) bool

IsCode returns true when this detail session o k response a status code equal to that given

func (*DetailSessionOK) IsRedirect added in v0.26.53

func (o *DetailSessionOK) IsRedirect() bool

IsRedirect returns true when this detail session o k response has a 3xx status code

func (*DetailSessionOK) IsServerError added in v0.26.53

func (o *DetailSessionOK) IsServerError() bool

IsServerError returns true when this detail session o k response has a 5xx status code

func (*DetailSessionOK) IsSuccess added in v0.26.53

func (o *DetailSessionOK) IsSuccess() bool

IsSuccess returns true when this detail session o k response has a 2xx status code

func (*DetailSessionOK) String added in v0.26.53

func (o *DetailSessionOK) String() string

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

ReadResponse reads a server response into the received o.

type DetailSessionUnauthorized

type DetailSessionUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

DetailSessionUnauthorized describes a response with status code 401, with default header values.

The 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) Code added in v0.26.53

func (o *DetailSessionUnauthorized) Code() int

Code gets the status code for the detail session unauthorized response

func (*DetailSessionUnauthorized) Error

func (o *DetailSessionUnauthorized) Error() string

func (*DetailSessionUnauthorized) GetPayload

func (*DetailSessionUnauthorized) IsClientError added in v0.26.53

func (o *DetailSessionUnauthorized) IsClientError() bool

IsClientError returns true when this detail session unauthorized response has a 4xx status code

func (*DetailSessionUnauthorized) IsCode added in v0.26.53

func (o *DetailSessionUnauthorized) IsCode(code int) bool

IsCode returns true when this detail session unauthorized response a status code equal to that given

func (*DetailSessionUnauthorized) IsRedirect added in v0.26.53

func (o *DetailSessionUnauthorized) IsRedirect() bool

IsRedirect returns true when this detail session unauthorized response has a 3xx status code

func (*DetailSessionUnauthorized) IsServerError added in v0.26.53

func (o *DetailSessionUnauthorized) IsServerError() bool

IsServerError returns true when this detail session unauthorized response has a 5xx status code

func (*DetailSessionUnauthorized) IsSuccess added in v0.26.53

func (o *DetailSessionUnauthorized) IsSuccess() bool

IsSuccess returns true when this detail session unauthorized response has a 2xx status code

func (*DetailSessionUnauthorized) String added in v0.26.53

func (o *DetailSessionUnauthorized) String() string

type ListSessionsBadRequest

type ListSessionsBadRequest struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	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

func NewListSessionsBadRequest() *ListSessionsBadRequest

NewListSessionsBadRequest creates a ListSessionsBadRequest with default headers values

func (*ListSessionsBadRequest) Code added in v0.26.53

func (o *ListSessionsBadRequest) Code() int

Code gets the status code for the list sessions bad request response

func (*ListSessionsBadRequest) Error

func (o *ListSessionsBadRequest) Error() string

func (*ListSessionsBadRequest) GetPayload

func (*ListSessionsBadRequest) IsClientError added in v0.26.53

func (o *ListSessionsBadRequest) IsClientError() bool

IsClientError returns true when this list sessions bad request response has a 4xx status code

func (*ListSessionsBadRequest) IsCode added in v0.26.53

func (o *ListSessionsBadRequest) IsCode(code int) bool

IsCode returns true when this list sessions bad request response a status code equal to that given

func (*ListSessionsBadRequest) IsRedirect added in v0.26.53

func (o *ListSessionsBadRequest) IsRedirect() bool

IsRedirect returns true when this list sessions bad request response has a 3xx status code

func (*ListSessionsBadRequest) IsServerError added in v0.26.53

func (o *ListSessionsBadRequest) IsServerError() bool

IsServerError returns true when this list sessions bad request response has a 5xx status code

func (*ListSessionsBadRequest) IsSuccess added in v0.26.53

func (o *ListSessionsBadRequest) IsSuccess() bool

IsSuccess returns true when this list sessions bad request response has a 2xx status code

func (*ListSessionsBadRequest) String added in v0.26.53

func (o *ListSessionsBadRequest) String() string

type ListSessionsOK

type ListSessionsOK struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.ListSessionsEnvelope
}

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) Code added in v0.26.53

func (o *ListSessionsOK) Code() int

Code gets the status code for the list sessions o k response

func (*ListSessionsOK) Error

func (o *ListSessionsOK) Error() string

func (*ListSessionsOK) GetPayload

func (*ListSessionsOK) IsClientError added in v0.26.53

func (o *ListSessionsOK) IsClientError() bool

IsClientError returns true when this list sessions o k response has a 4xx status code

func (*ListSessionsOK) IsCode added in v0.26.53

func (o *ListSessionsOK) IsCode(code int) bool

IsCode returns true when this list sessions o k response a status code equal to that given

func (*ListSessionsOK) IsRedirect added in v0.26.53

func (o *ListSessionsOK) IsRedirect() bool

IsRedirect returns true when this list sessions o k response has a 3xx status code

func (*ListSessionsOK) IsServerError added in v0.26.53

func (o *ListSessionsOK) IsServerError() bool

IsServerError returns true when this list sessions o k response has a 5xx status code

func (*ListSessionsOK) IsSuccess added in v0.26.53

func (o *ListSessionsOK) IsSuccess() bool

IsSuccess returns true when this list sessions o k response has a 2xx status code

func (*ListSessionsOK) String added in v0.26.53

func (o *ListSessionsOK) String() string

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

ReadResponse reads a server response into the received o.

type ListSessionsServiceUnavailable added in v0.26.37

type ListSessionsServiceUnavailable struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

ListSessionsServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewListSessionsServiceUnavailable added in v0.26.37

func NewListSessionsServiceUnavailable() *ListSessionsServiceUnavailable

NewListSessionsServiceUnavailable creates a ListSessionsServiceUnavailable with default headers values

func (*ListSessionsServiceUnavailable) Code added in v0.26.53

Code gets the status code for the list sessions service unavailable response

func (*ListSessionsServiceUnavailable) Error added in v0.26.37

func (*ListSessionsServiceUnavailable) GetPayload added in v0.26.37

func (*ListSessionsServiceUnavailable) IsClientError added in v0.26.53

func (o *ListSessionsServiceUnavailable) IsClientError() bool

IsClientError returns true when this list sessions service unavailable response has a 4xx status code

func (*ListSessionsServiceUnavailable) IsCode added in v0.26.53

func (o *ListSessionsServiceUnavailable) IsCode(code int) bool

IsCode returns true when this list sessions service unavailable response a status code equal to that given

func (*ListSessionsServiceUnavailable) IsRedirect added in v0.26.53

func (o *ListSessionsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this list sessions service unavailable response has a 3xx status code

func (*ListSessionsServiceUnavailable) IsServerError added in v0.26.53

func (o *ListSessionsServiceUnavailable) IsServerError() bool

IsServerError returns true when this list sessions service unavailable response has a 5xx status code

func (*ListSessionsServiceUnavailable) IsSuccess added in v0.26.53

func (o *ListSessionsServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this list sessions service unavailable response has a 2xx status code

func (*ListSessionsServiceUnavailable) String added in v0.26.53

type ListSessionsTooManyRequests added in v0.26.0

type ListSessionsTooManyRequests struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

ListSessionsTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewListSessionsTooManyRequests added in v0.26.0

func NewListSessionsTooManyRequests() *ListSessionsTooManyRequests

NewListSessionsTooManyRequests creates a ListSessionsTooManyRequests with default headers values

func (*ListSessionsTooManyRequests) Code added in v0.26.53

func (o *ListSessionsTooManyRequests) Code() int

Code gets the status code for the list sessions too many requests response

func (*ListSessionsTooManyRequests) Error added in v0.26.0

func (*ListSessionsTooManyRequests) GetPayload added in v0.26.0

func (*ListSessionsTooManyRequests) IsClientError added in v0.26.53

func (o *ListSessionsTooManyRequests) IsClientError() bool

IsClientError returns true when this list sessions too many requests response has a 4xx status code

func (*ListSessionsTooManyRequests) IsCode added in v0.26.53

func (o *ListSessionsTooManyRequests) IsCode(code int) bool

IsCode returns true when this list sessions too many requests response a status code equal to that given

func (*ListSessionsTooManyRequests) IsRedirect added in v0.26.53

func (o *ListSessionsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list sessions too many requests response has a 3xx status code

func (*ListSessionsTooManyRequests) IsServerError added in v0.26.53

func (o *ListSessionsTooManyRequests) IsServerError() bool

IsServerError returns true when this list sessions too many requests response has a 5xx status code

func (*ListSessionsTooManyRequests) IsSuccess added in v0.26.53

func (o *ListSessionsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list sessions too many requests response has a 2xx status code

func (*ListSessionsTooManyRequests) String added in v0.26.53

func (o *ListSessionsTooManyRequests) String() string

type ListSessionsUnauthorized

type ListSessionsUnauthorized struct {

	/* Denotes different type of security token related information
	 */
	WWWAuthenticate []string

	Payload *rest_model.APIErrorEnvelope
}

ListSessionsUnauthorized describes a response with status code 401, with default header values.

The 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) Code added in v0.26.53

func (o *ListSessionsUnauthorized) Code() int

Code gets the status code for the list sessions unauthorized response

func (*ListSessionsUnauthorized) Error

func (o *ListSessionsUnauthorized) Error() string

func (*ListSessionsUnauthorized) GetPayload

func (*ListSessionsUnauthorized) IsClientError added in v0.26.53

func (o *ListSessionsUnauthorized) IsClientError() bool

IsClientError returns true when this list sessions unauthorized response has a 4xx status code

func (*ListSessionsUnauthorized) IsCode added in v0.26.53

func (o *ListSessionsUnauthorized) IsCode(code int) bool

IsCode returns true when this list sessions unauthorized response a status code equal to that given

func (*ListSessionsUnauthorized) IsRedirect added in v0.26.53

func (o *ListSessionsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list sessions unauthorized response has a 3xx status code

func (*ListSessionsUnauthorized) IsServerError added in v0.26.53

func (o *ListSessionsUnauthorized) IsServerError() bool

IsServerError returns true when this list sessions unauthorized response has a 5xx status code

func (*ListSessionsUnauthorized) IsSuccess added in v0.26.53

func (o *ListSessionsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list sessions unauthorized response has a 2xx status code

func (*ListSessionsUnauthorized) String added in v0.26.53

func (o *ListSessionsUnauthorized) String() string

Jump to

Keyboard shortcuts

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