Logging/src/Sink.php
public function update(array $metadata, array $options = [])
    {
        $options += $metadata;
        $options += $this->info($options);

        return $this->info = $this->connection->updateSink($options + [
            'sinkName' => $this->formattedName
        ]);
    }
public function update(array $metadata, array $options = [])
    {
        $options += $metadata;
        $options += $this->info($options);

        return $this->info = $this->connection->updateSink($options + [
            'sinkName' => $this->formattedName
        ]);
    }
public function update ( array $ metadata , array $ options = [ ] ) { $ options += $ metadata ; $ options += $ this -> info ( $ options ) ; return $ this -> info = $ this -> connection -> updateSink ( $ options + [ 'sinkName' => $ this -> formattedName ] ) ; }
Update the sink. Please note this will trigger a network request if
cached data is not available to perform the update with.

Example:
```
$sink->update([
'destination' => 'storage.googleapis.com/my-bucket'
]);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/update projects.sinks update API documentation.
@codingStandardsIgnoreEnd

@param array $metadata {
The data to update.

@type string $destination The export destination. Please see
[Exporting Logs With Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs#about_sinks)
for more information and examples.
@type string $filter An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters).
@type string $outputVersionFormat The log entry version to use for
this sink's exported log entries. This version does not have
to correspond to the version of the log entry when it was
written to Stackdriver Logging. May be either `V1` or `V2`.
}
@param array $options [optional] Configuration Options.
@return array
Update the sink . Please note this will trigger a network request if cached data is not available to perform the update with .