/**
* Set the push config for the subscription
*
* Example:
* ```
* $subscription = $pubsub->subscription('my-new-subscription');
* $subscription->modifyPushConfig([
* 'pushEndpoint' => 'https://www.example.com/foo/bar'
* ]);
* ```
*
* @codingStandardsIgnoreStart
* @see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/modifyPushConfig Modify Push Config
* @codingStandardsIgnoreEnd
*
* @param array $pushConfig {
* Push delivery configuration. See
* [PushConfig](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions#PushConfig)
* for more details.
*
* @type string $pushEndpoint A URL locating the endpoint to which
* messages should be pushed. For example, a Webhook endpoint
* might use "https://example.com/push".
* @type array $attributes Endpoint configuration attributes.
* }
* @param array $options [optional] Configuration Options
* @return void
*/
public function modifyPushConfig(array $pushConfig, array $options = [])
{
$this->connection->modifyPushConfig($options + ['subscription' => $this->name, 'pushConfig' => $pushConfig]);
}