models.nlm_lock module

class models.nlm_lock.NlmLock(client_id=None, lock_ranges=None)[source]

Bases: object

Implementation of the ‘NlmLock’ model.

Response <clientID-Locks> map as received from view-keeper is converted into this structure. These Locks belong to one file-path.

Attributes:

client_id (string): Specifies the client ID lock_ranges (list of LockRange): TODO: type description here.

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.