Skip to main content

FileRevision

Description: Represents a file revision object. This class inherits from the Base classes.

Attributes

NameTypeDescription
idStrictStr
createddatetime.datetime
file_idOptional[StrictStr]
content_tokenToken
properties_tokenToken
archive_status_historyList[FileRevisionArchiveStatus]
nameOptional[StrictStr]
stemOptional[StrictStr]
suffixOptional[StrictStr]
extensionOptional[StrictStr]
descriptionOptional[StrictStr]
sizeOptional[StrictInt]
mimeOptional[StrictStr]
version_nameOptional[StrictStr]
external_identifierOptional[StrictStr]
display_nameOptional[StrictStr]
sourcesOptional[List[Source]]
productsOptional[List[Product]]
created_by_idOptional[StrictStr]

Methods

NameDescription
source_revision_ids
source_product_ids
read_bytes
to_strReturns the string representation of the model using alias
to_jsonReturns the JSON representation of the model using alias
from_jsonCreate an instance of FileRevision from a JSON string
to_dictReturn the dictionary representation of the model using alias.
from_dictCreate an instance of FileRevision from a dict
from_storage_revision
read_text
copy_to
read_json
archiveArchive the item using the appropriate client method based on its type.
restoreRestore the item using the appropriate client method based on its type.