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 |
---|
Permissions() |
Modifier and Type | Method and Description |
---|---|
Drive.Permissions.Create |
create(java.lang.String fileId,
Permission content)
Creates a permission for a file or shared drive.
|
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 or shared drive'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 or shared drive.content
- the Permission
java.io.IOException
public 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 or shared drive.permissionId
- The ID of the permission.java.io.IOException
public 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.IOException
public 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 or shared drive.java.io.IOException
public 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 or shared drive.permissionId
- The ID of the permission.content
- the Permission
java.io.IOException