public class Drive.Realtime
extends java.lang.Object
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(java.lang.String fileId)
Exports the contents of the Realtime API data model associated with this file as JSON.
|
Drive.Realtime.Update |
update(java.lang.String fileId)
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
|
Drive.Realtime.Update |
update(java.lang.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(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file that the Realtime API data model is associated with.java.io.IOException
public Drive.Realtime.Update update(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file that the Realtime API data model is associated with.java.io.IOException
public Drive.Realtime.Update update(java.lang.String fileId, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.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.java.io.IOException
- if the initialization of the request fails