Drive API v2 (revision 47)



com.google.api.services.drive
Class Drive.Revisions

java.lang.Object
  extended by com.google.api.services.drive.Drive.Revisions
Enclosing class:
Drive

public class Drive.Revisions
extends java.lang.Object

The "revisions" collection of methods.


Nested Class Summary
 class Drive.Revisions.Delete
           
 class Drive.Revisions.Get
           
 class Drive.Revisions.List
           
 class Drive.Revisions.Patch
           
 class Drive.Revisions.Update
           
 
Constructor Summary
Drive.Revisions()
           
 
Method Summary
 Drive.Revisions.Delete delete(java.lang.String fileId, java.lang.String revisionId)
          Removes a revision.
 Drive.Revisions.Get get(java.lang.String fileId, java.lang.String revisionId)
          Gets a specific revision.
 Drive.Revisions.List list(java.lang.String fileId)
          Lists a file's revisions.
 Drive.Revisions.Patch patch(java.lang.String fileId, java.lang.String revisionId, Revision content)
          Updates a revision.
 Drive.Revisions.Update update(java.lang.String fileId, java.lang.String revisionId, Revision content)
          Updates a revision.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drive.Revisions

public Drive.Revisions()
Method Detail

delete

public Drive.Revisions.Delete delete(java.lang.String fileId,
                                     java.lang.String revisionId)
                              throws java.io.IOException
Removes a revision. Create a request for the method "revisions.delete". 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.

Parameters:
fileId - The ID of the file.
revisionId - The ID of the revision.
Returns:
the request
Throws:
java.io.IOException

get

public Drive.Revisions.Get get(java.lang.String fileId,
                               java.lang.String revisionId)
                        throws java.io.IOException
Gets a specific revision. Create a request for the method "revisions.get". 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.

Parameters:
fileId - The ID of the file.
revisionId - The ID of the revision.
Returns:
the request
Throws:
java.io.IOException

list

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

Parameters:
fileId - The ID of the file.
Returns:
the request
Throws:
java.io.IOException

patch

public Drive.Revisions.Patch patch(java.lang.String fileId,
                                   java.lang.String revisionId,
                                   Revision content)
                            throws java.io.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 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:
java.io.IOException

update

public Drive.Revisions.Update update(java.lang.String fileId,
                                     java.lang.String revisionId,
                                     Revision content)
                              throws java.io.IOException
Updates a revision. Create a request for the method "revisions.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.

Parameters:
fileId - The ID for the file.
revisionId - The ID for the revision.
content - the Revision
Returns:
the request
Throws:
java.io.IOException