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 Permission
IOException
public 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.IOException
public 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.IOException
public 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.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 of the file or shared drive.permissionId
- The ID of the permission.content
- the Permission
IOException
Copyright © 2011–2024 Google. All rights reserved.