All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • Enclosing class:
    Drive


    public class Drive.Realtime
    extends Object
    The "realtime" collection of methods.
    • Constructor Detail

      • Realtime

        public Realtime()
    • 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.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy