models_v2.file module¶
-
class
models_v2.file.
File
(name=None, path=None, mtype=None, tags=None, snapshot_tags=None, protection_group_id=None, protection_group_name=None, storage_domain_id=None, source_info=None)[source]¶ Bases:
object
Implementation of the ‘File’ model.
Specifies a File.
- Attributes:
name (string): Specifies the file name. path (string): Specifies the path to this file. mtype (Type14Enum): Specifies the file type. tags (list of string): Specifies the tags on this file. snapshot_tags (list of string): Specifies the snapshot tags of this
file.
- protection_group_id (string): Specifies the protection group id which
contains this file.
- protection_group_name (string): Specifies the protection group name
which contains this file.
- storage_domain_id (long|int): Specifies the Storage Domain id where
the backup data of Object is present.
source_info (SourceInfo): Specifies the Source Object information.
-
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.