Google\Cloud\Logging\Sink::update PHP Method

update() public method

Example: $sink->update([ 'destination' => 'storage.googleapis.com/my-bucket' ]);
See also: https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/update projects.sinks update API documentation.
public update ( array $metadata, array $options = [] ) : array
$metadata array { 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`. }
$options array [optional] Configuration Options.
return array
    public function update(array $metadata, array $options = [])
    {
        $options += $metadata;
        $options += $this->info($options);
        return $this->info = $this->connection->updateSink($options + ['sinkName' => $this->formattedName]);
    }