Drive API v2 (revision 65)



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

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

public class Drive.Permissions
extends Object

The "permissions" collection of methods.


Nested Class Summary
 class Drive.Permissions.Delete
           
 class Drive.Permissions.Get
           
 class Drive.Permissions.Insert
           
 class Drive.Permissions.List
           
 class Drive.Permissions.Patch
           
 class Drive.Permissions.Update
           
 
Constructor Summary
Drive.Permissions()
           
 
Method Summary
 Drive.Permissions.Delete delete(String fileId, String permissionId)
          Deletes a permission from a file.
 Drive.Permissions.Get get(String fileId, String permissionId)
          Gets a permission by ID.
 Drive.Permissions.Insert insert(String fileId, Permission content)
          Inserts a permission for a file.
 Drive.Permissions.List list(String fileId)
          Lists a file's permissions.
 Drive.Permissions.Patch patch(String fileId, String permissionId, Permission content)
          Updates a permission.
 Drive.Permissions.Update update(String fileId, String permissionId, Permission content)
          Updates a permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drive.Permissions

public Drive.Permissions()
Method Detail

delete

public Drive.Permissions.Delete delete(String fileId,
                                       String permissionId)
                                throws IOException
Deletes a permission from a file. Create a request for the method "permissions.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 for the file.
permissionId - The ID for the permission.
Returns:
the request
Throws:
IOException

get

public Drive.Permissions.Get get(String fileId,
                                 String permissionId)
                          throws IOException
Gets a permission by ID. Create a request for the method "permissions.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 for the file.
permissionId - The ID for the permission.
Returns:
the request
Throws:
IOException

insert

public Drive.Permissions.Insert insert(String fileId,
                                       Permission content)
                                throws IOException
Inserts a permission for a file. Create a request for the method "permissions.insert". 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.
content - the Permission
Returns:
the request
Throws:
IOException

list

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

patch

public Drive.Permissions.Patch patch(String fileId,
                                     String permissionId,
                                     Permission content)
                              throws IOException
Updates a permission. This method supports patch semantics. Create a request for the method "permissions.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.
permissionId - The ID for the permission.
content - the Permission
Returns:
the request
Throws:
IOException

update

public Drive.Permissions.Update update(String fileId,
                                       String permissionId,
                                       Permission content)
                                throws IOException
Updates a permission. Create a request for the method "permissions.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.
permissionId - The ID for the permission.
content - the Permission
Returns:
the request
Throws:
IOException