title: How to engage a Resumable upload to Google Drive using google-api-ruby client?
body: <p>I having issues uploading large files form my Linux Desktop to <strong>GDrive</strong> (by using Grive which does not offer recovery or even monitoring of larger uploads).</p>
  
  <p>So I came up trying to use <em>google-api-ruby</em> to write a small script doing the job.</p>
  
  <p>As Google drives documentation talks about <em>Resumable uploads</em> – <a href="https://developers.google.com/drive/manage-uploads#resumable" rel="nofollow">https://developers.google.com/drive/manage-uploads#resumable</a> – I was trying to implement <em>Resumable uploads</em> using <em>google-api-ruby</em> and found <code>Google::APIClient::ResumableUpload</code>class. </p>
  
  <p>Samples are quite useful to understand the principle of how this rubyish API works, but the samples don't broach the issuse of <em>Resumable uploads</em>.</p>
  
  <p>Is <code>Google::APIClient::ResumableUpload</code>class <strong>ment</strong> to be used for <em>Resumable uploads</em> the documenation is talking about or rather a conveicence class provided by this Ruby client?</p>
  
  <p><code>Google::APIClient::ResumableUpload</code> constructor consumes a <code>Google::APIClient::Result</code>which I get, when I call <code>execute</code> or <em>execute!</em> on a <code>Google::APIClient</code> instance. </p>
  
  <p>As far as I understand <code>execute</code> method will only work on Google API methods which are  exposed to <em>Discovery API</em> (such as <code>drive.files.insert</code>).</p>
  
  <p>Unfortunalty <em>Resumable uploads</em> are tied to following URI:</p>
  
  <blockquote>
    <p><a href="https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable" rel="nofollow">https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable</a></p>
  </blockquote>
  
  <p>and does not seem to be part of <em>Discovery</em> yet or integegrated into a 'cleaner' URI scheme (why <code>upload/drive</code> instead of <code>drive/upload</code>?).</p>
  
  <p>Is it possible to use <code>Google::APIClient</code> <em>execute</em> methods for this API URI in order to combine it with <code>Google::APIClient::ResumableUpload</code> oder do I have to implement <em>Resumable uploads</em> by myself (e.g. by using <code>em-http-request</code>)?</p>