session

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 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 is the option for 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.

type CreateSessionBadRequest

type CreateSessionBadRequest struct {
	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) Error

func (o *CreateSessionBadRequest) Error() string

func (*CreateSessionBadRequest) GetPayload

type CreateSessionCreated

type CreateSessionCreated struct {
	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) Error

func (o *CreateSessionCreated) Error() string

func (*CreateSessionCreated) GetPayload

type CreateSessionNotFound added in v0.25.36

type CreateSessionNotFound struct {
	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) Error added in v0.25.36

func (o *CreateSessionNotFound) Error() string

func (*CreateSessionNotFound) GetPayload added in v0.25.36

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) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateSessionTooManyRequests added in v0.26.0

type CreateSessionTooManyRequests struct {
	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) Error added in v0.26.0

func (*CreateSessionTooManyRequests) GetPayload added in v0.26.0

type CreateSessionUnauthorized

type CreateSessionUnauthorized struct {
	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) Error

func (o *CreateSessionUnauthorized) Error() string

func (*CreateSessionUnauthorized) GetPayload

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

type DeleteSessionTooManyRequests struct {
	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) Error added in v0.26.0

func (*DeleteSessionTooManyRequests) GetPayload added in v0.26.0

type DeleteSessionUnauthorized

type DeleteSessionUnauthorized struct {
	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) 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.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) 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 DetailSessionUnauthorized

type DetailSessionUnauthorized struct {
	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) Error

func (o *DetailSessionUnauthorized) Error() string

func (*DetailSessionUnauthorized) GetPayload

type ListSessionsBadRequest

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

func NewListSessionsBadRequest() *ListSessionsBadRequest

NewListSessionsBadRequest creates a ListSessionsBadRequest with default headers values

func (*ListSessionsBadRequest) Error

func (o *ListSessionsBadRequest) Error() string

func (*ListSessionsBadRequest) GetPayload

type ListSessionsOK

type ListSessionsOK struct {
	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) 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 ListSessionsTooManyRequests added in v0.26.0

type ListSessionsTooManyRequests struct {
	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) Error added in v0.26.0

func (*ListSessionsTooManyRequests) GetPayload added in v0.26.0

type ListSessionsUnauthorized

type ListSessionsUnauthorized struct {
	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) 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