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-rev20240903-2.0.0
Show newest version






Drive.Permissions (Drive API v2-rev20180830-1.26.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

      • delete

        public Drive.Permissions.Delete delete(String fileId,
                                               String permissionId)
                                        throws IOException
        Deletes a permission from a file or Team Drive. 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 for the file or Team Drive.
        permissionId - The ID for 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 for the file or Team Drive.
        permissionId - The ID for the permission.
        Returns:
        the request
        Throws:
        IOException
      • getIdForEmail

        public Drive.Permissions.GetIdForEmail getIdForEmail(String email)
                                                      throws IOException
        Returns the permission ID for an email address. Create a request for the method "permissions.getIdForEmail". 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:
        email - The email address for which to return a permission ID
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Drive.Permissions.Insert insert(String fileId,
                                               Permission content)
                                        throws IOException
        Inserts a permission for a file or Team Drive. Create a request for the method "permissions.insert". 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 for the file or Team Drive.
        content - the Permission
        Returns:
        the request
        Throws:
        IOException
      • list

        public Drive.Permissions.List list(String fileId)
                                    throws IOException
        Lists a file's or Team 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 for the file or Team Drive.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Drive.Permissions.Patch patch(String fileId,
                                             String permissionId,
                                             Permission content)
                                      throws IOException
        Updates a permission using patch semantics. Create a request for the method "permissions.patch". 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 for the file or Team Drive.
        permissionId - The ID for the permission.
        content - the Permission
        Returns:
        the request
        Throws:
        IOException
      • update

        public Drive.Permissions.Update update(String fileId,
                                               String permissionId,
                                               Permission content)
                                        throws IOException
        Updates a permission. 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 for the file or Team Drive.
        permissionId - The ID for the permission.
        content - the Permission
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy