target.apidocs.com.google.api.services.drive.Drive.Files.Accessproposals.html Maven / Gradle / Ivy
Drive.Files.Accessproposals (Google Drive API v3-rev20241027-2.0.0)
com.google.api.services.drive
Class Drive.Files.Accessproposals
- java.lang.Object
-
- com.google.api.services.drive.Drive.Files.Accessproposals
-
- Enclosing class:
- Drive.Files
public class Drive.Files.Accessproposals
extends Object
The "accessproposals" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Files.Accessproposals.List
class
Drive.Files.Accessproposals.Resolve
-
Constructor Summary
Constructors
Constructor and Description
Accessproposals()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Drive.Files.Accessproposals.List
list(String fileId)
List the AccessProposals on a file.
Drive.Files.Accessproposals.Resolve
resolve(String fileId,
String proposalId)
Used to approve or deny an Access Proposal.
-
-
Method Detail
-
list
public Drive.Files.Accessproposals.List list(String fileId)
throws IOException
List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a
file. If the user is not an approver, returns a 403.
Create a request for the method "accessproposals.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
- Required. The id of the item the request is on.
- Returns:
- the request
- Throws:
IOException
-
resolve
public Drive.Files.Accessproposals.Resolve resolve(String fileId,
String proposalId)
throws IOException
Used to approve or deny an Access Proposal.
Create a request for the method "accessproposals.resolve".
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
- Required. The id of the item the request is on.
proposalId
- Required. The id of the access proposal to resolve.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy