Modifier and Type | Class and Description |
---|---|
class |
Drive.Parents.Delete |
class |
Drive.Parents.Get |
class |
Drive.Parents.Insert |
class |
Drive.Parents.List |
Constructor and Description |
---|
Drive.Parents() |
Modifier and Type | Method and Description |
---|---|
Drive.Parents.Delete |
delete(String fileId,
String parentId)
Removes a parent from a file.
|
Drive.Parents.Get |
get(String fileId,
String parentId)
Gets a specific parent reference.
|
Drive.Parents.Insert |
insert(String fileId,
ParentReference content)
Adds a parent folder for a file.
|
Drive.Parents.List |
list(String fileId)
Lists a file's parents.
|
public Drive.Parents.Delete delete(String fileId, String parentId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file.parentId
- The ID of the parent.IOException
public Drive.Parents.Get get(String fileId, String parentId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file.parentId
- The ID of the parent.IOException
public Drive.Parents.Insert insert(String fileId, ParentReference content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file.content
- the ParentReference
IOException
public Drive.Parents.List list(String fileId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.fileId
- The ID of the file.IOException