| Modifier and Type | Class and Description |
|---|---|
class |
Drive.Realtime.Get |
class |
Drive.Realtime.Update |
| Constructor and Description |
|---|
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,
com.google.api.client.http.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.IOExceptionpublic 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.IOExceptionpublic Drive.Realtime.Update update(String fileId, com.google.api.client.http.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 failsCopyright © 2011–2019 Google. All rights reserved.