AdminSessionItem
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
session_id |
str |
Unique identifier of the session. |
|
user_id |
str |
ID of the user the session belongs to. |
|
username |
str |
Username of the user the session belongs to. |
|
subject |
str |
OIDC subject claim for the user (when known). |
[optional] |
transport |
str |
How the session authenticated. One of `keycloak`, `anonymous`, `spoof`, or `unknown`. |
|
is_anonymous |
bool |
True if the session is for a guest / anonymous user. |
|
expires_in_seconds |
int |
Remaining Redis TTL on the session key, in seconds. |
|
expires_at |
datetime |
Access-token expiry from the underlying OAuth2 token. Zero for anonymous or spoofed sessions. |
[optional] |
Example
from h2ogpte.rest_async.models.admin_session_item import AdminSessionItem
# TODO update the JSON string below
json = "{}"
# create an instance of AdminSessionItem from a JSON string
admin_session_item_instance = AdminSessionItem.from_json(json)
# print the JSON string representation of the object
print(AdminSessionItem.to_json())
# convert the object into a dict
admin_session_item_dict = admin_session_item_instance.to_dict()
# create an instance of AdminSessionItem from a dict
admin_session_item_from_dict = AdminSessionItem.from_dict(admin_session_item_dict)