| Modifier and Type | Class and Description | 
|---|---|
class  | 
Drive.Permissions.Create  | 
class  | 
Drive.Permissions.Delete  | 
class  | 
Drive.Permissions.Get  | 
class  | 
Drive.Permissions.List  | 
class  | 
Drive.Permissions.Update  | 
| Constructor and Description | 
|---|
Permissions()  | 
| Modifier and Type | Method and Description | 
|---|---|
Drive.Permissions.Create | 
create(String fileId,
      Permission content)
Creates a permission for a file or shared drive. 
 | 
Drive.Permissions.Delete | 
delete(String fileId,
      String permissionId)
Deletes a permission. 
 | 
Drive.Permissions.Get | 
get(String fileId,
   String permissionId)
Gets a permission by ID. 
 | 
Drive.Permissions.List | 
list(String fileId)
Lists a file's or shared drive's permissions. 
 | 
Drive.Permissions.Update | 
update(String fileId,
      String permissionId,
      Permission content)
Updates a permission with patch semantics. 
 | 
public Drive.Permissions.Create create(String fileId, Permission content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file or shared drive.content - the PermissionIOExceptionpublic Drive.Permissions.Delete delete(String fileId, String permissionId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file or shared drive.permissionId - The ID of the permission.IOExceptionpublic Drive.Permissions.Get get(String fileId, String permissionId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.permissionId - The ID of the permission.IOExceptionpublic Drive.Permissions.List list(String fileId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file or shared drive.IOExceptionpublic Drive.Permissions.Update update(String fileId, String permissionId, Permission content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file or shared drive.permissionId - The ID of the permission.content - the PermissionIOExceptionCopyright © 2011–2025 Google. All rights reserved.