|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.services.drive.Drive.Files
public class Drive.Files
The "files" collection of methods.
Nested Class Summary | |
---|---|
class |
Drive.Files.Copy
|
class |
Drive.Files.Delete
|
class |
Drive.Files.Get
|
class |
Drive.Files.Insert
|
class |
Drive.Files.List
|
class |
Drive.Files.Patch
|
class |
Drive.Files.Touch
|
class |
Drive.Files.Trash
|
class |
Drive.Files.Untrash
|
class |
Drive.Files.Update
|
Constructor Summary | |
---|---|
Drive.Files()
|
Method Summary | |
---|---|
Drive.Files.Copy |
copy(java.lang.String fileId,
File content)
Creates a copy of the specified file. |
Drive.Files.Delete |
delete(java.lang.String fileId)
Permanently deletes a file by ID. |
Drive.Files.Get |
get(java.lang.String fileId)
Gets a file's metadata by ID. |
Drive.Files.Insert |
insert(File content)
Insert a new file. |
Drive.Files.Insert |
insert(File content,
AbstractInputStreamContent mediaContent)
Insert a new file. |
Drive.Files.List |
list()
Lists the user's files. |
Drive.Files.Patch |
patch(java.lang.String fileId,
File content)
Updates file metadata and/or content. |
Drive.Files.Touch |
touch(java.lang.String fileId)
Set the file's updated time to the current server time. |
Drive.Files.Trash |
trash(java.lang.String fileId)
Moves a file to the trash. |
Drive.Files.Untrash |
untrash(java.lang.String fileId)
Restores a file from the trash. |
Drive.Files.Update |
update(java.lang.String fileId,
File content)
Updates file metadata and/or content Create a request for the method "files.update". |
Drive.Files.Update |
update(java.lang.String fileId,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content Create a request for the method "files.update". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Drive.Files()
Method Detail |
---|
public Drive.Files.Copy copy(java.lang.String fileId, File content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to copy.content
- the File
java.io.IOException
public Drive.Files.Delete delete(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to delete.
java.io.IOException
public Drive.Files.Get get(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID for the file in question.
java.io.IOException
public Drive.Files.Insert insert(File content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
content
- the File
java.io.IOException
public Drive.Files.Insert insert(File content, AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
content
- the File
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.
java.io.IOException
- if the initialization of the request failspublic Drive.Files.List list() throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
java.io.IOException
public Drive.Files.Patch patch(java.lang.String fileId, File content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to update.content
- the File
java.io.IOException
public Drive.Files.Touch touch(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to update.
java.io.IOException
public Drive.Files.Trash trash(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to trash.
java.io.IOException
public Drive.Files.Untrash untrash(java.lang.String fileId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to untrash.
java.io.IOException
public Drive.Files.Update update(java.lang.String fileId, File content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
fileId
- The ID of the file to update.content
- the File
java.io.IOException
public Drive.Files.Update update(java.lang.String fileId, File content, AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
fileId
- The ID of the file to update.content
- the File
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.
java.io.IOException
- if the initialization of the request fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |