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

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







Drive.Revisions (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive

Class Drive.Revisions

  • Enclosing class:
    Drive


    public class Drive.Revisions
    extends Object
    The "revisions" collection of methods.
    • Constructor Detail

      • Revisions

        public Revisions()
    • Method Detail

      • delete

        public Drive.Revisions.Delete delete(String fileId,
                                             String revisionId)
                                      throws IOException
        Removes a revision. Create a request for the method "revisions.delete". 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.
        revisionId - The ID of the revision.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Drive.Revisions.Get get(String fileId,
                                       String revisionId)
                                throws IOException
        Gets a specific revision. Create a request for the method "revisions.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.
        revisionId - The ID of the revision.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Drive.Revisions.List list(String fileId)
                                  throws IOException
        Lists a file's revisions. Create a request for the method "revisions.list". 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.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Drive.Revisions.Patch patch(String fileId,
                                           String revisionId,
                                           Revision content)
                                    throws IOException
        Updates a revision. This method supports patch semantics. Create a request for the method "revisions.patch". 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 for the file.
        revisionId - The ID for the revision.
        content - the Revision
        Returns:
        the request
        Throws:
        IOException
      • update

        public Drive.Revisions.Update update(String fileId,
                                             String revisionId,
                                             Revision content)
                                      throws IOException
        Updates a revision. Create a request for the method "revisions.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 for the file.
        revisionId - The ID for the revision.
        content - the Revision
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy