Versions
========

.. _Version:
   
Version
-------

A versioned snapshot of a document

.. code-block:: json

 message Version {
  string id = 1;
  string dataroom_id = 2;
  uint32 version = 3;
  string name = 4;
  string type = 5;
  string author = 6;
  string title = 7;
  optional string path = 8;
  uint32 document_size = 9;
  google.protobuf.Timestamp creation_date = 10;
  string md5_checksum = 11;
  string mime_type = 12;
  string thumbnail_id = 13;
  string description = 14;
  EffectivePermission effective_permission = 15;
  google.protobuf.Timestamp modification_date = 17;
 }

+--------------------------+-------------------------------+------------------------------------------------------+
| Field                    | Type                          | Description                                          |
+==========================+===============================+======================================================+
| ``id``                   | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``dataroom_id``          | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``version``              | ``uint32``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``name``                 | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``type``                 | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``author``               | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``title``                | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``path``                 | ``string``                    | **Optional**                                         |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``document_size``        | ``uint32``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``creation_date``        | ``google.protobuf.Timestamp`` |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``md5_checksum``         | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``mime_type``            | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``thumbnail_id``         | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``description``          | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``effective_permission`` | ``EffectivePermission``       | See :ref:`EffectivePermission <EffectivePermission>` |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``modification_date``    | ``google.protobuf.Timestamp`` |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+