Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.72 KB

File metadata and controls

34 lines (28 loc) · 1.72 KB

UltracartClient::SfvbFileVersion

Properties

Name Type Description Notes
comment String Comment recorded with the write. [optional]
current Boolean True for the version currently on disk. [optional]
edited_by String Login of whoever wrote this version. [optional]
fs_file_history_oid Integer History record oid, for correlating an entry with the file manager. Absent on the entry marked current, which is the content on disk right now and has no history row of its own. Unlike container_history_oid on a container version, this is NOT addressable through this API - nothing accepts it. Fetch and revert a file version by path plus version instead. [optional]
hash_sha256 String SHA-256 of this version's content. [optional]
last_modified String When this version was written. [optional]
revertable Boolean True when this version can be reverted to, which is every entry except the one marked current. Note that it is absent rather than false on that entry - false booleans are omitted across this API, so a generated client sees undefined rather than false. Test whether the key is present, or simpler still, use current. [optional]
size Integer Size in bytes. [optional]
version Integer Version number. Pass to files/content or files/revert. [optional]

Example

require 'ultracart_api'

instance = UltracartClient::SfvbFileVersion.new(
  comment: null,
  current: null,
  edited_by: null,
  fs_file_history_oid: null,
  hash_sha256: null,
  last_modified: null,
  revertable: null,
  size: null,
  version: null
)