# Drive API . realtime

## Instance Methods

Exports the contents of the Realtime API data model associated with this file as JSON.

Exports the contents of the Realtime API data model associated with this file as JSON.

Overwrites the Realtime API data model associated with this file with the provided JSON data model.

### Method Details

`get(fileId, revision=None)`

    Exports the contents of the Realtime API data model associated with this file as JSON.

    Args:
      fileId: string, The ID of the file that the Realtime API data model is associated with. (required)
      revision: integer, The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.

`get_media(fileId, revision=None)`

    Exports the contents of the Realtime API data model associated with this file as JSON.

    Args:
      fileId: string, The ID of the file that the Realtime API data model is associated with. (required)
      revision: integer, The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.

`update(fileId, media_body=None, baseRevision=None)`

    Overwrites the Realtime API data model associated with this file with the provided JSON data model.

    Args:
      fileId: string, The ID of the file that the Realtime API data model is associated with. (required)
      media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
      baseRevision: string, The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.