target.apidocs.com.google.api.services.drive.Drive.Realtime.html Maven / Gradle / Ivy
Drive.Realtime (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive
Class Drive.Realtime
- java.lang.Object
-
- com.google.api.services.drive.Drive.Realtime
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Realtime.Get
class
Drive.Realtime.Update
-
Constructor Summary
Constructors
Constructor and Description
Realtime()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
get
public Drive.Realtime.Get get(String fileId)
throws IOException
Exports the contents of the Realtime API data model associated with this file as JSON.
Create a request for the method "realtime.get".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file that the Realtime API data model is associated with.
- Returns:
- the request
- Throws:
IOException
-
update
public Drive.Realtime.Update update(String fileId)
throws IOException
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
Create a request for the method "realtime.update".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file that the Realtime API data model is associated with.
- Returns:
- the request
- Throws:
IOException
-
update
public Drive.Realtime.Update update(String fileId,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
throws IOException
Overwrites the Realtime API data model associated with this file with the provided JSON data
model.
Create a request for the method "realtime.update".
This request holds the parameters needed by the the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
- Parameters:
fileId
- The ID of the file that the Realtime API data model is associated with.
mediaContent
- The media HTTP content or null
if none.
- Returns:
- the request
- Throws:
IOException
- if the initialization of the request fails
Copyright © 2011–2018 Google. All rights reserved.