target.apidocs.com.google.api.services.drive.Drive.Children.html Maven / Gradle / Ivy
Drive.Children (Google Drive API v2-rev20240521-2.0.0)
com.google.api.services.drive
Class Drive.Children
- java.lang.Object
-
- com.google.api.services.drive.Drive.Children
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Children.Delete
class
Drive.Children.Get
class
Drive.Children.Insert
class
Drive.Children.List
-
Constructor Summary
Constructors
Constructor and Description
Children()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
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.
-
-
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.