Drive API v2 (revision 47)



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 java.lang.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(java.lang.String folderId, java.lang.String childId)
          Removes a child from a folder.
 Drive.Children.Get get(java.lang.String folderId, java.lang.String childId)
          Gets a specific child reference.
 Drive.Children.Insert insert(java.lang.String folderId, ChildReference content)
          Inserts a file into a folder.
 Drive.Children.List list(java.lang.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

delete

public Drive.Children.Delete delete(java.lang.String folderId,
                                    java.lang.String childId)
                             throws java.io.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 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:
java.io.IOException

get

public Drive.Children.Get get(java.lang.String folderId,
                              java.lang.String childId)
                       throws java.io.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 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:
java.io.IOException

insert

public Drive.Children.Insert insert(java.lang.String folderId,
                                    ChildReference content)
                             throws java.io.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 AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
folderId - The ID of the folder.
content - the ChildReference
Returns:
the request
Throws:
java.io.IOException

list

public Drive.Children.List list(java.lang.String folderId)
                         throws java.io.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 AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
folderId - The ID of the folder.
Returns:
the request
Throws:
java.io.IOException