public class Drive.Files
extends java.lang.Object
| 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(java.lang.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,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request.
|
Drive.Files.Patch |
patch(java.lang.String id,
File content)
Updates file metadata and/or content.
|
Drive.Files.Update |
update(java.lang.String id,
File content)
Updates file metadata and/or content
Create a request for the method "files.update".
|
Drive.Files.Update |
update(java.lang.String id,
File content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates file metadata and/or content
Create a request for the method "files.update".
|
public Drive.Files.Get get(java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.java.io.IOExceptionpublic Drive.Files.Insert insert(File content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the Filejava.io.IOExceptionpublic Drive.Files.Insert insert(File content, com.google.api.client.http.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.Patch patch(java.lang.String id, File content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.content - the Filejava.io.IOExceptionpublic Drive.Files.Update update(java.lang.String id, File content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The id for the file in question.content - the Filejava.io.IOExceptionpublic Drive.Files.Update update(java.lang.String id, File content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.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.java.io.IOException - if the initialization of the request fails