/**
* Runs a load job which loads data from a file in a Storage bucket into the
* table.
*
* Example:
* ```
* $object = $storage->bucket('myBucket')->object('important-data.csv');
* $table->load($object);
* ```
*
* @see https://cloud.google.com/bigquery/docs/reference/v2/jobs Jobs insert API Documentation.
*
* @param StorageObject $destination The object to load data from.
* @param array $options [optional] {
* Configuration options.
*
* @type array $jobConfig Configuration settings for a load job are
* outlined in the [API Docs for `configuration.load`](https://goo.gl/j6jyHv).
* If not provided default settings will be used.
* }
* @return Job
*/
public function loadFromStorage(StorageObject $object, array $options = [])
{
$objIdentity = $object->identity();
$options['jobConfig']['sourceUris'] = ['gs://' . $objIdentity['bucket'] . '/' . $objIdentity['object']];
return $this->load(null, $options);
}