Skip to content

Models

airvpn.web.services.devices.models

DeviceKey

A device associated with the user's account.

Represents an entry from the keys section of the PortManager manifest. Despite the name, these correspond to the user's devices rather than cryptographic keys.

Attributes:

Name Type Description
name str

Display name of the device.

id str

Unique identifier of the device.

description str | None

Optional free-text description of the device.

color str

Color label/tag associated with the device.

version str

Version string of the device's client software.

renew_first_date int

Timestamp of the device's first renewal.

renew_last_date int

Timestamp of the device's most recent renewal.

renew_counter int

Number of times the device has been renewed.

wg_public_key str

WireGuard public key for the device.

wg_ipv4 str

WireGuard IPv4 address assigned to the device.

wg_ipv6 str

WireGuard IPv6 address assigned to the device.

show_dns bool

Whether DNS info is shown for the device.

vpn_last_from_date str

Start date of the device's last VPN session.

vpn_last_to_date str

End date of the device's last VPN session.

vpn_attempt_date str

Date of the device's last connection attempt.

vpn_attempt_message str

Message/status from the last connection attempt.

deprecated bool

Whether the device is deprecated. Defaults to False.

pending str

Pending action or status for the device, if any.