models.file_version module

class models.file_version.FileVersion(modified_time_usecs=None, size_bytes=None, snapshots=None)[source]

Bases: object

Implementation of the ‘FileVersion’ model.

Specifies information about a single file or folder.

Attributes:
modified_time_usecs (long|int): Specifies the time when the file or

folder was last modified. Specified as a Unix epoch Timestamp (in microseconds).

size_bytes (long|int): Specifies the size of the file or folder (in

bytes) from the most recent snapshot.

snapshots (list of SnapshotAttempt): Array of Snapshots. Specifies

the available snapshots of the file or folder. When a Job Run executes, it captures a snapshot of object (such as a VM) that contains the file or folder.

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.