models.smb_active_session module

class models.smb_active_session.SmbActiveSession(active_opens=None, client_ip=None, domain=None, server_ip=None, session_id=None, username=None)[source]

Bases: object

Implementation of the ‘SmbActiveSession’ model.

Specifies an active session and its opens.

Attributes:
active_opens (list of SmbActiveOpen): Specifies the list of active

opens of the file in this session.

client_ip (string): Specifies the IP address from which the file is

still open.

domain (string): Specifies the domain of the user. server_ip (string): Specifies the IP address of the server where the

file exists.

session_id (long|int): Specifies the id of the session. username (string): Specifies the username who keeps the file open.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.