models.vm_dir_entry module

class models.vm_dir_entry.VmDirEntry(fstat_info=None, full_path=None, name=None, mtype=None)[source]

Bases: object

Implementation of the ‘VmDirEntry’ model.

VmDirEntry is the struct to respresent a file or a folder on a VM.

Attributes:
fstat_info (FileStatInfo): FstatInfo is the stat information for the

file.

full_path (string): FullPath is the full path of the file/directory. name (string): Name is the name of the file or folder. For

/test/file.txt, name will be file.txt.

mtype (TypeVmDirEntryEnum): DirEntryType is the type of entry i.e.

file/folder. Specifies the type of directory entry. ‘kFile’ indicates that current entry is of file type. ‘kDirectory’ indicates that current entry is of directory type. ‘kSymlink’ indicates that current entry is of symbolic link.

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.