title: How to upload multiple files to google cloud storage bucket as a transaction
body: <p><strong>Use Case:</strong> </p>
  
  <p>Upload multiple files into a cloud storage bucket, and then use that data as a source to a bigquery import. Use the name of the bucket as the metadata to drive which sharded table the data should go into.</p>
  
  <p><strong>Question:</strong> </p>
  
  <p>In order to prevent partial import to the bigquery table, ideally, I would like to do the following,</p>
  
  <ul>
  <li>Upload the files into a staging bucket</li>
  <li>Verify all files have been uploaded correctly</li>
  <li>Rename the staging bucket to its final name (for example, gs://20130112)</li>
  <li>Trigger the bigquery import to load the bucket into a sharded table</li>
  </ul>
  
  <p>Since gsutil does not seem to support bucket rename, what are the alternative ways to accomplish this?</p>