Modifier and Type | Class and Description |
---|---|
class |
Drive.Realtime.Get |
class |
Drive.Realtime.Update |
Constructor and Description |
---|
Drive.Realtime() |
Modifier and Type | Method and Description |
---|---|
Drive.Realtime.Get |
get(String fileId)
Exports the contents of the Realtime API data model associated with this file as JSON.
|
Drive.Realtime.Update |
update(String fileId)
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
|
Drive.Realtime.Update |
update(String fileId,
AbstractInputStreamContent mediaContent)
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
|
public Drive.Realtime.Get get(String fileId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file that the Realtime API data model is associated with.IOException
public Drive.Realtime.Update update(String fileId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file that the Realtime API data model is associated with.IOException
public Drive.Realtime.Update update(String fileId, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
fileId
- The ID of the file that the Realtime API data model is associated with.mediaContent
- The media HTTP content or null
if none.IOException
- if the initialization of the request fails