/** * Update the dataset. * * Example: * ``` * $dataset->update([ * 'friendlyName' => 'A fanciful dataset.' * ]); * ``` * * @see https://cloud.google.com/bigquery/docs/reference/v2/datasets/patch Datasets patch API documentation. * * @param array $metadata The available options for metadata are outlined * at the [Dataset Resource API docs](https://cloud.google.com/bigquery/docs/reference/v2/datasets#resource) * @param array $options [optional] Configuration options. */ public function update(array $metadata, array $options = []) { $options += $metadata; $this->info = $this->connection->patchDataset($options + $this->identity); return $this->info; }