api_session

package
v0.27.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationJSONCharsetUTF8

func WithAcceptApplicationJSONCharsetUTF8(r *runtime.ClientOperation)

WithAcceptApplicationJSONCharsetUTF8 sets the Accept header to "application/json; charset=utf-8".

Types

type Client

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

Client for api session API

func (*Client) DeleteAPISessions

func (a *Client) DeleteAPISessions(params *DeleteAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPISessionsOK, error)

DeleteAPISessions deletes an API sessions

Deletes and API sesion by id. Requires admin access.

func (*Client) DetailAPISessions

func (a *Client) DetailAPISessions(params *DetailAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailAPISessionsOK, error)

DetailAPISessions retrieves a single API session

Retrieves a single API Session by id. Requires admin access.

func (*Client) ListAPISessions

func (a *Client) ListAPISessions(params *ListAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAPISessionsOK, error)
ListAPISessions lists active API sessions

Returns a list of active API sessions. The resources can be sorted, filtered, and paginated. This endpoint

requires admin access.

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.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	DeleteAPISessions(params *DeleteAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPISessionsOK, error)

	DetailAPISessions(params *DetailAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailAPISessionsOK, error)

	ListAPISessions(params *ListAPISessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAPISessionsOK, 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 api session API client.

func NewClientWithBasicAuth

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

New creates a new api 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

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

New creates a new api 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 DeleteAPISessionsForbidden

type DeleteAPISessionsForbidden struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DeleteAPISessionsForbidden describes a response with status code 403, with default header values.

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

func NewDeleteAPISessionsForbidden

func NewDeleteAPISessionsForbidden() *DeleteAPISessionsForbidden

NewDeleteAPISessionsForbidden creates a DeleteAPISessionsForbidden with default headers values

func (*DeleteAPISessionsForbidden) Code

func (o *DeleteAPISessionsForbidden) Code() int

Code gets the status code for the delete Api sessions forbidden response

func (*DeleteAPISessionsForbidden) Error

func (*DeleteAPISessionsForbidden) GetPayload

func (*DeleteAPISessionsForbidden) IsClientError

func (o *DeleteAPISessionsForbidden) IsClientError() bool

IsClientError returns true when this delete Api sessions forbidden response has a 4xx status code

func (*DeleteAPISessionsForbidden) IsCode

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

IsCode returns true when this delete Api sessions forbidden response a status code equal to that given

func (*DeleteAPISessionsForbidden) IsRedirect

func (o *DeleteAPISessionsForbidden) IsRedirect() bool

IsRedirect returns true when this delete Api sessions forbidden response has a 3xx status code

func (*DeleteAPISessionsForbidden) IsServerError

func (o *DeleteAPISessionsForbidden) IsServerError() bool

IsServerError returns true when this delete Api sessions forbidden response has a 5xx status code

func (*DeleteAPISessionsForbidden) IsSuccess

func (o *DeleteAPISessionsForbidden) IsSuccess() bool

IsSuccess returns true when this delete Api sessions forbidden response has a 2xx status code

func (*DeleteAPISessionsForbidden) String

func (o *DeleteAPISessionsForbidden) String() string

type DeleteAPISessionsNotFound

type DeleteAPISessionsNotFound struct {

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

	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewDeleteAPISessionsNotFound

func NewDeleteAPISessionsNotFound() *DeleteAPISessionsNotFound

NewDeleteAPISessionsNotFound creates a DeleteAPISessionsNotFound with default headers values

func (*DeleteAPISessionsNotFound) Code

func (o *DeleteAPISessionsNotFound) Code() int

Code gets the status code for the delete Api sessions not found response

func (*DeleteAPISessionsNotFound) Error

func (o *DeleteAPISessionsNotFound) Error() string

func (*DeleteAPISessionsNotFound) GetPayload

func (*DeleteAPISessionsNotFound) IsClientError

func (o *DeleteAPISessionsNotFound) IsClientError() bool

IsClientError returns true when this delete Api sessions not found response has a 4xx status code

func (*DeleteAPISessionsNotFound) IsCode

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

IsCode returns true when this delete Api sessions not found response a status code equal to that given

func (*DeleteAPISessionsNotFound) IsRedirect

func (o *DeleteAPISessionsNotFound) IsRedirect() bool

IsRedirect returns true when this delete Api sessions not found response has a 3xx status code

func (*DeleteAPISessionsNotFound) IsServerError

func (o *DeleteAPISessionsNotFound) IsServerError() bool

IsServerError returns true when this delete Api sessions not found response has a 5xx status code

func (*DeleteAPISessionsNotFound) IsSuccess

func (o *DeleteAPISessionsNotFound) IsSuccess() bool

IsSuccess returns true when this delete Api sessions not found response has a 2xx status code

func (*DeleteAPISessionsNotFound) String

func (o *DeleteAPISessionsNotFound) String() string

type DeleteAPISessionsOK

type DeleteAPISessionsOK struct {

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

	Payload *rest_model.Empty
}

DeleteAPISessionsOK describes a response with status code 200, with default header values.

The delete request was successful and the resource has been removed

func NewDeleteAPISessionsOK

func NewDeleteAPISessionsOK() *DeleteAPISessionsOK

NewDeleteAPISessionsOK creates a DeleteAPISessionsOK with default headers values

func (*DeleteAPISessionsOK) Code

func (o *DeleteAPISessionsOK) Code() int

Code gets the status code for the delete Api sessions o k response

func (*DeleteAPISessionsOK) Error

func (o *DeleteAPISessionsOK) Error() string

func (*DeleteAPISessionsOK) GetPayload

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

func (*DeleteAPISessionsOK) IsClientError

func (o *DeleteAPISessionsOK) IsClientError() bool

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

func (*DeleteAPISessionsOK) IsCode

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

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

func (*DeleteAPISessionsOK) IsRedirect

func (o *DeleteAPISessionsOK) IsRedirect() bool

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

func (*DeleteAPISessionsOK) IsServerError

func (o *DeleteAPISessionsOK) IsServerError() bool

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

func (*DeleteAPISessionsOK) IsSuccess

func (o *DeleteAPISessionsOK) IsSuccess() bool

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

func (*DeleteAPISessionsOK) String

func (o *DeleteAPISessionsOK) String() string

type DeleteAPISessionsParams

type DeleteAPISessionsParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DeleteAPISessionsParams contains all the parameters to send to the API endpoint

for the delete API sessions operation.

Typically these are written to a http.Request.

func NewDeleteAPISessionsParams

func NewDeleteAPISessionsParams() *DeleteAPISessionsParams

NewDeleteAPISessionsParams creates a new DeleteAPISessionsParams 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 NewDeleteAPISessionsParamsWithContext

func NewDeleteAPISessionsParamsWithContext(ctx context.Context) *DeleteAPISessionsParams

NewDeleteAPISessionsParamsWithContext creates a new DeleteAPISessionsParams object with the ability to set a context for a request.

func NewDeleteAPISessionsParamsWithHTTPClient

func NewDeleteAPISessionsParamsWithHTTPClient(client *http.Client) *DeleteAPISessionsParams

NewDeleteAPISessionsParamsWithHTTPClient creates a new DeleteAPISessionsParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPISessionsParamsWithTimeout

func NewDeleteAPISessionsParamsWithTimeout(timeout time.Duration) *DeleteAPISessionsParams

NewDeleteAPISessionsParamsWithTimeout creates a new DeleteAPISessionsParams object with the ability to set a timeout on a request.

func (*DeleteAPISessionsParams) SetContext

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

SetContext adds the context to the delete API sessions params

func (*DeleteAPISessionsParams) SetDefaults

func (o *DeleteAPISessionsParams) SetDefaults()

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

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

func (*DeleteAPISessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API sessions params

func (*DeleteAPISessionsParams) SetID

func (o *DeleteAPISessionsParams) SetID(id string)

SetID adds the id to the delete API sessions params

func (*DeleteAPISessionsParams) SetTimeout

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

SetTimeout adds the timeout to the delete API sessions params

func (*DeleteAPISessionsParams) WithContext

WithContext adds the context to the delete API sessions params

func (*DeleteAPISessionsParams) WithDefaults

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

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

func (*DeleteAPISessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete API sessions params

func (*DeleteAPISessionsParams) WithID

WithID adds the id to the delete API sessions params

func (*DeleteAPISessionsParams) WithTimeout

WithTimeout adds the timeout to the delete API sessions params

func (*DeleteAPISessionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAPISessionsReader

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

DeleteAPISessionsReader is a Reader for the DeleteAPISessions structure.

func (*DeleteAPISessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAPISessionsServiceUnavailable

type DeleteAPISessionsServiceUnavailable struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DeleteAPISessionsServiceUnavailable 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 NewDeleteAPISessionsServiceUnavailable

func NewDeleteAPISessionsServiceUnavailable() *DeleteAPISessionsServiceUnavailable

NewDeleteAPISessionsServiceUnavailable creates a DeleteAPISessionsServiceUnavailable with default headers values

func (*DeleteAPISessionsServiceUnavailable) Code

Code gets the status code for the delete Api sessions service unavailable response

func (*DeleteAPISessionsServiceUnavailable) Error

func (*DeleteAPISessionsServiceUnavailable) GetPayload

func (*DeleteAPISessionsServiceUnavailable) IsClientError

func (o *DeleteAPISessionsServiceUnavailable) IsClientError() bool

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

func (*DeleteAPISessionsServiceUnavailable) IsCode

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

func (*DeleteAPISessionsServiceUnavailable) IsRedirect

func (o *DeleteAPISessionsServiceUnavailable) IsRedirect() bool

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

func (*DeleteAPISessionsServiceUnavailable) IsServerError

func (o *DeleteAPISessionsServiceUnavailable) IsServerError() bool

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

func (*DeleteAPISessionsServiceUnavailable) IsSuccess

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

func (*DeleteAPISessionsServiceUnavailable) String

type DeleteAPISessionsTooManyRequests

type DeleteAPISessionsTooManyRequests struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DeleteAPISessionsTooManyRequests 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 NewDeleteAPISessionsTooManyRequests

func NewDeleteAPISessionsTooManyRequests() *DeleteAPISessionsTooManyRequests

NewDeleteAPISessionsTooManyRequests creates a DeleteAPISessionsTooManyRequests with default headers values

func (*DeleteAPISessionsTooManyRequests) Code

Code gets the status code for the delete Api sessions too many requests response

func (*DeleteAPISessionsTooManyRequests) Error

func (*DeleteAPISessionsTooManyRequests) GetPayload

func (*DeleteAPISessionsTooManyRequests) IsClientError

func (o *DeleteAPISessionsTooManyRequests) IsClientError() bool

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

func (*DeleteAPISessionsTooManyRequests) IsCode

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

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

func (*DeleteAPISessionsTooManyRequests) IsRedirect

func (o *DeleteAPISessionsTooManyRequests) IsRedirect() bool

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

func (*DeleteAPISessionsTooManyRequests) IsServerError

func (o *DeleteAPISessionsTooManyRequests) IsServerError() bool

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

func (*DeleteAPISessionsTooManyRequests) IsSuccess

func (o *DeleteAPISessionsTooManyRequests) IsSuccess() bool

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

func (*DeleteAPISessionsTooManyRequests) String

type DeleteAPISessionsUnauthorized

type DeleteAPISessionsUnauthorized struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DeleteAPISessionsUnauthorized 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 NewDeleteAPISessionsUnauthorized

func NewDeleteAPISessionsUnauthorized() *DeleteAPISessionsUnauthorized

NewDeleteAPISessionsUnauthorized creates a DeleteAPISessionsUnauthorized with default headers values

func (*DeleteAPISessionsUnauthorized) Code

Code gets the status code for the delete Api sessions unauthorized response

func (*DeleteAPISessionsUnauthorized) Error

func (*DeleteAPISessionsUnauthorized) GetPayload

func (*DeleteAPISessionsUnauthorized) IsClientError

func (o *DeleteAPISessionsUnauthorized) IsClientError() bool

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

func (*DeleteAPISessionsUnauthorized) IsCode

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

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

func (*DeleteAPISessionsUnauthorized) IsRedirect

func (o *DeleteAPISessionsUnauthorized) IsRedirect() bool

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

func (*DeleteAPISessionsUnauthorized) IsServerError

func (o *DeleteAPISessionsUnauthorized) IsServerError() bool

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

func (*DeleteAPISessionsUnauthorized) IsSuccess

func (o *DeleteAPISessionsUnauthorized) IsSuccess() bool

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

func (*DeleteAPISessionsUnauthorized) String

type DetailAPISessionsNotFound

type DetailAPISessionsNotFound struct {

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

	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewDetailAPISessionsNotFound

func NewDetailAPISessionsNotFound() *DetailAPISessionsNotFound

NewDetailAPISessionsNotFound creates a DetailAPISessionsNotFound with default headers values

func (*DetailAPISessionsNotFound) Code

func (o *DetailAPISessionsNotFound) Code() int

Code gets the status code for the detail Api sessions not found response

func (*DetailAPISessionsNotFound) Error

func (o *DetailAPISessionsNotFound) Error() string

func (*DetailAPISessionsNotFound) GetPayload

func (*DetailAPISessionsNotFound) IsClientError

func (o *DetailAPISessionsNotFound) IsClientError() bool

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

func (*DetailAPISessionsNotFound) IsCode

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

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

func (*DetailAPISessionsNotFound) IsRedirect

func (o *DetailAPISessionsNotFound) IsRedirect() bool

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

func (*DetailAPISessionsNotFound) IsServerError

func (o *DetailAPISessionsNotFound) IsServerError() bool

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

func (*DetailAPISessionsNotFound) IsSuccess

func (o *DetailAPISessionsNotFound) IsSuccess() bool

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

func (*DetailAPISessionsNotFound) String

func (o *DetailAPISessionsNotFound) String() string

type DetailAPISessionsOK

type DetailAPISessionsOK struct {

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

	Payload *rest_model.DetailAPISessionEnvelope
}

DetailAPISessionsOK describes a response with status code 200, with default header values.

Retrieves a singular API Session by id

func NewDetailAPISessionsOK

func NewDetailAPISessionsOK() *DetailAPISessionsOK

NewDetailAPISessionsOK creates a DetailAPISessionsOK with default headers values

func (*DetailAPISessionsOK) Code

func (o *DetailAPISessionsOK) Code() int

Code gets the status code for the detail Api sessions o k response

func (*DetailAPISessionsOK) Error

func (o *DetailAPISessionsOK) Error() string

func (*DetailAPISessionsOK) GetPayload

func (*DetailAPISessionsOK) IsClientError

func (o *DetailAPISessionsOK) IsClientError() bool

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

func (*DetailAPISessionsOK) IsCode

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

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

func (*DetailAPISessionsOK) IsRedirect

func (o *DetailAPISessionsOK) IsRedirect() bool

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

func (*DetailAPISessionsOK) IsServerError

func (o *DetailAPISessionsOK) IsServerError() bool

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

func (*DetailAPISessionsOK) IsSuccess

func (o *DetailAPISessionsOK) IsSuccess() bool

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

func (*DetailAPISessionsOK) String

func (o *DetailAPISessionsOK) String() string

type DetailAPISessionsParams

type DetailAPISessionsParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailAPISessionsParams contains all the parameters to send to the API endpoint

for the detail API sessions operation.

Typically these are written to a http.Request.

func NewDetailAPISessionsParams

func NewDetailAPISessionsParams() *DetailAPISessionsParams

NewDetailAPISessionsParams creates a new DetailAPISessionsParams 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 NewDetailAPISessionsParamsWithContext

func NewDetailAPISessionsParamsWithContext(ctx context.Context) *DetailAPISessionsParams

NewDetailAPISessionsParamsWithContext creates a new DetailAPISessionsParams object with the ability to set a context for a request.

func NewDetailAPISessionsParamsWithHTTPClient

func NewDetailAPISessionsParamsWithHTTPClient(client *http.Client) *DetailAPISessionsParams

NewDetailAPISessionsParamsWithHTTPClient creates a new DetailAPISessionsParams object with the ability to set a custom HTTPClient for a request.

func NewDetailAPISessionsParamsWithTimeout

func NewDetailAPISessionsParamsWithTimeout(timeout time.Duration) *DetailAPISessionsParams

NewDetailAPISessionsParamsWithTimeout creates a new DetailAPISessionsParams object with the ability to set a timeout on a request.

func (*DetailAPISessionsParams) SetContext

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

SetContext adds the context to the detail API sessions params

func (*DetailAPISessionsParams) SetDefaults

func (o *DetailAPISessionsParams) SetDefaults()

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

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

func (*DetailAPISessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail API sessions params

func (*DetailAPISessionsParams) SetID

func (o *DetailAPISessionsParams) SetID(id string)

SetID adds the id to the detail API sessions params

func (*DetailAPISessionsParams) SetTimeout

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

SetTimeout adds the timeout to the detail API sessions params

func (*DetailAPISessionsParams) WithContext

WithContext adds the context to the detail API sessions params

func (*DetailAPISessionsParams) WithDefaults

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

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

func (*DetailAPISessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail API sessions params

func (*DetailAPISessionsParams) WithID

WithID adds the id to the detail API sessions params

func (*DetailAPISessionsParams) WithTimeout

WithTimeout adds the timeout to the detail API sessions params

func (*DetailAPISessionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailAPISessionsReader

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

DetailAPISessionsReader is a Reader for the DetailAPISessions structure.

func (*DetailAPISessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailAPISessionsServiceUnavailable

type DetailAPISessionsServiceUnavailable struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DetailAPISessionsServiceUnavailable 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 NewDetailAPISessionsServiceUnavailable

func NewDetailAPISessionsServiceUnavailable() *DetailAPISessionsServiceUnavailable

NewDetailAPISessionsServiceUnavailable creates a DetailAPISessionsServiceUnavailable with default headers values

func (*DetailAPISessionsServiceUnavailable) Code

Code gets the status code for the detail Api sessions service unavailable response

func (*DetailAPISessionsServiceUnavailable) Error

func (*DetailAPISessionsServiceUnavailable) GetPayload

func (*DetailAPISessionsServiceUnavailable) IsClientError

func (o *DetailAPISessionsServiceUnavailable) IsClientError() bool

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

func (*DetailAPISessionsServiceUnavailable) IsCode

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

func (*DetailAPISessionsServiceUnavailable) IsRedirect

func (o *DetailAPISessionsServiceUnavailable) IsRedirect() bool

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

func (*DetailAPISessionsServiceUnavailable) IsServerError

func (o *DetailAPISessionsServiceUnavailable) IsServerError() bool

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

func (*DetailAPISessionsServiceUnavailable) IsSuccess

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

func (*DetailAPISessionsServiceUnavailable) String

type DetailAPISessionsTooManyRequests

type DetailAPISessionsTooManyRequests struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DetailAPISessionsTooManyRequests 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 NewDetailAPISessionsTooManyRequests

func NewDetailAPISessionsTooManyRequests() *DetailAPISessionsTooManyRequests

NewDetailAPISessionsTooManyRequests creates a DetailAPISessionsTooManyRequests with default headers values

func (*DetailAPISessionsTooManyRequests) Code

Code gets the status code for the detail Api sessions too many requests response

func (*DetailAPISessionsTooManyRequests) Error

func (*DetailAPISessionsTooManyRequests) GetPayload

func (*DetailAPISessionsTooManyRequests) IsClientError

func (o *DetailAPISessionsTooManyRequests) IsClientError() bool

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

func (*DetailAPISessionsTooManyRequests) IsCode

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

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

func (*DetailAPISessionsTooManyRequests) IsRedirect

func (o *DetailAPISessionsTooManyRequests) IsRedirect() bool

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

func (*DetailAPISessionsTooManyRequests) IsServerError

func (o *DetailAPISessionsTooManyRequests) IsServerError() bool

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

func (*DetailAPISessionsTooManyRequests) IsSuccess

func (o *DetailAPISessionsTooManyRequests) IsSuccess() bool

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

func (*DetailAPISessionsTooManyRequests) String

type DetailAPISessionsUnauthorized

type DetailAPISessionsUnauthorized struct {

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

	Payload *rest_model.APIErrorEnvelope
}

DetailAPISessionsUnauthorized 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 NewDetailAPISessionsUnauthorized

func NewDetailAPISessionsUnauthorized() *DetailAPISessionsUnauthorized

NewDetailAPISessionsUnauthorized creates a DetailAPISessionsUnauthorized with default headers values

func (*DetailAPISessionsUnauthorized) Code

Code gets the status code for the detail Api sessions unauthorized response

func (*DetailAPISessionsUnauthorized) Error

func (*DetailAPISessionsUnauthorized) GetPayload

func (*DetailAPISessionsUnauthorized) IsClientError

func (o *DetailAPISessionsUnauthorized) IsClientError() bool

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

func (*DetailAPISessionsUnauthorized) IsCode

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

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

func (*DetailAPISessionsUnauthorized) IsRedirect

func (o *DetailAPISessionsUnauthorized) IsRedirect() bool

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

func (*DetailAPISessionsUnauthorized) IsServerError

func (o *DetailAPISessionsUnauthorized) IsServerError() bool

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

func (*DetailAPISessionsUnauthorized) IsSuccess

func (o *DetailAPISessionsUnauthorized) IsSuccess() bool

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

func (*DetailAPISessionsUnauthorized) String

type ListAPISessionsBadRequest

type ListAPISessionsBadRequest struct {

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

	Payload *rest_model.APIErrorEnvelope
}

ListAPISessionsBadRequest 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 NewListAPISessionsBadRequest

func NewListAPISessionsBadRequest() *ListAPISessionsBadRequest

NewListAPISessionsBadRequest creates a ListAPISessionsBadRequest with default headers values

func (*ListAPISessionsBadRequest) Code

func (o *ListAPISessionsBadRequest) Code() int

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

func (*ListAPISessionsBadRequest) Error

func (o *ListAPISessionsBadRequest) Error() string

func (*ListAPISessionsBadRequest) GetPayload

func (*ListAPISessionsBadRequest) IsClientError

func (o *ListAPISessionsBadRequest) IsClientError() bool

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

func (*ListAPISessionsBadRequest) IsCode

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

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

func (*ListAPISessionsBadRequest) IsRedirect

func (o *ListAPISessionsBadRequest) IsRedirect() bool

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

func (*ListAPISessionsBadRequest) IsServerError

func (o *ListAPISessionsBadRequest) IsServerError() bool

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

func (*ListAPISessionsBadRequest) IsSuccess

func (o *ListAPISessionsBadRequest) IsSuccess() bool

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

func (*ListAPISessionsBadRequest) String

func (o *ListAPISessionsBadRequest) String() string

type ListAPISessionsOK

type ListAPISessionsOK struct {

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

	Payload *rest_model.ListAPISessionsEnvelope
}

ListAPISessionsOK describes a response with status code 200, with default header values.

A list of active API Sessions

func NewListAPISessionsOK

func NewListAPISessionsOK() *ListAPISessionsOK

NewListAPISessionsOK creates a ListAPISessionsOK with default headers values

func (*ListAPISessionsOK) Code

func (o *ListAPISessionsOK) Code() int

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

func (*ListAPISessionsOK) Error

func (o *ListAPISessionsOK) Error() string

func (*ListAPISessionsOK) GetPayload

func (*ListAPISessionsOK) IsClientError

func (o *ListAPISessionsOK) IsClientError() bool

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

func (*ListAPISessionsOK) IsCode

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

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

func (*ListAPISessionsOK) IsRedirect

func (o *ListAPISessionsOK) IsRedirect() bool

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

func (*ListAPISessionsOK) IsServerError

func (o *ListAPISessionsOK) IsServerError() bool

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

func (*ListAPISessionsOK) IsSuccess

func (o *ListAPISessionsOK) IsSuccess() bool

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

func (*ListAPISessionsOK) String

func (o *ListAPISessionsOK) String() string

type ListAPISessionsParams

type ListAPISessionsParams struct {

	// Filter.
	Filter *string

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

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

ListAPISessionsParams contains all the parameters to send to the API endpoint

for the list API sessions operation.

Typically these are written to a http.Request.

func NewListAPISessionsParams

func NewListAPISessionsParams() *ListAPISessionsParams

NewListAPISessionsParams creates a new ListAPISessionsParams 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 NewListAPISessionsParamsWithContext

func NewListAPISessionsParamsWithContext(ctx context.Context) *ListAPISessionsParams

NewListAPISessionsParamsWithContext creates a new ListAPISessionsParams object with the ability to set a context for a request.

func NewListAPISessionsParamsWithHTTPClient

func NewListAPISessionsParamsWithHTTPClient(client *http.Client) *ListAPISessionsParams

NewListAPISessionsParamsWithHTTPClient creates a new ListAPISessionsParams object with the ability to set a custom HTTPClient for a request.

func NewListAPISessionsParamsWithTimeout

func NewListAPISessionsParamsWithTimeout(timeout time.Duration) *ListAPISessionsParams

NewListAPISessionsParamsWithTimeout creates a new ListAPISessionsParams object with the ability to set a timeout on a request.

func (*ListAPISessionsParams) SetContext

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

SetContext adds the context to the list API sessions params

func (*ListAPISessionsParams) SetDefaults

func (o *ListAPISessionsParams) SetDefaults()

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

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

func (*ListAPISessionsParams) SetFilter

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

SetFilter adds the filter to the list API sessions params

func (*ListAPISessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list API sessions params

func (*ListAPISessionsParams) SetLimit

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

SetLimit adds the limit to the list API sessions params

func (*ListAPISessionsParams) SetOffset

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

SetOffset adds the offset to the list API sessions params

func (*ListAPISessionsParams) SetTimeout

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

SetTimeout adds the timeout to the list API sessions params

func (*ListAPISessionsParams) WithContext

WithContext adds the context to the list API sessions params

func (*ListAPISessionsParams) WithDefaults

func (o *ListAPISessionsParams) WithDefaults() *ListAPISessionsParams

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

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

func (*ListAPISessionsParams) WithFilter

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

WithFilter adds the filter to the list API sessions params

func (*ListAPISessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list API sessions params

func (*ListAPISessionsParams) WithLimit

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

WithLimit adds the limit to the list API sessions params

func (*ListAPISessionsParams) WithOffset

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

WithOffset adds the offset to the list API sessions params

func (*ListAPISessionsParams) WithTimeout

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

WithTimeout adds the timeout to the list API sessions params

func (*ListAPISessionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListAPISessionsReader

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

ListAPISessionsReader is a Reader for the ListAPISessions structure.

func (*ListAPISessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAPISessionsServiceUnavailable

type ListAPISessionsServiceUnavailable struct {

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

	Payload *rest_model.APIErrorEnvelope
}

ListAPISessionsServiceUnavailable 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 NewListAPISessionsServiceUnavailable

func NewListAPISessionsServiceUnavailable() *ListAPISessionsServiceUnavailable

NewListAPISessionsServiceUnavailable creates a ListAPISessionsServiceUnavailable with default headers values

func (*ListAPISessionsServiceUnavailable) Code

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

func (*ListAPISessionsServiceUnavailable) Error

func (*ListAPISessionsServiceUnavailable) GetPayload

func (*ListAPISessionsServiceUnavailable) IsClientError

func (o *ListAPISessionsServiceUnavailable) IsClientError() bool

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

func (*ListAPISessionsServiceUnavailable) IsCode

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

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

func (*ListAPISessionsServiceUnavailable) IsRedirect

func (o *ListAPISessionsServiceUnavailable) IsRedirect() bool

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

func (*ListAPISessionsServiceUnavailable) IsServerError

func (o *ListAPISessionsServiceUnavailable) IsServerError() bool

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

func (*ListAPISessionsServiceUnavailable) IsSuccess

func (o *ListAPISessionsServiceUnavailable) IsSuccess() bool

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

func (*ListAPISessionsServiceUnavailable) String

type ListAPISessionsTooManyRequests

type ListAPISessionsTooManyRequests struct {

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

	Payload *rest_model.APIErrorEnvelope
}

ListAPISessionsTooManyRequests 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 NewListAPISessionsTooManyRequests

func NewListAPISessionsTooManyRequests() *ListAPISessionsTooManyRequests

NewListAPISessionsTooManyRequests creates a ListAPISessionsTooManyRequests with default headers values

func (*ListAPISessionsTooManyRequests) Code

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

func (*ListAPISessionsTooManyRequests) Error

func (*ListAPISessionsTooManyRequests) GetPayload

func (*ListAPISessionsTooManyRequests) IsClientError

func (o *ListAPISessionsTooManyRequests) IsClientError() bool

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

func (*ListAPISessionsTooManyRequests) IsCode

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

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

func (*ListAPISessionsTooManyRequests) IsRedirect

func (o *ListAPISessionsTooManyRequests) IsRedirect() bool

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

func (*ListAPISessionsTooManyRequests) IsServerError

func (o *ListAPISessionsTooManyRequests) IsServerError() bool

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

func (*ListAPISessionsTooManyRequests) IsSuccess

func (o *ListAPISessionsTooManyRequests) IsSuccess() bool

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

func (*ListAPISessionsTooManyRequests) String

type ListAPISessionsUnauthorized

type ListAPISessionsUnauthorized struct {

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

	Payload *rest_model.APIErrorEnvelope
}

ListAPISessionsUnauthorized 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 NewListAPISessionsUnauthorized

func NewListAPISessionsUnauthorized() *ListAPISessionsUnauthorized

NewListAPISessionsUnauthorized creates a ListAPISessionsUnauthorized with default headers values

func (*ListAPISessionsUnauthorized) Code

func (o *ListAPISessionsUnauthorized) Code() int

Code gets the status code for the list Api sessions unauthorized response

func (*ListAPISessionsUnauthorized) Error

func (*ListAPISessionsUnauthorized) GetPayload

func (*ListAPISessionsUnauthorized) IsClientError

func (o *ListAPISessionsUnauthorized) IsClientError() bool

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

func (*ListAPISessionsUnauthorized) IsCode

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

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

func (*ListAPISessionsUnauthorized) IsRedirect

func (o *ListAPISessionsUnauthorized) IsRedirect() bool

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

func (*ListAPISessionsUnauthorized) IsServerError

func (o *ListAPISessionsUnauthorized) IsServerError() bool

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

func (*ListAPISessionsUnauthorized) IsSuccess

func (o *ListAPISessionsUnauthorized) IsSuccess() bool

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

func (*ListAPISessionsUnauthorized) String

func (o *ListAPISessionsUnauthorized) String() string

Jump to

Keyboard shortcuts

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