public class Drive.Permissions
extends java.lang.Object
| 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 |
|---|
Drive.Permissions() |
| Modifier and Type | Method and Description |
|---|---|
Drive.Permissions.Create |
create(java.lang.String fileId,
Permission content)
Creates a permission for a file.
|
Drive.Permissions.Delete |
delete(java.lang.String fileId,
java.lang.String permissionId)
Deletes a permission.
|
Drive.Permissions.Get |
get(java.lang.String fileId,
java.lang.String permissionId)
Gets a permission by ID.
|
Drive.Permissions.List |
list(java.lang.String fileId)
Lists a file's permissions.
|
Drive.Permissions.Update |
update(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission with patch semantics.
|
public Drive.Permissions.Create create(java.lang.String fileId, Permission content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.content - the Permissionjava.io.IOExceptionpublic Drive.Permissions.Delete delete(java.lang.String fileId, java.lang.String permissionId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.permissionId - The ID of the permission.java.io.IOExceptionpublic Drive.Permissions.Get get(java.lang.String fileId, java.lang.String permissionId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.permissionId - The ID of the permission.java.io.IOExceptionpublic Drive.Permissions.List list(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.java.io.IOExceptionpublic Drive.Permissions.Update update(java.lang.String fileId, java.lang.String permissionId, Permission content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.fileId - The ID of the file.permissionId - The ID of the permission.content - the Permissionjava.io.IOException