| Modifier and Type | Class and Description |
|---|---|
class |
Drive.Files.Get |
class |
Drive.Files.Insert |
class |
Drive.Files.Patch |
class |
Drive.Files.Update |
| Constructor and Description |
|---|
Drive.Files() |
| Modifier and Type | Method and Description |
|---|---|
Drive.Files.Get |
get(String id)
Gets a file's metadata by id.
|
Drive.Files.Insert |
insert(File content)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Insert |
insert(File content,
AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch |
patch(String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
update(String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update |
update(String id,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content
Create a request for the method "files.update".
|
public Drive.Files.Get get(String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.IOExceptionpublic Drive.Files.Insert insert(File content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the FileIOExceptionpublic Drive.Files.Insert insert(File content, AbstractInputStreamContent mediaContent) throws 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.IOException - if the initialization of the request failspublic Drive.Files.Patch patch(String id, File content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.content - the FileIOExceptionpublic Drive.Files.Update update(String id, File content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.content - the FileIOExceptionpublic Drive.Files.Update update(String id, File content, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
This method should be used for uploading media content.
id - The id for the file in question.content - the File media metadata or null if nonemediaContent - The media HTTP content or null if none.IOException - if the initialization of the request fails