public class Drive.Permissions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Drive.Permissions.Delete |
class |
Drive.Permissions.Get |
class |
Drive.Permissions.GetIdForEmail |
class |
Drive.Permissions.Insert |
class |
Drive.Permissions.List |
class |
Drive.Permissions.Patch |
class |
Drive.Permissions.Update |
Constructor and Description |
---|
Drive.Permissions() |
Modifier and Type | Method and Description |
---|---|
Drive.Permissions.Delete |
delete(java.lang.String fileId,
java.lang.String permissionId)
Deletes a permission from a file.
|
Drive.Permissions.Get |
get(java.lang.String fileId,
java.lang.String permissionId)
Gets a permission by ID.
|
Drive.Permissions.GetIdForEmail |
getIdForEmail(java.lang.String email)
Returns the permission ID for an email address.
|
Drive.Permissions.Insert |
insert(java.lang.String fileId,
Permission content)
Inserts a permission for a file.
|
Drive.Permissions.List |
list(java.lang.String fileId)
Lists a file's permissions.
|
Drive.Permissions.Patch |
patch(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission.
|
Drive.Permissions.Update |
update(java.lang.String fileId,
java.lang.String permissionId,
Permission content)
Updates a permission.
|
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 for the file.permissionId
- The ID for 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 for the file.permissionId
- The ID for the permission.java.io.IOException
public Drive.Permissions.GetIdForEmail getIdForEmail(java.lang.String email) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.email
- The email address for which to return a permission IDjava.io.IOException
public Drive.Permissions.Insert insert(java.lang.String fileId, Permission content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.content
- 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 for the file.java.io.IOException
public Drive.Permissions.Patch patch(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 for the file.permissionId
- The ID for the permission.content
- the Permission
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 for the file.permissionId
- The ID for the permission.content
- the Permission
java.io.IOException