Package comodit_client :: Package api :: Module compliance :: Class UserState

Class UserState


State of a user.

Instance Methods
 
show(self, indent=0)
Prints a user-friendly representation of this state to standard output.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
bool present
Tells whether the user is present on the system or not.
string gid
The GID of the user.
string uid
The UID of the user.
string name
The username of the user.
string home_dir
The home directory of the user.
string shell
The login shell of the user.
string gecos
The GECOS of the user.
list of string groups
The groups the user belongs to.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints a user-friendly representation of this state to standard output.

Parameters:
  • indent (int) - The number of spaces that will be put at the beginning of each printed line.

Property Details

present

Tells whether the user is present on the system or not.

Get Method:
unreachable.present(self) - Tells whether the user is present on the system or not.
Type:
bool

gid

The GID of the user.

Get Method:
unreachable.gid(self) - The GID of the user.
Type:
string

uid

The UID of the user.

Get Method:
unreachable.uid(self) - The UID of the user.
Type:
string

name

The username of the user.

Get Method:
unreachable.name(self) - The username of the user.
Type:
string

home_dir

The home directory of the user.

Get Method:
unreachable.home_dir(self) - The home directory of the user.
Type:
string

shell

The login shell of the user.

Get Method:
unreachable.shell(self) - The login shell of the user.
Type:
string

gecos

The GECOS of the user.

Get Method:
unreachable.gecos(self) - The GECOS of the user.
Type:
string

groups

The groups the user belongs to.

Get Method:
unreachable.groups(self) - The groups the user belongs to.
Type:
list of string