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

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

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






Drive.Children (Google Drive API v2-rev20240521-2.0.0)












com.google.api.services.drive

Class Drive.Children

  • Enclosing class:
    Drive


    public class Drive.Children
    extends Object
    The "children" collection of methods.
    • Constructor Detail

      • Children

        public Children()
    • Method Detail

      • delete

        public Drive.Children.Delete delete(String folderId,
                                            String childId)
                                     throws IOException
        Removes a child from a folder. Create a request for the method "children.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:
        folderId - The ID of the folder.
        childId - The ID of the child.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Drive.Children.Get get(String folderId,
                                      String childId)
                               throws IOException
        Gets a specific child reference. Create a request for the method "children.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:
        folderId - The ID of the folder.
        childId - The ID of the child.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Drive.Children.Insert insert(String folderId,
                                            ChildReference content)
                                     throws IOException
        Inserts a file into a folder. Create a request for the method "children.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:
        folderId - The ID of the folder.
        content - the ChildReference
        Returns:
        the request
        Throws:
        IOException
      • list

        public Drive.Children.List list(String folderId)
                                 throws IOException
        Lists a folder's children. Create a request for the method "children.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:
        folderId - The ID of the folder.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy