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

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

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






Drive.Drives (Google Drive API v3-rev20241027-2.0.0)












com.google.api.services.drive

Class Drive.Drives

  • Enclosing class:
    Drive


    public class Drive.Drives
    extends Object
    The "drives" collection of methods.
    • Constructor Detail

      • Drives

        public Drives()
    • Method Detail

      • create

        public Drive.Drives.Create create(String requestId,
                                          Drive content)
                                   throws IOException
        Creates a shared drive. Create a request for the method "drives.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:
        requestId - Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.
        content - the Drive
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Drive.Drives.Delete delete(String driveId)
                                   throws IOException
        Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. Create a request for the method "drives.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:
        driveId - The ID of the shared drive.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Drive.Drives.Get get(String driveId)
                             throws IOException
        Gets a shared drive's metadata by ID. Create a request for the method "drives.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:
        driveId - The ID of the shared drive.
        Returns:
        the request
        Throws:
        IOException
      • hide

        public Drive.Drives.Hide hide(String driveId)
                               throws IOException
        Hides a shared drive from the default view. Create a request for the method "drives.hide". 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:
        driveId - The ID of the shared drive.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Drive.Drives.List list()
                               throws IOException
        Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared drives](/drive/api/guides/search-shareddrives) guide. Create a request for the method "drives.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.
        Returns:
        the request
        Throws:
        IOException
      • unhide

        public Drive.Drives.Unhide unhide(String driveId)
                                   throws IOException
        Restores a shared drive to the default view. Create a request for the method "drives.unhide". 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:
        driveId - The ID of the shared drive.
        Returns:
        the request
        Throws:
        IOException
      • update

        public Drive.Drives.Update update(String driveId,
                                          Drive content)
                                   throws IOException
        Updates the metadata for a shared drive. Create a request for the method "drives.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:
        driveId - The ID of the shared drive.
        content - the Drive
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy