Drive API v2 (revision 1)



com.google.api.services.drive
Class Drive.Children

java.lang.Object
  extended by com.google.api.services.drive.Drive.Children
Enclosing class:
Drive

public class Drive.Children
extends Object

The "children" collection of methods.


Nested Class Summary
 class Drive.Children.Delete
           
 class Drive.Children.Get
           
 class Drive.Children.Insert
           
 class Drive.Children.List
           
 
Constructor Summary
Drive.Children()
           
 
Method Summary
 Drive.Children.Delete delete(String folderId, String childId)
          Removes a child from a folder.
 Drive.Children.Get get(String folderId, String childId)
          Gets a specific child reference.
 Drive.Children.Insert insert(String folderId, ChildReference content)
          Inserts a file into a folder.
 Drive.Children.List list(String folderId)
          Lists a folder's children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drive.Children

public Drive.Children()
Method Detail

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 the drive server. After setting any optional parameters, call the Drive.Children.Insert.execute() method to invoke the remote operation.

Parameters:
folderId - The ID of the folder.
content - the ChildReference
Returns:
the request
Throws:
IOException - if the initialization of the request fails

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 the drive server. After setting any optional parameters, call the Drive.Children.Get.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 - if the initialization of the request fails

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 the drive server. After setting any optional parameters, call the Drive.Children.List.execute() method to invoke the remote operation.

Parameters:
folderId - The ID of the folder.
Returns:
the request
Throws:
IOException - if the initialization of the request fails

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 the drive server. After setting any optional parameters, call the Drive.Children.Delete.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 - if the initialization of the request fails