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

target.apidocs.com.google.api.services.drive.Drive.Realtime.Update.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240903-2.0.0
Show newest version






Drive.Realtime.Update (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive

Class Drive.Realtime.Update

    • Constructor Detail

      • Update

        protected Update(String fileId)
        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.

        Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        fileId - The ID of the file that the Realtime API data model is associated with.
        Since:
        1.13
      • Update

        protected 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. 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.

        Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        This constructor 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.
        Since:
        1.13

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy