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(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.GetIdForEmail |
getIdForEmail(String email)
Returns the permission ID for an email address.
|
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 using patch semantics.
|
Drive.Permissions.Update |
update(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
public Drive.Permissions.Delete delete(String fileId, String permissionId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.permissionId
- The ID for the permission.IOException
public Drive.Permissions.Get get(String fileId, String permissionId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.permissionId
- The ID for the permission.IOException
public Drive.Permissions.GetIdForEmail getIdForEmail(String email) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.email
- The email address for which to return a permission IDIOException
public Drive.Permissions.Insert insert(String fileId, Permission content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.content
- the Permission
IOException
public Drive.Permissions.List list(String fileId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.IOException
public Drive.Permissions.Patch patch(String fileId, String permissionId, Permission content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.permissionId
- The ID for the permission.content
- the Permission
IOException
public Drive.Permissions.Update update(String fileId, String permissionId, Permission content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID for the file.permissionId
- The ID for the permission.content
- the Permission
IOException