TokenInfo

class pyniryo_nate.models.auth.TokenInfo(id: UUID, expires_at: datetime, created_at: datetime)[source]

Bases: object

Represents an authentication token as the robot lists it, without its secret.

Parameters:
  • id (UUID) – The unique identifier of the token.

  • expires_at (datetime) – The expiration date and time of the token.

  • created_at (datetime) – The creation date and time of the token.

Attributes

Methods

id: UUID
expires_at: datetime
created_at: datetime
classmethod from_transport_model(model: TokenInfo) → TokenInfo[source]
Parameters:

model (TokenInfo)

Return type:

TokenInfo