target.apidocs.com.google.api.services.drive.Drive.Permissions.html Maven / Gradle / Ivy
Drive.Permissions (Google Drive API v3-rev20240730-2.0.0)
com.google.api.services.drive
Class Drive.Permissions
- java.lang.Object
-
- com.google.api.services.drive.Drive.Permissions
-
-
Nested Class Summary
Nested Classes
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 Summary
Constructors
Constructor and Description
Permissions()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
create
public Drive.Permissions.Create create(String fileId,
Permission content)
throws IOException
Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations
on the same file are not supported; only the last update is applied.
Create a request for the method "permissions.create".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file or shared drive.
content
- the Permission
- Returns:
- the request
- Throws:
IOException
-
delete
public Drive.Permissions.Delete delete(String fileId,
String permissionId)
throws IOException
Deletes a permission. **Warning:** Concurrent permissions operations on the same file are not
supported; only the last update is applied.
Create a request for the method "permissions.delete".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file or shared drive.
permissionId
- The ID of the permission.
- Returns:
- the request
- Throws:
IOException
-
get
public Drive.Permissions.Get get(String fileId,
String permissionId)
throws IOException
Gets a permission by ID.
Create a request for the method "permissions.get".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file.
permissionId
- The ID of the permission.
- Returns:
- the request
- Throws:
IOException
-
list
public Drive.Permissions.List list(String fileId)
throws IOException
Lists a file's or shared drive's permissions.
Create a request for the method "permissions.list".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file or shared drive.
- Returns:
- the request
- Throws:
IOException
-
update
public Drive.Permissions.Update update(String fileId,
String permissionId,
Permission content)
throws IOException
Updates a permission with patch semantics. **Warning:** Concurrent permissions operations on the
same file are not supported; only the last update is applied.
Create a request for the method "permissions.update".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
fileId
- The ID of the file or shared drive.
permissionId
- The ID of the permission.
content
- the Permission
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.