All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.Drive.Permissions.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241027-2.0.0
Show newest version






Drive.Permissions (Google Drive API v3-rev20240809-2.0.0)












com.google.api.services.drive

Class Drive.Permissions

  • Enclosing class:
    Drive


    public class Drive.Permissions
    extends Object
    The "permissions" collection of methods.
    • Constructor Detail

      • Permissions

        public Permissions()
    • 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.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy