Snapd.UserInformation

g GObject.Object GObject.Object Snapd.UserInformation Snapd.UserInformation GObject.Object->Snapd.UserInformation

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_auth_data ()

get_email ()

get_id ()

get_ssh_keys ()

get_username ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

auth-data

Snapd.AuthData

r/w/co

Authorization data

email

str

r/w/co

Email address

id

int

r/w/co

Account id

ssh-keys

[str]

r/w/co

SSH keys

username

str

r/w/co

Unix username

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.UserInformation(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.UserInformationClass

Snapd.UserInformation contains information about a user account on the system snapd is running on.

New in version 1.3.

get_auth_data()
Returns:

a Snapd.AuthData or None if not set.

Return type:

Snapd.AuthData or None

Get the email address for this account.

New in version 1.26.

get_email()
Returns:

a email address.

Return type:

str

Get the email address for this account.

New in version 1.26.

get_id()
Returns:

a user id.

Return type:

int

Get the id for this account.

New in version 1.26.

get_ssh_keys()
Returns:

the names of the SSH keys.

Return type:

[str]

Get the SSH keys added to this account.

New in version 1.3.

get_username()
Returns:

a username.

Return type:

str

Get the local username for this account.

New in version 1.3.

Property Details

Snapd.UserInformation.props.auth_data
Name:

auth-data

Type:

Snapd.AuthData

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Authorization data

Snapd.UserInformation.props.email
Name:

email

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Email address

Snapd.UserInformation.props.id
Name:

id

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Account id

Snapd.UserInformation.props.ssh_keys
Name:

ssh-keys

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

SSH keys

Snapd.UserInformation.props.username
Name:

username

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Unix username