/** * Updates a file's metadata and/or content with patch semantics. * * Create a request for the method "files.update". * * This request holds the parameters needed by the the drive server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * <p> * This method should be used for uploading media content. * </p> * * @param fileId The ID of the file. * @param content the {@link com.google.api.services.drive.model.File} media metadata or {@code null} if none * @param mediaContent The media HTTP content or {@code null} if none. * @return the request * @throws java.io.IOException if the initialization of the request fails */ public Update update(java.lang.String fileId, com.google.api.services.drive.model.File content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { Update result = new Update(fileId, content, mediaContent); initialize(result); return result; }
/** * Updates a file's metadata and/or content with patch semantics. * * Create a request for the method "files.update". * * This request holds the parameters needed by the drive server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param fileId The ID of the file. * @param content the {@link com.google.api.services.drive.model.File} * @return the request */ public Update update(java.lang.String fileId, com.google.api.services.drive.model.File content) throws java.io.IOException { Update result = new Update(fileId, content); initialize(result); return result; }