BigQuery/src/Table.php
public function update(array $metadata, array $options = [])
    {
        $options = $this->applyEtagHeader(
            $options
            + $metadata
            + $this->identity
        );

        if (!isset($options['etag']) && !isset($options['retries'])) {
            $options['retries'] = 0;
        }

        return $this->info = $this->connection->patchTable($options);
    }
public function update(array $metadata, array $options = [])
    {
        $options = $this->applyEtagHeader(
            $options
            + $metadata
            + $this->identity
        );

        if (!isset($options['etag']) && !isset($options['retries'])) {
            $options['retries'] = 0;
        }

        return $this->info = $this->connection->patchTable($options);
    }
public function update ( array $ metadata , array $ options = [ ] ) { $ options = $ this -> applyEtagHeader ( $ options + $ metadata + $ this -> identity ) ; if ( ! isset ( $ options [ 'etag' ] ) && ! isset ( $ options [ 'retries' ] ) ) { $ options [ 'retries' ] = 0 ; } return $ this -> info = $ this -> connection -> patchTable ( $ options ) ; }
Update the table.

Providing an `etag` key as part of `$metadata` will enable simultaneous
update protection. This is useful in preventing override of modifications
made by another user. The resource's current etag can be obtained via a
GET request on the resource.

Please note that by default the library will not automatically retry this
call on your behalf unless an `etag` is set.

Example:
```
$table->update([
'friendlyName' => 'A friendly name.'
]);
```

@see https://cloud.google.com/bigquery/docs/reference/v2/tables/patch Tables patch API documentation.
@see https://cloud.google.com/bigquery/docs/api-performance#patch Patch (Partial Update)

@param array $metadata The available options for metadata are outlined
at the [Table Resource API docs](https://cloud.google.com/bigquery/docs/reference/v2/tables#resource)
@param array $options [optional] Configuration options.
Update the table .