8.6.16. vantage6.common.WhoAmI#

class WhoAmI(type_: str, id_: int, name: str, organization_name: str, organization_id: int)#

Bases: NamedTuple

Data-class to store Authenticatable information in.

Variables:
  • type (str) – The type of the authenticatable (user or node).

  • id (int) – The id of the authenticatable.

  • name (str) – The name of the authenticatable.

  • organization_name (str) – The name of the organization of the authenticatable.

  • organization_id (int) – The id of the organization of the authenticatable.

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

id_

Alias for field number 1

name

Alias for field number 2

organization_id

Alias for field number 4

organization_name

Alias for field number 3

type_

Alias for field number 0

count(value, /)#

Return number of occurrences of value.

id_: int#

Alias for field number 1

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

name: str#

Alias for field number 2

organization_id: int#

Alias for field number 4

organization_name: str#

Alias for field number 3

type_: str#

Alias for field number 0